Class AutoMlTextSentimentInputs.Builder (3.84.0)

public static final class AutoMlTextSentimentInputs.Builder extends GeneratedMessage.Builder<AutoMlTextSentimentInputs.Builder> implements AutoMlTextSentimentInputsOrBuilder

Protobuf type google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTextSentimentInputs

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

build()

public AutoMlTextSentimentInputs build()
Returns
Type Description
AutoMlTextSentimentInputs

buildPartial()

public AutoMlTextSentimentInputs buildPartial()
Returns
Type Description
AutoMlTextSentimentInputs

clear()

public AutoMlTextSentimentInputs.Builder clear()
Returns
Type Description
AutoMlTextSentimentInputs.Builder
Overrides

clearSentimentMax()

public AutoMlTextSentimentInputs.Builder clearSentimentMax()

A sentiment is expressed as an integer ordinal, where higher value means a more positive sentiment. The range of sentiments that will be used is between 0 and sentimentMax (inclusive on both ends), and all the values in the range must be represented in the dataset before a model can be created. Only the Annotations with this sentimentMax will be used for training. sentimentMax value must be between 1 and 10 (inclusive).

int32 sentiment_max = 1;

Returns
Type Description
AutoMlTextSentimentInputs.Builder

This builder for chaining.

getDefaultInstanceForType()

public AutoMlTextSentimentInputs getDefaultInstanceForType()
Returns
Type Description
AutoMlTextSentimentInputs

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getSentimentMax()

public int getSentimentMax()

A sentiment is expressed as an integer ordinal, where higher value means a more positive sentiment. The range of sentiments that will be used is between 0 and sentimentMax (inclusive on both ends), and all the values in the range must be represented in the dataset before a model can be created. Only the Annotations with this sentimentMax will be used for training. sentimentMax value must be between 1 and 10 (inclusive).

int32 sentiment_max = 1;

Returns
Type Description
int

The sentimentMax.

internalGetFieldAccessorTable()

protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(AutoMlTextSentimentInputs other)

public AutoMlTextSentimentInputs.Builder mergeFrom(AutoMlTextSentimentInputs other)
Parameter
Name Description
other AutoMlTextSentimentInputs
Returns
Type Description
AutoMlTextSentimentInputs.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public AutoMlTextSentimentInputs.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AutoMlTextSentimentInputs.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public AutoMlTextSentimentInputs.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
AutoMlTextSentimentInputs.Builder
Overrides

setSentimentMax(int value)

public AutoMlTextSentimentInputs.Builder setSentimentMax(int value)

A sentiment is expressed as an integer ordinal, where higher value means a more positive sentiment. The range of sentiments that will be used is between 0 and sentimentMax (inclusive on both ends), and all the values in the range must be represented in the dataset before a model can be created. Only the Annotations with this sentimentMax will be used for training. sentimentMax value must be between 1 and 10 (inclusive).

int32 sentiment_max = 1;

Parameter
Name Description
value int

The sentimentMax to set.

Returns
Type Description
AutoMlTextSentimentInputs.Builder

This builder for chaining.