public static final class AnnotationSpec.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<AnnotationSpec.Builder> implements AnnotationSpecOrBuilder
Container of information related to one annotation spec.Protobuf type
google.cloud.datalabeling.v1beta1.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 |
clearDescription()
Optional.
|
AnnotationSpec.Builder |
clearDisplayName()
Required.
|
AnnotationSpec.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
AnnotationSpec.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
AnnotationSpec.Builder |
clone() |
AnnotationSpec |
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.
|
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 |
setDescription(String value)
Optional.
|
AnnotationSpec.Builder |
setDescriptionBytes(com.google.protobuf.ByteString value)
Optional.
|
AnnotationSpec.Builder |
setDisplayName(String value)
Required.
|
AnnotationSpec.Builder |
setDisplayNameBytes(com.google.protobuf.ByteString value)
Required.
|
AnnotationSpec.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
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, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeFrom, 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 getDisplayName()
Required. The display name of the AnnotationSpec. Maximum of 64 characters.
string display_name = 1;getDisplayName in interface AnnotationSpecOrBuilderpublic com.google.protobuf.ByteString getDisplayNameBytes()
Required. The display name of the AnnotationSpec. Maximum of 64 characters.
string display_name = 1;getDisplayNameBytes in interface AnnotationSpecOrBuilderpublic AnnotationSpec.Builder setDisplayName(String value)
Required. The display name of the AnnotationSpec. Maximum of 64 characters.
string display_name = 1;public AnnotationSpec.Builder clearDisplayName()
Required. The display name of the AnnotationSpec. Maximum of 64 characters.
string display_name = 1;public AnnotationSpec.Builder setDisplayNameBytes(com.google.protobuf.ByteString value)
Required. The display name of the AnnotationSpec. Maximum of 64 characters.
string display_name = 1;public String getDescription()
Optional. User-provided description of the annotation specification. The description can be up to 10000 characters long.
string description = 2;getDescription in interface AnnotationSpecOrBuilderpublic com.google.protobuf.ByteString getDescriptionBytes()
Optional. User-provided description of the annotation specification. The description can be up to 10000 characters long.
string description = 2;getDescriptionBytes in interface AnnotationSpecOrBuilderpublic AnnotationSpec.Builder setDescription(String value)
Optional. User-provided description of the annotation specification. The description can be up to 10000 characters long.
string description = 2;public AnnotationSpec.Builder clearDescription()
Optional. User-provided description of the annotation specification. The description can be up to 10000 characters long.
string description = 2;public AnnotationSpec.Builder setDescriptionBytes(com.google.protobuf.ByteString value)
Optional. User-provided description of the annotation specification. The description can be up to 10000 characters long.
string description = 2;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 © 2019 Google LLC. All rights reserved.