blob: f389318574e431da0fa8b56e32abb9eef000080d [file] [log] [blame]
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: google/cloud/datalabeling/v1beta1/dataset.proto
package datalabeling // import "google.golang.org/genproto/googleapis/cloud/datalabeling/v1beta1"
import proto "github.com/golang/protobuf/proto"
import fmt "fmt"
import math "math"
import duration "github.com/golang/protobuf/ptypes/duration"
import _ "github.com/golang/protobuf/ptypes/struct"
import timestamp "github.com/golang/protobuf/ptypes/timestamp"
import _ "google.golang.org/genproto/googleapis/api/annotations"
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
type DataType int32
const (
DataType_DATA_TYPE_UNSPECIFIED DataType = 0
DataType_IMAGE DataType = 1
DataType_VIDEO DataType = 2
DataType_TEXT DataType = 4
DataType_AUDIO DataType = 5
)
var DataType_name = map[int32]string{
0: "DATA_TYPE_UNSPECIFIED",
1: "IMAGE",
2: "VIDEO",
4: "TEXT",
5: "AUDIO",
}
var DataType_value = map[string]int32{
"DATA_TYPE_UNSPECIFIED": 0,
"IMAGE": 1,
"VIDEO": 2,
"TEXT": 4,
"AUDIO": 5,
}
func (x DataType) String() string {
return proto.EnumName(DataType_name, int32(x))
}
func (DataType) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_dataset_b0759c67587c817f, []int{0}
}
// Dataset is the resource to hold your data. You can request multiple labeling
// tasks for a dataset while each one will generate an AnnotatedDataset.
type Dataset struct {
// Output only.
// Dataset resource name, format is:
// projects/{project_id}/datasets/{dataset_id}
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// Required. The display name of the dataset. Maximum of 64 characters.
DisplayName string `protobuf:"bytes,2,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"`
// Optional. User-provided description of the annotation specification set.
// The description can be up to 10000 characters long.
Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"`
// Output only. Time the dataset is created.
CreateTime *timestamp.Timestamp `protobuf:"bytes,4,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
// Output only. This is populated with the original input configs
// where ImportData is called. It is available only after the clients
// import data to this dataset.
InputConfigs []*InputConfig `protobuf:"bytes,5,rep,name=input_configs,json=inputConfigs,proto3" json:"input_configs,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Dataset) Reset() { *m = Dataset{} }
func (m *Dataset) String() string { return proto.CompactTextString(m) }
func (*Dataset) ProtoMessage() {}
func (*Dataset) Descriptor() ([]byte, []int) {
return fileDescriptor_dataset_b0759c67587c817f, []int{0}
}
func (m *Dataset) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Dataset.Unmarshal(m, b)
}
func (m *Dataset) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Dataset.Marshal(b, m, deterministic)
}
func (dst *Dataset) XXX_Merge(src proto.Message) {
xxx_messageInfo_Dataset.Merge(dst, src)
}
func (m *Dataset) XXX_Size() int {
return xxx_messageInfo_Dataset.Size(m)
}
func (m *Dataset) XXX_DiscardUnknown() {
xxx_messageInfo_Dataset.DiscardUnknown(m)
}
var xxx_messageInfo_Dataset proto.InternalMessageInfo
func (m *Dataset) GetName() string {
if m != nil {
return m.Name
}
return ""
}
func (m *Dataset) GetDisplayName() string {
if m != nil {
return m.DisplayName
}
return ""
}
func (m *Dataset) GetDescription() string {
if m != nil {
return m.Description
}
return ""
}
func (m *Dataset) GetCreateTime() *timestamp.Timestamp {
if m != nil {
return m.CreateTime
}
return nil
}
func (m *Dataset) GetInputConfigs() []*InputConfig {
if m != nil {
return m.InputConfigs
}
return nil
}
// The configuration of input data, including data type, location, etc.
type InputConfig struct {
// Required. Where the data is from.
//
// Types that are valid to be assigned to Source:
// *InputConfig_GcsSource
Source isInputConfig_Source `protobuf_oneof:"source"`
// Required. Data type must be specifed when user tries to import data.
DataType DataType `protobuf:"varint,1,opt,name=data_type,json=dataType,proto3,enum=google.cloud.datalabeling.v1beta1.DataType" json:"data_type,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *InputConfig) Reset() { *m = InputConfig{} }
func (m *InputConfig) String() string { return proto.CompactTextString(m) }
func (*InputConfig) ProtoMessage() {}
func (*InputConfig) Descriptor() ([]byte, []int) {
return fileDescriptor_dataset_b0759c67587c817f, []int{1}
}
func (m *InputConfig) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_InputConfig.Unmarshal(m, b)
}
func (m *InputConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_InputConfig.Marshal(b, m, deterministic)
}
func (dst *InputConfig) XXX_Merge(src proto.Message) {
xxx_messageInfo_InputConfig.Merge(dst, src)
}
func (m *InputConfig) XXX_Size() int {
return xxx_messageInfo_InputConfig.Size(m)
}
func (m *InputConfig) XXX_DiscardUnknown() {
xxx_messageInfo_InputConfig.DiscardUnknown(m)
}
var xxx_messageInfo_InputConfig proto.InternalMessageInfo
type isInputConfig_Source interface {
isInputConfig_Source()
}
type InputConfig_GcsSource struct {
GcsSource *GcsSource `protobuf:"bytes,2,opt,name=gcs_source,json=gcsSource,proto3,oneof"`
}
func (*InputConfig_GcsSource) isInputConfig_Source() {}
func (m *InputConfig) GetSource() isInputConfig_Source {
if m != nil {
return m.Source
}
return nil
}
func (m *InputConfig) GetGcsSource() *GcsSource {
if x, ok := m.GetSource().(*InputConfig_GcsSource); ok {
return x.GcsSource
}
return nil
}
func (m *InputConfig) GetDataType() DataType {
if m != nil {
return m.DataType
}
return DataType_DATA_TYPE_UNSPECIFIED
}
// XXX_OneofFuncs is for the internal use of the proto package.
func (*InputConfig) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {
return _InputConfig_OneofMarshaler, _InputConfig_OneofUnmarshaler, _InputConfig_OneofSizer, []interface{}{
(*InputConfig_GcsSource)(nil),
}
}
func _InputConfig_OneofMarshaler(msg proto.Message, b *proto.Buffer) error {
m := msg.(*InputConfig)
// source
switch x := m.Source.(type) {
case *InputConfig_GcsSource:
b.EncodeVarint(2<<3 | proto.WireBytes)
if err := b.EncodeMessage(x.GcsSource); err != nil {
return err
}
case nil:
default:
return fmt.Errorf("InputConfig.Source has unexpected type %T", x)
}
return nil
}
func _InputConfig_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) {
m := msg.(*InputConfig)
switch tag {
case 2: // source.gcs_source
if wire != proto.WireBytes {
return true, proto.ErrInternalBadWireType
}
msg := new(GcsSource)
err := b.DecodeMessage(msg)
m.Source = &InputConfig_GcsSource{msg}
return true, err
default:
return false, nil
}
}
func _InputConfig_OneofSizer(msg proto.Message) (n int) {
m := msg.(*InputConfig)
// source
switch x := m.Source.(type) {
case *InputConfig_GcsSource:
s := proto.Size(x.GcsSource)
n += 1 // tag and wire
n += proto.SizeVarint(uint64(s))
n += s
case nil:
default:
panic(fmt.Sprintf("proto: unexpected type %T in oneof", x))
}
return n
}
// Source of the GCS file to be imported. Only gcs path is allowed in
// input_uri.
type GcsSource struct {
// Required. The input uri of source file.
InputUri string `protobuf:"bytes,1,opt,name=input_uri,json=inputUri,proto3" json:"input_uri,omitempty"`
// Required. The format of the gcs source. Only "text/csv" is supported.
MimeType string `protobuf:"bytes,2,opt,name=mime_type,json=mimeType,proto3" json:"mime_type,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *GcsSource) Reset() { *m = GcsSource{} }
func (m *GcsSource) String() string { return proto.CompactTextString(m) }
func (*GcsSource) ProtoMessage() {}
func (*GcsSource) Descriptor() ([]byte, []int) {
return fileDescriptor_dataset_b0759c67587c817f, []int{2}
}
func (m *GcsSource) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_GcsSource.Unmarshal(m, b)
}
func (m *GcsSource) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_GcsSource.Marshal(b, m, deterministic)
}
func (dst *GcsSource) XXX_Merge(src proto.Message) {
xxx_messageInfo_GcsSource.Merge(dst, src)
}
func (m *GcsSource) XXX_Size() int {
return xxx_messageInfo_GcsSource.Size(m)
}
func (m *GcsSource) XXX_DiscardUnknown() {
xxx_messageInfo_GcsSource.DiscardUnknown(m)
}
var xxx_messageInfo_GcsSource proto.InternalMessageInfo
func (m *GcsSource) GetInputUri() string {
if m != nil {
return m.InputUri
}
return ""
}
func (m *GcsSource) GetMimeType() string {
if m != nil {
return m.MimeType
}
return ""
}
// The configuration of output data.
type OutputConfig struct {
// Required. Location to output data to.
//
// Types that are valid to be assigned to Destination:
// *OutputConfig_GcsDestination
// *OutputConfig_GcsFolderDestination
Destination isOutputConfig_Destination `protobuf_oneof:"destination"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *OutputConfig) Reset() { *m = OutputConfig{} }
func (m *OutputConfig) String() string { return proto.CompactTextString(m) }
func (*OutputConfig) ProtoMessage() {}
func (*OutputConfig) Descriptor() ([]byte, []int) {
return fileDescriptor_dataset_b0759c67587c817f, []int{3}
}
func (m *OutputConfig) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_OutputConfig.Unmarshal(m, b)
}
func (m *OutputConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_OutputConfig.Marshal(b, m, deterministic)
}
func (dst *OutputConfig) XXX_Merge(src proto.Message) {
xxx_messageInfo_OutputConfig.Merge(dst, src)
}
func (m *OutputConfig) XXX_Size() int {
return xxx_messageInfo_OutputConfig.Size(m)
}
func (m *OutputConfig) XXX_DiscardUnknown() {
xxx_messageInfo_OutputConfig.DiscardUnknown(m)
}
var xxx_messageInfo_OutputConfig proto.InternalMessageInfo
type isOutputConfig_Destination interface {
isOutputConfig_Destination()
}
type OutputConfig_GcsDestination struct {
GcsDestination *GcsDestination `protobuf:"bytes,1,opt,name=gcs_destination,json=gcsDestination,proto3,oneof"`
}
type OutputConfig_GcsFolderDestination struct {
GcsFolderDestination *GcsFolderDestination `protobuf:"bytes,2,opt,name=gcs_folder_destination,json=gcsFolderDestination,proto3,oneof"`
}
func (*OutputConfig_GcsDestination) isOutputConfig_Destination() {}
func (*OutputConfig_GcsFolderDestination) isOutputConfig_Destination() {}
func (m *OutputConfig) GetDestination() isOutputConfig_Destination {
if m != nil {
return m.Destination
}
return nil
}
func (m *OutputConfig) GetGcsDestination() *GcsDestination {
if x, ok := m.GetDestination().(*OutputConfig_GcsDestination); ok {
return x.GcsDestination
}
return nil
}
func (m *OutputConfig) GetGcsFolderDestination() *GcsFolderDestination {
if x, ok := m.GetDestination().(*OutputConfig_GcsFolderDestination); ok {
return x.GcsFolderDestination
}
return nil
}
// XXX_OneofFuncs is for the internal use of the proto package.
func (*OutputConfig) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {
return _OutputConfig_OneofMarshaler, _OutputConfig_OneofUnmarshaler, _OutputConfig_OneofSizer, []interface{}{
(*OutputConfig_GcsDestination)(nil),
(*OutputConfig_GcsFolderDestination)(nil),
}
}
func _OutputConfig_OneofMarshaler(msg proto.Message, b *proto.Buffer) error {
m := msg.(*OutputConfig)
// destination
switch x := m.Destination.(type) {
case *OutputConfig_GcsDestination:
b.EncodeVarint(1<<3 | proto.WireBytes)
if err := b.EncodeMessage(x.GcsDestination); err != nil {
return err
}
case *OutputConfig_GcsFolderDestination:
b.EncodeVarint(2<<3 | proto.WireBytes)
if err := b.EncodeMessage(x.GcsFolderDestination); err != nil {
return err
}
case nil:
default:
return fmt.Errorf("OutputConfig.Destination has unexpected type %T", x)
}
return nil
}
func _OutputConfig_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) {
m := msg.(*OutputConfig)
switch tag {
case 1: // destination.gcs_destination
if wire != proto.WireBytes {
return true, proto.ErrInternalBadWireType
}
msg := new(GcsDestination)
err := b.DecodeMessage(msg)
m.Destination = &OutputConfig_GcsDestination{msg}
return true, err
case 2: // destination.gcs_folder_destination
if wire != proto.WireBytes {
return true, proto.ErrInternalBadWireType
}
msg := new(GcsFolderDestination)
err := b.DecodeMessage(msg)
m.Destination = &OutputConfig_GcsFolderDestination{msg}
return true, err
default:
return false, nil
}
}
func _OutputConfig_OneofSizer(msg proto.Message) (n int) {
m := msg.(*OutputConfig)
// destination
switch x := m.Destination.(type) {
case *OutputConfig_GcsDestination:
s := proto.Size(x.GcsDestination)
n += 1 // tag and wire
n += proto.SizeVarint(uint64(s))
n += s
case *OutputConfig_GcsFolderDestination:
s := proto.Size(x.GcsFolderDestination)
n += 1 // tag and wire
n += proto.SizeVarint(uint64(s))
n += s
case nil:
default:
panic(fmt.Sprintf("proto: unexpected type %T in oneof", x))
}
return n
}
// Export destination of the data.Only gcs path is allowed in
// output_uri.
type GcsDestination struct {
// Required. The output uri of destination file.
OutputUri string `protobuf:"bytes,1,opt,name=output_uri,json=outputUri,proto3" json:"output_uri,omitempty"`
// Required. The format of the gcs destination. Only "text/csv" and
// "application/json"
// are supported.
MimeType string `protobuf:"bytes,2,opt,name=mime_type,json=mimeType,proto3" json:"mime_type,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *GcsDestination) Reset() { *m = GcsDestination{} }
func (m *GcsDestination) String() string { return proto.CompactTextString(m) }
func (*GcsDestination) ProtoMessage() {}
func (*GcsDestination) Descriptor() ([]byte, []int) {
return fileDescriptor_dataset_b0759c67587c817f, []int{4}
}
func (m *GcsDestination) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_GcsDestination.Unmarshal(m, b)
}
func (m *GcsDestination) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_GcsDestination.Marshal(b, m, deterministic)
}
func (dst *GcsDestination) XXX_Merge(src proto.Message) {
xxx_messageInfo_GcsDestination.Merge(dst, src)
}
func (m *GcsDestination) XXX_Size() int {
return xxx_messageInfo_GcsDestination.Size(m)
}
func (m *GcsDestination) XXX_DiscardUnknown() {
xxx_messageInfo_GcsDestination.DiscardUnknown(m)
}
var xxx_messageInfo_GcsDestination proto.InternalMessageInfo
func (m *GcsDestination) GetOutputUri() string {
if m != nil {
return m.OutputUri
}
return ""
}
func (m *GcsDestination) GetMimeType() string {
if m != nil {
return m.MimeType
}
return ""
}
// Export folder destination of the data.
type GcsFolderDestination struct {
// Required. GCS folder to export data to.
OutputFolderUri string `protobuf:"bytes,1,opt,name=output_folder_uri,json=outputFolderUri,proto3" json:"output_folder_uri,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *GcsFolderDestination) Reset() { *m = GcsFolderDestination{} }
func (m *GcsFolderDestination) String() string { return proto.CompactTextString(m) }
func (*GcsFolderDestination) ProtoMessage() {}
func (*GcsFolderDestination) Descriptor() ([]byte, []int) {
return fileDescriptor_dataset_b0759c67587c817f, []int{5}
}
func (m *GcsFolderDestination) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_GcsFolderDestination.Unmarshal(m, b)
}
func (m *GcsFolderDestination) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_GcsFolderDestination.Marshal(b, m, deterministic)
}
func (dst *GcsFolderDestination) XXX_Merge(src proto.Message) {
xxx_messageInfo_GcsFolderDestination.Merge(dst, src)
}
func (m *GcsFolderDestination) XXX_Size() int {
return xxx_messageInfo_GcsFolderDestination.Size(m)
}
func (m *GcsFolderDestination) XXX_DiscardUnknown() {
xxx_messageInfo_GcsFolderDestination.DiscardUnknown(m)
}
var xxx_messageInfo_GcsFolderDestination proto.InternalMessageInfo
func (m *GcsFolderDestination) GetOutputFolderUri() string {
if m != nil {
return m.OutputFolderUri
}
return ""
}
// DataItem is a piece of data, without annotation. For example, an image.
type DataItem struct {
// Output only.
//
// Types that are valid to be assigned to Payload:
// *DataItem_ImagePayload
// *DataItem_TextPayload
// *DataItem_VideoPayload
// *DataItem_AudioPayload
Payload isDataItem_Payload `protobuf_oneof:"payload"`
// Output only. Name of the data item, in format of:
// projects/{project_id}/datasets/{dataset_id}/dataItems/{data_item_id}
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *DataItem) Reset() { *m = DataItem{} }
func (m *DataItem) String() string { return proto.CompactTextString(m) }
func (*DataItem) ProtoMessage() {}
func (*DataItem) Descriptor() ([]byte, []int) {
return fileDescriptor_dataset_b0759c67587c817f, []int{6}
}
func (m *DataItem) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_DataItem.Unmarshal(m, b)
}
func (m *DataItem) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_DataItem.Marshal(b, m, deterministic)
}
func (dst *DataItem) XXX_Merge(src proto.Message) {
xxx_messageInfo_DataItem.Merge(dst, src)
}
func (m *DataItem) XXX_Size() int {
return xxx_messageInfo_DataItem.Size(m)
}
func (m *DataItem) XXX_DiscardUnknown() {
xxx_messageInfo_DataItem.DiscardUnknown(m)
}
var xxx_messageInfo_DataItem proto.InternalMessageInfo
type isDataItem_Payload interface {
isDataItem_Payload()
}
type DataItem_ImagePayload struct {
ImagePayload *ImagePayload `protobuf:"bytes,2,opt,name=image_payload,json=imagePayload,proto3,oneof"`
}
type DataItem_TextPayload struct {
TextPayload *TextPayload `protobuf:"bytes,3,opt,name=text_payload,json=textPayload,proto3,oneof"`
}
type DataItem_VideoPayload struct {
VideoPayload *VideoPayload `protobuf:"bytes,4,opt,name=video_payload,json=videoPayload,proto3,oneof"`
}
type DataItem_AudioPayload struct {
AudioPayload *AudioPayload `protobuf:"bytes,5,opt,name=audio_payload,json=audioPayload,proto3,oneof"`
}
func (*DataItem_ImagePayload) isDataItem_Payload() {}
func (*DataItem_TextPayload) isDataItem_Payload() {}
func (*DataItem_VideoPayload) isDataItem_Payload() {}
func (*DataItem_AudioPayload) isDataItem_Payload() {}
func (m *DataItem) GetPayload() isDataItem_Payload {
if m != nil {
return m.Payload
}
return nil
}
func (m *DataItem) GetImagePayload() *ImagePayload {
if x, ok := m.GetPayload().(*DataItem_ImagePayload); ok {
return x.ImagePayload
}
return nil
}
func (m *DataItem) GetTextPayload() *TextPayload {
if x, ok := m.GetPayload().(*DataItem_TextPayload); ok {
return x.TextPayload
}
return nil
}
func (m *DataItem) GetVideoPayload() *VideoPayload {
if x, ok := m.GetPayload().(*DataItem_VideoPayload); ok {
return x.VideoPayload
}
return nil
}
func (m *DataItem) GetAudioPayload() *AudioPayload {
if x, ok := m.GetPayload().(*DataItem_AudioPayload); ok {
return x.AudioPayload
}
return nil
}
func (m *DataItem) GetName() string {
if m != nil {
return m.Name
}
return ""
}
// XXX_OneofFuncs is for the internal use of the proto package.
func (*DataItem) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {
return _DataItem_OneofMarshaler, _DataItem_OneofUnmarshaler, _DataItem_OneofSizer, []interface{}{
(*DataItem_ImagePayload)(nil),
(*DataItem_TextPayload)(nil),
(*DataItem_VideoPayload)(nil),
(*DataItem_AudioPayload)(nil),
}
}
func _DataItem_OneofMarshaler(msg proto.Message, b *proto.Buffer) error {
m := msg.(*DataItem)
// payload
switch x := m.Payload.(type) {
case *DataItem_ImagePayload:
b.EncodeVarint(2<<3 | proto.WireBytes)
if err := b.EncodeMessage(x.ImagePayload); err != nil {
return err
}
case *DataItem_TextPayload:
b.EncodeVarint(3<<3 | proto.WireBytes)
if err := b.EncodeMessage(x.TextPayload); err != nil {
return err
}
case *DataItem_VideoPayload:
b.EncodeVarint(4<<3 | proto.WireBytes)
if err := b.EncodeMessage(x.VideoPayload); err != nil {
return err
}
case *DataItem_AudioPayload:
b.EncodeVarint(5<<3 | proto.WireBytes)
if err := b.EncodeMessage(x.AudioPayload); err != nil {
return err
}
case nil:
default:
return fmt.Errorf("DataItem.Payload has unexpected type %T", x)
}
return nil
}
func _DataItem_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) {
m := msg.(*DataItem)
switch tag {
case 2: // payload.image_payload
if wire != proto.WireBytes {
return true, proto.ErrInternalBadWireType
}
msg := new(ImagePayload)
err := b.DecodeMessage(msg)
m.Payload = &DataItem_ImagePayload{msg}
return true, err
case 3: // payload.text_payload
if wire != proto.WireBytes {
return true, proto.ErrInternalBadWireType
}
msg := new(TextPayload)
err := b.DecodeMessage(msg)
m.Payload = &DataItem_TextPayload{msg}
return true, err
case 4: // payload.video_payload
if wire != proto.WireBytes {
return true, proto.ErrInternalBadWireType
}
msg := new(VideoPayload)
err := b.DecodeMessage(msg)
m.Payload = &DataItem_VideoPayload{msg}
return true, err
case 5: // payload.audio_payload
if wire != proto.WireBytes {
return true, proto.ErrInternalBadWireType
}
msg := new(AudioPayload)
err := b.DecodeMessage(msg)
m.Payload = &DataItem_AudioPayload{msg}
return true, err
default:
return false, nil
}
}
func _DataItem_OneofSizer(msg proto.Message) (n int) {
m := msg.(*DataItem)
// payload
switch x := m.Payload.(type) {
case *DataItem_ImagePayload:
s := proto.Size(x.ImagePayload)
n += 1 // tag and wire
n += proto.SizeVarint(uint64(s))
n += s
case *DataItem_TextPayload:
s := proto.Size(x.TextPayload)
n += 1 // tag and wire
n += proto.SizeVarint(uint64(s))
n += s
case *DataItem_VideoPayload:
s := proto.Size(x.VideoPayload)
n += 1 // tag and wire
n += proto.SizeVarint(uint64(s))
n += s
case *DataItem_AudioPayload:
s := proto.Size(x.AudioPayload)
n += 1 // tag and wire
n += proto.SizeVarint(uint64(s))
n += s
case nil:
default:
panic(fmt.Sprintf("proto: unexpected type %T in oneof", x))
}
return n
}
// AnnotatedDataset is a set holding annotations for data in a Dataset. Each
// labeling task will generate an AnnotatedDataset under the Dataset that the
// task is requested for.
type AnnotatedDataset struct {
// Output only.
// AnnotatedDataset resource name in format of:
// projects/{project_id}/datasets/{dataset_id}/annotatedDatasets/
// {annotated_dataset_id}
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// Output only. The display name of the AnnotatedDataset. It is specified in
// HumanAnnotationConfig when user starts a labeling task. Maximum of 64
// characters.
DisplayName string `protobuf:"bytes,2,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"`
// Output only. The description of the AnnotatedDataset. It is specified in
// HumanAnnotationConfig when user starts a labeling task. Maximum of 10000
// characters.
Description string `protobuf:"bytes,9,opt,name=description,proto3" json:"description,omitempty"`
// Output only. Source of the annotation.
AnnotationSource AnnotationSource `protobuf:"varint,3,opt,name=annotation_source,json=annotationSource,proto3,enum=google.cloud.datalabeling.v1beta1.AnnotationSource" json:"annotation_source,omitempty"`
// Output only. Type of the annotation. It is specified when starting labeling
// task.
AnnotationType AnnotationType `protobuf:"varint,8,opt,name=annotation_type,json=annotationType,proto3,enum=google.cloud.datalabeling.v1beta1.AnnotationType" json:"annotation_type,omitempty"`
// Output only. Number of examples in the annotated dataset.
ExampleCount int64 `protobuf:"varint,4,opt,name=example_count,json=exampleCount,proto3" json:"example_count,omitempty"`
// Output only. Number of examples that have annotation in the annotated
// dataset.
CompletedExampleCount int64 `protobuf:"varint,5,opt,name=completed_example_count,json=completedExampleCount,proto3" json:"completed_example_count,omitempty"`
// Output only. Per label statistics.
LabelStats *LabelStats `protobuf:"bytes,6,opt,name=label_stats,json=labelStats,proto3" json:"label_stats,omitempty"`
// Output only. Time the AnnotatedDataset was created.
CreateTime *timestamp.Timestamp `protobuf:"bytes,7,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
// Output only. Additional information about AnnotatedDataset.
Metadata *AnnotatedDatasetMetadata `protobuf:"bytes,10,opt,name=metadata,proto3" json:"metadata,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *AnnotatedDataset) Reset() { *m = AnnotatedDataset{} }
func (m *AnnotatedDataset) String() string { return proto.CompactTextString(m) }
func (*AnnotatedDataset) ProtoMessage() {}
func (*AnnotatedDataset) Descriptor() ([]byte, []int) {
return fileDescriptor_dataset_b0759c67587c817f, []int{7}
}
func (m *AnnotatedDataset) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_AnnotatedDataset.Unmarshal(m, b)
}
func (m *AnnotatedDataset) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_AnnotatedDataset.Marshal(b, m, deterministic)
}
func (dst *AnnotatedDataset) XXX_Merge(src proto.Message) {
xxx_messageInfo_AnnotatedDataset.Merge(dst, src)
}
func (m *AnnotatedDataset) XXX_Size() int {
return xxx_messageInfo_AnnotatedDataset.Size(m)
}
func (m *AnnotatedDataset) XXX_DiscardUnknown() {
xxx_messageInfo_AnnotatedDataset.DiscardUnknown(m)
}
var xxx_messageInfo_AnnotatedDataset proto.InternalMessageInfo
func (m *AnnotatedDataset) GetName() string {
if m != nil {
return m.Name
}
return ""
}
func (m *AnnotatedDataset) GetDisplayName() string {
if m != nil {
return m.DisplayName
}
return ""
}
func (m *AnnotatedDataset) GetDescription() string {
if m != nil {
return m.Description
}
return ""
}
func (m *AnnotatedDataset) GetAnnotationSource() AnnotationSource {
if m != nil {
return m.AnnotationSource
}
return AnnotationSource_ANNOTATION_SOURCE_UNSPECIFIED
}
func (m *AnnotatedDataset) GetAnnotationType() AnnotationType {
if m != nil {
return m.AnnotationType
}
return AnnotationType_ANNOTATION_TYPE_UNSPECIFIED
}
func (m *AnnotatedDataset) GetExampleCount() int64 {
if m != nil {
return m.ExampleCount
}
return 0
}
func (m *AnnotatedDataset) GetCompletedExampleCount() int64 {
if m != nil {
return m.CompletedExampleCount
}
return 0
}
func (m *AnnotatedDataset) GetLabelStats() *LabelStats {
if m != nil {
return m.LabelStats
}
return nil
}
func (m *AnnotatedDataset) GetCreateTime() *timestamp.Timestamp {
if m != nil {
return m.CreateTime
}
return nil
}
func (m *AnnotatedDataset) GetMetadata() *AnnotatedDatasetMetadata {
if m != nil {
return m.Metadata
}
return nil
}
// Metadata on AnnotatedDataset.
type AnnotatedDatasetMetadata struct {
// HumanAnnotationConfig used when requesting the human labeling task for this
// AnnotatedDataset.
HumanAnnotationConfig *HumanAnnotationConfig `protobuf:"bytes,1,opt,name=human_annotation_config,json=humanAnnotationConfig,proto3" json:"human_annotation_config,omitempty"`
// Specific request configuration used when requesting the labeling task.
//
// Types that are valid to be assigned to AnnotationRequestConfig:
// *AnnotatedDatasetMetadata_ImageClassificationConfig
// *AnnotatedDatasetMetadata_BoundingPolyConfig
// *AnnotatedDatasetMetadata_PolylineConfig
// *AnnotatedDatasetMetadata_SegmentationConfig
// *AnnotatedDatasetMetadata_VideoClassificationConfig
// *AnnotatedDatasetMetadata_ObjectDetectionConfig
// *AnnotatedDatasetMetadata_ObjectTrackingConfig
// *AnnotatedDatasetMetadata_EventConfig
// *AnnotatedDatasetMetadata_TextClassificationConfig
// *AnnotatedDatasetMetadata_TextEntityExtractionConfig
AnnotationRequestConfig isAnnotatedDatasetMetadata_AnnotationRequestConfig `protobuf_oneof:"annotation_request_config"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *AnnotatedDatasetMetadata) Reset() { *m = AnnotatedDatasetMetadata{} }
func (m *AnnotatedDatasetMetadata) String() string { return proto.CompactTextString(m) }
func (*AnnotatedDatasetMetadata) ProtoMessage() {}
func (*AnnotatedDatasetMetadata) Descriptor() ([]byte, []int) {
return fileDescriptor_dataset_b0759c67587c817f, []int{8}
}
func (m *AnnotatedDatasetMetadata) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_AnnotatedDatasetMetadata.Unmarshal(m, b)
}
func (m *AnnotatedDatasetMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_AnnotatedDatasetMetadata.Marshal(b, m, deterministic)
}
func (dst *AnnotatedDatasetMetadata) XXX_Merge(src proto.Message) {
xxx_messageInfo_AnnotatedDatasetMetadata.Merge(dst, src)
}
func (m *AnnotatedDatasetMetadata) XXX_Size() int {
return xxx_messageInfo_AnnotatedDatasetMetadata.Size(m)
}
func (m *AnnotatedDatasetMetadata) XXX_DiscardUnknown() {
xxx_messageInfo_AnnotatedDatasetMetadata.DiscardUnknown(m)
}
var xxx_messageInfo_AnnotatedDatasetMetadata proto.InternalMessageInfo
func (m *AnnotatedDatasetMetadata) GetHumanAnnotationConfig() *HumanAnnotationConfig {
if m != nil {
return m.HumanAnnotationConfig
}
return nil
}
type isAnnotatedDatasetMetadata_AnnotationRequestConfig interface {
isAnnotatedDatasetMetadata_AnnotationRequestConfig()
}
type AnnotatedDatasetMetadata_ImageClassificationConfig struct {
ImageClassificationConfig *ImageClassificationConfig `protobuf:"bytes,2,opt,name=image_classification_config,json=imageClassificationConfig,proto3,oneof"`
}
type AnnotatedDatasetMetadata_BoundingPolyConfig struct {
BoundingPolyConfig *BoundingPolyConfig `protobuf:"bytes,3,opt,name=bounding_poly_config,json=boundingPolyConfig,proto3,oneof"`
}
type AnnotatedDatasetMetadata_PolylineConfig struct {
PolylineConfig *PolylineConfig `protobuf:"bytes,4,opt,name=polyline_config,json=polylineConfig,proto3,oneof"`
}
type AnnotatedDatasetMetadata_SegmentationConfig struct {
SegmentationConfig *SegmentationConfig `protobuf:"bytes,5,opt,name=segmentation_config,json=segmentationConfig,proto3,oneof"`
}
type AnnotatedDatasetMetadata_VideoClassificationConfig struct {
VideoClassificationConfig *VideoClassificationConfig `protobuf:"bytes,6,opt,name=video_classification_config,json=videoClassificationConfig,proto3,oneof"`
}
type AnnotatedDatasetMetadata_ObjectDetectionConfig struct {
ObjectDetectionConfig *ObjectDetectionConfig `protobuf:"bytes,7,opt,name=object_detection_config,json=objectDetectionConfig,proto3,oneof"`
}
type AnnotatedDatasetMetadata_ObjectTrackingConfig struct {
ObjectTrackingConfig *ObjectTrackingConfig `protobuf:"bytes,8,opt,name=object_tracking_config,json=objectTrackingConfig,proto3,oneof"`
}
type AnnotatedDatasetMetadata_EventConfig struct {
EventConfig *EventConfig `protobuf:"bytes,9,opt,name=event_config,json=eventConfig,proto3,oneof"`
}
type AnnotatedDatasetMetadata_TextClassificationConfig struct {
TextClassificationConfig *TextClassificationConfig `protobuf:"bytes,10,opt,name=text_classification_config,json=textClassificationConfig,proto3,oneof"`
}
type AnnotatedDatasetMetadata_TextEntityExtractionConfig struct {
TextEntityExtractionConfig *TextEntityExtractionConfig `protobuf:"bytes,11,opt,name=text_entity_extraction_config,json=textEntityExtractionConfig,proto3,oneof"`
}
func (*AnnotatedDatasetMetadata_ImageClassificationConfig) isAnnotatedDatasetMetadata_AnnotationRequestConfig() {
}
func (*AnnotatedDatasetMetadata_BoundingPolyConfig) isAnnotatedDatasetMetadata_AnnotationRequestConfig() {
}
func (*AnnotatedDatasetMetadata_PolylineConfig) isAnnotatedDatasetMetadata_AnnotationRequestConfig() {}
func (*AnnotatedDatasetMetadata_SegmentationConfig) isAnnotatedDatasetMetadata_AnnotationRequestConfig() {
}
func (*AnnotatedDatasetMetadata_VideoClassificationConfig) isAnnotatedDatasetMetadata_AnnotationRequestConfig() {
}
func (*AnnotatedDatasetMetadata_ObjectDetectionConfig) isAnnotatedDatasetMetadata_AnnotationRequestConfig() {
}
func (*AnnotatedDatasetMetadata_ObjectTrackingConfig) isAnnotatedDatasetMetadata_AnnotationRequestConfig() {
}
func (*AnnotatedDatasetMetadata_EventConfig) isAnnotatedDatasetMetadata_AnnotationRequestConfig() {}
func (*AnnotatedDatasetMetadata_TextClassificationConfig) isAnnotatedDatasetMetadata_AnnotationRequestConfig() {
}
func (*AnnotatedDatasetMetadata_TextEntityExtractionConfig) isAnnotatedDatasetMetadata_AnnotationRequestConfig() {
}
func (m *AnnotatedDatasetMetadata) GetAnnotationRequestConfig() isAnnotatedDatasetMetadata_AnnotationRequestConfig {
if m != nil {
return m.AnnotationRequestConfig
}
return nil
}
func (m *AnnotatedDatasetMetadata) GetImageClassificationConfig() *ImageClassificationConfig {
if x, ok := m.GetAnnotationRequestConfig().(*AnnotatedDatasetMetadata_ImageClassificationConfig); ok {
return x.ImageClassificationConfig
}
return nil
}
func (m *AnnotatedDatasetMetadata) GetBoundingPolyConfig() *BoundingPolyConfig {
if x, ok := m.GetAnnotationRequestConfig().(*AnnotatedDatasetMetadata_BoundingPolyConfig); ok {
return x.BoundingPolyConfig
}
return nil
}
func (m *AnnotatedDatasetMetadata) GetPolylineConfig() *PolylineConfig {
if x, ok := m.GetAnnotationRequestConfig().(*AnnotatedDatasetMetadata_PolylineConfig); ok {
return x.PolylineConfig
}
return nil
}
func (m *AnnotatedDatasetMetadata) GetSegmentationConfig() *SegmentationConfig {
if x, ok := m.GetAnnotationRequestConfig().(*AnnotatedDatasetMetadata_SegmentationConfig); ok {
return x.SegmentationConfig
}
return nil
}
func (m *AnnotatedDatasetMetadata) GetVideoClassificationConfig() *VideoClassificationConfig {
if x, ok := m.GetAnnotationRequestConfig().(*AnnotatedDatasetMetadata_VideoClassificationConfig); ok {
return x.VideoClassificationConfig
}
return nil
}
func (m *AnnotatedDatasetMetadata) GetObjectDetectionConfig() *ObjectDetectionConfig {
if x, ok := m.GetAnnotationRequestConfig().(*AnnotatedDatasetMetadata_ObjectDetectionConfig); ok {
return x.ObjectDetectionConfig
}
return nil
}
func (m *AnnotatedDatasetMetadata) GetObjectTrackingConfig() *ObjectTrackingConfig {
if x, ok := m.GetAnnotationRequestConfig().(*AnnotatedDatasetMetadata_ObjectTrackingConfig); ok {
return x.ObjectTrackingConfig
}
return nil
}
func (m *AnnotatedDatasetMetadata) GetEventConfig() *EventConfig {
if x, ok := m.GetAnnotationRequestConfig().(*AnnotatedDatasetMetadata_EventConfig); ok {
return x.EventConfig
}
return nil
}
func (m *AnnotatedDatasetMetadata) GetTextClassificationConfig() *TextClassificationConfig {
if x, ok := m.GetAnnotationRequestConfig().(*AnnotatedDatasetMetadata_TextClassificationConfig); ok {
return x.TextClassificationConfig
}
return nil
}
func (m *AnnotatedDatasetMetadata) GetTextEntityExtractionConfig() *TextEntityExtractionConfig {
if x, ok := m.GetAnnotationRequestConfig().(*AnnotatedDatasetMetadata_TextEntityExtractionConfig); ok {
return x.TextEntityExtractionConfig
}
return nil
}
// XXX_OneofFuncs is for the internal use of the proto package.
func (*AnnotatedDatasetMetadata) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {
return _AnnotatedDatasetMetadata_OneofMarshaler, _AnnotatedDatasetMetadata_OneofUnmarshaler, _AnnotatedDatasetMetadata_OneofSizer, []interface{}{
(*AnnotatedDatasetMetadata_ImageClassificationConfig)(nil),
(*AnnotatedDatasetMetadata_BoundingPolyConfig)(nil),
(*AnnotatedDatasetMetadata_PolylineConfig)(nil),
(*AnnotatedDatasetMetadata_SegmentationConfig)(nil),
(*AnnotatedDatasetMetadata_VideoClassificationConfig)(nil),
(*AnnotatedDatasetMetadata_ObjectDetectionConfig)(nil),
(*AnnotatedDatasetMetadata_ObjectTrackingConfig)(nil),
(*AnnotatedDatasetMetadata_EventConfig)(nil),
(*AnnotatedDatasetMetadata_TextClassificationConfig)(nil),
(*AnnotatedDatasetMetadata_TextEntityExtractionConfig)(nil),
}
}
func _AnnotatedDatasetMetadata_OneofMarshaler(msg proto.Message, b *proto.Buffer) error {
m := msg.(*AnnotatedDatasetMetadata)
// annotation_request_config
switch x := m.AnnotationRequestConfig.(type) {
case *AnnotatedDatasetMetadata_ImageClassificationConfig:
b.EncodeVarint(2<<3 | proto.WireBytes)
if err := b.EncodeMessage(x.ImageClassificationConfig); err != nil {
return err
}
case *AnnotatedDatasetMetadata_BoundingPolyConfig:
b.EncodeVarint(3<<3 | proto.WireBytes)
if err := b.EncodeMessage(x.BoundingPolyConfig); err != nil {
return err
}
case *AnnotatedDatasetMetadata_PolylineConfig:
b.EncodeVarint(4<<3 | proto.WireBytes)
if err := b.EncodeMessage(x.PolylineConfig); err != nil {
return err
}
case *AnnotatedDatasetMetadata_SegmentationConfig:
b.EncodeVarint(5<<3 | proto.WireBytes)
if err := b.EncodeMessage(x.SegmentationConfig); err != nil {
return err
}
case *AnnotatedDatasetMetadata_VideoClassificationConfig:
b.EncodeVarint(6<<3 | proto.WireBytes)
if err := b.EncodeMessage(x.VideoClassificationConfig); err != nil {
return err
}
case *AnnotatedDatasetMetadata_ObjectDetectionConfig:
b.EncodeVarint(7<<3 | proto.WireBytes)
if err := b.EncodeMessage(x.ObjectDetectionConfig); err != nil {
return err
}
case *AnnotatedDatasetMetadata_ObjectTrackingConfig:
b.EncodeVarint(8<<3 | proto.WireBytes)
if err := b.EncodeMessage(x.ObjectTrackingConfig); err != nil {
return err
}
case *AnnotatedDatasetMetadata_EventConfig:
b.EncodeVarint(9<<3 | proto.WireBytes)
if err := b.EncodeMessage(x.EventConfig); err != nil {
return err
}
case *AnnotatedDatasetMetadata_TextClassificationConfig:
b.EncodeVarint(10<<3 | proto.WireBytes)
if err := b.EncodeMessage(x.TextClassificationConfig); err != nil {
return err
}
case *AnnotatedDatasetMetadata_TextEntityExtractionConfig:
b.EncodeVarint(11<<3 | proto.WireBytes)
if err := b.EncodeMessage(x.TextEntityExtractionConfig); err != nil {
return err
}
case nil:
default:
return fmt.Errorf("AnnotatedDatasetMetadata.AnnotationRequestConfig has unexpected type %T", x)
}
return nil
}
func _AnnotatedDatasetMetadata_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) {
m := msg.(*AnnotatedDatasetMetadata)
switch tag {
case 2: // annotation_request_config.image_classification_config
if wire != proto.WireBytes {
return true, proto.ErrInternalBadWireType
}
msg := new(ImageClassificationConfig)
err := b.DecodeMessage(msg)
m.AnnotationRequestConfig = &AnnotatedDatasetMetadata_ImageClassificationConfig{msg}
return true, err
case 3: // annotation_request_config.bounding_poly_config
if wire != proto.WireBytes {
return true, proto.ErrInternalBadWireType
}
msg := new(BoundingPolyConfig)
err := b.DecodeMessage(msg)
m.AnnotationRequestConfig = &AnnotatedDatasetMetadata_BoundingPolyConfig{msg}
return true, err
case 4: // annotation_request_config.polyline_config
if wire != proto.WireBytes {
return true, proto.ErrInternalBadWireType
}
msg := new(PolylineConfig)
err := b.DecodeMessage(msg)
m.AnnotationRequestConfig = &AnnotatedDatasetMetadata_PolylineConfig{msg}
return true, err
case 5: // annotation_request_config.segmentation_config
if wire != proto.WireBytes {
return true, proto.ErrInternalBadWireType
}
msg := new(SegmentationConfig)
err := b.DecodeMessage(msg)
m.AnnotationRequestConfig = &AnnotatedDatasetMetadata_SegmentationConfig{msg}
return true, err
case 6: // annotation_request_config.video_classification_config
if wire != proto.WireBytes {
return true, proto.ErrInternalBadWireType
}
msg := new(VideoClassificationConfig)
err := b.DecodeMessage(msg)
m.AnnotationRequestConfig = &AnnotatedDatasetMetadata_VideoClassificationConfig{msg}
return true, err
case 7: // annotation_request_config.object_detection_config
if wire != proto.WireBytes {
return true, proto.ErrInternalBadWireType
}
msg := new(ObjectDetectionConfig)
err := b.DecodeMessage(msg)
m.AnnotationRequestConfig = &AnnotatedDatasetMetadata_ObjectDetectionConfig{msg}
return true, err
case 8: // annotation_request_config.object_tracking_config
if wire != proto.WireBytes {
return true, proto.ErrInternalBadWireType
}
msg := new(ObjectTrackingConfig)
err := b.DecodeMessage(msg)
m.AnnotationRequestConfig = &AnnotatedDatasetMetadata_ObjectTrackingConfig{msg}
return true, err
case 9: // annotation_request_config.event_config
if wire != proto.WireBytes {
return true, proto.ErrInternalBadWireType
}
msg := new(EventConfig)
err := b.DecodeMessage(msg)
m.AnnotationRequestConfig = &AnnotatedDatasetMetadata_EventConfig{msg}
return true, err
case 10: // annotation_request_config.text_classification_config
if wire != proto.WireBytes {
return true, proto.ErrInternalBadWireType
}
msg := new(TextClassificationConfig)
err := b.DecodeMessage(msg)
m.AnnotationRequestConfig = &AnnotatedDatasetMetadata_TextClassificationConfig{msg}
return true, err
case 11: // annotation_request_config.text_entity_extraction_config
if wire != proto.WireBytes {
return true, proto.ErrInternalBadWireType
}
msg := new(TextEntityExtractionConfig)
err := b.DecodeMessage(msg)
m.AnnotationRequestConfig = &AnnotatedDatasetMetadata_TextEntityExtractionConfig{msg}
return true, err
default:
return false, nil
}
}
func _AnnotatedDatasetMetadata_OneofSizer(msg proto.Message) (n int) {
m := msg.(*AnnotatedDatasetMetadata)
// annotation_request_config
switch x := m.AnnotationRequestConfig.(type) {
case *AnnotatedDatasetMetadata_ImageClassificationConfig:
s := proto.Size(x.ImageClassificationConfig)
n += 1 // tag and wire
n += proto.SizeVarint(uint64(s))
n += s
case *AnnotatedDatasetMetadata_BoundingPolyConfig:
s := proto.Size(x.BoundingPolyConfig)
n += 1 // tag and wire
n += proto.SizeVarint(uint64(s))
n += s
case *AnnotatedDatasetMetadata_PolylineConfig:
s := proto.Size(x.PolylineConfig)
n += 1 // tag and wire
n += proto.SizeVarint(uint64(s))
n += s
case *AnnotatedDatasetMetadata_SegmentationConfig:
s := proto.Size(x.SegmentationConfig)
n += 1 // tag and wire
n += proto.SizeVarint(uint64(s))
n += s
case *AnnotatedDatasetMetadata_VideoClassificationConfig:
s := proto.Size(x.VideoClassificationConfig)
n += 1 // tag and wire
n += proto.SizeVarint(uint64(s))
n += s
case *AnnotatedDatasetMetadata_ObjectDetectionConfig:
s := proto.Size(x.ObjectDetectionConfig)
n += 1 // tag and wire
n += proto.SizeVarint(uint64(s))
n += s
case *AnnotatedDatasetMetadata_ObjectTrackingConfig:
s := proto.Size(x.ObjectTrackingConfig)
n += 1 // tag and wire
n += proto.SizeVarint(uint64(s))
n += s
case *AnnotatedDatasetMetadata_EventConfig:
s := proto.Size(x.EventConfig)
n += 1 // tag and wire
n += proto.SizeVarint(uint64(s))
n += s
case *AnnotatedDatasetMetadata_TextClassificationConfig:
s := proto.Size(x.TextClassificationConfig)
n += 1 // tag and wire
n += proto.SizeVarint(uint64(s))
n += s
case *AnnotatedDatasetMetadata_TextEntityExtractionConfig:
s := proto.Size(x.TextEntityExtractionConfig)
n += 1 // tag and wire
n += proto.SizeVarint(uint64(s))
n += s
case nil:
default:
panic(fmt.Sprintf("proto: unexpected type %T in oneof", x))
}
return n
}
// Statistics about annotation specs.
type LabelStats struct {
// Map of each annotation spec's example count. Key is the annotation spec
// name and value is the number of examples for that annotation spec.
ExampleCount map[string]int64 `protobuf:"bytes,1,rep,name=example_count,json=exampleCount,proto3" json:"example_count,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"varint,2,opt,name=value,proto3"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *LabelStats) Reset() { *m = LabelStats{} }
func (m *LabelStats) String() string { return proto.CompactTextString(m) }
func (*LabelStats) ProtoMessage() {}
func (*LabelStats) Descriptor() ([]byte, []int) {
return fileDescriptor_dataset_b0759c67587c817f, []int{9}
}
func (m *LabelStats) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_LabelStats.Unmarshal(m, b)
}
func (m *LabelStats) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_LabelStats.Marshal(b, m, deterministic)
}
func (dst *LabelStats) XXX_Merge(src proto.Message) {
xxx_messageInfo_LabelStats.Merge(dst, src)
}
func (m *LabelStats) XXX_Size() int {
return xxx_messageInfo_LabelStats.Size(m)
}
func (m *LabelStats) XXX_DiscardUnknown() {
xxx_messageInfo_LabelStats.DiscardUnknown(m)
}
var xxx_messageInfo_LabelStats proto.InternalMessageInfo
func (m *LabelStats) GetExampleCount() map[string]int64 {
if m != nil {
return m.ExampleCount
}
return nil
}
// An Example is a piece of data and its annotation. For example, an image with
// label "house".
type Example struct {
// Output only. The data part of Example.
//
// Types that are valid to be assigned to Payload:
// *Example_ImagePayload
// *Example_TextPayload
// *Example_VideoPayload
// *Example_AudioPayload
Payload isExample_Payload `protobuf_oneof:"payload"`
// Output only. Name of the example, in format of:
// projects/{project_id}/datasets/{dataset_id}/annotatedDatasets/
// {annotated_dataset_id}/examples/{example_id}
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// Output only. Annotations for the piece of data in Example.
// One piece of data can have multiple annotations.
Annotations []*Annotation `protobuf:"bytes,5,rep,name=annotations,proto3" json:"annotations,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Example) Reset() { *m = Example{} }
func (m *Example) String() string { return proto.CompactTextString(m) }
func (*Example) ProtoMessage() {}
func (*Example) Descriptor() ([]byte, []int) {
return fileDescriptor_dataset_b0759c67587c817f, []int{10}
}
func (m *Example) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Example.Unmarshal(m, b)
}
func (m *Example) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Example.Marshal(b, m, deterministic)
}
func (dst *Example) XXX_Merge(src proto.Message) {
xxx_messageInfo_Example.Merge(dst, src)
}
func (m *Example) XXX_Size() int {
return xxx_messageInfo_Example.Size(m)
}
func (m *Example) XXX_DiscardUnknown() {
xxx_messageInfo_Example.DiscardUnknown(m)
}
var xxx_messageInfo_Example proto.InternalMessageInfo
type isExample_Payload interface {
isExample_Payload()
}
type Example_ImagePayload struct {
ImagePayload *ImagePayload `protobuf:"bytes,2,opt,name=image_payload,json=imagePayload,proto3,oneof"`
}
type Example_TextPayload struct {
TextPayload *TextPayload `protobuf:"bytes,6,opt,name=text_payload,json=textPayload,proto3,oneof"`
}
type Example_VideoPayload struct {
VideoPayload *VideoPayload `protobuf:"bytes,7,opt,name=video_payload,json=videoPayload,proto3,oneof"`
}
type Example_AudioPayload struct {
AudioPayload *AudioPayload `protobuf:"bytes,8,opt,name=audio_payload,json=audioPayload,proto3,oneof"`
}
func (*Example_ImagePayload) isExample_Payload() {}
func (*Example_TextPayload) isExample_Payload() {}
func (*Example_VideoPayload) isExample_Payload() {}
func (*Example_AudioPayload) isExample_Payload() {}
func (m *Example) GetPayload() isExample_Payload {
if m != nil {
return m.Payload
}
return nil
}
func (m *Example) GetImagePayload() *ImagePayload {
if x, ok := m.GetPayload().(*Example_ImagePayload); ok {
return x.ImagePayload
}
return nil
}
func (m *Example) GetTextPayload() *TextPayload {
if x, ok := m.GetPayload().(*Example_TextPayload); ok {
return x.TextPayload
}
return nil
}
func (m *Example) GetVideoPayload() *VideoPayload {
if x, ok := m.GetPayload().(*Example_VideoPayload); ok {
return x.VideoPayload
}
return nil
}
func (m *Example) GetAudioPayload() *AudioPayload {
if x, ok := m.GetPayload().(*Example_AudioPayload); ok {
return x.AudioPayload
}
return nil
}
func (m *Example) GetName() string {
if m != nil {
return m.Name
}
return ""
}
func (m *Example) GetAnnotations() []*Annotation {
if m != nil {
return m.Annotations
}
return nil
}
// XXX_OneofFuncs is for the internal use of the proto package.
func (*Example) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {
return _Example_OneofMarshaler, _Example_OneofUnmarshaler, _Example_OneofSizer, []interface{}{
(*Example_ImagePayload)(nil),
(*Example_TextPayload)(nil),
(*Example_VideoPayload)(nil),
(*Example_AudioPayload)(nil),
}
}
func _Example_OneofMarshaler(msg proto.Message, b *proto.Buffer) error {
m := msg.(*Example)
// payload
switch x := m.Payload.(type) {
case *Example_ImagePayload:
b.EncodeVarint(2<<3 | proto.WireBytes)
if err := b.EncodeMessage(x.ImagePayload); err != nil {
return err
}
case *Example_TextPayload:
b.EncodeVarint(6<<3 | proto.WireBytes)
if err := b.EncodeMessage(x.TextPayload); err != nil {
return err
}
case *Example_VideoPayload:
b.EncodeVarint(7<<3 | proto.WireBytes)
if err := b.EncodeMessage(x.VideoPayload); err != nil {
return err
}
case *Example_AudioPayload:
b.EncodeVarint(8<<3 | proto.WireBytes)
if err := b.EncodeMessage(x.AudioPayload); err != nil {
return err
}
case nil:
default:
return fmt.Errorf("Example.Payload has unexpected type %T", x)
}
return nil
}
func _Example_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) {
m := msg.(*Example)
switch tag {
case 2: // payload.image_payload
if wire != proto.WireBytes {
return true, proto.ErrInternalBadWireType
}
msg := new(ImagePayload)
err := b.DecodeMessage(msg)
m.Payload = &Example_ImagePayload{msg}
return true, err
case 6: // payload.text_payload
if wire != proto.WireBytes {
return true, proto.ErrInternalBadWireType
}
msg := new(TextPayload)
err := b.DecodeMessage(msg)
m.Payload = &Example_TextPayload{msg}
return true, err
case 7: // payload.video_payload
if wire != proto.WireBytes {
return true, proto.ErrInternalBadWireType
}
msg := new(VideoPayload)
err := b.DecodeMessage(msg)
m.Payload = &Example_VideoPayload{msg}
return true, err
case 8: // payload.audio_payload
if wire != proto.WireBytes {
return true, proto.ErrInternalBadWireType
}
msg := new(AudioPayload)
err := b.DecodeMessage(msg)
m.Payload = &Example_AudioPayload{msg}
return true, err
default:
return false, nil
}
}
func _Example_OneofSizer(msg proto.Message) (n int) {
m := msg.(*Example)
// payload
switch x := m.Payload.(type) {
case *Example_ImagePayload:
s := proto.Size(x.ImagePayload)
n += 1 // tag and wire
n += proto.SizeVarint(uint64(s))
n += s
case *Example_TextPayload:
s := proto.Size(x.TextPayload)
n += 1 // tag and wire
n += proto.SizeVarint(uint64(s))
n += s
case *Example_VideoPayload:
s := proto.Size(x.VideoPayload)
n += 1 // tag and wire
n += proto.SizeVarint(uint64(s))
n += s
case *Example_AudioPayload:
s := proto.Size(x.AudioPayload)
n += 1 // tag and wire
n += proto.SizeVarint(uint64(s))
n += s
case nil:
default:
panic(fmt.Sprintf("proto: unexpected type %T in oneof", x))
}
return n
}
// Container of information about an image.
type ImagePayload struct {
// Image format.
MimeType string `protobuf:"bytes,1,opt,name=mime_type,json=mimeType,proto3" json:"mime_type,omitempty"`
// A byte string of a full image.
ImageThumbnail []byte `protobuf:"bytes,2,opt,name=image_thumbnail,json=imageThumbnail,proto3" json:"image_thumbnail,omitempty"`
// Image uri from the user bucket.
ImageUri string `protobuf:"bytes,3,opt,name=image_uri,json=imageUri,proto3" json:"image_uri,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ImagePayload) Reset() { *m = ImagePayload{} }
func (m *ImagePayload) String() string { return proto.CompactTextString(m) }
func (*ImagePayload) ProtoMessage() {}
func (*ImagePayload) Descriptor() ([]byte, []int) {
return fileDescriptor_dataset_b0759c67587c817f, []int{11}
}
func (m *ImagePayload) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ImagePayload.Unmarshal(m, b)
}
func (m *ImagePayload) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ImagePayload.Marshal(b, m, deterministic)
}
func (dst *ImagePayload) XXX_Merge(src proto.Message) {
xxx_messageInfo_ImagePayload.Merge(dst, src)
}
func (m *ImagePayload) XXX_Size() int {
return xxx_messageInfo_ImagePayload.Size(m)
}
func (m *ImagePayload) XXX_DiscardUnknown() {
xxx_messageInfo_ImagePayload.DiscardUnknown(m)
}
var xxx_messageInfo_ImagePayload proto.InternalMessageInfo
func (m *ImagePayload) GetMimeType() string {
if m != nil {
return m.MimeType
}
return ""
}
func (m *ImagePayload) GetImageThumbnail() []byte {
if m != nil {
return m.ImageThumbnail
}
return nil
}
func (m *ImagePayload) GetImageUri() string {
if m != nil {
return m.ImageUri
}
return ""
}
// Container of information about a piece of text.
type TextPayload struct {
// Text content.
TextContent string `protobuf:"bytes,1,opt,name=text_content,json=textContent,proto3" json:"text_content,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *TextPayload) Reset() { *m = TextPayload{} }
func (m *TextPayload) String() string { return proto.CompactTextString(m) }
func (*TextPayload) ProtoMessage() {}
func (*TextPayload) Descriptor() ([]byte, []int) {
return fileDescriptor_dataset_b0759c67587c817f, []int{12}
}
func (m *TextPayload) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_TextPayload.Unmarshal(m, b)
}
func (m *TextPayload) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_TextPayload.Marshal(b, m, deterministic)
}
func (dst *TextPayload) XXX_Merge(src proto.Message) {
xxx_messageInfo_TextPayload.Merge(dst, src)
}
func (m *TextPayload) XXX_Size() int {
return xxx_messageInfo_TextPayload.Size(m)
}
func (m *TextPayload) XXX_DiscardUnknown() {
xxx_messageInfo_TextPayload.DiscardUnknown(m)
}
var xxx_messageInfo_TextPayload proto.InternalMessageInfo
func (m *TextPayload) GetTextContent() string {
if m != nil {
return m.TextContent
}
return ""
}
// Container of information of a video thumbnail.
type VideoThumbnail struct {
// A byte string of the video frame.
Thumbnail []byte `protobuf:"bytes,1,opt,name=thumbnail,proto3" json:"thumbnail,omitempty"`
// Time offset relative to the beginning of the video, corresponding to the
// video frame where the thumbnail has been extracted from.
TimeOffset *duration.Duration `protobuf:"bytes,2,opt,name=time_offset,json=timeOffset,proto3" json:"time_offset,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *VideoThumbnail) Reset() { *m = VideoThumbnail{} }
func (m *VideoThumbnail) String() string { return proto.CompactTextString(m) }
func (*VideoThumbnail) ProtoMessage() {}
func (*VideoThumbnail) Descriptor() ([]byte, []int) {
return fileDescriptor_dataset_b0759c67587c817f, []int{13}
}
func (m *VideoThumbnail) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_VideoThumbnail.Unmarshal(m, b)
}
func (m *VideoThumbnail) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_VideoThumbnail.Marshal(b, m, deterministic)
}
func (dst *VideoThumbnail) XXX_Merge(src proto.Message) {
xxx_messageInfo_VideoThumbnail.Merge(dst, src)
}
func (m *VideoThumbnail) XXX_Size() int {
return xxx_messageInfo_VideoThumbnail.Size(m)
}
func (m *VideoThumbnail) XXX_DiscardUnknown() {
xxx_messageInfo_VideoThumbnail.DiscardUnknown(m)
}
var xxx_messageInfo_VideoThumbnail proto.InternalMessageInfo
func (m *VideoThumbnail) GetThumbnail() []byte {
if m != nil {
return m.Thumbnail
}
return nil
}
func (m *VideoThumbnail) GetTimeOffset() *duration.Duration {
if m != nil {
return m.TimeOffset
}
return nil
}
// Container of information of a video.
type VideoPayload struct {
// Video format.
MimeType string `protobuf:"bytes,1,opt,name=mime_type,json=mimeType,proto3" json:"mime_type,omitempty"`
// Video uri from the user bucket.
VideoUri string `protobuf:"bytes,2,opt,name=video_uri,json=videoUri,proto3" json:"video_uri,omitempty"`
// The list of video thumbnails.
VideoThumbnails []*VideoThumbnail `protobuf:"bytes,3,rep,name=video_thumbnails,json=videoThumbnails,proto3" json:"video_thumbnails,omitempty"`
// FPS of the video.
FrameRate float32 `protobuf:"fixed32,4,opt,name=frame_rate,json=frameRate,proto3" json:"frame_rate,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *VideoPayload) Reset() { *m = VideoPayload{} }
func (m *VideoPayload) String() string { return proto.CompactTextString(m) }
func (*VideoPayload) ProtoMessage() {}
func (*VideoPayload) Descriptor() ([]byte, []int) {
return fileDescriptor_dataset_b0759c67587c817f, []int{14}
}
func (m *VideoPayload) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_VideoPayload.Unmarshal(m, b)
}
func (m *VideoPayload) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_VideoPayload.Marshal(b, m, deterministic)
}
func (dst *VideoPayload) XXX_Merge(src proto.Message) {
xxx_messageInfo_VideoPayload.Merge(dst, src)
}
func (m *VideoPayload) XXX_Size() int {
return xxx_messageInfo_VideoPayload.Size(m)
}
func (m *VideoPayload) XXX_DiscardUnknown() {
xxx_messageInfo_VideoPayload.DiscardUnknown(m)
}
var xxx_messageInfo_VideoPayload proto.InternalMessageInfo
func (m *VideoPayload) GetMimeType() string {
if m != nil {
return m.MimeType
}
return ""
}
func (m *VideoPayload) GetVideoUri() string {
if m != nil {
return m.VideoUri
}
return ""
}
func (m *VideoPayload) GetVideoThumbnails() []*VideoThumbnail {
if m != nil {
return m.VideoThumbnails
}
return nil
}
func (m *VideoPayload) GetFrameRate() float32 {
if m != nil {
return m.FrameRate
}
return 0
}
// Container of information of an audio.
type AudioPayload struct {
// Audio uri in user bucket.
AudioUri string `protobuf:"bytes,1,opt,name=audio_uri,json=audioUri,proto3" json:"audio_uri,omitempty"`
// Sample rate in Hertz of the audio data sent in all
// `RecognitionAudio` messages. This field is optional for `FLAC` and `WAV`
// audio files and required for all other audio formats. For details,
// see [AudioEncoding][google.cloud.datalabeling.v1beta1.AudioPayload.AudioEncoding].
SampleRateHertz int32 `protobuf:"varint,3,opt,name=sample_rate_hertz,json=sampleRateHertz,proto3" json:"sample_rate_hertz,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *AudioPayload) Reset() { *m = AudioPayload{} }
func (m *AudioPayload) String() string { return proto.CompactTextString(m) }
func (*AudioPayload) ProtoMessage() {}
func (*AudioPayload) Descriptor() ([]byte, []int) {
return fileDescriptor_dataset_b0759c67587c817f, []int{15}
}
func (m *AudioPayload) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_AudioPayload.Unmarshal(m, b)
}
func (m *AudioPayload) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_AudioPayload.Marshal(b, m, deterministic)
}
func (dst *AudioPayload) XXX_Merge(src proto.Message) {
xxx_messageInfo_AudioPayload.Merge(dst, src)
}
func (m *AudioPayload) XXX_Size() int {
return xxx_messageInfo_AudioPayload.Size(m)
}
func (m *AudioPayload) XXX_DiscardUnknown() {
xxx_messageInfo_AudioPayload.DiscardUnknown(m)
}
var xxx_messageInfo_AudioPayload proto.InternalMessageInfo
func (m *AudioPayload) GetAudioUri() string {
if m != nil {
return m.AudioUri
}
return ""
}
func (m *AudioPayload) GetSampleRateHertz() int32 {
if m != nil {
return m.SampleRateHertz
}
return 0
}
func init() {
proto.RegisterType((*Dataset)(nil), "google.cloud.datalabeling.v1beta1.Dataset")
proto.RegisterType((*InputConfig)(nil), "google.cloud.datalabeling.v1beta1.InputConfig")
proto.RegisterType((*GcsSource)(nil), "google.cloud.datalabeling.v1beta1.GcsSource")
proto.RegisterType((*OutputConfig)(nil), "google.cloud.datalabeling.v1beta1.OutputConfig")
proto.RegisterType((*GcsDestination)(nil), "google.cloud.datalabeling.v1beta1.GcsDestination")
proto.RegisterType((*GcsFolderDestination)(nil), "google.cloud.datalabeling.v1beta1.GcsFolderDestination")
proto.RegisterType((*DataItem)(nil), "google.cloud.datalabeling.v1beta1.DataItem")
proto.RegisterType((*AnnotatedDataset)(nil), "google.cloud.datalabeling.v1beta1.AnnotatedDataset")
proto.RegisterType((*AnnotatedDatasetMetadata)(nil), "google.cloud.datalabeling.v1beta1.AnnotatedDatasetMetadata")
proto.RegisterType((*LabelStats)(nil), "google.cloud.datalabeling.v1beta1.LabelStats")
proto.RegisterMapType((map[string]int64)(nil), "google.cloud.datalabeling.v1beta1.LabelStats.ExampleCountEntry")
proto.RegisterType((*Example)(nil), "google.cloud.datalabeling.v1beta1.Example")
proto.RegisterType((*ImagePayload)(nil), "google.cloud.datalabeling.v1beta1.ImagePayload")
proto.RegisterType((*TextPayload)(nil), "google.cloud.datalabeling.v1beta1.TextPayload")
proto.RegisterType((*VideoThumbnail)(nil), "google.cloud.datalabeling.v1beta1.VideoThumbnail")
proto.RegisterType((*VideoPayload)(nil), "google.cloud.datalabeling.v1beta1.VideoPayload")
proto.RegisterType((*AudioPayload)(nil), "google.cloud.datalabeling.v1beta1.AudioPayload")
proto.RegisterEnum("google.cloud.datalabeling.v1beta1.DataType", DataType_name, DataType_value)
}
func init() {
proto.RegisterFile("google/cloud/datalabeling/v1beta1/dataset.proto", fileDescriptor_dataset_b0759c67587c817f)
}
var fileDescriptor_dataset_b0759c67587c817f = []byte{
// 1504 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x58, 0xef, 0x4e, 0x1b, 0x47,
0x10, 0xe7, 0x30, 0x06, 0x7b, 0xce, 0x80, 0xd9, 0x42, 0x63, 0x20, 0x69, 0x89, 0xab, 0xaa, 0x51,
0xda, 0x98, 0x42, 0xd4, 0x36, 0x4a, 0x5a, 0x45, 0x80, 0x9d, 0x80, 0x14, 0x02, 0x3a, 0x4c, 0xd2,
0x46, 0x91, 0xae, 0xeb, 0xbb, 0xe5, 0xb8, 0xe4, 0xfe, 0xe5, 0x6e, 0xcf, 0xc2, 0xad, 0xd4, 0x0f,
0xfd, 0xd0, 0x67, 0xe8, 0x63, 0x54, 0xea, 0x33, 0xf4, 0x15, 0xfa, 0x14, 0xf9, 0xd8, 0x07, 0xa8,
0xf6, 0x8f, 0xef, 0x0f, 0xd8, 0xe1, 0x90, 0x9a, 0x7e, 0xbb, 0xfd, 0xcd, 0xce, 0x6f, 0x66, 0x76,
0xd6, 0x33, 0xb3, 0x86, 0x75, 0xcb, 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