Class FulfillmentInstance.Builder

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

public static final class FulfillmentInstance.Builder extends com.google.protobuf.GeneratedMessage.Builder<FulfillmentInstance.Builder> implements FulfillmentInstanceOrBuilder
 Spec for fulfillment instance.
 
Protobuf type google.cloud.aiplatform.v1.FulfillmentInstance
  • 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<FulfillmentInstance.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<FulfillmentInstance.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<FulfillmentInstance.Builder>
    • getDefaultInstanceForType

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

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

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

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

      public FulfillmentInstance.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<FulfillmentInstance.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 FulfillmentInstanceOrBuilder
      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 FulfillmentInstanceOrBuilder
      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 FulfillmentInstanceOrBuilder
      Returns:
      The bytes for prediction.
    • setPrediction

      public FulfillmentInstance.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 FulfillmentInstance.Builder clearPrediction()
       Required. Output of the evaluated model.
       
      optional string prediction = 1 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • setPredictionBytes

      public FulfillmentInstance.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.
    • hasInstruction

      public boolean hasInstruction()
       Required. Inference instruction prompt to compare prediction with.
       
      optional string instruction = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      hasInstruction in interface FulfillmentInstanceOrBuilder
      Returns:
      Whether the instruction field is set.
    • getInstruction

      public String getInstruction()
       Required. Inference instruction prompt to compare prediction with.
       
      optional string instruction = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getInstruction in interface FulfillmentInstanceOrBuilder
      Returns:
      The instruction.
    • getInstructionBytes

      public com.google.protobuf.ByteString getInstructionBytes()
       Required. Inference instruction prompt to compare prediction with.
       
      optional string instruction = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getInstructionBytes in interface FulfillmentInstanceOrBuilder
      Returns:
      The bytes for instruction.
    • setInstruction

      public FulfillmentInstance.Builder setInstruction(String value)
       Required. Inference instruction prompt to compare prediction with.
       
      optional string instruction = 2 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The instruction to set.
      Returns:
      This builder for chaining.
    • clearInstruction

      public FulfillmentInstance.Builder clearInstruction()
       Required. Inference instruction prompt to compare prediction with.
       
      optional string instruction = 2 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • setInstructionBytes

      public FulfillmentInstance.Builder setInstructionBytes(com.google.protobuf.ByteString value)
       Required. Inference instruction prompt to compare prediction with.
       
      optional string instruction = 2 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The bytes for instruction to set.
      Returns:
      This builder for chaining.