public static final class TextClassificationPredictionInstance.Builder extends GeneratedMessage.Builder<TextClassificationPredictionInstance.Builder> implements TextClassificationPredictionInstanceOrBuilderPrediction input format for Text Classification.
Protobuf type
google.cloud.aiplatform.v1beta1.schema.predict.instance.TextClassificationPredictionInstance
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > TextClassificationPredictionInstance.BuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public TextClassificationPredictionInstance build()| Returns | |
|---|---|
| Type | Description |
TextClassificationPredictionInstance |
|
buildPartial()
public TextClassificationPredictionInstance buildPartial()| Returns | |
|---|---|
| Type | Description |
TextClassificationPredictionInstance |
|
clear()
public TextClassificationPredictionInstance.Builder clear()| Returns | |
|---|---|
| Type | Description |
TextClassificationPredictionInstance.Builder |
|
clearContent()
public TextClassificationPredictionInstance.Builder clearContent()The text snippet to make the predictions on.
string content = 1;
| Returns | |
|---|---|
| Type | Description |
TextClassificationPredictionInstance.Builder |
This builder for chaining. |
clearMimeType()
public TextClassificationPredictionInstance.Builder clearMimeType()The MIME type of the text snippet. The supported MIME types are listed below.
- text/plain
string mime_type = 2;
| Returns | |
|---|---|
| Type | Description |
TextClassificationPredictionInstance.Builder |
This builder for chaining. |
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 | |
|---|---|
| Type | Description |
ByteString |
The bytes for content. |
getDefaultInstanceForType()
public TextClassificationPredictionInstance getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
TextClassificationPredictionInstance |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getMimeType()
public String getMimeType()The MIME type of the text snippet. The supported MIME types are listed below.
- text/plain
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.
- text/plain
string mime_type = 2;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for mimeType. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(TextClassificationPredictionInstance other)
public TextClassificationPredictionInstance.Builder mergeFrom(TextClassificationPredictionInstance other)| Parameter | |
|---|---|
| Name | Description |
other |
TextClassificationPredictionInstance |
| Returns | |
|---|---|
| Type | Description |
TextClassificationPredictionInstance.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public TextClassificationPredictionInstance.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
TextClassificationPredictionInstance.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public TextClassificationPredictionInstance.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
TextClassificationPredictionInstance.Builder |
|
setContent(String value)
public TextClassificationPredictionInstance.Builder setContent(String value)The text snippet to make the predictions on.
string content = 1;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe content to set. |
| Returns | |
|---|---|
| Type | Description |
TextClassificationPredictionInstance.Builder |
This builder for chaining. |
setContentBytes(ByteString value)
public TextClassificationPredictionInstance.Builder setContentBytes(ByteString value)The text snippet to make the predictions on.
string content = 1;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for content to set. |
| Returns | |
|---|---|
| Type | Description |
TextClassificationPredictionInstance.Builder |
This builder for chaining. |
setMimeType(String value)
public 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;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe mimeType to set. |
| Returns | |
|---|---|
| Type | Description |
TextClassificationPredictionInstance.Builder |
This builder for chaining. |
setMimeTypeBytes(ByteString value)
public TextClassificationPredictionInstance.Builder setMimeTypeBytes(ByteString value)The MIME type of the text snippet. The supported MIME types are listed below.
- text/plain
string mime_type = 2;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for mimeType to set. |
| Returns | |
|---|---|
| Type | Description |
TextClassificationPredictionInstance.Builder |
This builder for chaining. |