Class Instruction
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloud.datalabeling.v1beta1.Instruction
- All Implemented Interfaces:
InstructionOrBuilder,com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable
@Generated
public final class Instruction
extends com.google.protobuf.GeneratedMessage
implements InstructionOrBuilder
Instruction of how to perform the labeling task for human operators. Currently only PDF instruction is supported.Protobuf type
google.cloud.datalabeling.v1beta1.Instruction- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classInstruction of how to perform the labeling task for human operators.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 TypeMethodDescriptionbooleangetBlockingResources(int index) Output only.com.google.protobuf.ByteStringgetBlockingResourcesBytes(int index) Output only.intOutput only.com.google.protobuf.ProtocolStringListOutput only.com.google.protobuf.TimestampOutput only.com.google.protobuf.TimestampOrBuilderOutput only.Deprecated.google.cloud.datalabeling.v1beta1.Instruction.csv_instruction is deprecated.Deprecated.Required.intRequired.static InstructionOptional.com.google.protobuf.ByteStringOptional.static final com.google.protobuf.Descriptors.DescriptorRequired.com.google.protobuf.ByteStringRequired.getName()Output only.com.google.protobuf.ByteStringOutput only.com.google.protobuf.Parser<Instruction>Instruction from a PDF document.Instruction from a PDF document.intcom.google.protobuf.TimestampOutput only.com.google.protobuf.TimestampOrBuilderOutput only.booleanOutput only.booleanDeprecated.google.cloud.datalabeling.v1beta1.Instruction.csv_instruction is deprecated.inthashCode()booleanInstruction from a PDF document.booleanOutput only.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanstatic Instruction.Builderstatic Instruction.BuildernewBuilder(Instruction prototype) protected Instruction.BuildernewBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) static InstructionparseDelimitedFrom(InputStream input) static InstructionparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static InstructionparseFrom(byte[] data) static InstructionparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static InstructionparseFrom(com.google.protobuf.ByteString data) static InstructionparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static InstructionparseFrom(com.google.protobuf.CodedInputStream input) static InstructionparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static InstructionparseFrom(InputStream input) static InstructionparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static InstructionparseFrom(ByteBuffer data) static InstructionparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<Instruction>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
-
NAME_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER- See Also:
-
DISPLAY_NAME_FIELD_NUMBER
public static final int DISPLAY_NAME_FIELD_NUMBER- See Also:
-
DESCRIPTION_FIELD_NUMBER
public static final int DESCRIPTION_FIELD_NUMBER- See Also:
-
CREATE_TIME_FIELD_NUMBER
public static final int CREATE_TIME_FIELD_NUMBER- See Also:
-
UPDATE_TIME_FIELD_NUMBER
public static final int UPDATE_TIME_FIELD_NUMBER- See Also:
-
DATA_TYPE_FIELD_NUMBER
public static final int DATA_TYPE_FIELD_NUMBER- See Also:
-
CSV_INSTRUCTION_FIELD_NUMBER
public static final int CSV_INSTRUCTION_FIELD_NUMBER- See Also:
-
PDF_INSTRUCTION_FIELD_NUMBER
public static final int PDF_INSTRUCTION_FIELD_NUMBER- See Also:
-
BLOCKING_RESOURCES_FIELD_NUMBER
public static final int BLOCKING_RESOURCES_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
-
getName
Output only. Instruction resource name, format: projects/{project_id}/instructions/{instruction_id}string name = 1;- Specified by:
getNamein interfaceInstructionOrBuilder- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()Output only. Instruction resource name, format: projects/{project_id}/instructions/{instruction_id}string name = 1;- Specified by:
getNameBytesin interfaceInstructionOrBuilder- Returns:
- The bytes for name.
-
getDisplayName
Required. The display name of the instruction. Maximum of 64 characters.
string display_name = 2;- Specified by:
getDisplayNamein interfaceInstructionOrBuilder- Returns:
- The displayName.
-
getDisplayNameBytes
public com.google.protobuf.ByteString getDisplayNameBytes()Required. The display name of the instruction. Maximum of 64 characters.
string display_name = 2;- Specified by:
getDisplayNameBytesin interfaceInstructionOrBuilder- Returns:
- The bytes for displayName.
-
getDescription
Optional. User-provided description of the instruction. The description can be up to 10000 characters long.
string description = 3;- Specified by:
getDescriptionin interfaceInstructionOrBuilder- Returns:
- The description.
-
getDescriptionBytes
public com.google.protobuf.ByteString getDescriptionBytes()Optional. User-provided description of the instruction. The description can be up to 10000 characters long.
string description = 3;- Specified by:
getDescriptionBytesin interfaceInstructionOrBuilder- Returns:
- The bytes for description.
-
hasCreateTime
public boolean hasCreateTime()Output only. Creation time of instruction.
.google.protobuf.Timestamp create_time = 4;- Specified by:
hasCreateTimein interfaceInstructionOrBuilder- Returns:
- Whether the createTime field is set.
-
getCreateTime
public com.google.protobuf.Timestamp getCreateTime()Output only. Creation time of instruction.
.google.protobuf.Timestamp create_time = 4;- Specified by:
getCreateTimein interfaceInstructionOrBuilder- Returns:
- The createTime.
-
getCreateTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()Output only. Creation time of instruction.
.google.protobuf.Timestamp create_time = 4;- Specified by:
getCreateTimeOrBuilderin interfaceInstructionOrBuilder
-
hasUpdateTime
public boolean hasUpdateTime()Output only. Last update time of instruction.
.google.protobuf.Timestamp update_time = 5;- Specified by:
hasUpdateTimein interfaceInstructionOrBuilder- Returns:
- Whether the updateTime field is set.
-
getUpdateTime
public com.google.protobuf.Timestamp getUpdateTime()Output only. Last update time of instruction.
.google.protobuf.Timestamp update_time = 5;- Specified by:
getUpdateTimein interfaceInstructionOrBuilder- Returns:
- The updateTime.
-
getUpdateTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder()Output only. Last update time of instruction.
.google.protobuf.Timestamp update_time = 5;- Specified by:
getUpdateTimeOrBuilderin interfaceInstructionOrBuilder
-
getDataTypeValue
public int getDataTypeValue()Required. The data type of this instruction.
.google.cloud.datalabeling.v1beta1.DataType data_type = 6;- Specified by:
getDataTypeValuein interfaceInstructionOrBuilder- Returns:
- The enum numeric value on the wire for dataType.
-
getDataType
Required. The data type of this instruction.
.google.cloud.datalabeling.v1beta1.DataType data_type = 6;- Specified by:
getDataTypein interfaceInstructionOrBuilder- Returns:
- The dataType.
-
hasCsvInstruction
Deprecated.google.cloud.datalabeling.v1beta1.Instruction.csv_instruction is deprecated. See google/cloud/datalabeling/v1beta1/instruction.proto;l=64Deprecated: this instruction format is not supported any more. Instruction from a CSV file, such as for classification task. The CSV file should have exact two columns, in the following format: * The first column is labeled data, such as an image reference, text. * The second column is comma separated labels associated with data.
.google.cloud.datalabeling.v1beta1.CsvInstruction csv_instruction = 7 [deprecated = true];- Specified by:
hasCsvInstructionin interfaceInstructionOrBuilder- Returns:
- Whether the csvInstruction field is set.
-
getCsvInstruction
Deprecated.google.cloud.datalabeling.v1beta1.Instruction.csv_instruction is deprecated. See google/cloud/datalabeling/v1beta1/instruction.proto;l=64Deprecated: this instruction format is not supported any more. Instruction from a CSV file, such as for classification task. The CSV file should have exact two columns, in the following format: * The first column is labeled data, such as an image reference, text. * The second column is comma separated labels associated with data.
.google.cloud.datalabeling.v1beta1.CsvInstruction csv_instruction = 7 [deprecated = true];- Specified by:
getCsvInstructionin interfaceInstructionOrBuilder- Returns:
- The csvInstruction.
-
getCsvInstructionOrBuilder
Deprecated.Deprecated: this instruction format is not supported any more. Instruction from a CSV file, such as for classification task. The CSV file should have exact two columns, in the following format: * The first column is labeled data, such as an image reference, text. * The second column is comma separated labels associated with data.
.google.cloud.datalabeling.v1beta1.CsvInstruction csv_instruction = 7 [deprecated = true];- Specified by:
getCsvInstructionOrBuilderin interfaceInstructionOrBuilder
-
hasPdfInstruction
public boolean hasPdfInstruction()Instruction from a PDF document. The PDF should be in a Cloud Storage bucket.
.google.cloud.datalabeling.v1beta1.PdfInstruction pdf_instruction = 9;- Specified by:
hasPdfInstructionin interfaceInstructionOrBuilder- Returns:
- Whether the pdfInstruction field is set.
-
getPdfInstruction
Instruction from a PDF document. The PDF should be in a Cloud Storage bucket.
.google.cloud.datalabeling.v1beta1.PdfInstruction pdf_instruction = 9;- Specified by:
getPdfInstructionin interfaceInstructionOrBuilder- Returns:
- The pdfInstruction.
-
getPdfInstructionOrBuilder
Instruction from a PDF document. The PDF should be in a Cloud Storage bucket.
.google.cloud.datalabeling.v1beta1.PdfInstruction pdf_instruction = 9;- Specified by:
getPdfInstructionOrBuilderin interfaceInstructionOrBuilder
-
getBlockingResourcesList
public com.google.protobuf.ProtocolStringList getBlockingResourcesList()Output only. The names of any related resources that are blocking changes to the instruction.
repeated string blocking_resources = 10;- Specified by:
getBlockingResourcesListin interfaceInstructionOrBuilder- Returns:
- A list containing the blockingResources.
-
getBlockingResourcesCount
public int getBlockingResourcesCount()Output only. The names of any related resources that are blocking changes to the instruction.
repeated string blocking_resources = 10;- Specified by:
getBlockingResourcesCountin interfaceInstructionOrBuilder- Returns:
- The count of blockingResources.
-
getBlockingResources
Output only. The names of any related resources that are blocking changes to the instruction.
repeated string blocking_resources = 10;- Specified by:
getBlockingResourcesin interfaceInstructionOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The blockingResources at the given index.
-
getBlockingResourcesBytes
public com.google.protobuf.ByteString getBlockingResourcesBytes(int index) Output only. The names of any related resources that are blocking changes to the instruction.
repeated string blocking_resources = 10;- Specified by:
getBlockingResourcesBytesin interfaceInstructionOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the blockingResources at the given index.
-
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 Instruction parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Instruction parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Instruction parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Instruction parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Instruction parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Instruction parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static Instruction parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static Instruction parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static Instruction 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 Instruction.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
-