Class Instruction.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.Builder<Instruction.Builder> implements InstructionOrBuilder
Instruction of how to perform the labeling task for human operators. Currently only PDF instruction is supported.
Protobuf typegoogle.cloud.datalabeling.v1beta1.Instruction
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description Instruction.Builder
addAllBlockingResources(Iterable<String> values)
Output only.Instruction.Builder
addBlockingResources(String value)
Output only.Instruction.Builder
addBlockingResourcesBytes(com.google.protobuf.ByteString value)
Output only.Instruction.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
Instruction
build()
Instruction
buildPartial()
Instruction.Builder
clear()
Instruction.Builder
clearBlockingResources()
Output only.Instruction.Builder
clearCreateTime()
Output only.Instruction.Builder
clearCsvInstruction()
Deprecated.Instruction.Builder
clearDataType()
Required.Instruction.Builder
clearDescription()
Optional.Instruction.Builder
clearDisplayName()
Required.Instruction.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
Instruction.Builder
clearName()
Output only.Instruction.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
Instruction.Builder
clearPdfInstruction()
Instruction from a PDF document.Instruction.Builder
clearUpdateTime()
Output only.Instruction.Builder
clone()
String
getBlockingResources(int index)
Output only.com.google.protobuf.ByteString
getBlockingResourcesBytes(int index)
Output only.int
getBlockingResourcesCount()
Output only.com.google.protobuf.ProtocolStringList
getBlockingResourcesList()
Output only.com.google.protobuf.Timestamp
getCreateTime()
Output only.com.google.protobuf.Timestamp.Builder
getCreateTimeBuilder()
Output only.com.google.protobuf.TimestampOrBuilder
getCreateTimeOrBuilder()
Output only.CsvInstruction
getCsvInstruction()
Deprecated.google.cloud.datalabeling.v1beta1.Instruction.csv_instruction is deprecated.CsvInstruction.Builder
getCsvInstructionBuilder()
Deprecated.CsvInstructionOrBuilder
getCsvInstructionOrBuilder()
Deprecated.DataType
getDataType()
Required.int
getDataTypeValue()
Required.Instruction
getDefaultInstanceForType()
String
getDescription()
Optional.com.google.protobuf.ByteString
getDescriptionBytes()
Optional.static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
String
getDisplayName()
Required.com.google.protobuf.ByteString
getDisplayNameBytes()
Required.String
getName()
Output only.com.google.protobuf.ByteString
getNameBytes()
Output only.PdfInstruction
getPdfInstruction()
Instruction from a PDF document.PdfInstruction.Builder
getPdfInstructionBuilder()
Instruction from a PDF document.PdfInstructionOrBuilder
getPdfInstructionOrBuilder()
Instruction from a PDF document.com.google.protobuf.Timestamp
getUpdateTime()
Output only.com.google.protobuf.Timestamp.Builder
getUpdateTimeBuilder()
Output only.com.google.protobuf.TimestampOrBuilder
getUpdateTimeOrBuilder()
Output only.boolean
hasCreateTime()
Output only.boolean
hasCsvInstruction()
Deprecated.google.cloud.datalabeling.v1beta1.Instruction.csv_instruction is deprecated.boolean
hasPdfInstruction()
Instruction from a PDF document.boolean
hasUpdateTime()
Output only.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
Instruction.Builder
mergeCreateTime(com.google.protobuf.Timestamp value)
Output only.Instruction.Builder
mergeCsvInstruction(CsvInstruction value)
Deprecated.Instruction.Builder
mergeFrom(Instruction other)
Instruction.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
Instruction.Builder
mergeFrom(com.google.protobuf.Message other)
Instruction.Builder
mergePdfInstruction(PdfInstruction value)
Instruction from a PDF document.Instruction.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
Instruction.Builder
mergeUpdateTime(com.google.protobuf.Timestamp value)
Output only.Instruction.Builder
setBlockingResources(int index, String value)
Output only.Instruction.Builder
setCreateTime(com.google.protobuf.Timestamp value)
Output only.Instruction.Builder
setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue)
Output only.Instruction.Builder
setCsvInstruction(CsvInstruction value)
Deprecated.Instruction.Builder
setCsvInstruction(CsvInstruction.Builder builderForValue)
Deprecated.Instruction.Builder
setDataType(DataType value)
Required.Instruction.Builder
setDataTypeValue(int value)
Required.Instruction.Builder
setDescription(String value)
Optional.Instruction.Builder
setDescriptionBytes(com.google.protobuf.ByteString value)
Optional.Instruction.Builder
setDisplayName(String value)
Required.Instruction.Builder
setDisplayNameBytes(com.google.protobuf.ByteString value)
Required.Instruction.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
Instruction.Builder
setName(String value)
Output only.Instruction.Builder
setNameBytes(com.google.protobuf.ByteString value)
Output only.Instruction.Builder
setPdfInstruction(PdfInstruction value)
Instruction from a PDF document.Instruction.Builder
setPdfInstruction(PdfInstruction.Builder builderForValue)
Instruction from a PDF document.Instruction.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
Instruction.Builder
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
Instruction.Builder
setUpdateTime(com.google.protobuf.Timestamp value)
Output only.Instruction.Builder
setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue)
Output only.-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<Instruction.Builder>
-
clear
public Instruction.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<Instruction.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<Instruction.Builder>
-
getDefaultInstanceForType
public Instruction getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public Instruction build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public Instruction buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public Instruction.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<Instruction.Builder>
-
setField
public Instruction.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Instruction.Builder>
-
clearField
public Instruction.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Instruction.Builder>
-
clearOneof
public Instruction.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<Instruction.Builder>
-
setRepeatedField
public Instruction.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Instruction.Builder>
-
addRepeatedField
public Instruction.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Instruction.Builder>
-
mergeFrom
public Instruction.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<Instruction.Builder>
-
mergeFrom
public Instruction.Builder mergeFrom(Instruction other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<Instruction.Builder>
-
mergeFrom
public Instruction.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<Instruction.Builder>
- Throws:
IOException
-
getName
public String getName()
Output only. Instruction resource name, format: projects/{project_id}/instructions/{instruction_id}
string name = 1;
- Specified by:
getName
in 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:
getNameBytes
in interfaceInstructionOrBuilder
- Returns:
- The bytes for name.
-
setName
public Instruction.Builder setName(String value)
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
public Instruction.Builder clearName()
Output only. Instruction resource name, format: projects/{project_id}/instructions/{instruction_id}
string name = 1;
- Returns:
- This builder for chaining.
-
setNameBytes
public Instruction.Builder setNameBytes(com.google.protobuf.ByteString value)
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
public String getDisplayName()
Required. The display name of the instruction. Maximum of 64 characters.
string display_name = 2;
- Specified by:
getDisplayName
in 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:
getDisplayNameBytes
in interfaceInstructionOrBuilder
- Returns:
- The bytes for displayName.
-
setDisplayName
public Instruction.Builder setDisplayName(String value)
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
public Instruction.Builder clearDisplayName()
Required. The display name of the instruction. Maximum of 64 characters.
string display_name = 2;
- Returns:
- This builder for chaining.
-
setDisplayNameBytes
public Instruction.Builder setDisplayNameBytes(com.google.protobuf.ByteString value)
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
public String getDescription()
Optional. User-provided description of the instruction. The description can be up to 10000 characters long.
string description = 3;
- Specified by:
getDescription
in 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:
getDescriptionBytes
in interfaceInstructionOrBuilder
- Returns:
- The bytes for description.
-
setDescription
public Instruction.Builder setDescription(String value)
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
public Instruction.Builder 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
public Instruction.Builder setDescriptionBytes(com.google.protobuf.ByteString value)
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:
hasCreateTime
in 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:
getCreateTime
in interfaceInstructionOrBuilder
- Returns:
- The createTime.
-
setCreateTime
public Instruction.Builder setCreateTime(com.google.protobuf.Timestamp value)
Output only. Creation time of instruction.
.google.protobuf.Timestamp create_time = 4;
-
setCreateTime
public Instruction.Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue)
Output only. Creation time of instruction.
.google.protobuf.Timestamp create_time = 4;
-
mergeCreateTime
public Instruction.Builder mergeCreateTime(com.google.protobuf.Timestamp value)
Output only. Creation time of instruction.
.google.protobuf.Timestamp create_time = 4;
-
clearCreateTime
public Instruction.Builder 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:
getCreateTimeOrBuilder
in interfaceInstructionOrBuilder
-
hasUpdateTime
public boolean hasUpdateTime()
Output only. Last update time of instruction.
.google.protobuf.Timestamp update_time = 5;
- Specified by:
hasUpdateTime
in 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:
getUpdateTime
in interfaceInstructionOrBuilder
- Returns:
- The updateTime.
-
setUpdateTime
public Instruction.Builder setUpdateTime(com.google.protobuf.Timestamp value)
Output only. Last update time of instruction.
.google.protobuf.Timestamp update_time = 5;
-
setUpdateTime
public Instruction.Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue)
Output only. Last update time of instruction.
.google.protobuf.Timestamp update_time = 5;
-
mergeUpdateTime
public Instruction.Builder mergeUpdateTime(com.google.protobuf.Timestamp value)
Output only. Last update time of instruction.
.google.protobuf.Timestamp update_time = 5;
-
clearUpdateTime
public Instruction.Builder 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:
getUpdateTimeOrBuilder
in interfaceInstructionOrBuilder
-
getDataTypeValue
public int getDataTypeValue()
Required. The data type of this instruction.
.google.cloud.datalabeling.v1beta1.DataType data_type = 6;
- Specified by:
getDataTypeValue
in interfaceInstructionOrBuilder
- Returns:
- The enum numeric value on the wire for dataType.
-
setDataTypeValue
public Instruction.Builder setDataTypeValue(int value)
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
public DataType getDataType()
Required. The data type of this instruction.
.google.cloud.datalabeling.v1beta1.DataType data_type = 6;
- Specified by:
getDataType
in interfaceInstructionOrBuilder
- Returns:
- The dataType.
-
setDataType
public Instruction.Builder setDataType(DataType value)
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
public Instruction.Builder clearDataType()
Required. The data type of this instruction.
.google.cloud.datalabeling.v1beta1.DataType data_type = 6;
- Returns:
- This builder for chaining.
-
hasCsvInstruction
@Deprecated public boolean 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:
hasCsvInstruction
in interfaceInstructionOrBuilder
- Returns:
- Whether the csvInstruction field is set.
-
getCsvInstruction
@Deprecated public CsvInstruction 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:
getCsvInstruction
in interfaceInstructionOrBuilder
- Returns:
- The csvInstruction.
-
setCsvInstruction
@Deprecated public Instruction.Builder setCsvInstruction(CsvInstruction value)
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 public Instruction.Builder setCsvInstruction(CsvInstruction.Builder builderForValue)
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 public Instruction.Builder mergeCsvInstruction(CsvInstruction value)
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 public Instruction.Builder 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 public CsvInstruction.Builder 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 public CsvInstructionOrBuilder 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:
getCsvInstructionOrBuilder
in 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:
hasPdfInstruction
in interfaceInstructionOrBuilder
- Returns:
- Whether the pdfInstruction field is set.
-
getPdfInstruction
public PdfInstruction 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:
getPdfInstruction
in interfaceInstructionOrBuilder
- Returns:
- The pdfInstruction.
-
setPdfInstruction
public Instruction.Builder setPdfInstruction(PdfInstruction value)
Instruction from a PDF document. The PDF should be in a Cloud Storage bucket.
.google.cloud.datalabeling.v1beta1.PdfInstruction pdf_instruction = 9;
-
setPdfInstruction
public Instruction.Builder setPdfInstruction(PdfInstruction.Builder builderForValue)
Instruction from a PDF document. The PDF should be in a Cloud Storage bucket.
.google.cloud.datalabeling.v1beta1.PdfInstruction pdf_instruction = 9;
-
mergePdfInstruction
public Instruction.Builder mergePdfInstruction(PdfInstruction value)
Instruction from a PDF document. The PDF should be in a Cloud Storage bucket.
.google.cloud.datalabeling.v1beta1.PdfInstruction pdf_instruction = 9;
-
clearPdfInstruction
public Instruction.Builder clearPdfInstruction()
Instruction from a PDF document. The PDF should be in a Cloud Storage bucket.
.google.cloud.datalabeling.v1beta1.PdfInstruction pdf_instruction = 9;
-
getPdfInstructionBuilder
public PdfInstruction.Builder getPdfInstructionBuilder()
Instruction from a PDF document. The PDF should be in a Cloud Storage bucket.
.google.cloud.datalabeling.v1beta1.PdfInstruction pdf_instruction = 9;
-
getPdfInstructionOrBuilder
public PdfInstructionOrBuilder 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:
getPdfInstructionOrBuilder
in 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:
getBlockingResourcesList
in 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:
getBlockingResourcesCount
in interfaceInstructionOrBuilder
- Returns:
- The count of blockingResources.
-
getBlockingResources
public String getBlockingResources(int index)
Output only. The names of any related resources that are blocking changes to the instruction.
repeated string blocking_resources = 10;
- Specified by:
getBlockingResources
in 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:
getBlockingResourcesBytes
in interfaceInstructionOrBuilder
- Parameters:
index
- The index of the value to return.- Returns:
- The bytes of the blockingResources at the given index.
-
setBlockingResources
public Instruction.Builder setBlockingResources(int index, String value)
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
public Instruction.Builder addBlockingResources(String value)
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
public Instruction.Builder addAllBlockingResources(Iterable<String> values)
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
public Instruction.Builder 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
public Instruction.Builder addBlockingResourcesBytes(com.google.protobuf.ByteString value)
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.
-
setUnknownFields
public final Instruction.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<Instruction.Builder>
-
mergeUnknownFields
public final Instruction.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<Instruction.Builder>
-
-