| // Code generated by protoc-gen-go. DO NOT EDIT. |
| // source: google/cloud/automl/v1beta1/dataset.proto |
| |
| package automl // import "google.golang.org/genproto/googleapis/cloud/automl/v1beta1" |
| |
| import proto "github.com/golang/protobuf/proto" |
| import fmt "fmt" |
| import math "math" |
| 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 |
| |
| // A workspace for solving a single, particular machine learning (ML) problem. |
| // A workspace contains examples that may be annotated. |
| type Dataset struct { |
| // Required. |
| // The dataset metadata that is specific to the problem type. |
| // |
| // Types that are valid to be assigned to DatasetMetadata: |
| // *Dataset_TranslationDatasetMetadata |
| // *Dataset_ImageClassificationDatasetMetadata |
| // *Dataset_TextClassificationDatasetMetadata |
| DatasetMetadata isDataset_DatasetMetadata `protobuf_oneof:"dataset_metadata"` |
| // Output only. The resource name of the dataset. |
| // Form: `projects/{project_id}/locations/{location_id}/datasets/{dataset_id}` |
| Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` |
| // Required. The name of the dataset to show in the interface. The name can be |
| // up to 32 characters |
| // long and can consist only of ASCII Latin letters A-Z and a-z, underscores |
| // (_), and ASCII digits 0-9. |
| DisplayName string `protobuf:"bytes,2,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"` |
| // Output only. The number of examples in the dataset. |
| ExampleCount int32 `protobuf:"varint,21,opt,name=example_count,json=exampleCount,proto3" json:"example_count,omitempty"` |
| // Output only. Timestamp when this dataset was created. |
| CreateTime *timestamp.Timestamp `protobuf:"bytes,14,opt,name=create_time,json=createTime,proto3" json:"create_time,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_0f6cd639ca5f12a6, []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 |
| |
| type isDataset_DatasetMetadata interface { |
| isDataset_DatasetMetadata() |
| } |
| |
| type Dataset_TranslationDatasetMetadata struct { |
| TranslationDatasetMetadata *TranslationDatasetMetadata `protobuf:"bytes,23,opt,name=translation_dataset_metadata,json=translationDatasetMetadata,proto3,oneof"` |
| } |
| |
| type Dataset_ImageClassificationDatasetMetadata struct { |
| ImageClassificationDatasetMetadata *ImageClassificationDatasetMetadata `protobuf:"bytes,24,opt,name=image_classification_dataset_metadata,json=imageClassificationDatasetMetadata,proto3,oneof"` |
| } |
| |
| type Dataset_TextClassificationDatasetMetadata struct { |
| TextClassificationDatasetMetadata *TextClassificationDatasetMetadata `protobuf:"bytes,25,opt,name=text_classification_dataset_metadata,json=textClassificationDatasetMetadata,proto3,oneof"` |
| } |
| |
| func (*Dataset_TranslationDatasetMetadata) isDataset_DatasetMetadata() {} |
| |
| func (*Dataset_ImageClassificationDatasetMetadata) isDataset_DatasetMetadata() {} |
| |
| func (*Dataset_TextClassificationDatasetMetadata) isDataset_DatasetMetadata() {} |
| |
| func (m *Dataset) GetDatasetMetadata() isDataset_DatasetMetadata { |
| if m != nil { |
| return m.DatasetMetadata |
| } |
| return nil |
| } |
| |
| func (m *Dataset) GetTranslationDatasetMetadata() *TranslationDatasetMetadata { |
| if x, ok := m.GetDatasetMetadata().(*Dataset_TranslationDatasetMetadata); ok { |
| return x.TranslationDatasetMetadata |
| } |
| return nil |
| } |
| |
| func (m *Dataset) GetImageClassificationDatasetMetadata() *ImageClassificationDatasetMetadata { |
| if x, ok := m.GetDatasetMetadata().(*Dataset_ImageClassificationDatasetMetadata); ok { |
| return x.ImageClassificationDatasetMetadata |
| } |
| return nil |
| } |
| |
| func (m *Dataset) GetTextClassificationDatasetMetadata() *TextClassificationDatasetMetadata { |
| if x, ok := m.GetDatasetMetadata().(*Dataset_TextClassificationDatasetMetadata); ok { |
| return x.TextClassificationDatasetMetadata |
| } |
| return nil |
| } |
| |
| 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) GetExampleCount() int32 { |
| if m != nil { |
| return m.ExampleCount |
| } |
| return 0 |
| } |
| |
| func (m *Dataset) GetCreateTime() *timestamp.Timestamp { |
| if m != nil { |
| return m.CreateTime |
| } |
| return nil |
| } |
| |
| // XXX_OneofFuncs is for the internal use of the proto package. |
| func (*Dataset) 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 _Dataset_OneofMarshaler, _Dataset_OneofUnmarshaler, _Dataset_OneofSizer, []interface{}{ |
| (*Dataset_TranslationDatasetMetadata)(nil), |
| (*Dataset_ImageClassificationDatasetMetadata)(nil), |
| (*Dataset_TextClassificationDatasetMetadata)(nil), |
| } |
| } |
| |
| func _Dataset_OneofMarshaler(msg proto.Message, b *proto.Buffer) error { |
| m := msg.(*Dataset) |
| // dataset_metadata |
| switch x := m.DatasetMetadata.(type) { |
| case *Dataset_TranslationDatasetMetadata: |
| b.EncodeVarint(23<<3 | proto.WireBytes) |
| if err := b.EncodeMessage(x.TranslationDatasetMetadata); err != nil { |
| return err |
| } |
| case *Dataset_ImageClassificationDatasetMetadata: |
| b.EncodeVarint(24<<3 | proto.WireBytes) |
| if err := b.EncodeMessage(x.ImageClassificationDatasetMetadata); err != nil { |
| return err |
| } |
| case *Dataset_TextClassificationDatasetMetadata: |
| b.EncodeVarint(25<<3 | proto.WireBytes) |
| if err := b.EncodeMessage(x.TextClassificationDatasetMetadata); err != nil { |
| return err |
| } |
| case nil: |
| default: |
| return fmt.Errorf("Dataset.DatasetMetadata has unexpected type %T", x) |
| } |
| return nil |
| } |
| |
| func _Dataset_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) { |
| m := msg.(*Dataset) |
| switch tag { |
| case 23: // dataset_metadata.translation_dataset_metadata |
| if wire != proto.WireBytes { |
| return true, proto.ErrInternalBadWireType |
| } |
| msg := new(TranslationDatasetMetadata) |
| err := b.DecodeMessage(msg) |
| m.DatasetMetadata = &Dataset_TranslationDatasetMetadata{msg} |
| return true, err |
| case 24: // dataset_metadata.image_classification_dataset_metadata |
| if wire != proto.WireBytes { |
| return true, proto.ErrInternalBadWireType |
| } |
| msg := new(ImageClassificationDatasetMetadata) |
| err := b.DecodeMessage(msg) |
| m.DatasetMetadata = &Dataset_ImageClassificationDatasetMetadata{msg} |
| return true, err |
| case 25: // dataset_metadata.text_classification_dataset_metadata |
| if wire != proto.WireBytes { |
| return true, proto.ErrInternalBadWireType |
| } |
| msg := new(TextClassificationDatasetMetadata) |
| err := b.DecodeMessage(msg) |
| m.DatasetMetadata = &Dataset_TextClassificationDatasetMetadata{msg} |
| return true, err |
| default: |
| return false, nil |
| } |
| } |
| |
| func _Dataset_OneofSizer(msg proto.Message) (n int) { |
| m := msg.(*Dataset) |
| // dataset_metadata |
| switch x := m.DatasetMetadata.(type) { |
| case *Dataset_TranslationDatasetMetadata: |
| s := proto.Size(x.TranslationDatasetMetadata) |
| n += 2 // tag and wire |
| n += proto.SizeVarint(uint64(s)) |
| n += s |
| case *Dataset_ImageClassificationDatasetMetadata: |
| s := proto.Size(x.ImageClassificationDatasetMetadata) |
| n += 2 // tag and wire |
| n += proto.SizeVarint(uint64(s)) |
| n += s |
| case *Dataset_TextClassificationDatasetMetadata: |
| s := proto.Size(x.TextClassificationDatasetMetadata) |
| n += 2 // 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 |
| } |
| |
| func init() { |
| proto.RegisterType((*Dataset)(nil), "google.cloud.automl.v1beta1.Dataset") |
| } |
| |
| func init() { |
| proto.RegisterFile("google/cloud/automl/v1beta1/dataset.proto", fileDescriptor_dataset_0f6cd639ca5f12a6) |
| } |
| |
| var fileDescriptor_dataset_0f6cd639ca5f12a6 = []byte{ |
| // 428 bytes of a gzipped FileDescriptorProto |
| 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x84, 0x92, 0x5d, 0x6b, 0x14, 0x31, |
| 0x14, 0x86, 0x1d, 0xa9, 0x8a, 0xd9, 0x2a, 0x12, 0x10, 0xc7, 0xb1, 0xd0, 0x6d, 0xfd, 0x5a, 0x41, |
| 0x13, 0xaa, 0x82, 0x17, 0x05, 0xc5, 0xd6, 0x0b, 0xbd, 0x50, 0x64, 0xe9, 0x95, 0x37, 0xe1, 0xec, |
| 0x6c, 0x76, 0x08, 0xe4, 0x63, 0xd8, 0x9c, 0x91, 0x2d, 0xfe, 0x0a, 0xc1, 0xdf, 0xe7, 0x6f, 0x91, |
| 0x49, 0x32, 0xd4, 0xaf, 0x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