Class ImageSegmentationAnnotation.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.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.GeneratedMessage.Builder<ImageSegmentationAnnotation.Builder>
implements ImageSegmentationAnnotationOrBuilder
Image segmentation annotation.Protobuf type
google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotation-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()A byte string of a full image's color map.Image format.booleanThe mapping between rgb color and annotation spec.Deprecated.intThe mapping between rgb color and annotation spec.The mapping between rgb color and annotation spec.getAnnotationColorsOrDefault(String key, AnnotationSpec defaultValue) The mapping between rgb color and annotation spec.The mapping between rgb color and annotation spec.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.Descriptorcom.google.protobuf.ByteStringA byte string of a full image's color map.Image format.com.google.protobuf.ByteStringImage format.Deprecated.protected com.google.protobuf.GeneratedMessage.FieldAccessorTableprotected com.google.protobuf.MapFieldReflectionAccessorinternalGetMapFieldReflection(int number) protected com.google.protobuf.MapFieldReflectionAccessorinternalGetMutableMapFieldReflection(int number) final booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) putAllAnnotationColors(Map<String, AnnotationSpec> values) The mapping between rgb color and annotation spec.putAnnotationColors(String key, AnnotationSpec value) The mapping between rgb color and annotation spec.The mapping between rgb color and annotation spec.The mapping between rgb color and annotation spec.setImageBytes(com.google.protobuf.ByteString value) A byte string of a full image's color map.setMimeType(String value) Image format.setMimeTypeBytes(com.google.protobuf.ByteString value) Image format.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number) - Overrides:
internalGetMapFieldReflectionin classcom.google.protobuf.GeneratedMessage.Builder<ImageSegmentationAnnotation.Builder>
-
internalGetMutableMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number) - Overrides:
internalGetMutableMapFieldReflectionin classcom.google.protobuf.GeneratedMessage.Builder<ImageSegmentationAnnotation.Builder>
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<ImageSegmentationAnnotation.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.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.GeneratedMessage.Builder<ImageSegmentationAnnotation.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<ImageSegmentationAnnotation.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.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
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.UsegetAnnotationColorsMap()instead.- Specified by:
getAnnotationColorsin interfaceImageSegmentationAnnotationOrBuilder
-
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
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
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
-
removeAnnotationColors
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.Use alternate mutation accessors instead. -
putAnnotationColors
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; -
putAnnotationColorsBuilderIfAbsent
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
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
Image format.
string mime_type = 2;- Parameters:
value- The mimeType to set.- Returns:
- This builder for chaining.
-
clearMimeType
Image format.
string mime_type = 2;- Returns:
- This builder for chaining.
-
setMimeTypeBytes
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
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
A byte string of a full image's color map.
bytes image_bytes = 3;- Returns:
- This builder for chaining.
-