public final class AnnotationSpecSet extends GeneratedMessageV3 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 type google.cloud.datalabeling.v1beta1.AnnotationSpecSet
Static Fields
ANNOTATION_SPECS_FIELD_NUMBER
public static final int ANNOTATION_SPECS_FIELD_NUMBER
Field Value
BLOCKING_RESOURCES_FIELD_NUMBER
public static final int BLOCKING_RESOURCES_FIELD_NUMBER
Field Value
DESCRIPTION_FIELD_NUMBER
public static final int DESCRIPTION_FIELD_NUMBER
Field Value
DISPLAY_NAME_FIELD_NUMBER
public static final int DISPLAY_NAME_FIELD_NUMBER
Field Value
NAME_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER
Field Value
Static Methods
getDefaultInstance()
public static AnnotationSpecSet getDefaultInstance()
Returns
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
newBuilder()
public static AnnotationSpecSet.Builder newBuilder()
Returns
newBuilder(AnnotationSpecSet prototype)
public static AnnotationSpecSet.Builder newBuilder(AnnotationSpecSet prototype)
Parameter
Returns
public static AnnotationSpecSet parseDelimitedFrom(InputStream input)
Parameter
Returns
Exceptions
public static AnnotationSpecSet parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(byte[] data)
public static AnnotationSpecSet parseFrom(byte[] data)
Parameter
Name | Description |
data | byte[]
|
Returns
Exceptions
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static AnnotationSpecSet parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteString data)
public static AnnotationSpecSet parseFrom(ByteString data)
Parameter
Returns
Exceptions
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static AnnotationSpecSet parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static AnnotationSpecSet parseFrom(CodedInputStream input)
Parameter
Returns
Exceptions
public static AnnotationSpecSet parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static AnnotationSpecSet parseFrom(InputStream input)
Parameter
Returns
Exceptions
public static AnnotationSpecSet parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteBuffer data)
public static AnnotationSpecSet parseFrom(ByteBuffer data)
Parameter
Returns
Exceptions
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static AnnotationSpecSet parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parser()
public static Parser<AnnotationSpecSet> parser()
Returns
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter
Returns
Overrides
getAnnotationSpecs(int index)
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;
Parameter
Returns
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;
Returns
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;
Returns
getAnnotationSpecsOrBuilder(int index)
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;
Parameter
Returns
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;
Returns
Type | Description |
List<? extends com.google.cloud.datalabeling.v1beta1.AnnotationSpecOrBuilder> | |
getBlockingResources(int index)
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;
Parameter
Name | Description |
index | int
The index of the element to return.
|
Returns
Type | Description |
String | The blockingResources at the given index.
|
getBlockingResourcesBytes(int index)
public 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;
Parameter
Name | Description |
index | int
The index of the value to return.
|
Returns
Type | Description |
ByteString | The bytes of the blockingResources at the given index.
|
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;
Returns
Type | Description |
int | The count of blockingResources.
|
getBlockingResourcesList()
public ProtocolStringList getBlockingResourcesList()
Output only. The names of any related resources that are blocking changes
to the annotation spec set.
repeated string blocking_resources = 5;
Returns
getDefaultInstanceForType()
public AnnotationSpecSet getDefaultInstanceForType()
Returns
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;
Returns
Type | Description |
String | The description.
|
getDescriptionBytes()
public ByteString getDescriptionBytes()
Optional. User-provided description of the annotation specification set.
The description can be up to 10,000 characters long.
string description = 3;
Returns
Type | Description |
ByteString | The bytes for description.
|
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;
Returns
Type | Description |
String | The displayName.
|
getDisplayNameBytes()
public ByteString getDisplayNameBytes()
Required. The display name for AnnotationSpecSet that you define when you
create it. Maximum of 64 characters.
string display_name = 2;
Returns
Type | Description |
ByteString | The bytes for displayName.
|
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;
Returns
Type | Description |
String | The name.
|
getNameBytes()
public 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;
Returns
getParserForType()
public Parser<AnnotationSpecSet> getParserForType()
Returns
Overrides
getSerializedSize()
public int getSerializedSize()
Returns
Overrides
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Returns
Overrides
hashCode()
Returns
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
newBuilderForType()
public AnnotationSpecSet.Builder newBuilderForType()
Returns
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected AnnotationSpecSet.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Returns
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Returns
Overrides
toBuilder()
public AnnotationSpecSet.Builder toBuilder()
Returns
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Parameter
Overrides
Exceptions