Class CopilotExpAssignmentResponse
java.lang.Object
com.github.copilot.rpc.CopilotExpAssignmentResponse
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the assignment context string forwarded to CAPI and telemetry.Gets the configuration entries carrying typed parameter values.Gets the enabled feature names.Gets the version of the flighting configuration.Gets the assigned flights keyed by flight name.Gets the impression identifier for the assignment.com.fasterxml.jackson.databind.JsonNodeGets the opaque parameter-group payload passed through untouched.setAssignmentContext(String assignmentContext) Sets the assignment context string forwarded to CAPI and telemetry.setConfigs(List<ExpConfigEntry> configs) Sets the configuration entries carrying typed parameter values.setFeatures(List<String> features) Sets the enabled feature names.setFlightingVersion(Integer flightingVersion) Sets the version of the flighting configuration.setFlights(Map<String, String> flights) Sets the assigned flights keyed by flight name.setImpressionId(String impressionId) Sets the impression identifier for the assignment.setParameterGroups(com.fasterxml.jackson.databind.JsonNode parameterGroups) Sets the opaque parameter-group payload passed through untouched.
-
Constructor Details
-
CopilotExpAssignmentResponse
public CopilotExpAssignmentResponse()
-
-
Method Details
-
getFeatures
-
setFeatures
Sets the enabled feature names.- Parameters:
features- the feature list- Returns:
- this instance for method chaining
-
getFlights
-
setFlights
Sets the assigned flights keyed by flight name.- Parameters:
flights- the flights map- Returns:
- this instance for method chaining
-
getConfigs
Gets the configuration entries carrying typed parameter values.- Returns:
- the configuration entries
-
setConfigs
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
nullif 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
Gets the version of the flighting configuration.- Returns:
- the flighting version, or
nullif not set
-
setFlightingVersion
Sets the version of the flighting configuration.- Parameters:
flightingVersion- the flighting version- Returns:
- this instance for method chaining
-
getImpressionId
Gets the impression identifier for the assignment.- Returns:
- the impression identifier, or
nullif not set
-
setImpressionId
Sets the impression identifier for the assignment.- Parameters:
impressionId- the impression identifier- Returns:
- this instance for method chaining
-
getAssignmentContext
Gets the assignment context string forwarded to CAPI and telemetry.- Returns:
- the assignment context (empty string when unset)
-
setAssignmentContext
Sets the assignment context string forwarded to CAPI and telemetry.- Parameters:
assignmentContext- the assignment context- Returns:
- this instance for method chaining
-