# Path: google/cloud/datalabeling_v1beta1/types/annotation_spec_set.py
# class AnnotationSpecSet(proto.Message):
# class AnnotationSpec(proto.Message):


import proto  # type: ignore
from google.cloud.datalabeling_v1beta1.types import annotation_spec_set
from google.protobuf import duration_pb2  # type: ignore
    """

    polyline = proto.Field(proto.MESSAGE, number=2, oneof="poly", message="Polyline",)
    normalized_polyline = proto.Field(
        proto.MESSAGE, number=3, oneof="poly", message="NormalizedPolyline",
    )
    annotation_spec = proto.Field(
        proto.MESSAGE, number=1, message=annotation_spec_set.AnnotationSpec,
    )


class ImageSegmentationAnnotation(proto.Message):
    r"""Image segmentation annotation.

    Attributes:
        annotation_colors (Sequence[google.cloud.datalabeling_v1beta1.types.ImageSegmentationAnnotation.AnnotationColorsEntry]):
            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.
        mime_type (str):
            Image format.
        image_bytes (bytes):
            A byte string of a full image's color map.
    """

    annotation_colors = proto.MapField(
        proto.STRING,
        proto.MESSAGE,
        number=1,

# Path: google/cloud/datalabeling_v1beta1/types/annotation_spec_set.py
# class AnnotationSpecSet(proto.Message):
# class AnnotationSpec(proto.Message):


# Path: google/cloud/datalabeling_v1beta1/types/annotation.py
import proto  # type: ignore
from google.cloud.datalabeling_v1beta1.types import annotation_spec_set
from google.protobuf import duration_pb2  # type: ignore

    """

    polyline = proto.Field(proto.MESSAGE, number=2, oneof="poly", message="Polyline",)
    normalized_polyline = proto.Field(
        proto.MESSAGE, number=3, oneof="poly", message="NormalizedPolyline",
    )
    annotation_spec = proto.Field(
        proto.MESSAGE, number=1, message=annotation_spec_set.AnnotationSpec,
    )


class ImageSegmentationAnnotation(proto.Message):
    r"""Image segmentation annotation.

    Attributes:
        annotation_colors (Sequence[google.cloud.datalabeling_v1beta1.types.ImageSegmentationAnnotation.AnnotationColorsEntry]):
            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.
        mime_type (str):
            Image format.
        image_bytes (bytes):
            A byte string of a full image's color map.
    """

    annotation_colors = proto.MapField(
        proto.STRING,
        proto.MESSAGE,
        number=1,

        message=annotation_spec_set.AnnotationSpec,