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.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
ImageSegmentationAnnotation
build()
ImageSegmentationAnnotation
buildPartial()
ImageSegmentationAnnotation.Builder
clear()
ImageSegmentationAnnotation.Builder
clearAnnotationColors()
ImageSegmentationAnnotation.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
ImageSegmentationAnnotation.Builder
clearImageBytes()
A byte string of a full image's color map.ImageSegmentationAnnotation.Builder
clearMimeType()
Image format.ImageSegmentationAnnotation.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
ImageSegmentationAnnotation.Builder
clone()
boolean
containsAnnotationColors(String key)
The mapping between rgb color and annotation spec.Map<String,AnnotationSpec>
getAnnotationColors()
Deprecated.int
getAnnotationColorsCount()
The mapping between rgb color and annotation spec.Map<String,AnnotationSpec>
getAnnotationColorsMap()
The mapping between rgb color and annotation spec.AnnotationSpec
getAnnotationColorsOrDefault(String key, AnnotationSpec defaultValue)
The mapping between rgb color and annotation spec.AnnotationSpec
getAnnotationColorsOrThrow(String key)
The mapping between rgb color and annotation spec.ImageSegmentationAnnotation
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
com.google.protobuf.ByteString
getImageBytes()
A byte string of a full image's color map.String
getMimeType()
Image format.com.google.protobuf.ByteString
getMimeTypeBytes()
Image format.Map<String,AnnotationSpec>
getMutableAnnotationColors()
Deprecated.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
protected com.google.protobuf.MapField
internalGetMapField(int number)
protected com.google.protobuf.MapField
internalGetMutableMapField(int number)
boolean
isInitialized()
ImageSegmentationAnnotation.Builder
mergeFrom(ImageSegmentationAnnotation other)
ImageSegmentationAnnotation.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
ImageSegmentationAnnotation.Builder
mergeFrom(com.google.protobuf.Message other)
ImageSegmentationAnnotation.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
ImageSegmentationAnnotation.Builder
putAllAnnotationColors(Map<String,AnnotationSpec> values)
The mapping between rgb color and annotation spec.ImageSegmentationAnnotation.Builder
putAnnotationColors(String key, AnnotationSpec value)
The mapping between rgb color and annotation spec.ImageSegmentationAnnotation.Builder
removeAnnotationColors(String key)
The mapping between rgb color and annotation spec.ImageSegmentationAnnotation.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
ImageSegmentationAnnotation.Builder
setImageBytes(com.google.protobuf.ByteString value)
A byte string of a full image's color map.ImageSegmentationAnnotation.Builder
setMimeType(String value)
Image format.ImageSegmentationAnnotation.Builder
setMimeTypeBytes(com.google.protobuf.ByteString value)
Image format.ImageSegmentationAnnotation.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
ImageSegmentationAnnotation.Builder
setUnknownFields(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:
internalGetMapField
in classcom.google.protobuf.GeneratedMessageV3.Builder<ImageSegmentationAnnotation.Builder>
-
internalGetMutableMapField
protected com.google.protobuf.MapField internalGetMutableMapField(int number)
- Overrides:
internalGetMutableMapField
in classcom.google.protobuf.GeneratedMessageV3.Builder<ImageSegmentationAnnotation.Builder>
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<ImageSegmentationAnnotation.Builder>
-
clear
public ImageSegmentationAnnotation.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<ImageSegmentationAnnotation.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<ImageSegmentationAnnotation.Builder>
-
getDefaultInstanceForType
public ImageSegmentationAnnotation getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public ImageSegmentationAnnotation build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public ImageSegmentationAnnotation buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public ImageSegmentationAnnotation.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<ImageSegmentationAnnotation.Builder>
-
setField
public ImageSegmentationAnnotation.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<ImageSegmentationAnnotation.Builder>
-
clearField
public ImageSegmentationAnnotation.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<ImageSegmentationAnnotation.Builder>
-
clearOneof
public ImageSegmentationAnnotation.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<ImageSegmentationAnnotation.Builder>
-
setRepeatedField
public ImageSegmentationAnnotation.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<ImageSegmentationAnnotation.Builder>
-
addRepeatedField
public ImageSegmentationAnnotation.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<ImageSegmentationAnnotation.Builder>
-
mergeFrom
public ImageSegmentationAnnotation.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<ImageSegmentationAnnotation.Builder>
-
mergeFrom
public ImageSegmentationAnnotation.Builder mergeFrom(ImageSegmentationAnnotation other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in 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:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<ImageSegmentationAnnotation.Builder>
- Throws:
IOException
-
getAnnotationColorsCount
public int getAnnotationColorsCount()
Description copied from interface:ImageSegmentationAnnotationOrBuilder
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:
getAnnotationColorsCount
in 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:
containsAnnotationColors
in interfaceImageSegmentationAnnotationOrBuilder
-
getAnnotationColors
@Deprecated public Map<String,AnnotationSpec> getAnnotationColors()
Deprecated.UsegetAnnotationColorsMap()
instead.- Specified by:
getAnnotationColors
in 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:
getAnnotationColorsMap
in 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:
getAnnotationColorsOrDefault
in 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:
getAnnotationColorsOrThrow
in 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:
getMimeType
in interfaceImageSegmentationAnnotationOrBuilder
- Returns:
- The mimeType.
-
getMimeTypeBytes
public com.google.protobuf.ByteString getMimeTypeBytes()
Image format.
string mime_type = 2;
- Specified by:
getMimeTypeBytes
in 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:
getImageBytes
in 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:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<ImageSegmentationAnnotation.Builder>
-
mergeUnknownFields
public final ImageSegmentationAnnotation.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<ImageSegmentationAnnotation.Builder>
-
-