Class AutoMlTextSentimentInputs.Builder (3.32.0)

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

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

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public AutoMlTextSentimentInputs build()
Returns
TypeDescription
AutoMlTextSentimentInputs

buildPartial()

public AutoMlTextSentimentInputs buildPartial()
Returns
TypeDescription
AutoMlTextSentimentInputs

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

public AutoMlTextSentimentInputs.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
AutoMlTextSentimentInputs.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public AutoMlTextSentimentInputs getDefaultInstanceForType()
Returns
TypeDescription
AutoMlTextSentimentInputs

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
int

The sentimentMax.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(AutoMlTextSentimentInputs other)

public AutoMlTextSentimentInputs.Builder mergeFrom(AutoMlTextSentimentInputs other)
Parameter
NameDescription
otherAutoMlTextSentimentInputs
Returns
TypeDescription
AutoMlTextSentimentInputs.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

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

public AutoMlTextSentimentInputs.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
valueint

The sentimentMax to set.

Returns
TypeDescription
AutoMlTextSentimentInputs.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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