Class ToolCallValidInstance.Builder

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

public static final class ToolCallValidInstance.Builder extends com.google.protobuf.GeneratedMessage.Builder<ToolCallValidInstance.Builder> implements ToolCallValidInstanceOrBuilder
 Spec for tool call valid instance.
 
Protobuf type google.cloud.aiplatform.v1.ToolCallValidInstance
  • 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<ToolCallValidInstance.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<ToolCallValidInstance.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<ToolCallValidInstance.Builder>
    • getDefaultInstanceForType

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

      public ToolCallValidInstance build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public ToolCallValidInstance buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public ToolCallValidInstance.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<ToolCallValidInstance.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<ToolCallValidInstance.Builder>
    • mergeFrom

      public ToolCallValidInstance.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<ToolCallValidInstance.Builder>
      Throws:
      IOException
    • hasPrediction

      public boolean hasPrediction()
       Required. Output of the evaluated model.
       
      optional string prediction = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      hasPrediction in interface ToolCallValidInstanceOrBuilder
      Returns:
      Whether the prediction field is set.
    • getPrediction

      public String getPrediction()
       Required. Output of the evaluated model.
       
      optional string prediction = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getPrediction in interface ToolCallValidInstanceOrBuilder
      Returns:
      The prediction.
    • getPredictionBytes

      public com.google.protobuf.ByteString getPredictionBytes()
       Required. Output of the evaluated model.
       
      optional string prediction = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getPredictionBytes in interface ToolCallValidInstanceOrBuilder
      Returns:
      The bytes for prediction.
    • setPrediction

      public ToolCallValidInstance.Builder setPrediction(String value)
       Required. Output of the evaluated model.
       
      optional string prediction = 1 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The prediction to set.
      Returns:
      This builder for chaining.
    • clearPrediction

      public ToolCallValidInstance.Builder clearPrediction()
       Required. Output of the evaluated model.
       
      optional string prediction = 1 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • setPredictionBytes

      public ToolCallValidInstance.Builder setPredictionBytes(com.google.protobuf.ByteString value)
       Required. Output of the evaluated model.
       
      optional string prediction = 1 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The bytes for prediction to set.
      Returns:
      This builder for chaining.
    • hasReference

      public boolean hasReference()
       Required. Ground truth used to compare against the prediction.
       
      optional string reference = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      hasReference in interface ToolCallValidInstanceOrBuilder
      Returns:
      Whether the reference field is set.
    • getReference

      public String getReference()
       Required. Ground truth used to compare against the prediction.
       
      optional string reference = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getReference in interface ToolCallValidInstanceOrBuilder
      Returns:
      The reference.
    • getReferenceBytes

      public com.google.protobuf.ByteString getReferenceBytes()
       Required. Ground truth used to compare against the prediction.
       
      optional string reference = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getReferenceBytes in interface ToolCallValidInstanceOrBuilder
      Returns:
      The bytes for reference.
    • setReference

      public ToolCallValidInstance.Builder setReference(String value)
       Required. Ground truth used to compare against the prediction.
       
      optional string reference = 2 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The reference to set.
      Returns:
      This builder for chaining.
    • clearReference

      public ToolCallValidInstance.Builder clearReference()
       Required. Ground truth used to compare against the prediction.
       
      optional string reference = 2 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • setReferenceBytes

      public ToolCallValidInstance.Builder setReferenceBytes(com.google.protobuf.ByteString value)
       Required. Ground truth used to compare against the prediction.
       
      optional string reference = 2 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The bytes for reference to set.
      Returns:
      This builder for chaining.