Class RubricBasedInstructionFollowingInstance.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<RubricBasedInstructionFollowingInstance.Builder>
com.google.cloud.aiplatform.v1beta1.RubricBasedInstructionFollowingInstance.Builder
All Implemented Interfaces:
RubricBasedInstructionFollowingInstanceOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
RubricBasedInstructionFollowingInstance

public static final class RubricBasedInstructionFollowingInstance.Builder extends com.google.protobuf.GeneratedMessage.Builder<RubricBasedInstructionFollowingInstance.Builder> implements RubricBasedInstructionFollowingInstanceOrBuilder
 Instance for RubricBasedInstructionFollowing metric - one instance
 corresponds to one row in an evaluation dataset.
 
Protobuf type google.cloud.aiplatform.v1beta1.RubricBasedInstructionFollowingInstance
  • 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.Builder<RubricBasedInstructionFollowingInstance.Builder>
    • clear

      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<RubricBasedInstructionFollowingInstance.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<RubricBasedInstructionFollowingInstance.Builder>
    • getDefaultInstanceForType

      public RubricBasedInstructionFollowingInstance getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public RubricBasedInstructionFollowingInstance.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<RubricBasedInstructionFollowingInstance.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<RubricBasedInstructionFollowingInstance.Builder>
    • mergeFrom

      public RubricBasedInstructionFollowingInstance.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<RubricBasedInstructionFollowingInstance.Builder>
      Throws:
      IOException
    • getInstanceCase

      Specified by:
      getInstanceCase in interface RubricBasedInstructionFollowingInstanceOrBuilder
    • clearInstance

    • hasJsonInstance

      public boolean hasJsonInstance()
       Required. Instance specified as a json string. String key-value pairs are
       expected in the json_instance to render RubricBasedInstructionFollowing
       prompt templates.
       
      string json_instance = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      hasJsonInstance in interface RubricBasedInstructionFollowingInstanceOrBuilder
      Returns:
      Whether the jsonInstance field is set.
    • getJsonInstance

      public String getJsonInstance()
       Required. Instance specified as a json string. String key-value pairs are
       expected in the json_instance to render RubricBasedInstructionFollowing
       prompt templates.
       
      string json_instance = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getJsonInstance in interface RubricBasedInstructionFollowingInstanceOrBuilder
      Returns:
      The jsonInstance.
    • getJsonInstanceBytes

      public com.google.protobuf.ByteString getJsonInstanceBytes()
       Required. Instance specified as a json string. String key-value pairs are
       expected in the json_instance to render RubricBasedInstructionFollowing
       prompt templates.
       
      string json_instance = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getJsonInstanceBytes in interface RubricBasedInstructionFollowingInstanceOrBuilder
      Returns:
      The bytes for jsonInstance.
    • setJsonInstance

       Required. Instance specified as a json string. String key-value pairs are
       expected in the json_instance to render RubricBasedInstructionFollowing
       prompt templates.
       
      string json_instance = 1 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The jsonInstance to set.
      Returns:
      This builder for chaining.
    • clearJsonInstance

       Required. Instance specified as a json string. String key-value pairs are
       expected in the json_instance to render RubricBasedInstructionFollowing
       prompt templates.
       
      string json_instance = 1 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • setJsonInstanceBytes

      public RubricBasedInstructionFollowingInstance.Builder setJsonInstanceBytes(com.google.protobuf.ByteString value)
       Required. Instance specified as a json string. String key-value pairs are
       expected in the json_instance to render RubricBasedInstructionFollowing
       prompt templates.
       
      string json_instance = 1 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The bytes for jsonInstance to set.
      Returns:
      This builder for chaining.