Class HumanAnnotationConfig
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig
- All Implemented Interfaces:
HumanAnnotationConfigOrBuilder,com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable
@Generated
public final class HumanAnnotationConfig
extends com.google.protobuf.GeneratedMessage
implements HumanAnnotationConfigOrBuilder
Configuration for how human labeling task should be done.Protobuf type
google.cloud.datalabeling.v1beta1.HumanAnnotationConfig- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classConfiguration for how human labeling task should be done.Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessage
com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT, BuilderT>>, com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.FieldAccessorTable, com.google.protobuf.GeneratedMessage.GeneratedExtension<ContainingT extends com.google.protobuf.Message, T extends Object>, com.google.protobuf.GeneratedMessage.UnusedPrivateParameter Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessage
com.google.protobuf.AbstractMessage.BuilderParentNested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessage
alwaysUseFieldBuilders, loggedPre22TypeNames, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessage
memoizedSizeFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionbooleanOptional.com.google.protobuf.ByteStringOptional.Required.com.google.protobuf.ByteStringRequired.getContributorEmails(int index) Optional.com.google.protobuf.ByteStringgetContributorEmailsBytes(int index) Optional.intOptional.com.google.protobuf.ProtocolStringListOptional.static HumanAnnotationConfigstatic final com.google.protobuf.Descriptors.DescriptorRequired.com.google.protobuf.ByteStringRequired.Optional.com.google.protobuf.ByteStringOptional.Optional.com.google.protobuf.ByteStringOptional.com.google.protobuf.Parser<HumanAnnotationConfig>com.google.protobuf.DurationOptional.com.google.protobuf.DurationOrBuilderOptional.intOptional.intEmail of the user who started the labeling task and should be notified by email.com.google.protobuf.ByteStringEmail of the user who started the labeling task and should be notified by email.inthashCode()booleanOptional.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleannewBuilder(HumanAnnotationConfig prototype) protected HumanAnnotationConfig.BuildernewBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) static HumanAnnotationConfigparseDelimitedFrom(InputStream input) static HumanAnnotationConfigparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static HumanAnnotationConfigparseFrom(byte[] data) static HumanAnnotationConfigparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static HumanAnnotationConfigparseFrom(com.google.protobuf.ByteString data) static HumanAnnotationConfigparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static HumanAnnotationConfigparseFrom(com.google.protobuf.CodedInputStream input) static HumanAnnotationConfigparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static HumanAnnotationConfigparseFrom(InputStream input) static HumanAnnotationConfigparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static HumanAnnotationConfigparseFrom(ByteBuffer data) static HumanAnnotationConfigparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<HumanAnnotationConfig>parser()voidwriteTo(com.google.protobuf.CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessage
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, newFileScopedGeneratedExtension, newInstance, newMessageScopedGeneratedExtension, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagMethods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashFields, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
INSTRUCTION_FIELD_NUMBER
public static final int INSTRUCTION_FIELD_NUMBER- See Also:
-
ANNOTATED_DATASET_DISPLAY_NAME_FIELD_NUMBER
public static final int ANNOTATED_DATASET_DISPLAY_NAME_FIELD_NUMBER- See Also:
-
ANNOTATED_DATASET_DESCRIPTION_FIELD_NUMBER
public static final int ANNOTATED_DATASET_DESCRIPTION_FIELD_NUMBER- See Also:
-
LABEL_GROUP_FIELD_NUMBER
public static final int LABEL_GROUP_FIELD_NUMBER- See Also:
-
LANGUAGE_CODE_FIELD_NUMBER
public static final int LANGUAGE_CODE_FIELD_NUMBER- See Also:
-
REPLICA_COUNT_FIELD_NUMBER
public static final int REPLICA_COUNT_FIELD_NUMBER- See Also:
-
QUESTION_DURATION_FIELD_NUMBER
public static final int QUESTION_DURATION_FIELD_NUMBER- See Also:
-
CONTRIBUTOR_EMAILS_FIELD_NUMBER
public static final int CONTRIBUTOR_EMAILS_FIELD_NUMBER- See Also:
-
USER_EMAIL_ADDRESS_FIELD_NUMBER
public static final int USER_EMAIL_ADDRESS_FIELD_NUMBER- See Also:
-
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage
-
getInstruction
Required. Instruction resource name.
string instruction = 1 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getInstructionin interfaceHumanAnnotationConfigOrBuilder- Returns:
- The instruction.
-
getInstructionBytes
public com.google.protobuf.ByteString getInstructionBytes()Required. Instruction resource name.
string instruction = 1 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getInstructionBytesin interfaceHumanAnnotationConfigOrBuilder- Returns:
- The bytes for instruction.
-
getAnnotatedDatasetDisplayName
Required. A human-readable name for AnnotatedDataset defined by users. Maximum of 64 characters .
string annotated_dataset_display_name = 2 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getAnnotatedDatasetDisplayNamein interfaceHumanAnnotationConfigOrBuilder- Returns:
- The annotatedDatasetDisplayName.
-
getAnnotatedDatasetDisplayNameBytes
public 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 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getAnnotatedDatasetDisplayNameBytesin interfaceHumanAnnotationConfigOrBuilder- Returns:
- The bytes for annotatedDatasetDisplayName.
-
getAnnotatedDatasetDescription
Optional. A human-readable description for AnnotatedDataset. The description can be up to 10000 characters long.
string annotated_dataset_description = 3 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getAnnotatedDatasetDescriptionin interfaceHumanAnnotationConfigOrBuilder- Returns:
- The annotatedDatasetDescription.
-
getAnnotatedDatasetDescriptionBytes
public 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 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getAnnotatedDatasetDescriptionBytesin interfaceHumanAnnotationConfigOrBuilder- Returns:
- The bytes for annotatedDatasetDescription.
-
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 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getLabelGroupin interfaceHumanAnnotationConfigOrBuilder- Returns:
- The labelGroup.
-
getLabelGroupBytes
public 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 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getLabelGroupBytesin interfaceHumanAnnotationConfigOrBuilder- Returns:
- The bytes for labelGroup.
-
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.
string language_code = 5 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getLanguageCodein interfaceHumanAnnotationConfigOrBuilder- Returns:
- The languageCode.
-
getLanguageCodeBytes
public 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.
string language_code = 5 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getLanguageCodeBytesin interfaceHumanAnnotationConfigOrBuilder- Returns:
- The bytes for languageCode.
-
getReplicaCount
public 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 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getReplicaCountin interfaceHumanAnnotationConfigOrBuilder- Returns:
- The replicaCount.
-
hasQuestionDuration
public boolean hasQuestionDuration()Optional. Maximum duration for contributors to answer a question. Maximum is 3600 seconds. Default is 3600 seconds.
.google.protobuf.Duration question_duration = 7 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
hasQuestionDurationin interfaceHumanAnnotationConfigOrBuilder- Returns:
- Whether the questionDuration field is set.
-
getQuestionDuration
public com.google.protobuf.Duration getQuestionDuration()Optional. Maximum duration for contributors to answer a question. Maximum is 3600 seconds. Default is 3600 seconds.
.google.protobuf.Duration question_duration = 7 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getQuestionDurationin interfaceHumanAnnotationConfigOrBuilder- Returns:
- The questionDuration.
-
getQuestionDurationOrBuilder
public com.google.protobuf.DurationOrBuilder getQuestionDurationOrBuilder()Optional. Maximum duration for contributors to answer a question. Maximum is 3600 seconds. Default is 3600 seconds.
.google.protobuf.Duration question_duration = 7 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getQuestionDurationOrBuilderin interfaceHumanAnnotationConfigOrBuilder
-
getContributorEmailsList
public 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 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getContributorEmailsListin interfaceHumanAnnotationConfigOrBuilder- Returns:
- A list containing the contributorEmails.
-
getContributorEmailsCount
public 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 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getContributorEmailsCountin interfaceHumanAnnotationConfigOrBuilder- Returns:
- The count of contributorEmails.
-
getContributorEmails
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 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getContributorEmailsin interfaceHumanAnnotationConfigOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The contributorEmails at the given index.
-
getContributorEmailsBytes
public 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 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getContributorEmailsBytesin interfaceHumanAnnotationConfigOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the contributorEmails at the given index.
-
getUserEmailAddress
Email of the user who started the labeling task and should be notified by email. If empty no notification will be sent.
string user_email_address = 10;- Specified by:
getUserEmailAddressin interfaceHumanAnnotationConfigOrBuilder- Returns:
- The userEmailAddress.
-
getUserEmailAddressBytes
public com.google.protobuf.ByteString getUserEmailAddressBytes()Email of the user who started the labeling task and should be notified by email. If empty no notification will be sent.
string user_email_address = 10;- Specified by:
getUserEmailAddressBytesin interfaceHumanAnnotationConfigOrBuilder- Returns:
- The bytes for userEmailAddress.
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage
-
writeTo
- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessage- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessage
-
equals
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static HumanAnnotationConfig parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static HumanAnnotationConfig parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static HumanAnnotationConfig parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static HumanAnnotationConfig parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static HumanAnnotationConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static HumanAnnotationConfig parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static HumanAnnotationConfig parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static HumanAnnotationConfig parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
public static HumanAnnotationConfig parseFrom(com.google.protobuf.CodedInputStream input) throws IOException - Throws:
IOException
-
parseFrom
public static HumanAnnotationConfig parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilderForType
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
-
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected HumanAnnotationConfig.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) - Overrides:
newBuilderForTypein classcom.google.protobuf.AbstractMessage
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessage
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-