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
Inherited Members
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
Static Fields
ANNOTATION_SPECS_FIELD_NUMBER
public static final int ANNOTATION_SPECS_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
BLOCKING_RESOURCES_FIELD_NUMBER
public static final int BLOCKING_RESOURCES_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
DESCRIPTION_FIELD_NUMBER
public static final int DESCRIPTION_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
DISPLAY_NAME_FIELD_NUMBER
public static final int DISPLAY_NAME_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
NAME_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
Static Methods
getDefaultInstance()
public static AnnotationSpecSet getDefaultInstance()
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
newBuilder()
public static AnnotationSpecSet.Builder newBuilder()
newBuilder(AnnotationSpecSet prototype)
public static AnnotationSpecSet.Builder newBuilder(AnnotationSpecSet prototype)
public static AnnotationSpecSet parseDelimitedFrom(InputStream input)
public static AnnotationSpecSet parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(byte[] data)
public static AnnotationSpecSet parseFrom(byte[] data)
Parameter |
---|
Name | Description |
data | byte[]
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static AnnotationSpecSet parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteString data)
public static AnnotationSpecSet parseFrom(ByteString data)
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static AnnotationSpecSet parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static AnnotationSpecSet parseFrom(CodedInputStream input)
public static AnnotationSpecSet parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static AnnotationSpecSet parseFrom(InputStream input)
public static AnnotationSpecSet parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteBuffer data)
public static AnnotationSpecSet parseFrom(ByteBuffer data)
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static AnnotationSpecSet parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
parser()
public static Parser<AnnotationSpecSet> parser()
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter |
---|
Name | Description |
obj | Object
|
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 |
---|
Name | Description |
index | int
|
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 |
---|
Type | Description |
int | |
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;
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 |
---|
Name | Description |
index | int
|
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;
getDefaultInstanceForType()
public AnnotationSpecSet getDefaultInstanceForType()
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 |
---|
Type | Description |
ByteString | The bytes for name.
|
getParserForType()
public Parser<AnnotationSpecSet> getParserForType()
Overrides
getSerializedSize()
public int getSerializedSize()
Returns |
---|
Type | Description |
int | |
Overrides
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Overrides
hashCode()
Returns |
---|
Type | Description |
int | |
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
newBuilderForType()
public AnnotationSpecSet.Builder newBuilderForType()
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected AnnotationSpecSet.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Overrides
toBuilder()
public AnnotationSpecSet.Builder toBuilder()
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Overrides