Class TextSentimentDatasetMetadata.Builder (2.18.0)

public static final class TextSentimentDatasetMetadata.Builder extends GeneratedMessageV3.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public TextSentimentDatasetMetadata build()
Returns
TypeDescription
TextSentimentDatasetMetadata

buildPartial()

public TextSentimentDatasetMetadata buildPartial()
Returns
TypeDescription
TextSentimentDatasetMetadata

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public TextSentimentDatasetMetadata getDefaultInstanceForType()
Returns
TypeDescription
TextSentimentDatasetMetadata

getDescriptorForType()

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

The sentimentMax.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(TextSentimentDatasetMetadata other)

public TextSentimentDatasetMetadata.Builder mergeFrom(TextSentimentDatasetMetadata other)
Parameter
NameDescription
otherTextSentimentDatasetMetadata
Returns
TypeDescription
TextSentimentDatasetMetadata.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

The sentimentMax to set.

Returns
TypeDescription
TextSentimentDatasetMetadata.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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