public static final class ImageSegmentationAnnotation.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<ImageSegmentationAnnotation.Builder> implements ImageSegmentationAnnotationOrBuilder
Image segmentation annotation.Protobuf type
google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotation| Modifier and Type | Method and 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(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
ImageSegmentationAnnotation.Builder |
mergeFrom(ImageSegmentationAnnotation other) |
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) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.MapField internalGetMapField(int number)
internalGetMapField in class com.google.protobuf.GeneratedMessageV3.Builder<ImageSegmentationAnnotation.Builder>protected com.google.protobuf.MapField internalGetMutableMapField(int number)
internalGetMutableMapField in class com.google.protobuf.GeneratedMessageV3.Builder<ImageSegmentationAnnotation.Builder>protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<ImageSegmentationAnnotation.Builder>public ImageSegmentationAnnotation.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<ImageSegmentationAnnotation.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<ImageSegmentationAnnotation.Builder>public ImageSegmentationAnnotation getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic ImageSegmentationAnnotation build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic ImageSegmentationAnnotation buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic ImageSegmentationAnnotation.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<ImageSegmentationAnnotation.Builder>public ImageSegmentationAnnotation.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<ImageSegmentationAnnotation.Builder>public ImageSegmentationAnnotation.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<ImageSegmentationAnnotation.Builder>public ImageSegmentationAnnotation.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<ImageSegmentationAnnotation.Builder>public ImageSegmentationAnnotation.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<ImageSegmentationAnnotation.Builder>public ImageSegmentationAnnotation.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<ImageSegmentationAnnotation.Builder>public ImageSegmentationAnnotation.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<ImageSegmentationAnnotation.Builder>public ImageSegmentationAnnotation.Builder mergeFrom(ImageSegmentationAnnotation other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<ImageSegmentationAnnotation.Builder>public ImageSegmentationAnnotation.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<ImageSegmentationAnnotation.Builder>IOExceptionpublic int getAnnotationColorsCount()
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;
getAnnotationColorsCount in interface ImageSegmentationAnnotationOrBuilderpublic 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;
containsAnnotationColors in interface ImageSegmentationAnnotationOrBuilder@Deprecated public Map<String,AnnotationSpec> getAnnotationColors()
getAnnotationColorsMap() instead.getAnnotationColors in interface ImageSegmentationAnnotationOrBuilderpublic 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;
getAnnotationColorsMap in interface ImageSegmentationAnnotationOrBuilderpublic 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;
getAnnotationColorsOrDefault in interface ImageSegmentationAnnotationOrBuilderpublic 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;
getAnnotationColorsOrThrow in interface ImageSegmentationAnnotationOrBuilderpublic ImageSegmentationAnnotation.Builder clearAnnotationColors()
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;
@Deprecated public Map<String,AnnotationSpec> getMutableAnnotationColors()
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;
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;
public String getMimeType()
Image format.
string mime_type = 2;getMimeType in interface ImageSegmentationAnnotationOrBuilderpublic com.google.protobuf.ByteString getMimeTypeBytes()
Image format.
string mime_type = 2;getMimeTypeBytes in interface ImageSegmentationAnnotationOrBuilderpublic ImageSegmentationAnnotation.Builder setMimeType(String value)
Image format.
string mime_type = 2;public ImageSegmentationAnnotation.Builder clearMimeType()
Image format.
string mime_type = 2;public ImageSegmentationAnnotation.Builder setMimeTypeBytes(com.google.protobuf.ByteString value)
Image format.
string mime_type = 2;public com.google.protobuf.ByteString getImageBytes()
A byte string of a full image's color map.
bytes image_bytes = 3;getImageBytes in interface ImageSegmentationAnnotationOrBuilderpublic ImageSegmentationAnnotation.Builder setImageBytes(com.google.protobuf.ByteString value)
A byte string of a full image's color map.
bytes image_bytes = 3;public ImageSegmentationAnnotation.Builder clearImageBytes()
A byte string of a full image's color map.
bytes image_bytes = 3;public final ImageSegmentationAnnotation.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<ImageSegmentationAnnotation.Builder>public final ImageSegmentationAnnotation.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<ImageSegmentationAnnotation.Builder>Copyright © 2019 Google LLC. All rights reserved.