Class ImageSegmentationAnnotation.Builder

    • Method Detail

      • getDescriptor

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetMapField

        protected com.google.protobuf.MapField internalGetMapField​(int number)
        Overrides:
        internalGetMapField in class com.google.protobuf.GeneratedMessageV3.Builder<ImageSegmentationAnnotation.Builder>
      • internalGetMutableMapField

        protected com.google.protobuf.MapField internalGetMutableMapField​(int number)
        Overrides:
        internalGetMutableMapField in class com.google.protobuf.GeneratedMessageV3.Builder<ImageSegmentationAnnotation.Builder>
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<ImageSegmentationAnnotation.Builder>
      • getDescriptorForType

        public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
        Specified by:
        getDescriptorForType in interface com.google.protobuf.Message.Builder
        Specified by:
        getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
        Overrides:
        getDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<ImageSegmentationAnnotation.Builder>
      • getDefaultInstanceForType

        public ImageSegmentationAnnotation getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
      • build

        public ImageSegmentationAnnotation build()
        Specified by:
        build in interface com.google.protobuf.Message.Builder
        Specified by:
        build in interface com.google.protobuf.MessageLite.Builder
      • buildPartial

        public ImageSegmentationAnnotation buildPartial()
        Specified by:
        buildPartial in interface com.google.protobuf.Message.Builder
        Specified by:
        buildPartial in interface com.google.protobuf.MessageLite.Builder
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.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 interface com.google.protobuf.Message.Builder
        Specified by:
        mergeFrom in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<ImageSegmentationAnnotation.Builder>
        Throws:
        IOException
      • 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 interface ImageSegmentationAnnotationOrBuilder
      • 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 interface ImageSegmentationAnnotationOrBuilder
      • 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 interface ImageSegmentationAnnotationOrBuilder
      • 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;
      • 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;
      • 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.
      • 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.
      • mergeUnknownFields

        public final ImageSegmentationAnnotation.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<ImageSegmentationAnnotation.Builder>