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