Class TextExtractionPredictionInstance.Builder

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

public static final class TextExtractionPredictionInstance.Builder extends com.google.protobuf.GeneratedMessage.Builder<TextExtractionPredictionInstance.Builder> implements TextExtractionPredictionInstanceOrBuilder
 Prediction input format for Text Extraction.
 
Protobuf type google.cloud.aiplatform.v1.schema.predict.instance.TextExtractionPredictionInstance
  • 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<TextExtractionPredictionInstance.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<TextExtractionPredictionInstance.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<TextExtractionPredictionInstance.Builder>
    • getDefaultInstanceForType

      public TextExtractionPredictionInstance 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

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

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

      public TextExtractionPredictionInstance.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<TextExtractionPredictionInstance.Builder>
      Throws:
      IOException
    • getContent

      public String getContent()
       The text snippet to make the predictions on.
       
      string content = 1;
      Specified by:
      getContent in interface TextExtractionPredictionInstanceOrBuilder
      Returns:
      The content.
    • getContentBytes

      public com.google.protobuf.ByteString getContentBytes()
       The text snippet to make the predictions on.
       
      string content = 1;
      Specified by:
      getContentBytes in interface TextExtractionPredictionInstanceOrBuilder
      Returns:
      The bytes for content.
    • setContent

       The text snippet to make the predictions on.
       
      string content = 1;
      Parameters:
      value - The content to set.
      Returns:
      This builder for chaining.
    • clearContent

       The text snippet to make the predictions on.
       
      string content = 1;
      Returns:
      This builder for chaining.
    • setContentBytes

      public TextExtractionPredictionInstance.Builder setContentBytes(com.google.protobuf.ByteString value)
       The text snippet to make the predictions on.
       
      string content = 1;
      Parameters:
      value - The bytes for content to set.
      Returns:
      This builder for chaining.
    • getMimeType

      public String getMimeType()
       The MIME type of the text snippet. The supported MIME types are listed
       below.
       - text/plain
       
      string mime_type = 2;
      Specified by:
      getMimeType in interface TextExtractionPredictionInstanceOrBuilder
      Returns:
      The mimeType.
    • getMimeTypeBytes

      public com.google.protobuf.ByteString getMimeTypeBytes()
       The MIME type of the text snippet. The supported MIME types are listed
       below.
       - text/plain
       
      string mime_type = 2;
      Specified by:
      getMimeTypeBytes in interface TextExtractionPredictionInstanceOrBuilder
      Returns:
      The bytes for mimeType.
    • setMimeType

       The MIME type of the text snippet. The supported MIME types are listed
       below.
       - text/plain
       
      string mime_type = 2;
      Parameters:
      value - The mimeType to set.
      Returns:
      This builder for chaining.
    • clearMimeType

       The MIME type of the text snippet. The supported MIME types are listed
       below.
       - text/plain
       
      string mime_type = 2;
      Returns:
      This builder for chaining.
    • setMimeTypeBytes

      public TextExtractionPredictionInstance.Builder setMimeTypeBytes(com.google.protobuf.ByteString value)
       The MIME type of the text snippet. The supported MIME types are listed
       below.
       - text/plain
       
      string mime_type = 2;
      Parameters:
      value - The bytes for mimeType to set.
      Returns:
      This builder for chaining.
    • getKey

      public String getKey()
       This field is only used for batch prediction. If a key is provided, the
       batch prediction result will by mapped to this key. If omitted, then the
       batch prediction result will contain the entire input instance. Vertex AI
       will not check if keys in the request are duplicates, so it is up to the
       caller to ensure the keys are unique.
       
      string key = 3;
      Specified by:
      getKey in interface TextExtractionPredictionInstanceOrBuilder
      Returns:
      The key.
    • getKeyBytes

      public com.google.protobuf.ByteString getKeyBytes()
       This field is only used for batch prediction. If a key is provided, the
       batch prediction result will by mapped to this key. If omitted, then the
       batch prediction result will contain the entire input instance. Vertex AI
       will not check if keys in the request are duplicates, so it is up to the
       caller to ensure the keys are unique.
       
      string key = 3;
      Specified by:
      getKeyBytes in interface TextExtractionPredictionInstanceOrBuilder
      Returns:
      The bytes for key.
    • setKey

       This field is only used for batch prediction. If a key is provided, the
       batch prediction result will by mapped to this key. If omitted, then the
       batch prediction result will contain the entire input instance. Vertex AI
       will not check if keys in the request are duplicates, so it is up to the
       caller to ensure the keys are unique.
       
      string key = 3;
      Parameters:
      value - The key to set.
      Returns:
      This builder for chaining.
    • clearKey

       This field is only used for batch prediction. If a key is provided, the
       batch prediction result will by mapped to this key. If omitted, then the
       batch prediction result will contain the entire input instance. Vertex AI
       will not check if keys in the request are duplicates, so it is up to the
       caller to ensure the keys are unique.
       
      string key = 3;
      Returns:
      This builder for chaining.
    • setKeyBytes

      public TextExtractionPredictionInstance.Builder setKeyBytes(com.google.protobuf.ByteString value)
       This field is only used for batch prediction. If a key is provided, the
       batch prediction result will by mapped to this key. If omitted, then the
       batch prediction result will contain the entire input instance. Vertex AI
       will not check if keys in the request are duplicates, so it is up to the
       caller to ensure the keys are unique.
       
      string key = 3;
      Parameters:
      value - The bytes for key to set.
      Returns:
      This builder for chaining.