public final class GenerateInstanceRubricsRequest extends GeneratedMessage implements GenerateInstanceRubricsRequestOrBuilder
Request message for EvaluationService.GenerateInstanceRubrics.
Protobuf type google.cloud.aiplatform.v1beta1.GenerateInstanceRubricsRequest
Inherited Members
com.google.protobuf.GeneratedMessage.<ContainingT,T>newFileScopedGeneratedExtension(java.lang.Class<?>,com.google.protobuf.Message)
com.google.protobuf.GeneratedMessage.<ContainingT,T>newMessageScopedGeneratedExtension(com.google.protobuf.Message,int,java.lang.Class<?>,com.google.protobuf.Message)
com.google.protobuf.GeneratedMessage.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessage.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessage.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessage.<V>serializeBooleanMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.Boolean,V>,com.google.protobuf.MapEntry<java.lang.Boolean,V>,int)
com.google.protobuf.GeneratedMessage.<V>serializeIntegerMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.Integer,V>,com.google.protobuf.MapEntry<java.lang.Integer,V>,int)
com.google.protobuf.GeneratedMessage.<V>serializeLongMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.Long,V>,com.google.protobuf.MapEntry<java.lang.Long,V>,int)
com.google.protobuf.GeneratedMessage.<V>serializeStringMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.String,V>,com.google.protobuf.MapEntry<java.lang.String,V>,int)
com.google.protobuf.GeneratedMessage.canUseUnsafe()
com.google.protobuf.GeneratedMessage.emptyBooleanList()
com.google.protobuf.GeneratedMessage.emptyDoubleList()
com.google.protobuf.GeneratedMessage.emptyFloatList()
com.google.protobuf.GeneratedMessage.emptyIntList()
com.google.protobuf.GeneratedMessage.emptyLongList()
com.google.protobuf.GeneratedMessage.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessage.isStringEmpty(java.lang.Object)
com.google.protobuf.GeneratedMessage.mergeFromAndMakeImmutableInternal(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite)
com.google.protobuf.GeneratedMessage.newInstance(com.google.protobuf.GeneratedMessage.UnusedPrivateParameter)
com.google.protobuf.GeneratedMessage.parseUnknownFieldProto3(com.google.protobuf.CodedInputStream,com.google.protobuf.UnknownFieldSet.Builder,com.google.protobuf.ExtensionRegistryLite,int)
Static Fields
public static final int AGENT_CONFIG_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
CONTENTS_FIELD_NUMBER
public static final int CONTENTS_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
public static final int LOCATION_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
public static final int PREDEFINED_RUBRIC_GENERATION_SPEC_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
public static final int RUBRIC_GENERATION_SPEC_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
Static Methods
public static GenerateInstanceRubricsRequest getDefaultInstance()
public static final Descriptors.Descriptor getDescriptor()
public static GenerateInstanceRubricsRequest.Builder newBuilder()
public static GenerateInstanceRubricsRequest.Builder newBuilder(GenerateInstanceRubricsRequest prototype)
public static GenerateInstanceRubricsRequest parseDelimitedFrom(InputStream input)
public static GenerateInstanceRubricsRequest parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static GenerateInstanceRubricsRequest parseFrom(byte[] data)
| Parameter |
| Name |
Description |
data |
byte[]
|
public static GenerateInstanceRubricsRequest parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static GenerateInstanceRubricsRequest parseFrom(ByteString data)
public static GenerateInstanceRubricsRequest parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static GenerateInstanceRubricsRequest parseFrom(CodedInputStream input)
public static GenerateInstanceRubricsRequest parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static GenerateInstanceRubricsRequest parseFrom(InputStream input)
public static GenerateInstanceRubricsRequest parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static GenerateInstanceRubricsRequest parseFrom(ByteBuffer data)
public static GenerateInstanceRubricsRequest parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static Parser<GenerateInstanceRubricsRequest> parser()
Methods
public boolean equals(Object obj)
| Parameter |
| Name |
Description |
obj |
Object
|
Overrides
public EvaluationInstance.DeprecatedAgentConfig getAgentConfig()
Optional. Agent configuration, required for agent-based rubric generation.
.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig agent_config = 5 [(.google.api.field_behavior) = OPTIONAL];
public EvaluationInstance.DeprecatedAgentConfigOrBuilder getAgentConfigOrBuilder()
Optional. Agent configuration, required for agent-based rubric generation.
.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig agent_config = 5 [(.google.api.field_behavior) = OPTIONAL];
getContents(int index)
public Content getContents(int index)
Required. The prompt to generate rubrics from.
For single-turn queries, this is a single instance. For multi-turn queries,
this is a repeated field that contains conversation history + latest
request.
repeated .google.cloud.aiplatform.v1beta1.Content contents = 2 [(.google.api.field_behavior) = REQUIRED];
| Parameter |
| Name |
Description |
index |
int
|
getContentsCount()
public int getContentsCount()
Required. The prompt to generate rubrics from.
For single-turn queries, this is a single instance. For multi-turn queries,
this is a repeated field that contains conversation history + latest
request.
repeated .google.cloud.aiplatform.v1beta1.Content contents = 2 [(.google.api.field_behavior) = REQUIRED];
| Returns |
| Type |
Description |
int |
|
getContentsList()
public List<Content> getContentsList()
Required. The prompt to generate rubrics from.
For single-turn queries, this is a single instance. For multi-turn queries,
this is a repeated field that contains conversation history + latest
request.
repeated .google.cloud.aiplatform.v1beta1.Content contents = 2 [(.google.api.field_behavior) = REQUIRED];
getContentsOrBuilder(int index)
public ContentOrBuilder getContentsOrBuilder(int index)
Required. The prompt to generate rubrics from.
For single-turn queries, this is a single instance. For multi-turn queries,
this is a repeated field that contains conversation history + latest
request.
repeated .google.cloud.aiplatform.v1beta1.Content contents = 2 [(.google.api.field_behavior) = REQUIRED];
| Parameter |
| Name |
Description |
index |
int
|
getContentsOrBuilderList()
public List<? extends ContentOrBuilder> getContentsOrBuilderList()
Required. The prompt to generate rubrics from.
For single-turn queries, this is a single instance. For multi-turn queries,
this is a repeated field that contains conversation history + latest
request.
repeated .google.cloud.aiplatform.v1beta1.Content contents = 2 [(.google.api.field_behavior) = REQUIRED];
| Returns |
| Type |
Description |
List<? extends com.google.cloud.aiplatform.v1beta1.ContentOrBuilder> |
|
public GenerateInstanceRubricsRequest getDefaultInstanceForType()
public String getLocation()
Required. The resource name of the Location to generate rubrics from.
Format: projects/{project}/locations/{location}
string location = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
| Returns |
| Type |
Description |
String |
The location.
|
public ByteString getLocationBytes()
Required. The resource name of the Location to generate rubrics from.
Format: projects/{project}/locations/{location}
string location = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
| Returns |
| Type |
Description |
ByteString |
The bytes for location.
|
public Parser<GenerateInstanceRubricsRequest> getParserForType()
Overrides
public PredefinedMetricSpec getPredefinedRubricGenerationSpec()
Optional. Specification for using the rubric generation configs of a
pre-defined metric, e.g. "generic_quality_v1" and
"instruction_following_v1". Some of the configs may be only used in rubric
generation and not supporting evaluation, e.g.
"fully_customized_generic_quality_v1". If this field is set, the
rubric_generation_spec field will be ignored.
.google.cloud.aiplatform.v1beta1.PredefinedMetricSpec predefined_rubric_generation_spec = 4 [(.google.api.field_behavior) = OPTIONAL];
public PredefinedMetricSpecOrBuilder getPredefinedRubricGenerationSpecOrBuilder()
Optional. Specification for using the rubric generation configs of a
pre-defined metric, e.g. "generic_quality_v1" and
"instruction_following_v1". Some of the configs may be only used in rubric
generation and not supporting evaluation, e.g.
"fully_customized_generic_quality_v1". If this field is set, the
rubric_generation_spec field will be ignored.
.google.cloud.aiplatform.v1beta1.PredefinedMetricSpec predefined_rubric_generation_spec = 4 [(.google.api.field_behavior) = OPTIONAL];
public RubricGenerationSpec getRubricGenerationSpec()
Optional. Specification for how the rubrics should be generated.
.google.cloud.aiplatform.v1beta1.RubricGenerationSpec rubric_generation_spec = 3 [(.google.api.field_behavior) = OPTIONAL];
public RubricGenerationSpecOrBuilder getRubricGenerationSpecOrBuilder()
Optional. Specification for how the rubrics should be generated.
.google.cloud.aiplatform.v1beta1.RubricGenerationSpec rubric_generation_spec = 3 [(.google.api.field_behavior) = OPTIONAL];
public int getSerializedSize()
| Returns |
| Type |
Description |
int |
|
Overrides
public boolean hasAgentConfig()
Optional. Agent configuration, required for agent-based rubric generation.
.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig agent_config = 5 [(.google.api.field_behavior) = OPTIONAL];
| Returns |
| Type |
Description |
boolean |
Whether the agentConfig field is set.
|
public boolean hasPredefinedRubricGenerationSpec()
Optional. Specification for using the rubric generation configs of a
pre-defined metric, e.g. "generic_quality_v1" and
"instruction_following_v1". Some of the configs may be only used in rubric
generation and not supporting evaluation, e.g.
"fully_customized_generic_quality_v1". If this field is set, the
rubric_generation_spec field will be ignored.
.google.cloud.aiplatform.v1beta1.PredefinedMetricSpec predefined_rubric_generation_spec = 4 [(.google.api.field_behavior) = OPTIONAL];
| Returns |
| Type |
Description |
boolean |
Whether the predefinedRubricGenerationSpec field is set.
|
public boolean hasRubricGenerationSpec()
Optional. Specification for how the rubrics should be generated.
.google.cloud.aiplatform.v1beta1.RubricGenerationSpec rubric_generation_spec = 3 [(.google.api.field_behavior) = OPTIONAL];
| Returns |
| Type |
Description |
boolean |
Whether the rubricGenerationSpec field is set.
|
| Returns |
| Type |
Description |
int |
|
Overrides
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
public final boolean isInitialized()
Overrides
public GenerateInstanceRubricsRequest.Builder newBuilderForType()
protected GenerateInstanceRubricsRequest.Builder newBuilderForType(AbstractMessage.BuilderParent parent)
Overrides
public GenerateInstanceRubricsRequest.Builder toBuilder()
public void writeTo(CodedOutputStream output)
Overrides