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_433169c5aff300ba, []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_433169c5aff300ba, []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_433169c5aff300ba, []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_433169c5aff300ba, []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_433169c5aff300ba)
348}
349
350var fileDescriptor_io_433169c5aff300ba = []byte{
351	// 326 bytes of a gzipped FileDescriptorProto
352	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x84, 0x91, 0x5d, 0x4b, 0x32, 0x41,
353	0x14, 0xc7, 0xdd, 0xe7, 0x01, 0x79, 0xf6, 0xf8, 0xa4, 0xb4, 0x57, 0x92, 0x45, 0xb2, 0x44, 0x88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