public static final class TextClassificationPredictionInstance.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<TextClassificationPredictionInstance.Builder> implements TextClassificationPredictionInstanceOrBuilder
Prediction input format for Text Classification.Protobuf type
google.cloud.aiplatform.v1beta1.schema.predict.instance.TextClassificationPredictionInstance| Modifier and Type | Method and Description |
|---|---|
TextClassificationPredictionInstance.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
TextClassificationPredictionInstance |
build() |
TextClassificationPredictionInstance |
buildPartial() |
TextClassificationPredictionInstance.Builder |
clear() |
TextClassificationPredictionInstance.Builder |
clearContent()
The text snippet to make the predictions on.
|
TextClassificationPredictionInstance.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
TextClassificationPredictionInstance.Builder |
clearMimeType()
The MIME type of the text snippet.
|
TextClassificationPredictionInstance.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
TextClassificationPredictionInstance.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.
|
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.GeneratedMessageV3.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 |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
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 |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
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.
|
TextClassificationPredictionInstance.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
TextClassificationPredictionInstance.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, 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.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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 clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<TextClassificationPredictionInstance.Builder>public TextClassificationPredictionInstance.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<TextClassificationPredictionInstance.Builder>public TextClassificationPredictionInstance.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<TextClassificationPredictionInstance.Builder>public TextClassificationPredictionInstance.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<TextClassificationPredictionInstance.Builder>public TextClassificationPredictionInstance.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<TextClassificationPredictionInstance.Builder>public TextClassificationPredictionInstance.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<TextClassificationPredictionInstance.Builder>public 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.GeneratedMessageV3.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.public final TextClassificationPredictionInstance.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<TextClassificationPredictionInstance.Builder>public final TextClassificationPredictionInstance.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<TextClassificationPredictionInstance.Builder>Copyright © 2022 Google LLC. All rights reserved.