public static final class AnnotationSpec.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<AnnotationSpec.Builder> implements AnnotationSpecOrBuilder
A definition of an annotation spec.Protobuf type
google.cloud.automl.v1.AnnotationSpec| Modifier and Type | Method and Description |
|---|---|
AnnotationSpec.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
AnnotationSpec |
build() |
AnnotationSpec |
buildPartial() |
AnnotationSpec.Builder |
clear() |
AnnotationSpec.Builder |
clearDisplayName()
Required.
|
AnnotationSpec.Builder |
clearExampleCount()
Output only.
|
AnnotationSpec.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
AnnotationSpec.Builder |
clearName()
Output only.
|
AnnotationSpec.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
AnnotationSpec.Builder |
clone() |
AnnotationSpec |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
String |
getDisplayName()
Required.
|
com.google.protobuf.ByteString |
getDisplayNameBytes()
Required.
|
int |
getExampleCount()
Output only.
|
String |
getName()
Output only.
|
com.google.protobuf.ByteString |
getNameBytes()
Output only.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
AnnotationSpec.Builder |
mergeFrom(AnnotationSpec other) |
AnnotationSpec.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
AnnotationSpec.Builder |
mergeFrom(com.google.protobuf.Message other) |
AnnotationSpec.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
AnnotationSpec.Builder |
setDisplayName(String value)
Required.
|
AnnotationSpec.Builder |
setDisplayNameBytes(com.google.protobuf.ByteString value)
Required.
|
AnnotationSpec.Builder |
setExampleCount(int value)
Output only.
|
AnnotationSpec.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
AnnotationSpec.Builder |
setName(String value)
Output only.
|
AnnotationSpec.Builder |
setNameBytes(com.google.protobuf.ByteString value)
Output only.
|
AnnotationSpec.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
AnnotationSpec.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<AnnotationSpec.Builder>public AnnotationSpec.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<AnnotationSpec.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<AnnotationSpec.Builder>public AnnotationSpec getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic AnnotationSpec build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic AnnotationSpec buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic AnnotationSpec.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<AnnotationSpec.Builder>public AnnotationSpec.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<AnnotationSpec.Builder>public AnnotationSpec.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<AnnotationSpec.Builder>public AnnotationSpec.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<AnnotationSpec.Builder>public AnnotationSpec.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<AnnotationSpec.Builder>public AnnotationSpec.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<AnnotationSpec.Builder>public AnnotationSpec.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<AnnotationSpec.Builder>public AnnotationSpec.Builder mergeFrom(AnnotationSpec other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<AnnotationSpec.Builder>public AnnotationSpec.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<AnnotationSpec.Builder>IOExceptionpublic String getName()
Output only. Resource name of the annotation spec.
Form:
'projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/annotationSpecs/{annotation_spec_id}'
string name = 1;getName in interface AnnotationSpecOrBuilderpublic com.google.protobuf.ByteString getNameBytes()
Output only. Resource name of the annotation spec.
Form:
'projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/annotationSpecs/{annotation_spec_id}'
string name = 1;getNameBytes in interface AnnotationSpecOrBuilderpublic AnnotationSpec.Builder setName(String value)
Output only. Resource name of the annotation spec.
Form:
'projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/annotationSpecs/{annotation_spec_id}'
string name = 1;value - The name to set.public AnnotationSpec.Builder clearName()
Output only. Resource name of the annotation spec.
Form:
'projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/annotationSpecs/{annotation_spec_id}'
string name = 1;public AnnotationSpec.Builder setNameBytes(com.google.protobuf.ByteString value)
Output only. Resource name of the annotation spec.
Form:
'projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/annotationSpecs/{annotation_spec_id}'
string name = 1;value - The bytes for name to set.public String getDisplayName()
Required. The name of the annotation spec to show in the interface. The name can be up to 32 characters long and must match the regexp `[a-zA-Z0-9_]+`.
string display_name = 2;getDisplayName in interface AnnotationSpecOrBuilderpublic com.google.protobuf.ByteString getDisplayNameBytes()
Required. The name of the annotation spec to show in the interface. The name can be up to 32 characters long and must match the regexp `[a-zA-Z0-9_]+`.
string display_name = 2;getDisplayNameBytes in interface AnnotationSpecOrBuilderpublic AnnotationSpec.Builder setDisplayName(String value)
Required. The name of the annotation spec to show in the interface. The name can be up to 32 characters long and must match the regexp `[a-zA-Z0-9_]+`.
string display_name = 2;value - The displayName to set.public AnnotationSpec.Builder clearDisplayName()
Required. The name of the annotation spec to show in the interface. The name can be up to 32 characters long and must match the regexp `[a-zA-Z0-9_]+`.
string display_name = 2;public AnnotationSpec.Builder setDisplayNameBytes(com.google.protobuf.ByteString value)
Required. The name of the annotation spec to show in the interface. The name can be up to 32 characters long and must match the regexp `[a-zA-Z0-9_]+`.
string display_name = 2;value - The bytes for displayName to set.public int getExampleCount()
Output only. The number of examples in the parent dataset labeled by the annotation spec.
int32 example_count = 9;getExampleCount in interface AnnotationSpecOrBuilderpublic AnnotationSpec.Builder setExampleCount(int value)
Output only. The number of examples in the parent dataset labeled by the annotation spec.
int32 example_count = 9;value - The exampleCount to set.public AnnotationSpec.Builder clearExampleCount()
Output only. The number of examples in the parent dataset labeled by the annotation spec.
int32 example_count = 9;public final AnnotationSpec.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<AnnotationSpec.Builder>public final AnnotationSpec.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<AnnotationSpec.Builder>Copyright © 2025 Google LLC. All rights reserved.