Class TextSentimentPredictionInstance.Builder (3.4.1)

public static final class TextSentimentPredictionInstance.Builder extends GeneratedMessageV3.Builder<TextSentimentPredictionInstance.Builder> implements TextSentimentPredictionInstanceOrBuilder

Prediction input format for Text Sentiment.

Protobuf type google.cloud.aiplatform.v1.schema.predict.instance.TextSentimentPredictionInstance

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public TextSentimentPredictionInstance build()
Returns
TypeDescription
TextSentimentPredictionInstance

buildPartial()

public TextSentimentPredictionInstance buildPartial()
Returns
TypeDescription
TextSentimentPredictionInstance

clear()

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

clearContent()

public TextSentimentPredictionInstance.Builder clearContent()

The text snippet to make the predictions on.

string content = 1;

Returns
TypeDescription
TextSentimentPredictionInstance.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearMimeType()

public TextSentimentPredictionInstance.Builder clearMimeType()

The MIME type of the text snippet. The supported MIME types are listed below.

  • text/plain

string mime_type = 2;

Returns
TypeDescription
TextSentimentPredictionInstance.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

public TextSentimentPredictionInstance.Builder clone()
Returns
TypeDescription
TextSentimentPredictionInstance.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 TextSentimentPredictionInstance getDefaultInstanceForType()
Returns
TypeDescription
TextSentimentPredictionInstance

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(TextSentimentPredictionInstance other)

public TextSentimentPredictionInstance.Builder mergeFrom(TextSentimentPredictionInstance other)
Parameter
NameDescription
otherTextSentimentPredictionInstance
Returns
TypeDescription
TextSentimentPredictionInstance.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setContent(String value)

public TextSentimentPredictionInstance.Builder setContent(String value)

The text snippet to make the predictions on.

string content = 1;

Parameter
NameDescription
valueString

The content to set.

Returns
TypeDescription
TextSentimentPredictionInstance.Builder

This builder for chaining.

setContentBytes(ByteString value)

public TextSentimentPredictionInstance.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
TextSentimentPredictionInstance.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setMimeType(String value)

public TextSentimentPredictionInstance.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
TextSentimentPredictionInstance.Builder

This builder for chaining.

setMimeTypeBytes(ByteString value)

public TextSentimentPredictionInstance.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
TextSentimentPredictionInstance.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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