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.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)TextExtractionPredictionInstancebuild()TextExtractionPredictionInstancebuildPartial()TextExtractionPredictionInstance.Builderclear()TextExtractionPredictionInstance.BuilderclearContent()The text snippet to make the predictions on.TextExtractionPredictionInstance.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)TextExtractionPredictionInstance.BuilderclearKey()This field is only used for batch prediction.TextExtractionPredictionInstance.BuilderclearMimeType()The MIME type of the text snippet.TextExtractionPredictionInstance.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)TextExtractionPredictionInstance.Builderclone()StringgetContent()The text snippet to make the predictions on.com.google.protobuf.ByteStringgetContentBytes()The text snippet to make the predictions on.TextExtractionPredictionInstancegetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()StringgetKey()This field is only used for batch prediction.com.google.protobuf.ByteStringgetKeyBytes()This field is only used for batch prediction.StringgetMimeType()The MIME type of the text snippet.com.google.protobuf.ByteStringgetMimeTypeBytes()The MIME type of the text snippet.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()TextExtractionPredictionInstance.BuildermergeFrom(TextExtractionPredictionInstance other)TextExtractionPredictionInstance.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)TextExtractionPredictionInstance.BuildermergeFrom(com.google.protobuf.Message other)TextExtractionPredictionInstance.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)TextExtractionPredictionInstance.BuildersetContent(String value)The text snippet to make the predictions on.TextExtractionPredictionInstance.BuildersetContentBytes(com.google.protobuf.ByteString value)The text snippet to make the predictions on.TextExtractionPredictionInstance.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)TextExtractionPredictionInstance.BuildersetKey(String value)This field is only used for batch prediction.TextExtractionPredictionInstance.BuildersetKeyBytes(com.google.protobuf.ByteString value)This field is only used for batch prediction.TextExtractionPredictionInstance.BuildersetMimeType(String value)The MIME type of the text snippet.TextExtractionPredictionInstance.BuildersetMimeTypeBytes(com.google.protobuf.ByteString value)The MIME type of the text snippet.TextExtractionPredictionInstance.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)TextExtractionPredictionInstance.BuildersetUnknownFields(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:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<TextExtractionPredictionInstance.Builder>
-
clear
public TextExtractionPredictionInstance.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<TextExtractionPredictionInstance.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<TextExtractionPredictionInstance.Builder>
-
getDefaultInstanceForType
public TextExtractionPredictionInstance getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public TextExtractionPredictionInstance build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public TextExtractionPredictionInstance buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public TextExtractionPredictionInstance.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<TextExtractionPredictionInstance.Builder>
-
setField
public TextExtractionPredictionInstance.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<TextExtractionPredictionInstance.Builder>
-
clearField
public TextExtractionPredictionInstance.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<TextExtractionPredictionInstance.Builder>
-
clearOneof
public TextExtractionPredictionInstance.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<TextExtractionPredictionInstance.Builder>
-
setRepeatedField
public TextExtractionPredictionInstance.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<TextExtractionPredictionInstance.Builder>
-
addRepeatedField
public TextExtractionPredictionInstance.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<TextExtractionPredictionInstance.Builder>
-
mergeFrom
public TextExtractionPredictionInstance.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<TextExtractionPredictionInstance.Builder>
-
mergeFrom
public TextExtractionPredictionInstance.Builder mergeFrom(TextExtractionPredictionInstance other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin 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:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin 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:
getContentin interfaceTextExtractionPredictionInstanceOrBuilder- Returns:
- The content.
-
getContentBytes
public com.google.protobuf.ByteString getContentBytes()
The text snippet to make the predictions on.
string content = 1;- Specified by:
getContentBytesin 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:
getMimeTypein 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:
getMimeTypeBytesin 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:
getKeyin 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:
getKeyBytesin 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:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<TextExtractionPredictionInstance.Builder>
-
mergeUnknownFields
public final TextExtractionPredictionInstance.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<TextExtractionPredictionInstance.Builder>
-
-