public static final class TextClassificationPredictionInstance.Builder extends com.google.protobuf.GeneratedMessage.Builder<TextClassificationPredictionInstance.Builder> implements TextClassificationPredictionInstanceOrBuilder
Prediction input format for Text Classification.Protobuf type
google.cloud.aiplatform.v1.schema.predict.instance.TextClassificationPredictionInstance| Modifier and Type | Method and Description |
|---|---|
TextClassificationPredictionInstance |
build() |
TextClassificationPredictionInstance |
buildPartial() |
TextClassificationPredictionInstance.Builder |
clear() |
TextClassificationPredictionInstance.Builder |
clearContent()
The text snippet to make the predictions on.
|
TextClassificationPredictionInstance.Builder |
clearMimeType()
The MIME type of the text snippet.
|
String |
getContent()
The text snippet to make the predictions on.
|
com.google.protobuf.ByteString |
getContentBytes()
The text snippet to make the predictions on.
|
TextClassificationPredictionInstance |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
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.GeneratedMessage.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
TextClassificationPredictionInstance.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
TextClassificationPredictionInstance.Builder |
mergeFrom(com.google.protobuf.Message other) |
TextClassificationPredictionInstance.Builder |
mergeFrom(TextClassificationPredictionInstance other) |
TextClassificationPredictionInstance.Builder |
setContent(String value)
The text snippet to make the predictions on.
|
TextClassificationPredictionInstance.Builder |
setContentBytes(com.google.protobuf.ByteString value)
The text snippet to make the predictions on.
|
TextClassificationPredictionInstance.Builder |
setMimeType(String value)
The MIME type of the text snippet.
|
TextClassificationPredictionInstance.Builder |
setMimeTypeBytes(com.google.protobuf.ByteString value)
The MIME type of the text snippet.
|
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitfindInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneofpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<TextClassificationPredictionInstance.Builder>public TextClassificationPredictionInstance.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessage.Builder<TextClassificationPredictionInstance.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<TextClassificationPredictionInstance.Builder>public TextClassificationPredictionInstance getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic TextClassificationPredictionInstance build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic TextClassificationPredictionInstance buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic TextClassificationPredictionInstance.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<TextClassificationPredictionInstance.Builder>public TextClassificationPredictionInstance.Builder mergeFrom(TextClassificationPredictionInstance other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessage.Builder<TextClassificationPredictionInstance.Builder>public TextClassificationPredictionInstance.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<TextClassificationPredictionInstance.Builder>IOExceptionpublic String getContent()
The text snippet to make the predictions on.
string content = 1;getContent in interface TextClassificationPredictionInstanceOrBuilderpublic com.google.protobuf.ByteString getContentBytes()
The text snippet to make the predictions on.
string content = 1;getContentBytes in interface TextClassificationPredictionInstanceOrBuilderpublic TextClassificationPredictionInstance.Builder setContent(String value)
The text snippet to make the predictions on.
string content = 1;value - The content to set.public TextClassificationPredictionInstance.Builder clearContent()
The text snippet to make the predictions on.
string content = 1;public TextClassificationPredictionInstance.Builder setContentBytes(com.google.protobuf.ByteString value)
The text snippet to make the predictions on.
string content = 1;value - The bytes for content to set.public String getMimeType()
The MIME type of the text snippet. The supported MIME types are listed below. - text/plain
string mime_type = 2;getMimeType in interface TextClassificationPredictionInstanceOrBuilderpublic 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;getMimeTypeBytes in interface TextClassificationPredictionInstanceOrBuilderpublic TextClassificationPredictionInstance.Builder setMimeType(String value)
The MIME type of the text snippet. The supported MIME types are listed below. - text/plain
string mime_type = 2;value - The mimeType to set.public TextClassificationPredictionInstance.Builder clearMimeType()
The MIME type of the text snippet. The supported MIME types are listed below. - text/plain
string mime_type = 2;public TextClassificationPredictionInstance.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;value - The bytes for mimeType to set.Copyright © 2026 Google LLC. All rights reserved.