Class ImageSegmentationAnnotation.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<ImageSegmentationAnnotation.Builder>
-
- com.google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotation.Builder
-
- All Implemented Interfaces:
ImageSegmentationAnnotationOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- ImageSegmentationAnnotation
public static final class ImageSegmentationAnnotation.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<ImageSegmentationAnnotation.Builder> implements ImageSegmentationAnnotationOrBuilder
Image segmentation annotation.
Protobuf typegoogle.cloud.datalabeling.v1beta1.ImageSegmentationAnnotation
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description ImageSegmentationAnnotation.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)ImageSegmentationAnnotationbuild()ImageSegmentationAnnotationbuildPartial()ImageSegmentationAnnotation.Builderclear()ImageSegmentationAnnotation.BuilderclearAnnotationColors()ImageSegmentationAnnotation.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)ImageSegmentationAnnotation.BuilderclearImageBytes()A byte string of a full image's color map.ImageSegmentationAnnotation.BuilderclearMimeType()Image format.ImageSegmentationAnnotation.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)ImageSegmentationAnnotation.Builderclone()booleancontainsAnnotationColors(String key)The mapping between rgb color and annotation spec.Map<String,AnnotationSpec>getAnnotationColors()Deprecated.intgetAnnotationColorsCount()The mapping between rgb color and annotation spec.Map<String,AnnotationSpec>getAnnotationColorsMap()The mapping between rgb color and annotation spec.AnnotationSpecgetAnnotationColorsOrDefault(String key, AnnotationSpec defaultValue)The mapping between rgb color and annotation spec.AnnotationSpecgetAnnotationColorsOrThrow(String key)The mapping between rgb color and annotation spec.ImageSegmentationAnnotationgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()com.google.protobuf.ByteStringgetImageBytes()A byte string of a full image's color map.StringgetMimeType()Image format.com.google.protobuf.ByteStringgetMimeTypeBytes()Image format.Map<String,AnnotationSpec>getMutableAnnotationColors()Deprecated.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()protected com.google.protobuf.MapFieldinternalGetMapField(int number)protected com.google.protobuf.MapFieldinternalGetMutableMapField(int number)booleanisInitialized()ImageSegmentationAnnotation.BuildermergeFrom(ImageSegmentationAnnotation other)ImageSegmentationAnnotation.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)ImageSegmentationAnnotation.BuildermergeFrom(com.google.protobuf.Message other)ImageSegmentationAnnotation.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)ImageSegmentationAnnotation.BuilderputAllAnnotationColors(Map<String,AnnotationSpec> values)The mapping between rgb color and annotation spec.ImageSegmentationAnnotation.BuilderputAnnotationColors(String key, AnnotationSpec value)The mapping between rgb color and annotation spec.ImageSegmentationAnnotation.BuilderremoveAnnotationColors(String key)The mapping between rgb color and annotation spec.ImageSegmentationAnnotation.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)ImageSegmentationAnnotation.BuildersetImageBytes(com.google.protobuf.ByteString value)A byte string of a full image's color map.ImageSegmentationAnnotation.BuildersetMimeType(String value)Image format.ImageSegmentationAnnotation.BuildersetMimeTypeBytes(com.google.protobuf.ByteString value)Image format.ImageSegmentationAnnotation.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)ImageSegmentationAnnotation.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, 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()
-
internalGetMapField
protected com.google.protobuf.MapField internalGetMapField(int number)
- Overrides:
internalGetMapFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<ImageSegmentationAnnotation.Builder>
-
internalGetMutableMapField
protected com.google.protobuf.MapField internalGetMutableMapField(int number)
- Overrides:
internalGetMutableMapFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<ImageSegmentationAnnotation.Builder>
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<ImageSegmentationAnnotation.Builder>
-
clear
public ImageSegmentationAnnotation.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<ImageSegmentationAnnotation.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<ImageSegmentationAnnotation.Builder>
-
getDefaultInstanceForType
public ImageSegmentationAnnotation getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public ImageSegmentationAnnotation build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public ImageSegmentationAnnotation buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public ImageSegmentationAnnotation.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<ImageSegmentationAnnotation.Builder>
-
setField
public ImageSegmentationAnnotation.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<ImageSegmentationAnnotation.Builder>
-
clearField
public ImageSegmentationAnnotation.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<ImageSegmentationAnnotation.Builder>
-
clearOneof
public ImageSegmentationAnnotation.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<ImageSegmentationAnnotation.Builder>
-
setRepeatedField
public ImageSegmentationAnnotation.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<ImageSegmentationAnnotation.Builder>
-
addRepeatedField
public ImageSegmentationAnnotation.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<ImageSegmentationAnnotation.Builder>
-
mergeFrom
public ImageSegmentationAnnotation.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<ImageSegmentationAnnotation.Builder>
-
mergeFrom
public ImageSegmentationAnnotation.Builder mergeFrom(ImageSegmentationAnnotation other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<ImageSegmentationAnnotation.Builder>
-
mergeFrom
public ImageSegmentationAnnotation.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<ImageSegmentationAnnotation.Builder>- Throws:
IOException
-
getAnnotationColorsCount
public int getAnnotationColorsCount()
Description copied from interface:ImageSegmentationAnnotationOrBuilderThe mapping between rgb color and annotation spec. The key is the rgb color represented in format of rgb(0, 0, 0). The value is the AnnotationSpec.
map<string, .google.cloud.datalabeling.v1beta1.AnnotationSpec> annotation_colors = 1;- Specified by:
getAnnotationColorsCountin interfaceImageSegmentationAnnotationOrBuilder
-
containsAnnotationColors
public boolean containsAnnotationColors(String key)
The mapping between rgb color and annotation spec. The key is the rgb color represented in format of rgb(0, 0, 0). The value is the AnnotationSpec.
map<string, .google.cloud.datalabeling.v1beta1.AnnotationSpec> annotation_colors = 1;- Specified by:
containsAnnotationColorsin interfaceImageSegmentationAnnotationOrBuilder
-
getAnnotationColors
@Deprecated public Map<String,AnnotationSpec> getAnnotationColors()
Deprecated.UsegetAnnotationColorsMap()instead.- Specified by:
getAnnotationColorsin interfaceImageSegmentationAnnotationOrBuilder
-
getAnnotationColorsMap
public Map<String,AnnotationSpec> getAnnotationColorsMap()
The mapping between rgb color and annotation spec. The key is the rgb color represented in format of rgb(0, 0, 0). The value is the AnnotationSpec.
map<string, .google.cloud.datalabeling.v1beta1.AnnotationSpec> annotation_colors = 1;- Specified by:
getAnnotationColorsMapin interfaceImageSegmentationAnnotationOrBuilder
-
getAnnotationColorsOrDefault
public AnnotationSpec getAnnotationColorsOrDefault(String key, AnnotationSpec defaultValue)
The mapping between rgb color and annotation spec. The key is the rgb color represented in format of rgb(0, 0, 0). The value is the AnnotationSpec.
map<string, .google.cloud.datalabeling.v1beta1.AnnotationSpec> annotation_colors = 1;- Specified by:
getAnnotationColorsOrDefaultin interfaceImageSegmentationAnnotationOrBuilder
-
getAnnotationColorsOrThrow
public AnnotationSpec getAnnotationColorsOrThrow(String key)
The mapping between rgb color and annotation spec. The key is the rgb color represented in format of rgb(0, 0, 0). The value is the AnnotationSpec.
map<string, .google.cloud.datalabeling.v1beta1.AnnotationSpec> annotation_colors = 1;- Specified by:
getAnnotationColorsOrThrowin interfaceImageSegmentationAnnotationOrBuilder
-
clearAnnotationColors
public ImageSegmentationAnnotation.Builder clearAnnotationColors()
-
removeAnnotationColors
public ImageSegmentationAnnotation.Builder removeAnnotationColors(String key)
The mapping between rgb color and annotation spec. The key is the rgb color represented in format of rgb(0, 0, 0). The value is the AnnotationSpec.
map<string, .google.cloud.datalabeling.v1beta1.AnnotationSpec> annotation_colors = 1;
-
getMutableAnnotationColors
@Deprecated public Map<String,AnnotationSpec> getMutableAnnotationColors()
Deprecated.Use alternate mutation accessors instead.
-
putAnnotationColors
public ImageSegmentationAnnotation.Builder putAnnotationColors(String key, AnnotationSpec value)
The mapping between rgb color and annotation spec. The key is the rgb color represented in format of rgb(0, 0, 0). The value is the AnnotationSpec.
map<string, .google.cloud.datalabeling.v1beta1.AnnotationSpec> annotation_colors = 1;
-
putAllAnnotationColors
public ImageSegmentationAnnotation.Builder putAllAnnotationColors(Map<String,AnnotationSpec> values)
The mapping between rgb color and annotation spec. The key is the rgb color represented in format of rgb(0, 0, 0). The value is the AnnotationSpec.
map<string, .google.cloud.datalabeling.v1beta1.AnnotationSpec> annotation_colors = 1;
-
getMimeType
public String getMimeType()
Image format.
string mime_type = 2;- Specified by:
getMimeTypein interfaceImageSegmentationAnnotationOrBuilder- Returns:
- The mimeType.
-
getMimeTypeBytes
public com.google.protobuf.ByteString getMimeTypeBytes()
Image format.
string mime_type = 2;- Specified by:
getMimeTypeBytesin interfaceImageSegmentationAnnotationOrBuilder- Returns:
- The bytes for mimeType.
-
setMimeType
public ImageSegmentationAnnotation.Builder setMimeType(String value)
Image format.
string mime_type = 2;- Parameters:
value- The mimeType to set.- Returns:
- This builder for chaining.
-
clearMimeType
public ImageSegmentationAnnotation.Builder clearMimeType()
Image format.
string mime_type = 2;- Returns:
- This builder for chaining.
-
setMimeTypeBytes
public ImageSegmentationAnnotation.Builder setMimeTypeBytes(com.google.protobuf.ByteString value)
Image format.
string mime_type = 2;- Parameters:
value- The bytes for mimeType to set.- Returns:
- This builder for chaining.
-
getImageBytes
public com.google.protobuf.ByteString getImageBytes()
A byte string of a full image's color map.
bytes image_bytes = 3;- Specified by:
getImageBytesin interfaceImageSegmentationAnnotationOrBuilder- Returns:
- The imageBytes.
-
setImageBytes
public ImageSegmentationAnnotation.Builder setImageBytes(com.google.protobuf.ByteString value)
A byte string of a full image's color map.
bytes image_bytes = 3;- Parameters:
value- The imageBytes to set.- Returns:
- This builder for chaining.
-
clearImageBytes
public ImageSegmentationAnnotation.Builder clearImageBytes()
A byte string of a full image's color map.
bytes image_bytes = 3;- Returns:
- This builder for chaining.
-
setUnknownFields
public final ImageSegmentationAnnotation.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<ImageSegmentationAnnotation.Builder>
-
mergeUnknownFields
public final ImageSegmentationAnnotation.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<ImageSegmentationAnnotation.Builder>
-
-