Class TextClassificationPredictionInstance.Builder (3.40.0)

public static final class TextClassificationPredictionInstance.Builder extends GeneratedMessageV3.Builder<TextClassificationPredictionInstance.Builder> implements TextClassificationPredictionInstanceOrBuilder

Prediction input format for Text Classification.

Protobuf type google.cloud.aiplatform.v1beta1.schema.predict.instance.TextClassificationPredictionInstance

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public TextClassificationPredictionInstance.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
TextClassificationPredictionInstance.Builder
Overrides

build()

public TextClassificationPredictionInstance build()
Returns
TypeDescription
TextClassificationPredictionInstance

buildPartial()

public TextClassificationPredictionInstance buildPartial()
Returns
TypeDescription
TextClassificationPredictionInstance

clear()

public TextClassificationPredictionInstance.Builder clear()
Returns
TypeDescription
TextClassificationPredictionInstance.Builder
Overrides

clearContent()

public TextClassificationPredictionInstance.Builder clearContent()

The text snippet to make the predictions on.

string content = 1;

Returns
TypeDescription
TextClassificationPredictionInstance.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public TextClassificationPredictionInstance.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
TextClassificationPredictionInstance.Builder
Overrides

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
TypeDescription
TextClassificationPredictionInstance.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public TextClassificationPredictionInstance.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
TextClassificationPredictionInstance.Builder
Overrides

clone()

public TextClassificationPredictionInstance.Builder clone()
Returns
TypeDescription
TextClassificationPredictionInstance.Builder
Overrides

getContent()

public String getContent()

The text snippet to make the predictions on.

string content = 1;

Returns
TypeDescription
String

The content.

getContentBytes()

public ByteString getContentBytes()

The text snippet to make the predictions on.

string content = 1;

Returns
TypeDescription
ByteString

The bytes for content.

getDefaultInstanceForType()

public TextClassificationPredictionInstance getDefaultInstanceForType()
Returns
TypeDescription
TextClassificationPredictionInstance

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

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
TypeDescription
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
TypeDescription
ByteString

The bytes for mimeType.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(TextClassificationPredictionInstance other)

public TextClassificationPredictionInstance.Builder mergeFrom(TextClassificationPredictionInstance other)
Parameter
NameDescription
otherTextClassificationPredictionInstance
Returns
TypeDescription
TextClassificationPredictionInstance.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public TextClassificationPredictionInstance.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
TextClassificationPredictionInstance.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public TextClassificationPredictionInstance.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
TextClassificationPredictionInstance.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final TextClassificationPredictionInstance.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
TextClassificationPredictionInstance.Builder
Overrides

setContent(String value)

public TextClassificationPredictionInstance.Builder setContent(String value)

The text snippet to make the predictions on.

string content = 1;

Parameter
NameDescription
valueString

The content to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for content to set.

Returns
TypeDescription
TextClassificationPredictionInstance.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public TextClassificationPredictionInstance.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
TextClassificationPredictionInstance.Builder
Overrides

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
NameDescription
valueString

The mimeType to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for mimeType to set.

Returns
TypeDescription
TextClassificationPredictionInstance.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public TextClassificationPredictionInstance.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
TextClassificationPredictionInstance.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final TextClassificationPredictionInstance.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
TextClassificationPredictionInstance.Builder
Overrides