Class TextSentimentPredictionInstance.Builder

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

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

      public TextSentimentPredictionInstance 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 TextSentimentPredictionInstance buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

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

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

      public String getContent()
       The text snippet to make the predictions on.
       
      string content = 1;
      Specified by:
      getContent in interface TextSentimentPredictionInstanceOrBuilder
      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 TextSentimentPredictionInstanceOrBuilder
      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 TextSentimentPredictionInstance.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 TextSentimentPredictionInstanceOrBuilder
      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 TextSentimentPredictionInstanceOrBuilder
      Returns:
      The bytes for mimeType.
    • setMimeType

      public TextSentimentPredictionInstance.Builder setMimeType(String value)
       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 TextSentimentPredictionInstance.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.