1// Code generated by protoc-gen-go. DO NOT EDIT.
2// source: google/cloud/automl/v1beta1/io.proto
3
4package automl // import "google.golang.org/genproto/googleapis/cloud/automl/v1beta1"
5
6import proto "github.com/golang/protobuf/proto"
7import fmt "fmt"
8import math "math"
9import _ "google.golang.org/genproto/googleapis/api/annotations"
10
11// Reference imports to suppress errors if they are not otherwise used.
12var _ = proto.Marshal
13var _ = fmt.Errorf
14var _ = math.Inf
15
16// This is a compile-time assertion to ensure that this generated file
17// is compatible with the proto package it is being compiled against.
18// A compilation error at this line likely means your copy of the
19// proto package needs to be updated.
20const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
21
22// Input configuration.
23type InputConfig struct {
24	// Required. The source of the input.
25	//
26	// Types that are valid to be assigned to Source:
27	//	*InputConfig_GcsSource
28	Source               isInputConfig_Source `protobuf_oneof:"source"`
29	XXX_NoUnkeyedLiteral struct{}             `json:"-"`
30	XXX_unrecognized     []byte               `json:"-"`
31	XXX_sizecache        int32                `json:"-"`
32}
33
34func (m *InputConfig) Reset()         { *m = InputConfig{} }
35func (m *InputConfig) String() string { return proto.CompactTextString(m) }
36func (*InputConfig) ProtoMessage()    {}
37func (*InputConfig) Descriptor() ([]byte, []int) {
38	return fileDescriptor_io_30049c92fb799bce, []int{0}
39}
40func (m *InputConfig) XXX_Unmarshal(b []byte) error {
41	return xxx_messageInfo_InputConfig.Unmarshal(m, b)
42}
43func (m *InputConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
44	return xxx_messageInfo_InputConfig.Marshal(b, m, deterministic)
45}
46func (dst *InputConfig) XXX_Merge(src proto.Message) {
47	xxx_messageInfo_InputConfig.Merge(dst, src)
48}
49func (m *InputConfig) XXX_Size() int {
50	return xxx_messageInfo_InputConfig.Size(m)
51}
52func (m *InputConfig) XXX_DiscardUnknown() {
53	xxx_messageInfo_InputConfig.DiscardUnknown(m)
54}
55
56var xxx_messageInfo_InputConfig proto.InternalMessageInfo
57
58type isInputConfig_Source interface {
59	isInputConfig_Source()
60}
61
62type InputConfig_GcsSource struct {
63	GcsSource *GcsSource `protobuf:"bytes,1,opt,name=gcs_source,json=gcsSource,proto3,oneof"`
64}
65
66func (*InputConfig_GcsSource) isInputConfig_Source() {}
67
68func (m *InputConfig) GetSource() isInputConfig_Source {
69	if m != nil {
70		return m.Source
71	}
72	return nil
73}
74
75func (m *InputConfig) GetGcsSource() *GcsSource {
76	if x, ok := m.GetSource().(*InputConfig_GcsSource); ok {
77		return x.GcsSource
78	}
79	return nil
80}
81
82// XXX_OneofFuncs is for the internal use of the proto package.
83func (*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{}) {
84	return _InputConfig_OneofMarshaler, _InputConfig_OneofUnmarshaler, _InputConfig_OneofSizer, []interface{}{
85		(*InputConfig_GcsSource)(nil),
86	}
87}
88
89func _InputConfig_OneofMarshaler(msg proto.Message, b *proto.Buffer) error {
90	m := msg.(*InputConfig)
91	// source
92	switch x := m.Source.(type) {
93	case *InputConfig_GcsSource:
94		b.EncodeVarint(1<<3 | proto.WireBytes)
95		if err := b.EncodeMessage(x.GcsSource); err != nil {
96			return err
97		}
98	case nil:
99	default:
100		return fmt.Errorf("InputConfig.Source has unexpected type %T", x)
101	}
102	return nil
103}
104
105func _InputConfig_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) {
106	m := msg.(*InputConfig)
107	switch tag {
108	case 1: // source.gcs_source
109		if wire != proto.WireBytes {
110			return true, proto.ErrInternalBadWireType
111		}
112		msg := new(GcsSource)
113		err := b.DecodeMessage(msg)
114		m.Source = &InputConfig_GcsSource{msg}
115		return true, err
116	default:
117		return false, nil
118	}
119}
120
121func _InputConfig_OneofSizer(msg proto.Message) (n int) {
122	m := msg.(*InputConfig)
123	// source
124	switch x := m.Source.(type) {
125	case *InputConfig_GcsSource:
126		s := proto.Size(x.GcsSource)
127		n += 1 // tag and wire
128		n += proto.SizeVarint(uint64(s))
129		n += s
130	case nil:
131	default:
132		panic(fmt.Sprintf("proto: unexpected type %T in oneof", x))
133	}
134	return n
135}
136
137// Output configuration.
138type OutputConfig struct {
139	// Required. The destination of the output.
140	//
141	// Types that are valid to be assigned to Destination:
142	//	*OutputConfig_GcsDestination
143	Destination          isOutputConfig_Destination `protobuf_oneof:"destination"`
144	XXX_NoUnkeyedLiteral struct{}                   `json:"-"`
145	XXX_unrecognized     []byte                     `json:"-"`
146	XXX_sizecache        int32                      `json:"-"`
147}
148
149func (m *OutputConfig) Reset()         { *m = OutputConfig{} }
150func (m *OutputConfig) String() string { return proto.CompactTextString(m) }
151func (*OutputConfig) ProtoMessage()    {}
152func (*OutputConfig) Descriptor() ([]byte, []int) {
153	return fileDescriptor_io_30049c92fb799bce, []int{1}
154}
155func (m *OutputConfig) XXX_Unmarshal(b []byte) error {
156	return xxx_messageInfo_OutputConfig.Unmarshal(m, b)
157}
158func (m *OutputConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
159	return xxx_messageInfo_OutputConfig.Marshal(b, m, deterministic)
160}
161func (dst *OutputConfig) XXX_Merge(src proto.Message) {
162	xxx_messageInfo_OutputConfig.Merge(dst, src)
163}
164func (m *OutputConfig) XXX_Size() int {
165	return xxx_messageInfo_OutputConfig.Size(m)
166}
167func (m *OutputConfig) XXX_DiscardUnknown() {
168	xxx_messageInfo_OutputConfig.DiscardUnknown(m)
169}
170
171var xxx_messageInfo_OutputConfig proto.InternalMessageInfo
172
173type isOutputConfig_Destination interface {
174	isOutputConfig_Destination()
175}
176
177type OutputConfig_GcsDestination struct {
178	GcsDestination *GcsDestination `protobuf:"bytes,1,opt,name=gcs_destination,json=gcsDestination,proto3,oneof"`
179}
180
181func (*OutputConfig_GcsDestination) isOutputConfig_Destination() {}
182
183func (m *OutputConfig) GetDestination() isOutputConfig_Destination {
184	if m != nil {
185		return m.Destination
186	}
187	return nil
188}
189
190func (m *OutputConfig) GetGcsDestination() *GcsDestination {
191	if x, ok := m.GetDestination().(*OutputConfig_GcsDestination); ok {
192		return x.GcsDestination
193	}
194	return nil
195}
196
197// XXX_OneofFuncs is for the internal use of the proto package.
198func (*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{}) {
199	return _OutputConfig_OneofMarshaler, _OutputConfig_OneofUnmarshaler, _OutputConfig_OneofSizer, []interface{}{
200		(*OutputConfig_GcsDestination)(nil),
201	}
202}
203
204func _OutputConfig_OneofMarshaler(msg proto.Message, b *proto.Buffer) error {
205	m := msg.(*OutputConfig)
206	// destination
207	switch x := m.Destination.(type) {
208	case *OutputConfig_GcsDestination:
209		b.EncodeVarint(1<<3 | proto.WireBytes)
210		if err := b.EncodeMessage(x.GcsDestination); err != nil {
211			return err
212		}
213	case nil:
214	default:
215		return fmt.Errorf("OutputConfig.Destination has unexpected type %T", x)
216	}
217	return nil
218}
219
220func _OutputConfig_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) {
221	m := msg.(*OutputConfig)
222	switch tag {
223	case 1: // destination.gcs_destination
224		if wire != proto.WireBytes {
225			return true, proto.ErrInternalBadWireType
226		}
227		msg := new(GcsDestination)
228		err := b.DecodeMessage(msg)
229		m.Destination = &OutputConfig_GcsDestination{msg}
230		return true, err
231	default:
232		return false, nil
233	}
234}
235
236func _OutputConfig_OneofSizer(msg proto.Message) (n int) {
237	m := msg.(*OutputConfig)
238	// destination
239	switch x := m.Destination.(type) {
240	case *OutputConfig_GcsDestination:
241		s := proto.Size(x.GcsDestination)
242		n += 1 // tag and wire
243		n += proto.SizeVarint(uint64(s))
244		n += s
245	case nil:
246	default:
247		panic(fmt.Sprintf("proto: unexpected type %T in oneof", x))
248	}
249	return n
250}
251
252// The GCS location for the input content.
253type GcsSource struct {
254	// Required. Google Cloud Storage URIs to input files, up to 2000 characters
255	// long. Accepted forms:
256	// * Full object path: gs://bucket/directory/object.csv
257	InputUris            []string `protobuf:"bytes,1,rep,name=input_uris,json=inputUris,proto3" json:"input_uris,omitempty"`
258	XXX_NoUnkeyedLiteral struct{} `json:"-"`
259	XXX_unrecognized     []byte   `json:"-"`
260	XXX_sizecache        int32    `json:"-"`
261}
262
263func (m *GcsSource) Reset()         { *m = GcsSource{} }
264func (m *GcsSource) String() string { return proto.CompactTextString(m) }
265func (*GcsSource) ProtoMessage()    {}
266func (*GcsSource) Descriptor() ([]byte, []int) {
267	return fileDescriptor_io_30049c92fb799bce, []int{2}
268}
269func (m *GcsSource) XXX_Unmarshal(b []byte) error {
270	return xxx_messageInfo_GcsSource.Unmarshal(m, b)
271}
272func (m *GcsSource) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
273	return xxx_messageInfo_GcsSource.Marshal(b, m, deterministic)
274}
275func (dst *GcsSource) XXX_Merge(src proto.Message) {
276	xxx_messageInfo_GcsSource.Merge(dst, src)
277}
278func (m *GcsSource) XXX_Size() int {
279	return xxx_messageInfo_GcsSource.Size(m)
280}
281func (m *GcsSource) XXX_DiscardUnknown() {
282	xxx_messageInfo_GcsSource.DiscardUnknown(m)
283}
284
285var xxx_messageInfo_GcsSource proto.InternalMessageInfo
286
287func (m *GcsSource) GetInputUris() []string {
288	if m != nil {
289		return m.InputUris
290	}
291	return nil
292}
293
294// The GCS location where the output must be written to
295type GcsDestination struct {
296	// Required. Google Cloud Storage URI to output directory, up to 2000
297	// characters long.
298	// Accepted forms:
299	// * Prefix path: gs://bucket/directory
300	// The requesting user must have write permission to the bucket.
301	// The directory is created if it doesn't exist.
302	OutputUriPrefix      string   `protobuf:"bytes,1,opt,name=output_uri_prefix,json=outputUriPrefix,proto3" json:"output_uri_prefix,omitempty"`
303	XXX_NoUnkeyedLiteral struct{} `json:"-"`
304	XXX_unrecognized     []byte   `json:"-"`
305	XXX_sizecache        int32    `json:"-"`
306}
307
308func (m *GcsDestination) Reset()         { *m = GcsDestination{} }
309func (m *GcsDestination) String() string { return proto.CompactTextString(m) }
310func (*GcsDestination) ProtoMessage()    {}
311func (*GcsDestination) Descriptor() ([]byte, []int) {
312	return fileDescriptor_io_30049c92fb799bce, []int{3}
313}
314func (m *GcsDestination) XXX_Unmarshal(b []byte) error {
315	return xxx_messageInfo_GcsDestination.Unmarshal(m, b)
316}
317func (m *GcsDestination) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
318	return xxx_messageInfo_GcsDestination.Marshal(b, m, deterministic)
319}
320func (dst *GcsDestination) XXX_Merge(src proto.Message) {
321	xxx_messageInfo_GcsDestination.Merge(dst, src)
322}
323func (m *GcsDestination) XXX_Size() int {
324	return xxx_messageInfo_GcsDestination.Size(m)
325}
326func (m *GcsDestination) XXX_DiscardUnknown() {
327	xxx_messageInfo_GcsDestination.DiscardUnknown(m)
328}
329
330var xxx_messageInfo_GcsDestination proto.InternalMessageInfo
331
332func (m *GcsDestination) GetOutputUriPrefix() string {
333	if m != nil {
334		return m.OutputUriPrefix
335	}
336	return ""
337}
338
339func init() {
340	proto.RegisterType((*InputConfig)(nil), "google.cloud.automl.v1beta1.InputConfig")
341	proto.RegisterType((*OutputConfig)(nil), "google.cloud.automl.v1beta1.OutputConfig")
342	proto.RegisterType((*GcsSource)(nil), "google.cloud.automl.v1beta1.GcsSource")
343	proto.RegisterType((*GcsDestination)(nil), "google.cloud.automl.v1beta1.GcsDestination")
344}
345
346func init() {
347	proto.RegisterFile("google/cloud/automl/v1beta1/io.proto", fileDescriptor_io_30049c92fb799bce)
348}
349
350var fileDescriptor_io_30049c92fb799bce = []byte{
351	// 300 bytes of a gzipped FileDescriptorProto
352	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x84, 0x91, 0x4b, 0x4b, 0x03, 0x31,
353	0x10, 0xc7, 0xbb, 0x08, 0xc5, 0x9d, 0x6a, 0x8b, 0x7b, 0x2a, 0x3e, 0xb0, 0x2c, 0x22, 0xa5, 0x42,
354	0x42, 0xf5, 0xa8, 0x17, 0xab, 0xd0, 0x7a, 0xb2, 0xac, 0xd4, 0x83, 0x97, 0x9a, 0x6e, 0xd3, 0x10,
355	0xd8, 0x66, 0x96, 0x3c, 0xc4, 0x8f, 0x2f, 0x9b, 0xac, 0xd6, 0x82, 0xd4, 0x63, 0x66, 0x7e, 0xff,
356	0x47, 0x18, 0xb8, 0x10, 0x88, 0xa2, 0xe0, 0x34, 0x2f, 0xd0, 0x2d, 0x29, 0x73, 0x16, 0xd7, 0x05,
357	0xfd, 0x18, 0x2e, 0xb8, 0x65, 0x43, 0x2a, 0x91, 0x94, 0x1a, 0x2d, 0x26, 0x27, 0x81, 0x22, 0x9e,
358	0x22, 0x81, 0x22, 0x35, 0x75, 0x7c, 0x5a, 0x5b, 0xb0, 0x52, 0x52, 0xa6, 0x14, 0x5a, 0x66, 0x25,
359	0x2a, 0x13, 0xa4, 0xe9, 0x3b, 0xb4, 0x9e, 0x54, 0xe9, 0xec, 0x03, 0xaa, 0x95, 0x14, 0xc9, 0x18,
360	0x40, 0xe4, 0x66, 0x6e, 0xd0, 0xe9, 0x9c, 0x77, 0xa3, 0x5e, 0xd4, 0x6f, 0x5d, 0x5f, 0x92, 0x1d,
361	0xf6, 0x64, 0x9c, 0x9b, 0x17, 0x4f, 0x4f, 0x1a, 0x59, 0x2c, 0xbe, 0x1f, 0xa3, 0x7d, 0x68, 0x06,
362	0x93, 0xd4, 0xc1, 0xc1, 0xb3, 0xb3, 0x9b, 0x88, 0x57, 0xe8, 0x54, 0x11, 0x4b, 0x6e, 0xac, 0x54,
363	0xbe, 0x4b, 0x9d, 0x73, 0xf5, 0x5f, 0xce, 0xe3, 0x46, 0x32, 0x69, 0x64, 0x6d, 0xb1, 0x35, 0x19,
364	0x1d, 0x42, 0xeb, 0x97, 0x67, 0x3a, 0x80, 0xf8, 0xa7, 0x5a, 0x72, 0x06, 0x20, 0xab, 0x5f, 0xce,
365	0x9d, 0x96, 0xa6, 0x1b, 0xf5, 0xf6, 0xfa, 0x71, 0x16, 0xfb, 0xc9, 0x4c, 0x4b, 0x93, 0xde, 0x41,
366	0x7b, 0xdb, 0x3e, 0x19, 0xc0, 0x11, 0xfa, 0xd2, 0x95, 0x62, 0x5e, 0x6a, 0xbe, 0x92, 0x9f, 0xbe,
367	0x66, 0x9c, 0x75, 0xc2, 0x62, 0xa6, 0xe5, 0xd4, 0x8f, 0x47, 0x2b, 0x38, 0xcf, 0x71, 0xbd, 0xab,
368	0xfc, 0x34, 0x7a, 0xbb, 0xaf, 0xd7, 0x02, 0x0b, 0xa6, 0x04, 0x41, 0x2d, 0xa8, 0xe0, 0xca, 0xdf,
369	0x80, 0x86, 0x15, 0x2b, 0xa5, 0xf9, 0xf3, 0xce, 0xb7, 0xe1, 0xb9, 0x68, 0x7a, 0xfa, 0xe6, 0x2b,
370	0x00, 0x00, 0xff, 0xff, 0xe3, 0x87, 0x4d, 0x64, 0x14, 0x02, 0x00, 0x00,
371}
372