Class TextSentimentDatasetMetadata.Builder (2.83.0)

public static final class TextSentimentDatasetMetadata.Builder extends GeneratedMessage.Builder<TextSentimentDatasetMetadata.Builder> implements TextSentimentDatasetMetadataOrBuilder

Dataset metadata for text sentiment.

Protobuf type google.cloud.automl.v1.TextSentimentDatasetMetadata

Static Methods

getDescriptor()

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

Methods

build()

public TextSentimentDatasetMetadata build()
Returns
Type Description
TextSentimentDatasetMetadata

buildPartial()

public TextSentimentDatasetMetadata buildPartial()
Returns
Type Description
TextSentimentDatasetMetadata

clear()

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

clearSentimentMax()

public TextSentimentDatasetMetadata.Builder clearSentimentMax()

Required. 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 sentiment_max (inclusive on both ends), and all the values in the range must be represented in the dataset before a model can be created. sentiment_max value must be between 1 and 10 (inclusive).

int32 sentiment_max = 1;

Returns
Type Description
TextSentimentDatasetMetadata.Builder

This builder for chaining.

getDefaultInstanceForType()

public TextSentimentDatasetMetadata getDefaultInstanceForType()
Returns
Type Description
TextSentimentDatasetMetadata

getDescriptorForType()

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

getSentimentMax()

public int getSentimentMax()

Required. 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 sentiment_max (inclusive on both ends), and all the values in the range must be represented in the dataset before a model can be created. sentiment_max 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(TextSentimentDatasetMetadata other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setSentimentMax(int value)

public TextSentimentDatasetMetadata.Builder setSentimentMax(int value)

Required. 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 sentiment_max (inclusive on both ends), and all the values in the range must be represented in the dataset before a model can be created. sentiment_max value must be between 1 and 10 (inclusive).

int32 sentiment_max = 1;

Parameter
Name Description
value int

The sentimentMax to set.

Returns
Type Description
TextSentimentDatasetMetadata.Builder

This builder for chaining.