Class GroundednessInstance.Builder

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

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

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

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

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

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

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

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

      public GroundednessInstance.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.
    • hasContext

      public boolean hasContext()
       Required. Background information provided in context used to compare
       against the prediction.
       
      optional string context = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      hasContext in interface GroundednessInstanceOrBuilder
      Returns:
      Whether the context field is set.
    • getContext

      public String getContext()
       Required. Background information provided in context used to compare
       against the prediction.
       
      optional string context = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getContext in interface GroundednessInstanceOrBuilder
      Returns:
      The context.
    • getContextBytes

      public com.google.protobuf.ByteString getContextBytes()
       Required. Background information provided in context used to compare
       against the prediction.
       
      optional string context = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getContextBytes in interface GroundednessInstanceOrBuilder
      Returns:
      The bytes for context.
    • setContext

      public GroundednessInstance.Builder setContext(String value)
       Required. Background information provided in context used to compare
       against the prediction.
       
      optional string context = 2 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The context to set.
      Returns:
      This builder for chaining.
    • clearContext

      public GroundednessInstance.Builder clearContext()
       Required. Background information provided in context used to compare
       against the prediction.
       
      optional string context = 2 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • setContextBytes

      public GroundednessInstance.Builder setContextBytes(com.google.protobuf.ByteString value)
       Required. Background information provided in context used to compare
       against the prediction.
       
      optional string context = 2 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The bytes for context to set.
      Returns:
      This builder for chaining.