Class AnnotationSpecSet.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<AnnotationSpecSet.Builder>
-
- com.google.cloud.datalabeling.v1beta1.AnnotationSpecSet.Builder
-
- All Implemented Interfaces:
AnnotationSpecSetOrBuilder
,com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Cloneable
- Enclosing class:
- AnnotationSpecSet
public static final class AnnotationSpecSet.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<AnnotationSpecSet.Builder> implements AnnotationSpecSetOrBuilder
An AnnotationSpecSet is a collection of label definitions. For example, in image classification tasks, you define a set of possible labels for images as an AnnotationSpecSet. An AnnotationSpecSet is immutable upon creation.
Protobuf typegoogle.cloud.datalabeling.v1beta1.AnnotationSpecSet
-
-
Method Summary
-
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<AnnotationSpecSet.Builder>
-
clear
public AnnotationSpecSet.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<AnnotationSpecSet.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<AnnotationSpecSet.Builder>
-
getDefaultInstanceForType
public AnnotationSpecSet getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public AnnotationSpecSet build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public AnnotationSpecSet buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public AnnotationSpecSet.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<AnnotationSpecSet.Builder>
-
setField
public AnnotationSpecSet.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<AnnotationSpecSet.Builder>
-
clearField
public AnnotationSpecSet.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<AnnotationSpecSet.Builder>
-
clearOneof
public AnnotationSpecSet.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<AnnotationSpecSet.Builder>
-
setRepeatedField
public AnnotationSpecSet.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<AnnotationSpecSet.Builder>
-
addRepeatedField
public AnnotationSpecSet.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<AnnotationSpecSet.Builder>
-
mergeFrom
public AnnotationSpecSet.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<AnnotationSpecSet.Builder>
-
mergeFrom
public AnnotationSpecSet.Builder mergeFrom(AnnotationSpecSet other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<AnnotationSpecSet.Builder>
-
mergeFrom
public AnnotationSpecSet.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<AnnotationSpecSet.Builder>
- Throws:
IOException
-
getName
public String getName()
Output only. The AnnotationSpecSet resource name in the following format: "projects/<var>{project_id}</var>/annotationSpecSets/<var>{annotation_spec_set_id}</var>"
string name = 1;
- Specified by:
getName
in interfaceAnnotationSpecSetOrBuilder
- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()
Output only. The AnnotationSpecSet resource name in the following format: "projects/<var>{project_id}</var>/annotationSpecSets/<var>{annotation_spec_set_id}</var>"
string name = 1;
- Specified by:
getNameBytes
in interfaceAnnotationSpecSetOrBuilder
- Returns:
- The bytes for name.
-
setName
public AnnotationSpecSet.Builder setName(String value)
Output only. The AnnotationSpecSet resource name in the following format: "projects/<var>{project_id}</var>/annotationSpecSets/<var>{annotation_spec_set_id}</var>"
string name = 1;
- Parameters:
value
- The name to set.- Returns:
- This builder for chaining.
-
clearName
public AnnotationSpecSet.Builder clearName()
Output only. The AnnotationSpecSet resource name in the following format: "projects/<var>{project_id}</var>/annotationSpecSets/<var>{annotation_spec_set_id}</var>"
string name = 1;
- Returns:
- This builder for chaining.
-
setNameBytes
public AnnotationSpecSet.Builder setNameBytes(com.google.protobuf.ByteString value)
Output only. The AnnotationSpecSet resource name in the following format: "projects/<var>{project_id}</var>/annotationSpecSets/<var>{annotation_spec_set_id}</var>"
string name = 1;
- Parameters:
value
- The bytes for name to set.- Returns:
- This builder for chaining.
-
getDisplayName
public String getDisplayName()
Required. The display name for AnnotationSpecSet that you define when you create it. Maximum of 64 characters.
string display_name = 2;
- Specified by:
getDisplayName
in interfaceAnnotationSpecSetOrBuilder
- Returns:
- The displayName.
-
getDisplayNameBytes
public com.google.protobuf.ByteString getDisplayNameBytes()
Required. The display name for AnnotationSpecSet that you define when you create it. Maximum of 64 characters.
string display_name = 2;
- Specified by:
getDisplayNameBytes
in interfaceAnnotationSpecSetOrBuilder
- Returns:
- The bytes for displayName.
-
setDisplayName
public AnnotationSpecSet.Builder setDisplayName(String value)
Required. The display name for AnnotationSpecSet that you define when you create it. Maximum of 64 characters.
string display_name = 2;
- Parameters:
value
- The displayName to set.- Returns:
- This builder for chaining.
-
clearDisplayName
public AnnotationSpecSet.Builder clearDisplayName()
Required. The display name for AnnotationSpecSet that you define when you create it. Maximum of 64 characters.
string display_name = 2;
- Returns:
- This builder for chaining.
-
setDisplayNameBytes
public AnnotationSpecSet.Builder setDisplayNameBytes(com.google.protobuf.ByteString value)
Required. The display name for AnnotationSpecSet that you define when you create it. 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 annotation specification set. The description can be up to 10,000 characters long.
string description = 3;
- Specified by:
getDescription
in interfaceAnnotationSpecSetOrBuilder
- Returns:
- The description.
-
getDescriptionBytes
public com.google.protobuf.ByteString getDescriptionBytes()
Optional. User-provided description of the annotation specification set. The description can be up to 10,000 characters long.
string description = 3;
- Specified by:
getDescriptionBytes
in interfaceAnnotationSpecSetOrBuilder
- Returns:
- The bytes for description.
-
setDescription
public AnnotationSpecSet.Builder setDescription(String value)
Optional. User-provided description of the annotation specification set. The description can be up to 10,000 characters long.
string description = 3;
- Parameters:
value
- The description to set.- Returns:
- This builder for chaining.
-
clearDescription
public AnnotationSpecSet.Builder clearDescription()
Optional. User-provided description of the annotation specification set. The description can be up to 10,000 characters long.
string description = 3;
- Returns:
- This builder for chaining.
-
setDescriptionBytes
public AnnotationSpecSet.Builder setDescriptionBytes(com.google.protobuf.ByteString value)
Optional. User-provided description of the annotation specification set. The description can be up to 10,000 characters long.
string description = 3;
- Parameters:
value
- The bytes for description to set.- Returns:
- This builder for chaining.
-
getAnnotationSpecsList
public List<AnnotationSpec> getAnnotationSpecsList()
Required. The array of AnnotationSpecs that you define when you create the AnnotationSpecSet. These are the possible labels for the labeling task.
repeated .google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_specs = 4;
- Specified by:
getAnnotationSpecsList
in interfaceAnnotationSpecSetOrBuilder
-
getAnnotationSpecsCount
public int getAnnotationSpecsCount()
Required. The array of AnnotationSpecs that you define when you create the AnnotationSpecSet. These are the possible labels for the labeling task.
repeated .google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_specs = 4;
- Specified by:
getAnnotationSpecsCount
in interfaceAnnotationSpecSetOrBuilder
-
getAnnotationSpecs
public AnnotationSpec getAnnotationSpecs(int index)
Required. The array of AnnotationSpecs that you define when you create the AnnotationSpecSet. These are the possible labels for the labeling task.
repeated .google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_specs = 4;
- Specified by:
getAnnotationSpecs
in interfaceAnnotationSpecSetOrBuilder
-
setAnnotationSpecs
public AnnotationSpecSet.Builder setAnnotationSpecs(int index, AnnotationSpec value)
Required. The array of AnnotationSpecs that you define when you create the AnnotationSpecSet. These are the possible labels for the labeling task.
repeated .google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_specs = 4;
-
setAnnotationSpecs
public AnnotationSpecSet.Builder setAnnotationSpecs(int index, AnnotationSpec.Builder builderForValue)
Required. The array of AnnotationSpecs that you define when you create the AnnotationSpecSet. These are the possible labels for the labeling task.
repeated .google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_specs = 4;
-
addAnnotationSpecs
public AnnotationSpecSet.Builder addAnnotationSpecs(AnnotationSpec value)
Required. The array of AnnotationSpecs that you define when you create the AnnotationSpecSet. These are the possible labels for the labeling task.
repeated .google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_specs = 4;
-
addAnnotationSpecs
public AnnotationSpecSet.Builder addAnnotationSpecs(int index, AnnotationSpec value)
Required. The array of AnnotationSpecs that you define when you create the AnnotationSpecSet. These are the possible labels for the labeling task.
repeated .google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_specs = 4;
-
addAnnotationSpecs
public AnnotationSpecSet.Builder addAnnotationSpecs(AnnotationSpec.Builder builderForValue)
Required. The array of AnnotationSpecs that you define when you create the AnnotationSpecSet. These are the possible labels for the labeling task.
repeated .google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_specs = 4;
-
addAnnotationSpecs
public AnnotationSpecSet.Builder addAnnotationSpecs(int index, AnnotationSpec.Builder builderForValue)
Required. The array of AnnotationSpecs that you define when you create the AnnotationSpecSet. These are the possible labels for the labeling task.
repeated .google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_specs = 4;
-
addAllAnnotationSpecs
public AnnotationSpecSet.Builder addAllAnnotationSpecs(Iterable<? extends AnnotationSpec> values)
Required. The array of AnnotationSpecs that you define when you create the AnnotationSpecSet. These are the possible labels for the labeling task.
repeated .google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_specs = 4;
-
clearAnnotationSpecs
public AnnotationSpecSet.Builder clearAnnotationSpecs()
Required. The array of AnnotationSpecs that you define when you create the AnnotationSpecSet. These are the possible labels for the labeling task.
repeated .google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_specs = 4;
-
removeAnnotationSpecs
public AnnotationSpecSet.Builder removeAnnotationSpecs(int index)
Required. The array of AnnotationSpecs that you define when you create the AnnotationSpecSet. These are the possible labels for the labeling task.
repeated .google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_specs = 4;
-
getAnnotationSpecsBuilder
public AnnotationSpec.Builder getAnnotationSpecsBuilder(int index)
Required. The array of AnnotationSpecs that you define when you create the AnnotationSpecSet. These are the possible labels for the labeling task.
repeated .google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_specs = 4;
-
getAnnotationSpecsOrBuilder
public AnnotationSpecOrBuilder getAnnotationSpecsOrBuilder(int index)
Required. The array of AnnotationSpecs that you define when you create the AnnotationSpecSet. These are the possible labels for the labeling task.
repeated .google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_specs = 4;
- Specified by:
getAnnotationSpecsOrBuilder
in interfaceAnnotationSpecSetOrBuilder
-
getAnnotationSpecsOrBuilderList
public List<? extends AnnotationSpecOrBuilder> getAnnotationSpecsOrBuilderList()
Required. The array of AnnotationSpecs that you define when you create the AnnotationSpecSet. These are the possible labels for the labeling task.
repeated .google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_specs = 4;
- Specified by:
getAnnotationSpecsOrBuilderList
in interfaceAnnotationSpecSetOrBuilder
-
addAnnotationSpecsBuilder
public AnnotationSpec.Builder addAnnotationSpecsBuilder()
Required. The array of AnnotationSpecs that you define when you create the AnnotationSpecSet. These are the possible labels for the labeling task.
repeated .google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_specs = 4;
-
addAnnotationSpecsBuilder
public AnnotationSpec.Builder addAnnotationSpecsBuilder(int index)
Required. The array of AnnotationSpecs that you define when you create the AnnotationSpecSet. These are the possible labels for the labeling task.
repeated .google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_specs = 4;
-
getAnnotationSpecsBuilderList
public List<AnnotationSpec.Builder> getAnnotationSpecsBuilderList()
Required. The array of AnnotationSpecs that you define when you create the AnnotationSpecSet. These are the possible labels for the labeling task.
repeated .google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_specs = 4;
-
getBlockingResourcesList
public com.google.protobuf.ProtocolStringList getBlockingResourcesList()
Output only. The names of any related resources that are blocking changes to the annotation spec set.
repeated string blocking_resources = 5;
- Specified by:
getBlockingResourcesList
in interfaceAnnotationSpecSetOrBuilder
- Returns:
- A list containing the blockingResources.
-
getBlockingResourcesCount
public int getBlockingResourcesCount()
Output only. The names of any related resources that are blocking changes to the annotation spec set.
repeated string blocking_resources = 5;
- Specified by:
getBlockingResourcesCount
in interfaceAnnotationSpecSetOrBuilder
- 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 annotation spec set.
repeated string blocking_resources = 5;
- Specified by:
getBlockingResources
in interfaceAnnotationSpecSetOrBuilder
- 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 annotation spec set.
repeated string blocking_resources = 5;
- Specified by:
getBlockingResourcesBytes
in interfaceAnnotationSpecSetOrBuilder
- Parameters:
index
- The index of the value to return.- Returns:
- The bytes of the blockingResources at the given index.
-
setBlockingResources
public AnnotationSpecSet.Builder setBlockingResources(int index, String value)
Output only. The names of any related resources that are blocking changes to the annotation spec set.
repeated string blocking_resources = 5;
- Parameters:
index
- The index to set the value at.value
- The blockingResources to set.- Returns:
- This builder for chaining.
-
addBlockingResources
public AnnotationSpecSet.Builder addBlockingResources(String value)
Output only. The names of any related resources that are blocking changes to the annotation spec set.
repeated string blocking_resources = 5;
- Parameters:
value
- The blockingResources to add.- Returns:
- This builder for chaining.
-
addAllBlockingResources
public AnnotationSpecSet.Builder addAllBlockingResources(Iterable<String> values)
Output only. The names of any related resources that are blocking changes to the annotation spec set.
repeated string blocking_resources = 5;
- Parameters:
values
- The blockingResources to add.- Returns:
- This builder for chaining.
-
clearBlockingResources
public AnnotationSpecSet.Builder clearBlockingResources()
Output only. The names of any related resources that are blocking changes to the annotation spec set.
repeated string blocking_resources = 5;
- Returns:
- This builder for chaining.
-
addBlockingResourcesBytes
public AnnotationSpecSet.Builder addBlockingResourcesBytes(com.google.protobuf.ByteString value)
Output only. The names of any related resources that are blocking changes to the annotation spec set.
repeated string blocking_resources = 5;
- Parameters:
value
- The bytes of the blockingResources to add.- Returns:
- This builder for chaining.
-
setUnknownFields
public final AnnotationSpecSet.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<AnnotationSpecSet.Builder>
-
mergeUnknownFields
public final AnnotationSpecSet.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<AnnotationSpecSet.Builder>
-
-