public static final class TextSentimentDatasetMetadata.Builder extends GeneratedMessageV3.Builder<TextSentimentDatasetMetadata.Builder> implements TextSentimentDatasetMetadataOrBuilder
Dataset metadata for text sentiment.
Protobuf type google.cloud.automl.v1beta1.TextSentimentDatasetMetadata
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public TextSentimentDatasetMetadata.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
build()
public TextSentimentDatasetMetadata build()
Returns
buildPartial()
public TextSentimentDatasetMetadata buildPartial()
Returns
clear()
public TextSentimentDatasetMetadata.Builder clear()
Returns
Overrides
clearField(Descriptors.FieldDescriptor field)
public TextSentimentDatasetMetadata.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public TextSentimentDatasetMetadata.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
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
clone()
public TextSentimentDatasetMetadata.Builder clone()
Returns
Overrides
getDefaultInstanceForType()
public TextSentimentDatasetMetadata getDefaultInstanceForType()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
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 GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
mergeFrom(TextSentimentDatasetMetadata other)
public TextSentimentDatasetMetadata.Builder mergeFrom(TextSentimentDatasetMetadata other)
Parameter
Returns
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public TextSentimentDatasetMetadata.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public TextSentimentDatasetMetadata.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final TextSentimentDatasetMetadata.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
setField(Descriptors.FieldDescriptor field, Object value)
public TextSentimentDatasetMetadata.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public TextSentimentDatasetMetadata.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
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
setUnknownFields(UnknownFieldSet unknownFields)
public final TextSentimentDatasetMetadata.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides