public static final class ImageSegmentationAnnotation.Builder extends GeneratedMessageV3.Builder<ImageSegmentationAnnotation.Builder> implements ImageSegmentationAnnotationOrBuilder
Image segmentation annotation.
Protobuf type google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotation
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public ImageSegmentationAnnotation.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
build()
public ImageSegmentationAnnotation build()
Returns
buildPartial()
public ImageSegmentationAnnotation buildPartial()
Returns
clear()
public ImageSegmentationAnnotation.Builder clear()
Returns
Overrides
clearAnnotationColors()
public ImageSegmentationAnnotation.Builder clearAnnotationColors()
Returns
clearField(Descriptors.FieldDescriptor field)
public ImageSegmentationAnnotation.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
clearImageBytes()
public ImageSegmentationAnnotation.Builder clearImageBytes()
A byte string of a full image's color map.
bytes image_bytes = 3;
Returns
clearMimeType()
public ImageSegmentationAnnotation.Builder clearMimeType()
Image format.
string mime_type = 2;
Returns
clearOneof(Descriptors.OneofDescriptor oneof)
public ImageSegmentationAnnotation.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
clone()
public ImageSegmentationAnnotation.Builder clone()
Returns
Overrides
containsAnnotationColors(String key)
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;
Parameter
Returns
getAnnotationColors()
public Map<String,AnnotationSpec> getAnnotationColors()
Returns
getAnnotationColorsCount()
public int getAnnotationColorsCount()
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;
Returns
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;
Returns
getAnnotationColorsOrDefault(String key, AnnotationSpec defaultValue)
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;
Parameters
Returns
getAnnotationColorsOrThrow(String key)
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;
Parameter
Returns
getDefaultInstanceForType()
public ImageSegmentationAnnotation getDefaultInstanceForType()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
Overrides
getImageBytes()
public ByteString getImageBytes()
A byte string of a full image's color map.
bytes image_bytes = 3;
Returns
getMimeType()
public String getMimeType()
Image format.
string mime_type = 2;
Returns
Type | Description |
String | The mimeType.
|
getMimeTypeBytes()
public ByteString getMimeTypeBytes()
Image format.
string mime_type = 2;
Returns
getMutableAnnotationColors()
public Map<String,AnnotationSpec> getMutableAnnotationColors()
Use alternate mutation accessors instead.
Returns
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
internalGetMapField(int number)
protected MapField internalGetMapField(int number)
Parameter
Returns
Overrides
internalGetMutableMapField(int number)
protected MapField internalGetMutableMapField(int number)
Parameter
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
mergeFrom(ImageSegmentationAnnotation other)
public ImageSegmentationAnnotation.Builder mergeFrom(ImageSegmentationAnnotation other)
Parameter
Returns
public ImageSegmentationAnnotation.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public ImageSegmentationAnnotation.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final ImageSegmentationAnnotation.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
putAllAnnotationColors(Map<String,AnnotationSpec> values)
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;
Parameter
Returns
putAnnotationColors(String key, AnnotationSpec value)
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;
Parameters
Returns
removeAnnotationColors(String key)
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;
Parameter
Returns
setField(Descriptors.FieldDescriptor field, Object value)
public ImageSegmentationAnnotation.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
setImageBytes(ByteString value)
public ImageSegmentationAnnotation.Builder setImageBytes(ByteString value)
A byte string of a full image's color map.
bytes image_bytes = 3;
Parameter
Name | Description |
value | ByteString
The imageBytes to set.
|
Returns
setMimeType(String value)
public ImageSegmentationAnnotation.Builder setMimeType(String value)
Image format.
string mime_type = 2;
Parameter
Name | Description |
value | String
The mimeType to set.
|
Returns
setMimeTypeBytes(ByteString value)
public ImageSegmentationAnnotation.Builder setMimeTypeBytes(ByteString value)
Image format.
string mime_type = 2;
Parameter
Name | Description |
value | ByteString
The bytes for mimeType to set.
|
Returns
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public ImageSegmentationAnnotation.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final ImageSegmentationAnnotation.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides