Interface ImageSegmentationAnnotationOrBuilder

All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder
All Known Implementing Classes:
ImageSegmentationAnnotation, ImageSegmentationAnnotation.Builder

@Generated public interface ImageSegmentationAnnotationOrBuilder extends com.google.protobuf.MessageOrBuilder
  • Method Details

    • getAnnotationColorsCount

      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;
    • containsAnnotationColors

      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;
    • getAnnotationColors

      @Deprecated Map<String,AnnotationSpec> getAnnotationColors()
      Deprecated.
    • getAnnotationColorsMap

      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

      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

      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;
    • getMimeType

      String getMimeType()
       Image format.
       
      string mime_type = 2;
      Returns:
      The mimeType.
    • getMimeTypeBytes

      com.google.protobuf.ByteString getMimeTypeBytes()
       Image format.
       
      string mime_type = 2;
      Returns:
      The bytes for mimeType.
    • getImageBytes

      com.google.protobuf.ByteString getImageBytes()
       A byte string of a full image's color map.
       
      bytes image_bytes = 3;
      Returns:
      The imageBytes.