Class CopilotExpAssignmentResponse

java.lang.Object
com.github.copilot.rpc.CopilotExpAssignmentResponse

public class CopilotExpAssignmentResponse extends Object
ExP ("flight") assignment data, in the same JSON shape the Copilot CLI fetches from the experimentation service.

Property names serialize as PascalCase (Features, Flights, Configs, ...) to match the on-the-wire contract consumed by the runtime. This is an internal/trusted-integrator option, not part of the broadly advertised public surface.

  • Constructor Details

    • CopilotExpAssignmentResponse

      public CopilotExpAssignmentResponse()
  • Method Details

    • getFeatures

      public List<String> getFeatures()
      Gets the enabled feature names.
      Returns:
      the feature list
    • setFeatures

      public CopilotExpAssignmentResponse setFeatures(List<String> features)
      Sets the enabled feature names.
      Parameters:
      features - the feature list
      Returns:
      this instance for method chaining
    • getFlights

      public Map<String,String> getFlights()
      Gets the assigned flights keyed by flight name.
      Returns:
      the flights map
    • setFlights

      public CopilotExpAssignmentResponse setFlights(Map<String,String> flights)
      Sets the assigned flights keyed by flight name.
      Parameters:
      flights - the flights map
      Returns:
      this instance for method chaining
    • getConfigs

      public List<ExpConfigEntry> getConfigs()
      Gets the configuration entries carrying typed parameter values.
      Returns:
      the configuration entries
    • setConfigs

      public CopilotExpAssignmentResponse setConfigs(List<ExpConfigEntry> configs)
      Sets the configuration entries carrying typed parameter values.
      Parameters:
      configs - the configuration entries
      Returns:
      this instance for method chaining
    • getParameterGroups

      public com.fasterxml.jackson.databind.JsonNode getParameterGroups()
      Gets the opaque parameter-group payload passed through untouched.
      Returns:
      the parameter groups, or null if not set
    • setParameterGroups

      public CopilotExpAssignmentResponse setParameterGroups(com.fasterxml.jackson.databind.JsonNode parameterGroups)
      Sets the opaque parameter-group payload passed through untouched.
      Parameters:
      parameterGroups - the parameter groups
      Returns:
      this instance for method chaining
    • getFlightingVersion

      public Integer getFlightingVersion()
      Gets the version of the flighting configuration.
      Returns:
      the flighting version, or null if not set
    • setFlightingVersion

      public CopilotExpAssignmentResponse setFlightingVersion(Integer flightingVersion)
      Sets the version of the flighting configuration.
      Parameters:
      flightingVersion - the flighting version
      Returns:
      this instance for method chaining
    • getImpressionId

      public String getImpressionId()
      Gets the impression identifier for the assignment.
      Returns:
      the impression identifier, or null if not set
    • setImpressionId

      public CopilotExpAssignmentResponse setImpressionId(String impressionId)
      Sets the impression identifier for the assignment.
      Parameters:
      impressionId - the impression identifier
      Returns:
      this instance for method chaining
    • getAssignmentContext

      public String getAssignmentContext()
      Gets the assignment context string forwarded to CAPI and telemetry.
      Returns:
      the assignment context (empty string when unset)
    • setAssignmentContext

      public CopilotExpAssignmentResponse setAssignmentContext(String assignmentContext)
      Sets the assignment context string forwarded to CAPI and telemetry.
      Parameters:
      assignmentContext - the assignment context
      Returns:
      this instance for method chaining