Class HumanAnnotationConfig
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- 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
public final class HumanAnnotationConfig extends com.google.protobuf.GeneratedMessageV3 implements HumanAnnotationConfigOrBuilder
Configuration for how human labeling task should be done.
Protobuf typegoogle.cloud.datalabeling.v1beta1.HumanAnnotationConfig- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classHumanAnnotationConfig.BuilderConfiguration for how human labeling task should be done.-
Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter
-
-
Field Summary
Fields Modifier and Type Field Description static intANNOTATED_DATASET_DESCRIPTION_FIELD_NUMBERstatic intANNOTATED_DATASET_DISPLAY_NAME_FIELD_NUMBERstatic intCONTRIBUTOR_EMAILS_FIELD_NUMBERstatic intINSTRUCTION_FIELD_NUMBERstatic intLABEL_GROUP_FIELD_NUMBERstatic intLANGUAGE_CODE_FIELD_NUMBERstatic intQUESTION_DURATION_FIELD_NUMBERstatic intREPLICA_COUNT_FIELD_NUMBERstatic intUSER_EMAIL_ADDRESS_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)StringgetAnnotatedDatasetDescription()Optional.com.google.protobuf.ByteStringgetAnnotatedDatasetDescriptionBytes()Optional.StringgetAnnotatedDatasetDisplayName()Required.com.google.protobuf.ByteStringgetAnnotatedDatasetDisplayNameBytes()Required.StringgetContributorEmails(int index)Optional.com.google.protobuf.ByteStringgetContributorEmailsBytes(int index)Optional.intgetContributorEmailsCount()Optional.com.google.protobuf.ProtocolStringListgetContributorEmailsList()Optional.static HumanAnnotationConfiggetDefaultInstance()HumanAnnotationConfiggetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()StringgetInstruction()Required.com.google.protobuf.ByteStringgetInstructionBytes()Required.StringgetLabelGroup()Optional.com.google.protobuf.ByteStringgetLabelGroupBytes()Optional.StringgetLanguageCode()Optional.com.google.protobuf.ByteStringgetLanguageCodeBytes()Optional.com.google.protobuf.Parser<HumanAnnotationConfig>getParserForType()com.google.protobuf.DurationgetQuestionDuration()Optional.com.google.protobuf.DurationOrBuildergetQuestionDurationOrBuilder()Optional.intgetReplicaCount()Optional.intgetSerializedSize()StringgetUserEmailAddress()Email of the user who started the labeling task and should be notified by email.com.google.protobuf.ByteStringgetUserEmailAddressBytes()Email of the user who started the labeling task and should be notified by email.inthashCode()booleanhasQuestionDuration()Optional.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()static HumanAnnotationConfig.BuildernewBuilder()static HumanAnnotationConfig.BuildernewBuilder(HumanAnnotationConfig prototype)HumanAnnotationConfig.BuildernewBuilderForType()protected HumanAnnotationConfig.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)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()HumanAnnotationConfig.BuildertoBuilder()voidwriteTo(com.google.protobuf.CodedOutputStream output)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, mergeFromAndMakeImmutableInternal, 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, writeStringNoTag
-
Methods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Field Detail
-
INSTRUCTION_FIELD_NUMBER
public static final int INSTRUCTION_FIELD_NUMBER
- See Also:
- Constant Field Values
-
ANNOTATED_DATASET_DISPLAY_NAME_FIELD_NUMBER
public static final int ANNOTATED_DATASET_DISPLAY_NAME_FIELD_NUMBER
- See Also:
- Constant Field Values
-
ANNOTATED_DATASET_DESCRIPTION_FIELD_NUMBER
public static final int ANNOTATED_DATASET_DESCRIPTION_FIELD_NUMBER
- See Also:
- Constant Field Values
-
LABEL_GROUP_FIELD_NUMBER
public static final int LABEL_GROUP_FIELD_NUMBER
- See Also:
- Constant Field Values
-
LANGUAGE_CODE_FIELD_NUMBER
public static final int LANGUAGE_CODE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
REPLICA_COUNT_FIELD_NUMBER
public static final int REPLICA_COUNT_FIELD_NUMBER
- See Also:
- Constant Field Values
-
QUESTION_DURATION_FIELD_NUMBER
public static final int QUESTION_DURATION_FIELD_NUMBER
- See Also:
- Constant Field Values
-
CONTRIBUTOR_EMAILS_FIELD_NUMBER
public static final int CONTRIBUTOR_EMAILS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
USER_EMAIL_ADDRESS_FIELD_NUMBER
public static final int USER_EMAIL_ADDRESS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
-
Method Detail
-
newInstance
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
- Overrides:
newInstancein classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3
-
getInstruction
public String 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
public String 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
public String 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
public 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 [(.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
public 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.
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
public 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 [(.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
public String 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.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessageV3- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(Object obj)
- 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
public static HumanAnnotationConfig parseFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static HumanAnnotationConfig parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static HumanAnnotationConfig parseDelimitedFrom(InputStream input) throws IOException
- 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
public HumanAnnotationConfig.Builder newBuilderForType()
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
public static HumanAnnotationConfig.Builder newBuilder()
-
newBuilder
public static HumanAnnotationConfig.Builder newBuilder(HumanAnnotationConfig prototype)
-
toBuilder
public HumanAnnotationConfig.Builder toBuilder()
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected HumanAnnotationConfig.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
public static HumanAnnotationConfig getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<HumanAnnotationConfig> parser()
-
getParserForType
public com.google.protobuf.Parser<HumanAnnotationConfig> getParserForType()
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public HumanAnnotationConfig getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
-