public final class HumanAnnotationConfig extends com.google.protobuf.GeneratedMessageV3 implements HumanAnnotationConfigOrBuilder
Configuration for how human labeling task should be done.Protobuf type
google.cloud.datalabeling.v1beta1.HumanAnnotationConfig| Modifier and Type | Class and Description |
|---|---|
static class |
HumanAnnotationConfig.Builder
Configuration for how human labeling task should be done.
|
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage,BuilderType extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable| Modifier and Type | Field and Description |
|---|---|
static int |
ANNOTATED_DATASET_DESCRIPTION_FIELD_NUMBER |
static int |
ANNOTATED_DATASET_DISPLAY_NAME_FIELD_NUMBER |
static int |
CONTRIBUTOR_EMAILS_FIELD_NUMBER |
static int |
INSTRUCTION_FIELD_NUMBER |
static int |
LABEL_GROUP_FIELD_NUMBER |
static int |
LANGUAGE_CODE_FIELD_NUMBER |
static int |
QUESTION_DURATION_FIELD_NUMBER |
static int |
REPLICA_COUNT_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
String |
getAnnotatedDatasetDescription()
Optional.
|
com.google.protobuf.ByteString |
getAnnotatedDatasetDescriptionBytes()
Optional.
|
String |
getAnnotatedDatasetDisplayName()
Required.
|
com.google.protobuf.ByteString |
getAnnotatedDatasetDisplayNameBytes()
Required.
|
String |
getContributorEmails(int index)
Optional.
|
com.google.protobuf.ByteString |
getContributorEmailsBytes(int index)
Optional.
|
int |
getContributorEmailsCount()
Optional.
|
com.google.protobuf.ProtocolStringList |
getContributorEmailsList()
Optional.
|
static HumanAnnotationConfig |
getDefaultInstance() |
HumanAnnotationConfig |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
String |
getInstruction()
Required except for LabelAudio case.
|
com.google.protobuf.ByteString |
getInstructionBytes()
Required except for LabelAudio case.
|
String |
getLabelGroup()
Optional.
|
com.google.protobuf.ByteString |
getLabelGroupBytes()
Optional.
|
String |
getLanguageCode()
Optional.
|
com.google.protobuf.ByteString |
getLanguageCodeBytes()
Optional.
|
com.google.protobuf.Parser<HumanAnnotationConfig> |
getParserForType() |
com.google.protobuf.Duration |
getQuestionDuration()
Optional.
|
com.google.protobuf.DurationOrBuilder |
getQuestionDurationOrBuilder()
Optional.
|
int |
getReplicaCount()
Optional.
|
int |
getSerializedSize() |
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
int |
hashCode() |
boolean |
hasQuestionDuration()
Optional.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static HumanAnnotationConfig.Builder |
newBuilder() |
static HumanAnnotationConfig.Builder |
newBuilder(HumanAnnotationConfig prototype) |
HumanAnnotationConfig.Builder |
newBuilderForType() |
protected HumanAnnotationConfig.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
static HumanAnnotationConfig |
parseDelimitedFrom(InputStream input) |
static HumanAnnotationConfig |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static HumanAnnotationConfig |
parseFrom(byte[] data) |
static HumanAnnotationConfig |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static HumanAnnotationConfig |
parseFrom(ByteBuffer data) |
static HumanAnnotationConfig |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static HumanAnnotationConfig |
parseFrom(com.google.protobuf.ByteString data) |
static HumanAnnotationConfig |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static HumanAnnotationConfig |
parseFrom(com.google.protobuf.CodedInputStream input) |
static HumanAnnotationConfig |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static HumanAnnotationConfig |
parseFrom(InputStream input) |
static HumanAnnotationConfig |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<HumanAnnotationConfig> |
parser() |
HumanAnnotationConfig.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, makeExtensionsImmutable, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static final int INSTRUCTION_FIELD_NUMBER
public static final int ANNOTATED_DATASET_DISPLAY_NAME_FIELD_NUMBER
public static final int ANNOTATED_DATASET_DESCRIPTION_FIELD_NUMBER
public static final int LABEL_GROUP_FIELD_NUMBER
public static final int LANGUAGE_CODE_FIELD_NUMBER
public static final int REPLICA_COUNT_FIELD_NUMBER
public static final int QUESTION_DURATION_FIELD_NUMBER
public static final int CONTRIBUTOR_EMAILS_FIELD_NUMBER
public final com.google.protobuf.UnknownFieldSet getUnknownFields()
getUnknownFields in interface com.google.protobuf.MessageOrBuildergetUnknownFields in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public String getInstruction()
Required except for LabelAudio case. Instruction resource name.
string instruction = 1;getInstruction in interface HumanAnnotationConfigOrBuilderpublic com.google.protobuf.ByteString getInstructionBytes()
Required except for LabelAudio case. Instruction resource name.
string instruction = 1;getInstructionBytes in interface HumanAnnotationConfigOrBuilderpublic String getAnnotatedDatasetDisplayName()
Required. A human-readable name for AnnotatedDataset defined by users. Maximum of 64 characters .
string annotated_dataset_display_name = 2;getAnnotatedDatasetDisplayName in interface HumanAnnotationConfigOrBuilderpublic com.google.protobuf.ByteString getAnnotatedDatasetDisplayNameBytes()
Required. A human-readable name for AnnotatedDataset defined by users. Maximum of 64 characters .
string annotated_dataset_display_name = 2;getAnnotatedDatasetDisplayNameBytes in interface HumanAnnotationConfigOrBuilderpublic String getAnnotatedDatasetDescription()
Optional. A human-readable description for AnnotatedDataset. The description can be up to 10000 characters long.
string annotated_dataset_description = 3;getAnnotatedDatasetDescription in interface HumanAnnotationConfigOrBuilderpublic com.google.protobuf.ByteString getAnnotatedDatasetDescriptionBytes()
Optional. A human-readable description for AnnotatedDataset. The description can be up to 10000 characters long.
string annotated_dataset_description = 3;getAnnotatedDatasetDescriptionBytes in interface HumanAnnotationConfigOrBuilderpublic String getLabelGroup()
Optional. A human-readable label used to logically group labeling tasks.
This string must match the regular expression `[a-zA-Z\\d_-]{0,128}`.
string label_group = 4;getLabelGroup in interface HumanAnnotationConfigOrBuilderpublic com.google.protobuf.ByteString getLabelGroupBytes()
Optional. A human-readable label used to logically group labeling tasks.
This string must match the regular expression `[a-zA-Z\\d_-]{0,128}`.
string label_group = 4;getLabelGroupBytes in interface HumanAnnotationConfigOrBuilderpublic String getLanguageCode()
Optional. The Language of this question, as a [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt). Default value is en-US. Only need to set this when task is language related. For example, French text classification or Chinese audio transcription.
string language_code = 5;getLanguageCode in interface HumanAnnotationConfigOrBuilderpublic com.google.protobuf.ByteString getLanguageCodeBytes()
Optional. The Language of this question, as a [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt). Default value is en-US. Only need to set this when task is language related. For example, French text classification or Chinese audio transcription.
string language_code = 5;getLanguageCodeBytes in interface HumanAnnotationConfigOrBuilderpublic int getReplicaCount()
Optional. Replication of questions. Each question will be sent to up to this number of contributors to label. Aggregated answers will be returned. Default is set to 1. For image related labeling, valid values are 1, 3, 5.
int32 replica_count = 6;getReplicaCount in interface HumanAnnotationConfigOrBuilderpublic boolean hasQuestionDuration()
Optional. Maximum duration for contributors to answer a question. Default is 1800 seconds.
.google.protobuf.Duration question_duration = 7;hasQuestionDuration in interface HumanAnnotationConfigOrBuilderpublic com.google.protobuf.Duration getQuestionDuration()
Optional. Maximum duration for contributors to answer a question. Default is 1800 seconds.
.google.protobuf.Duration question_duration = 7;getQuestionDuration in interface HumanAnnotationConfigOrBuilderpublic com.google.protobuf.DurationOrBuilder getQuestionDurationOrBuilder()
Optional. Maximum duration for contributors to answer a question. Default is 1800 seconds.
.google.protobuf.Duration question_duration = 7;getQuestionDurationOrBuilder in interface HumanAnnotationConfigOrBuilderpublic com.google.protobuf.ProtocolStringList getContributorEmailsList()
Optional. If you want your own labeling contributors to manage and work on this labeling request, you can set these contributors here. We will give them access to the question types in crowdcompute. Note that these emails must be registered in crowdcompute worker UI: https://crowd-compute.appspot.com/
repeated string contributor_emails = 9;getContributorEmailsList in interface HumanAnnotationConfigOrBuilderpublic int getContributorEmailsCount()
Optional. If you want your own labeling contributors to manage and work on this labeling request, you can set these contributors here. We will give them access to the question types in crowdcompute. Note that these emails must be registered in crowdcompute worker UI: https://crowd-compute.appspot.com/
repeated string contributor_emails = 9;getContributorEmailsCount in interface HumanAnnotationConfigOrBuilderpublic String getContributorEmails(int index)
Optional. If you want your own labeling contributors to manage and work on this labeling request, you can set these contributors here. We will give them access to the question types in crowdcompute. Note that these emails must be registered in crowdcompute worker UI: https://crowd-compute.appspot.com/
repeated string contributor_emails = 9;getContributorEmails in interface HumanAnnotationConfigOrBuilderpublic com.google.protobuf.ByteString getContributorEmailsBytes(int index)
Optional. If you want your own labeling contributors to manage and work on this labeling request, you can set these contributors here. We will give them access to the question types in crowdcompute. Note that these emails must be registered in crowdcompute worker UI: https://crowd-compute.appspot.com/
repeated string contributor_emails = 9;getContributorEmailsBytes in interface HumanAnnotationConfigOrBuilderpublic final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static HumanAnnotationConfig parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static HumanAnnotationConfig parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static HumanAnnotationConfig parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static HumanAnnotationConfig parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static HumanAnnotationConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static HumanAnnotationConfig parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static HumanAnnotationConfig parseFrom(InputStream input) throws IOException
IOExceptionpublic static HumanAnnotationConfig parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static HumanAnnotationConfig parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static HumanAnnotationConfig parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static HumanAnnotationConfig parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static HumanAnnotationConfig parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic HumanAnnotationConfig.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static HumanAnnotationConfig.Builder newBuilder()
public static HumanAnnotationConfig.Builder newBuilder(HumanAnnotationConfig prototype)
public HumanAnnotationConfig.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected HumanAnnotationConfig.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static HumanAnnotationConfig getDefaultInstance()
public static com.google.protobuf.Parser<HumanAnnotationConfig> parser()
public com.google.protobuf.Parser<HumanAnnotationConfig> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public HumanAnnotationConfig getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2019 Google LLC. All rights reserved.