public final class SentimentConfig extends GeneratedMessageV3 implements SentimentConfigOrBuilder
Config for setting up sentiments.
Protobuf type google.cloud.datalabeling.v1beta1.SentimentConfig
Inherited Members
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)
Static Fields
ENABLE_LABEL_SENTIMENT_SELECTION_FIELD_NUMBER
public static final int ENABLE_LABEL_SENTIMENT_SELECTION_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
Static Methods
getDefaultInstance()
public static SentimentConfig getDefaultInstance()
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
newBuilder()
public static SentimentConfig.Builder newBuilder()
newBuilder(SentimentConfig prototype)
public static SentimentConfig.Builder newBuilder(SentimentConfig prototype)
public static SentimentConfig parseDelimitedFrom(InputStream input)
public static SentimentConfig parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(byte[] data)
public static SentimentConfig parseFrom(byte[] data)
Parameter |
---|
Name | Description |
data | byte[]
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static SentimentConfig parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteString data)
public static SentimentConfig parseFrom(ByteString data)
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static SentimentConfig parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static SentimentConfig parseFrom(CodedInputStream input)
public static SentimentConfig parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static SentimentConfig parseFrom(InputStream input)
public static SentimentConfig parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteBuffer data)
public static SentimentConfig parseFrom(ByteBuffer data)
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static SentimentConfig parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
parser()
public static Parser<SentimentConfig> parser()
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter |
---|
Name | Description |
obj | Object
|
Overrides
getDefaultInstanceForType()
public SentimentConfig getDefaultInstanceForType()
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()
Overrides
getSerializedSize()
public int getSerializedSize()
Returns |
---|
Type | Description |
int | |
Overrides
hashCode()
Returns |
---|
Type | Description |
int | |
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
newBuilderForType()
public SentimentConfig.Builder newBuilderForType()
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected SentimentConfig.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Overrides
toBuilder()
public SentimentConfig.Builder toBuilder()
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Overrides