Class TextExtractionPredictionInstance.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.Builder<TextExtractionPredictionInstance.Builder> implements TextExtractionPredictionInstanceOrBuilder
Prediction input format for Text Extraction.
Protobuf typegoogle.cloud.aiplatform.v1.schema.predict.instance.TextExtractionPredictionInstance
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description TextExtractionPredictionInstance.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
TextExtractionPredictionInstance
build()
TextExtractionPredictionInstance
buildPartial()
TextExtractionPredictionInstance.Builder
clear()
TextExtractionPredictionInstance.Builder
clearContent()
The text snippet to make the predictions on.TextExtractionPredictionInstance.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
TextExtractionPredictionInstance.Builder
clearKey()
This field is only used for batch prediction.TextExtractionPredictionInstance.Builder
clearMimeType()
The MIME type of the text snippet.TextExtractionPredictionInstance.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
TextExtractionPredictionInstance.Builder
clone()
String
getContent()
The text snippet to make the predictions on.com.google.protobuf.ByteString
getContentBytes()
The text snippet to make the predictions on.TextExtractionPredictionInstance
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
String
getKey()
This field is only used for batch prediction.com.google.protobuf.ByteString
getKeyBytes()
This field is only used for batch prediction.String
getMimeType()
The MIME type of the text snippet.com.google.protobuf.ByteString
getMimeTypeBytes()
The MIME type of the text snippet.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
TextExtractionPredictionInstance.Builder
mergeFrom(TextExtractionPredictionInstance other)
TextExtractionPredictionInstance.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
TextExtractionPredictionInstance.Builder
mergeFrom(com.google.protobuf.Message other)
TextExtractionPredictionInstance.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
TextExtractionPredictionInstance.Builder
setContent(String value)
The text snippet to make the predictions on.TextExtractionPredictionInstance.Builder
setContentBytes(com.google.protobuf.ByteString value)
The text snippet to make the predictions on.TextExtractionPredictionInstance.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
TextExtractionPredictionInstance.Builder
setKey(String value)
This field is only used for batch prediction.TextExtractionPredictionInstance.Builder
setKeyBytes(com.google.protobuf.ByteString value)
This field is only used for batch prediction.TextExtractionPredictionInstance.Builder
setMimeType(String value)
The MIME type of the text snippet.TextExtractionPredictionInstance.Builder
setMimeTypeBytes(com.google.protobuf.ByteString value)
The MIME type of the text snippet.TextExtractionPredictionInstance.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
TextExtractionPredictionInstance.Builder
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<TextExtractionPredictionInstance.Builder>
-
clear
public TextExtractionPredictionInstance.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<TextExtractionPredictionInstance.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<TextExtractionPredictionInstance.Builder>
-
getDefaultInstanceForType
public TextExtractionPredictionInstance getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public TextExtractionPredictionInstance build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public TextExtractionPredictionInstance buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public TextExtractionPredictionInstance.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<TextExtractionPredictionInstance.Builder>
-
setField
public TextExtractionPredictionInstance.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<TextExtractionPredictionInstance.Builder>
-
clearField
public TextExtractionPredictionInstance.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<TextExtractionPredictionInstance.Builder>
-
clearOneof
public TextExtractionPredictionInstance.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<TextExtractionPredictionInstance.Builder>
-
setRepeatedField
public TextExtractionPredictionInstance.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<TextExtractionPredictionInstance.Builder>
-
addRepeatedField
public TextExtractionPredictionInstance.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<TextExtractionPredictionInstance.Builder>
-
mergeFrom
public TextExtractionPredictionInstance.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<TextExtractionPredictionInstance.Builder>
-
mergeFrom
public TextExtractionPredictionInstance.Builder mergeFrom(TextExtractionPredictionInstance other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<TextExtractionPredictionInstance.Builder>
-
mergeFrom
public TextExtractionPredictionInstance.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.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 interfaceTextExtractionPredictionInstanceOrBuilder
- 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 interfaceTextExtractionPredictionInstanceOrBuilder
- Returns:
- The bytes for content.
-
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.
-
clearContent
public TextExtractionPredictionInstance.Builder 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 interfaceTextExtractionPredictionInstanceOrBuilder
- 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 interfaceTextExtractionPredictionInstanceOrBuilder
- 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 interfaceTextExtractionPredictionInstanceOrBuilder
- 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 interfaceTextExtractionPredictionInstanceOrBuilder
- 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.
-
setUnknownFields
public final TextExtractionPredictionInstance.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<TextExtractionPredictionInstance.Builder>
-
mergeUnknownFields
public final TextExtractionPredictionInstance.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<TextExtractionPredictionInstance.Builder>
-
-