Class GenerateInstanceRubricsRequest

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloud.aiplatform.v1beta1.GenerateInstanceRubricsRequest
All Implemented Interfaces:
GenerateInstanceRubricsRequestOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

@Generated public final class GenerateInstanceRubricsRequest extends com.google.protobuf.GeneratedMessage implements GenerateInstanceRubricsRequestOrBuilder
 Request message for EvaluationService.GenerateInstanceRubrics.
 
Protobuf type google.cloud.aiplatform.v1beta1.GenerateInstanceRubricsRequest
See Also:
  • Field Details

    • LOCATION_FIELD_NUMBER

      public static final int LOCATION_FIELD_NUMBER
      See Also:
    • CONTENTS_FIELD_NUMBER

      public static final int CONTENTS_FIELD_NUMBER
      See Also:
    • PREDEFINED_RUBRIC_GENERATION_SPEC_FIELD_NUMBER

      public static final int PREDEFINED_RUBRIC_GENERATION_SPEC_FIELD_NUMBER
      See Also:
    • RUBRIC_GENERATION_SPEC_FIELD_NUMBER

      public static final int RUBRIC_GENERATION_SPEC_FIELD_NUMBER
      See Also:
    • AGENT_CONFIG_FIELD_NUMBER

      public static final int AGENT_CONFIG_FIELD_NUMBER
      See Also:
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage
    • getLocation

      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) = { ... }
      Specified by:
      getLocation in interface GenerateInstanceRubricsRequestOrBuilder
      Returns:
      The location.
    • getLocationBytes

      public com.google.protobuf.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) = { ... }
      Specified by:
      getLocationBytes in interface GenerateInstanceRubricsRequestOrBuilder
      Returns:
      The bytes for location.
    • 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];
      Specified by:
      getContentsList in interface GenerateInstanceRubricsRequestOrBuilder
    • 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];
      Specified by:
      getContentsOrBuilderList in interface GenerateInstanceRubricsRequestOrBuilder
    • 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];
      Specified by:
      getContentsCount in interface GenerateInstanceRubricsRequestOrBuilder
    • getContents

      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];
      Specified by:
      getContents in interface GenerateInstanceRubricsRequestOrBuilder
    • getContentsOrBuilder

      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];
      Specified by:
      getContentsOrBuilder in interface GenerateInstanceRubricsRequestOrBuilder
    • hasPredefinedRubricGenerationSpec

      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];
      Specified by:
      hasPredefinedRubricGenerationSpec in interface GenerateInstanceRubricsRequestOrBuilder
      Returns:
      Whether the predefinedRubricGenerationSpec field is set.
    • getPredefinedRubricGenerationSpec

      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];
      Specified by:
      getPredefinedRubricGenerationSpec in interface GenerateInstanceRubricsRequestOrBuilder
      Returns:
      The predefinedRubricGenerationSpec.
    • getPredefinedRubricGenerationSpecOrBuilder

      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];
      Specified by:
      getPredefinedRubricGenerationSpecOrBuilder in interface GenerateInstanceRubricsRequestOrBuilder
    • hasRubricGenerationSpec

      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];
      Specified by:
      hasRubricGenerationSpec in interface GenerateInstanceRubricsRequestOrBuilder
      Returns:
      Whether the rubricGenerationSpec field is set.
    • getRubricGenerationSpec

      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];
      Specified by:
      getRubricGenerationSpec in interface GenerateInstanceRubricsRequestOrBuilder
      Returns:
      The rubricGenerationSpec.
    • getRubricGenerationSpecOrBuilder

      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];
      Specified by:
      getRubricGenerationSpecOrBuilder in interface GenerateInstanceRubricsRequestOrBuilder
    • hasAgentConfig

      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];
      Specified by:
      hasAgentConfig in interface GenerateInstanceRubricsRequestOrBuilder
      Returns:
      Whether the agentConfig field is set.
    • getAgentConfig

       Optional. Agent configuration, required for agent-based rubric generation.
       
      .google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig agent_config = 5 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getAgentConfig in interface GenerateInstanceRubricsRequestOrBuilder
      Returns:
      The agentConfig.
    • getAgentConfigOrBuilder

      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];
      Specified by:
      getAgentConfigOrBuilder in interface GenerateInstanceRubricsRequestOrBuilder
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessage
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessage
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.google.protobuf.AbstractMessage
    • parseFrom

      public static GenerateInstanceRubricsRequest parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static GenerateInstanceRubricsRequest parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static GenerateInstanceRubricsRequest parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static GenerateInstanceRubricsRequest parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static GenerateInstanceRubricsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static GenerateInstanceRubricsRequest parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static GenerateInstanceRubricsRequest parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static GenerateInstanceRubricsRequest parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static GenerateInstanceRubricsRequest parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static GenerateInstanceRubricsRequest parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static GenerateInstanceRubricsRequest parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static GenerateInstanceRubricsRequest parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

      public GenerateInstanceRubricsRequest.Builder newBuilderForType()
      Specified by:
      newBuilderForType in interface com.google.protobuf.Message
      Specified by:
      newBuilderForType in interface com.google.protobuf.MessageLite
    • newBuilder

      public static GenerateInstanceRubricsRequest.Builder newBuilder()
    • newBuilder

    • toBuilder

      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

      protected GenerateInstanceRubricsRequest.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
      Overrides:
      newBuilderForType in class com.google.protobuf.AbstractMessage
    • getDefaultInstance

      public static GenerateInstanceRubricsRequest getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<GenerateInstanceRubricsRequest> parser()
    • getParserForType

      public com.google.protobuf.Parser<GenerateInstanceRubricsRequest> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessage
    • getDefaultInstanceForType

      public GenerateInstanceRubricsRequest getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder