Class TextExtractionPredictionInstance.Builder

    • Method Detail

      • getDescriptor

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.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

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

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<TextExtractionPredictionInstance.Builder>
      • setContent

        public TextExtractionPredictionInstance.Builder setContent​(String value)
         The text snippet to make the predictions on.
         
        string content = 1;
        Parameters:
        value - The content to set.
        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.
      • 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

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

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

        public TextExtractionPredictionInstance.Builder setKey​(String 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 key to set.
        Returns:
        This builder for chaining.
      • clearKey

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