public final class SentimentConfig extends GeneratedMessageV3 implements SentimentConfigOrBuilder
Config for setting up sentiments.
Protobuf type google.cloud.datalabeling.v1beta1.SentimentConfig
Static Fields
ENABLE_LABEL_SENTIMENT_SELECTION_FIELD_NUMBER
public static final int ENABLE_LABEL_SENTIMENT_SELECTION_FIELD_NUMBER
Field Value
Static Methods
getDefaultInstance()
public static SentimentConfig getDefaultInstance()
Returns
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
newBuilder()
public static SentimentConfig.Builder newBuilder()
Returns
newBuilder(SentimentConfig prototype)
public static SentimentConfig.Builder newBuilder(SentimentConfig prototype)
Parameter
Returns
public static SentimentConfig parseDelimitedFrom(InputStream input)
Parameter
Returns
Exceptions
public static SentimentConfig parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(byte[] data)
public static SentimentConfig parseFrom(byte[] data)
Parameter
Name | Description |
data | byte[]
|
Returns
Exceptions
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static SentimentConfig parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteString data)
public static SentimentConfig parseFrom(ByteString data)
Parameter
Returns
Exceptions
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static SentimentConfig parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static SentimentConfig parseFrom(CodedInputStream input)
Parameter
Returns
Exceptions
public static SentimentConfig parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static SentimentConfig parseFrom(InputStream input)
Parameter
Returns
Exceptions
public static SentimentConfig parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteBuffer data)
public static SentimentConfig parseFrom(ByteBuffer data)
Parameter
Returns
Exceptions
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static SentimentConfig parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parser()
public static Parser<SentimentConfig> parser()
Returns
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter
Returns
Overrides
getDefaultInstanceForType()
public SentimentConfig getDefaultInstanceForType()
Returns
getEnableLabelSentimentSelection()
public boolean getEnableLabelSentimentSelection()
If set to true, contributors will have the option to select sentiment of
the label they selected, to mark it as negative or positive label. Default
is false.
bool enable_label_sentiment_selection = 1;
Returns
Type | Description |
boolean | The enableLabelSentimentSelection.
|
getParserForType()
public Parser<SentimentConfig> getParserForType()
Returns
Overrides
getSerializedSize()
public int getSerializedSize()
Returns
Overrides
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Returns
Overrides
hashCode()
Returns
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
newBuilderForType()
public SentimentConfig.Builder newBuilderForType()
Returns
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected SentimentConfig.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Returns
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Returns
Overrides
toBuilder()
public SentimentConfig.Builder toBuilder()
Returns
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Parameter
Overrides
Exceptions