Package com.google.cloud.automl.v1beta1
Class AnnotationSpec.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<AnnotationSpec.Builder>
-
- com.google.cloud.automl.v1beta1.AnnotationSpec.Builder
-
- All Implemented Interfaces:
AnnotationSpecOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- AnnotationSpec
public static final class AnnotationSpec.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<AnnotationSpec.Builder> implements AnnotationSpecOrBuilder
A definition of an annotation spec.
Protobuf typegoogle.cloud.automl.v1beta1.AnnotationSpec
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description AnnotationSpec.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)AnnotationSpecbuild()AnnotationSpecbuildPartial()AnnotationSpec.Builderclear()AnnotationSpec.BuilderclearDisplayName()Required.AnnotationSpec.BuilderclearExampleCount()Output only.AnnotationSpec.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)AnnotationSpec.BuilderclearName()Output only.AnnotationSpec.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)AnnotationSpec.Builderclone()AnnotationSpecgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()StringgetDisplayName()Required.com.google.protobuf.ByteStringgetDisplayNameBytes()Required.intgetExampleCount()Output only.StringgetName()Output only.com.google.protobuf.ByteStringgetNameBytes()Output only.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()AnnotationSpec.BuildermergeFrom(AnnotationSpec other)AnnotationSpec.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)AnnotationSpec.BuildermergeFrom(com.google.protobuf.Message other)AnnotationSpec.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)AnnotationSpec.BuildersetDisplayName(String value)Required.AnnotationSpec.BuildersetDisplayNameBytes(com.google.protobuf.ByteString value)Required.AnnotationSpec.BuildersetExampleCount(int value)Output only.AnnotationSpec.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)AnnotationSpec.BuildersetName(String value)Output only.AnnotationSpec.BuildersetNameBytes(com.google.protobuf.ByteString value)Output only.AnnotationSpec.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)AnnotationSpec.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)-
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:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<AnnotationSpec.Builder>
-
clear
public AnnotationSpec.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<AnnotationSpec.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<AnnotationSpec.Builder>
-
getDefaultInstanceForType
public AnnotationSpec getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public AnnotationSpec build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public AnnotationSpec buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public AnnotationSpec.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<AnnotationSpec.Builder>
-
setField
public AnnotationSpec.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<AnnotationSpec.Builder>
-
clearField
public AnnotationSpec.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<AnnotationSpec.Builder>
-
clearOneof
public AnnotationSpec.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<AnnotationSpec.Builder>
-
setRepeatedField
public AnnotationSpec.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<AnnotationSpec.Builder>
-
addRepeatedField
public AnnotationSpec.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<AnnotationSpec.Builder>
-
mergeFrom
public AnnotationSpec.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<AnnotationSpec.Builder>
-
mergeFrom
public AnnotationSpec.Builder mergeFrom(AnnotationSpec other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<AnnotationSpec.Builder>
-
mergeFrom
public AnnotationSpec.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<AnnotationSpec.Builder>- Throws:
IOException
-
getName
public 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;- Specified by:
getNamein interfaceAnnotationSpecOrBuilder- Returns:
- The name.
-
getNameBytes
public 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;- Specified by:
getNameBytesin interfaceAnnotationSpecOrBuilder- Returns:
- The bytes for name.
-
setName
public 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;- Parameters:
value- The name to set.- Returns:
- This builder for chaining.
-
clearName
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;- Returns:
- This builder for chaining.
-
setNameBytes
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;- Parameters:
value- The bytes for name to set.- Returns:
- This builder for chaining.
-
getDisplayName
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;- Specified by:
getDisplayNamein interfaceAnnotationSpecOrBuilder- Returns:
- The displayName.
-
getDisplayNameBytes
public 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;- Specified by:
getDisplayNameBytesin interfaceAnnotationSpecOrBuilder- Returns:
- The bytes for displayName.
-
setDisplayName
public 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;- Parameters:
value- The displayName to set.- Returns:
- This builder for chaining.
-
clearDisplayName
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;- Returns:
- This builder for chaining.
-
setDisplayNameBytes
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;- Parameters:
value- The bytes for displayName to set.- Returns:
- This builder for chaining.
-
getExampleCount
public int getExampleCount()
Output only. The number of examples in the parent dataset labeled by the annotation spec.
int32 example_count = 9;- Specified by:
getExampleCountin interfaceAnnotationSpecOrBuilder- Returns:
- The exampleCount.
-
setExampleCount
public AnnotationSpec.Builder setExampleCount(int value)
Output only. The number of examples in the parent dataset labeled by the annotation spec.
int32 example_count = 9;- Parameters:
value- The exampleCount to set.- Returns:
- This builder for chaining.
-
clearExampleCount
public AnnotationSpec.Builder clearExampleCount()
Output only. The number of examples in the parent dataset labeled by the annotation spec.
int32 example_count = 9;- Returns:
- This builder for chaining.
-
setUnknownFields
public final AnnotationSpec.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<AnnotationSpec.Builder>
-
mergeUnknownFields
public final AnnotationSpec.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<AnnotationSpec.Builder>
-
-