public static final class TextClassificationPredictionInstance.Builder extends GeneratedMessageV3.Builder<TextClassificationPredictionInstance.Builder> implements TextClassificationPredictionInstanceOrBuilder
Prediction input format for Text Classification.
Protobuf type
google.cloud.aiplatform.v1.schema.predict.instance.TextClassificationPredictionInstance
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public TextClassificationPredictionInstance.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
build()
public TextClassificationPredictionInstance build()
Returns
buildPartial()
public TextClassificationPredictionInstance buildPartial()
Returns
clear()
public TextClassificationPredictionInstance.Builder clear()
Returns
Overrides
clearContent()
public TextClassificationPredictionInstance.Builder clearContent()
The text snippet to make the predictions on.
string content = 1;
Returns
clearField(Descriptors.FieldDescriptor field)
public TextClassificationPredictionInstance.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
clearMimeType()
public TextClassificationPredictionInstance.Builder clearMimeType()
The MIME type of the text snippet. The supported MIME types are listed
below.
string mime_type = 2;
Returns
clearOneof(Descriptors.OneofDescriptor oneof)
public TextClassificationPredictionInstance.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
clone()
public TextClassificationPredictionInstance.Builder clone()
Returns
Overrides
getContent()
public String getContent()
The text snippet to make the predictions on.
string content = 1;
Returns
Type | Description |
String | The content.
|
getContentBytes()
public ByteString getContentBytes()
The text snippet to make the predictions on.
string content = 1;
Returns
getDefaultInstanceForType()
public TextClassificationPredictionInstance getDefaultInstanceForType()
Returns
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
Overrides
getMimeType()
public String getMimeType()
The MIME type of the text snippet. The supported MIME types are listed
below.
string mime_type = 2;
Returns
Type | Description |
String | The mimeType.
|
getMimeTypeBytes()
public ByteString getMimeTypeBytes()
The MIME type of the text snippet. The supported MIME types are listed
below.
string mime_type = 2;
Returns
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
mergeFrom(TextClassificationPredictionInstance other)
public TextClassificationPredictionInstance.Builder mergeFrom(TextClassificationPredictionInstance other)
Parameter
Returns
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public TextClassificationPredictionInstance.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public TextClassificationPredictionInstance.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final TextClassificationPredictionInstance.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
setContent(String value)
public TextClassificationPredictionInstance.Builder setContent(String value)
The text snippet to make the predictions on.
string content = 1;
Parameter
Name | Description |
value | String
The content to set.
|
Returns
setContentBytes(ByteString value)
public TextClassificationPredictionInstance.Builder setContentBytes(ByteString value)
The text snippet to make the predictions on.
string content = 1;
Parameter
Name | Description |
value | ByteString
The bytes for content to set.
|
Returns
setField(Descriptors.FieldDescriptor field, Object value)
public TextClassificationPredictionInstance.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
setMimeType(String value)
public TextClassificationPredictionInstance.Builder setMimeType(String value)
The MIME type of the text snippet. The supported MIME types are listed
below.
string mime_type = 2;
Parameter
Name | Description |
value | String
The mimeType to set.
|
Returns
setMimeTypeBytes(ByteString value)
public TextClassificationPredictionInstance.Builder setMimeTypeBytes(ByteString value)
The MIME type of the text snippet. The supported MIME types are listed
below.
string mime_type = 2;
Parameter
Name | Description |
value | ByteString
The bytes for mimeType to set.
|
Returns
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public TextClassificationPredictionInstance.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final TextClassificationPredictionInstance.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides