Class Instruction.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<Instruction.Builder>
com.google.cloud.datalabeling.v1beta1.Instruction.Builder
- All Implemented Interfaces:
InstructionOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- Instruction
public static final class Instruction.Builder
extends com.google.protobuf.GeneratedMessage.Builder<Instruction.Builder>
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-
Method Summary
Modifier and TypeMethodDescriptionaddAllBlockingResources(Iterable<String> values) Output only.addBlockingResources(String value) Output only.addBlockingResourcesBytes(com.google.protobuf.ByteString value) Output only.build()clear()Output only.Output only.Deprecated.Required.Optional.Required.Output only.Instruction from a PDF document.Output only.getBlockingResources(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.Timestamp.BuilderOutput only.com.google.protobuf.TimestampOrBuilderOutput only.Deprecated.google.cloud.datalabeling.v1beta1.Instruction.csv_instruction is deprecated.Deprecated.Deprecated.Required.intRequired.Optional.com.google.protobuf.ByteStringOptional.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorRequired.com.google.protobuf.ByteStringRequired.getName()Output only.com.google.protobuf.ByteStringOutput only.Instruction from a PDF document.Instruction from a PDF document.Instruction from a PDF document.com.google.protobuf.TimestampOutput only.com.google.protobuf.Timestamp.BuilderOutput only.com.google.protobuf.TimestampOrBuilderOutput only.booleanOutput only.booleanDeprecated.google.cloud.datalabeling.v1beta1.Instruction.csv_instruction is deprecated.booleanInstruction from a PDF document.booleanOutput only.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeCreateTime(com.google.protobuf.Timestamp value) Output only.Deprecated.mergeFrom(Instruction other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) Instruction from a PDF document.mergeUpdateTime(com.google.protobuf.Timestamp value) Output only.setBlockingResources(int index, String value) Output only.setCreateTime(com.google.protobuf.Timestamp value) Output only.setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) Output only.setCsvInstruction(CsvInstruction value) Deprecated.setCsvInstruction(CsvInstruction.Builder builderForValue) Deprecated.setDataType(DataType value) Required.setDataTypeValue(int value) Required.setDescription(String value) Optional.setDescriptionBytes(com.google.protobuf.ByteString value) Optional.setDisplayName(String value) Required.setDisplayNameBytes(com.google.protobuf.ByteString value) Required.Output only.setNameBytes(com.google.protobuf.ByteString value) Output only.setPdfInstruction(PdfInstruction value) Instruction from a PDF document.setPdfInstruction(PdfInstruction.Builder builderForValue) Instruction from a PDF document.setUpdateTime(com.google.protobuf.Timestamp value) Output only.setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) Output only.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
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.Builder<Instruction.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<Instruction.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<Instruction.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Instruction.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<Instruction.Builder>
-
mergeFrom
public Instruction.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Instruction.Builder>- Throws:
IOException
-
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.
-
setName
Output only. Instruction resource name, format: projects/{project_id}/instructions/{instruction_id}string name = 1;- Parameters:
value- The name to set.- Returns:
- This builder for chaining.
-
clearName
Output only. Instruction resource name, format: projects/{project_id}/instructions/{instruction_id}string name = 1;- Returns:
- This builder for chaining.
-
setNameBytes
Output only. Instruction resource name, format: projects/{project_id}/instructions/{instruction_id}string name = 1;- Parameters:
value- The bytes for name to set.- Returns:
- This builder for chaining.
-
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.
-
setDisplayName
Required. The display name of the instruction. Maximum of 64 characters.
string display_name = 2;- Parameters:
value- The displayName to set.- Returns:
- This builder for chaining.
-
clearDisplayName
Required. The display name of the instruction. Maximum of 64 characters.
string display_name = 2;- Returns:
- This builder for chaining.
-
setDisplayNameBytes
Required. The display name of the instruction. Maximum of 64 characters.
string display_name = 2;- Parameters:
value- The bytes for displayName to set.- Returns:
- This builder for chaining.
-
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.
-
setDescription
Optional. User-provided description of the instruction. The description can be up to 10000 characters long.
string description = 3;- Parameters:
value- The description to set.- Returns:
- This builder for chaining.
-
clearDescription
Optional. User-provided description of the instruction. The description can be up to 10000 characters long.
string description = 3;- Returns:
- This builder for chaining.
-
setDescriptionBytes
Optional. User-provided description of the instruction. The description can be up to 10000 characters long.
string description = 3;- Parameters:
value- The bytes for description to set.- Returns:
- This builder for chaining.
-
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.
-
setCreateTime
Output only. Creation time of instruction.
.google.protobuf.Timestamp create_time = 4; -
setCreateTime
Output only. Creation time of instruction.
.google.protobuf.Timestamp create_time = 4; -
mergeCreateTime
Output only. Creation time of instruction.
.google.protobuf.Timestamp create_time = 4; -
clearCreateTime
Output only. Creation time of instruction.
.google.protobuf.Timestamp create_time = 4; -
getCreateTimeBuilder
public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder()Output only. Creation time of instruction.
.google.protobuf.Timestamp create_time = 4; -
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.
-
setUpdateTime
Output only. Last update time of instruction.
.google.protobuf.Timestamp update_time = 5; -
setUpdateTime
Output only. Last update time of instruction.
.google.protobuf.Timestamp update_time = 5; -
mergeUpdateTime
Output only. Last update time of instruction.
.google.protobuf.Timestamp update_time = 5; -
clearUpdateTime
Output only. Last update time of instruction.
.google.protobuf.Timestamp update_time = 5; -
getUpdateTimeBuilder
public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder()Output only. Last update time of instruction.
.google.protobuf.Timestamp update_time = 5; -
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.
-
setDataTypeValue
Required. The data type of this instruction.
.google.cloud.datalabeling.v1beta1.DataType data_type = 6;- Parameters:
value- The enum numeric value on the wire for dataType to set.- Returns:
- This builder for chaining.
-
getDataType
Required. The data type of this instruction.
.google.cloud.datalabeling.v1beta1.DataType data_type = 6;- Specified by:
getDataTypein interfaceInstructionOrBuilder- Returns:
- The dataType.
-
setDataType
Required. The data type of this instruction.
.google.cloud.datalabeling.v1beta1.DataType data_type = 6;- Parameters:
value- The dataType to set.- Returns:
- This builder for chaining.
-
clearDataType
Required. The data type of this instruction.
.google.cloud.datalabeling.v1beta1.DataType data_type = 6;- Returns:
- This builder for chaining.
-
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.
-
setCsvInstruction
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]; -
setCsvInstruction
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]; -
mergeCsvInstruction
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]; -
clearCsvInstruction
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]; -
getCsvInstructionBuilder
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]; -
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.
-
setPdfInstruction
Instruction from a PDF document. The PDF should be in a Cloud Storage bucket.
.google.cloud.datalabeling.v1beta1.PdfInstruction pdf_instruction = 9; -
setPdfInstruction
Instruction from a PDF document. The PDF should be in a Cloud Storage bucket.
.google.cloud.datalabeling.v1beta1.PdfInstruction pdf_instruction = 9; -
mergePdfInstruction
Instruction from a PDF document. The PDF should be in a Cloud Storage bucket.
.google.cloud.datalabeling.v1beta1.PdfInstruction pdf_instruction = 9; -
clearPdfInstruction
Instruction from a PDF document. The PDF should be in a Cloud Storage bucket.
.google.cloud.datalabeling.v1beta1.PdfInstruction pdf_instruction = 9; -
getPdfInstructionBuilder
Instruction from a PDF document. The PDF should be in a Cloud Storage bucket.
.google.cloud.datalabeling.v1beta1.PdfInstruction pdf_instruction = 9; -
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.
-
setBlockingResources
Output only. The names of any related resources that are blocking changes to the instruction.
repeated string blocking_resources = 10;- Parameters:
index- The index to set the value at.value- The blockingResources to set.- Returns:
- This builder for chaining.
-
addBlockingResources
Output only. The names of any related resources that are blocking changes to the instruction.
repeated string blocking_resources = 10;- Parameters:
value- The blockingResources to add.- Returns:
- This builder for chaining.
-
addAllBlockingResources
Output only. The names of any related resources that are blocking changes to the instruction.
repeated string blocking_resources = 10;- Parameters:
values- The blockingResources to add.- Returns:
- This builder for chaining.
-
clearBlockingResources
Output only. The names of any related resources that are blocking changes to the instruction.
repeated string blocking_resources = 10;- Returns:
- This builder for chaining.
-
addBlockingResourcesBytes
Output only. The names of any related resources that are blocking changes to the instruction.
repeated string blocking_resources = 10;- Parameters:
value- The bytes of the blockingResources to add.- Returns:
- This builder for chaining.
-