1// Copyright 2020 Google LLC
2//
3// Licensed under the Apache License, Version 2.0 (the "License");
4// you may not use this file except in compliance with the License.
5// You may obtain a copy of the License at
6//
7//     http://www.apache.org/licenses/LICENSE-2.0
8//
9// Unless required by applicable law or agreed to in writing, software
10// distributed under the License is distributed on an "AS IS" BASIS,
11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12// See the License for the specific language governing permissions and
13// limitations under the License.
14
15// Code generated by protoc-gen-go. DO NOT EDIT.
16// versions:
17// 	protoc-gen-go v1.22.0
18// 	protoc        v3.11.2
19// source: google/ads/googleads/v1/services/media_file_service.proto
20
21package services
22
23import (
24	context "context"
25	reflect "reflect"
26	sync "sync"
27
28	proto "github.com/golang/protobuf/proto"
29	resources "google.golang.org/genproto/googleapis/ads/googleads/v1/resources"
30	_ "google.golang.org/genproto/googleapis/api/annotations"
31	status "google.golang.org/genproto/googleapis/rpc/status"
32	grpc "google.golang.org/grpc"
33	codes "google.golang.org/grpc/codes"
34	status1 "google.golang.org/grpc/status"
35	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
36	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
37)
38
39const (
40	// Verify that this generated code is sufficiently up-to-date.
41	_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
42	// Verify that runtime/protoimpl is sufficiently up-to-date.
43	_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
44)
45
46// This is a compile-time assertion that a sufficiently up-to-date version
47// of the legacy proto package is being used.
48const _ = proto.ProtoPackageIsVersion4
49
50// Request message for [MediaFileService.GetMediaFile][google.ads.googleads.v1.services.MediaFileService.GetMediaFile]
51type GetMediaFileRequest struct {
52	state         protoimpl.MessageState
53	sizeCache     protoimpl.SizeCache
54	unknownFields protoimpl.UnknownFields
55
56	// Required. The resource name of the media file to fetch.
57	ResourceName string `protobuf:"bytes,1,opt,name=resource_name,json=resourceName,proto3" json:"resource_name,omitempty"`
58}
59
60func (x *GetMediaFileRequest) Reset() {
61	*x = GetMediaFileRequest{}
62	if protoimpl.UnsafeEnabled {
63		mi := &file_google_ads_googleads_v1_services_media_file_service_proto_msgTypes[0]
64		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
65		ms.StoreMessageInfo(mi)
66	}
67}
68
69func (x *GetMediaFileRequest) String() string {
70	return protoimpl.X.MessageStringOf(x)
71}
72
73func (*GetMediaFileRequest) ProtoMessage() {}
74
75func (x *GetMediaFileRequest) ProtoReflect() protoreflect.Message {
76	mi := &file_google_ads_googleads_v1_services_media_file_service_proto_msgTypes[0]
77	if protoimpl.UnsafeEnabled && x != nil {
78		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
79		if ms.LoadMessageInfo() == nil {
80			ms.StoreMessageInfo(mi)
81		}
82		return ms
83	}
84	return mi.MessageOf(x)
85}
86
87// Deprecated: Use GetMediaFileRequest.ProtoReflect.Descriptor instead.
88func (*GetMediaFileRequest) Descriptor() ([]byte, []int) {
89	return file_google_ads_googleads_v1_services_media_file_service_proto_rawDescGZIP(), []int{0}
90}
91
92func (x *GetMediaFileRequest) GetResourceName() string {
93	if x != nil {
94		return x.ResourceName
95	}
96	return ""
97}
98
99// Request message for [MediaFileService.MutateMediaFiles][google.ads.googleads.v1.services.MediaFileService.MutateMediaFiles]
100type MutateMediaFilesRequest struct {
101	state         protoimpl.MessageState
102	sizeCache     protoimpl.SizeCache
103	unknownFields protoimpl.UnknownFields
104
105	// Required. The ID of the customer whose media files are being modified.
106	CustomerId string `protobuf:"bytes,1,opt,name=customer_id,json=customerId,proto3" json:"customer_id,omitempty"`
107	// Required. The list of operations to perform on individual media file.
108	Operations []*MediaFileOperation `protobuf:"bytes,2,rep,name=operations,proto3" json:"operations,omitempty"`
109	// If true, successful operations will be carried out and invalid
110	// operations will return errors. If false, all operations will be carried
111	// out in one transaction if and only if they are all valid.
112	// Default is false.
113	PartialFailure bool `protobuf:"varint,3,opt,name=partial_failure,json=partialFailure,proto3" json:"partial_failure,omitempty"`
114	// If true, the request is validated but not executed. Only errors are
115	// returned, not results.
116	ValidateOnly bool `protobuf:"varint,4,opt,name=validate_only,json=validateOnly,proto3" json:"validate_only,omitempty"`
117}
118
119func (x *MutateMediaFilesRequest) Reset() {
120	*x = MutateMediaFilesRequest{}
121	if protoimpl.UnsafeEnabled {
122		mi := &file_google_ads_googleads_v1_services_media_file_service_proto_msgTypes[1]
123		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
124		ms.StoreMessageInfo(mi)
125	}
126}
127
128func (x *MutateMediaFilesRequest) String() string {
129	return protoimpl.X.MessageStringOf(x)
130}
131
132func (*MutateMediaFilesRequest) ProtoMessage() {}
133
134func (x *MutateMediaFilesRequest) ProtoReflect() protoreflect.Message {
135	mi := &file_google_ads_googleads_v1_services_media_file_service_proto_msgTypes[1]
136	if protoimpl.UnsafeEnabled && x != nil {
137		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
138		if ms.LoadMessageInfo() == nil {
139			ms.StoreMessageInfo(mi)
140		}
141		return ms
142	}
143	return mi.MessageOf(x)
144}
145
146// Deprecated: Use MutateMediaFilesRequest.ProtoReflect.Descriptor instead.
147func (*MutateMediaFilesRequest) Descriptor() ([]byte, []int) {
148	return file_google_ads_googleads_v1_services_media_file_service_proto_rawDescGZIP(), []int{1}
149}
150
151func (x *MutateMediaFilesRequest) GetCustomerId() string {
152	if x != nil {
153		return x.CustomerId
154	}
155	return ""
156}
157
158func (x *MutateMediaFilesRequest) GetOperations() []*MediaFileOperation {
159	if x != nil {
160		return x.Operations
161	}
162	return nil
163}
164
165func (x *MutateMediaFilesRequest) GetPartialFailure() bool {
166	if x != nil {
167		return x.PartialFailure
168	}
169	return false
170}
171
172func (x *MutateMediaFilesRequest) GetValidateOnly() bool {
173	if x != nil {
174		return x.ValidateOnly
175	}
176	return false
177}
178
179// A single operation to create media file.
180type MediaFileOperation struct {
181	state         protoimpl.MessageState
182	sizeCache     protoimpl.SizeCache
183	unknownFields protoimpl.UnknownFields
184
185	// The mutate operation.
186	//
187	// Types that are assignable to Operation:
188	//	*MediaFileOperation_Create
189	Operation isMediaFileOperation_Operation `protobuf_oneof:"operation"`
190}
191
192func (x *MediaFileOperation) Reset() {
193	*x = MediaFileOperation{}
194	if protoimpl.UnsafeEnabled {
195		mi := &file_google_ads_googleads_v1_services_media_file_service_proto_msgTypes[2]
196		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
197		ms.StoreMessageInfo(mi)
198	}
199}
200
201func (x *MediaFileOperation) String() string {
202	return protoimpl.X.MessageStringOf(x)
203}
204
205func (*MediaFileOperation) ProtoMessage() {}
206
207func (x *MediaFileOperation) ProtoReflect() protoreflect.Message {
208	mi := &file_google_ads_googleads_v1_services_media_file_service_proto_msgTypes[2]
209	if protoimpl.UnsafeEnabled && x != nil {
210		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
211		if ms.LoadMessageInfo() == nil {
212			ms.StoreMessageInfo(mi)
213		}
214		return ms
215	}
216	return mi.MessageOf(x)
217}
218
219// Deprecated: Use MediaFileOperation.ProtoReflect.Descriptor instead.
220func (*MediaFileOperation) Descriptor() ([]byte, []int) {
221	return file_google_ads_googleads_v1_services_media_file_service_proto_rawDescGZIP(), []int{2}
222}
223
224func (m *MediaFileOperation) GetOperation() isMediaFileOperation_Operation {
225	if m != nil {
226		return m.Operation
227	}
228	return nil
229}
230
231func (x *MediaFileOperation) GetCreate() *resources.MediaFile {
232	if x, ok := x.GetOperation().(*MediaFileOperation_Create); ok {
233		return x.Create
234	}
235	return nil
236}
237
238type isMediaFileOperation_Operation interface {
239	isMediaFileOperation_Operation()
240}
241
242type MediaFileOperation_Create struct {
243	// Create operation: No resource name is expected for the new media file.
244	Create *resources.MediaFile `protobuf:"bytes,1,opt,name=create,proto3,oneof"`
245}
246
247func (*MediaFileOperation_Create) isMediaFileOperation_Operation() {}
248
249// Response message for a media file mutate.
250type MutateMediaFilesResponse struct {
251	state         protoimpl.MessageState
252	sizeCache     protoimpl.SizeCache
253	unknownFields protoimpl.UnknownFields
254
255	// Errors that pertain to operation failures in the partial failure mode.
256	// Returned only when partial_failure = true and all errors occur inside the
257	// operations. If any errors occur outside the operations (e.g. auth errors),
258	// we return an RPC level error.
259	PartialFailureError *status.Status `protobuf:"bytes,3,opt,name=partial_failure_error,json=partialFailureError,proto3" json:"partial_failure_error,omitempty"`
260	// All results for the mutate.
261	Results []*MutateMediaFileResult `protobuf:"bytes,2,rep,name=results,proto3" json:"results,omitempty"`
262}
263
264func (x *MutateMediaFilesResponse) Reset() {
265	*x = MutateMediaFilesResponse{}
266	if protoimpl.UnsafeEnabled {
267		mi := &file_google_ads_googleads_v1_services_media_file_service_proto_msgTypes[3]
268		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
269		ms.StoreMessageInfo(mi)
270	}
271}
272
273func (x *MutateMediaFilesResponse) String() string {
274	return protoimpl.X.MessageStringOf(x)
275}
276
277func (*MutateMediaFilesResponse) ProtoMessage() {}
278
279func (x *MutateMediaFilesResponse) ProtoReflect() protoreflect.Message {
280	mi := &file_google_ads_googleads_v1_services_media_file_service_proto_msgTypes[3]
281	if protoimpl.UnsafeEnabled && x != nil {
282		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
283		if ms.LoadMessageInfo() == nil {
284			ms.StoreMessageInfo(mi)
285		}
286		return ms
287	}
288	return mi.MessageOf(x)
289}
290
291// Deprecated: Use MutateMediaFilesResponse.ProtoReflect.Descriptor instead.
292func (*MutateMediaFilesResponse) Descriptor() ([]byte, []int) {
293	return file_google_ads_googleads_v1_services_media_file_service_proto_rawDescGZIP(), []int{3}
294}
295
296func (x *MutateMediaFilesResponse) GetPartialFailureError() *status.Status {
297	if x != nil {
298		return x.PartialFailureError
299	}
300	return nil
301}
302
303func (x *MutateMediaFilesResponse) GetResults() []*MutateMediaFileResult {
304	if x != nil {
305		return x.Results
306	}
307	return nil
308}
309
310// The result for the media file mutate.
311type MutateMediaFileResult struct {
312	state         protoimpl.MessageState
313	sizeCache     protoimpl.SizeCache
314	unknownFields protoimpl.UnknownFields
315
316	// The resource name returned for successful operations.
317	ResourceName string `protobuf:"bytes,1,opt,name=resource_name,json=resourceName,proto3" json:"resource_name,omitempty"`
318}
319
320func (x *MutateMediaFileResult) Reset() {
321	*x = MutateMediaFileResult{}
322	if protoimpl.UnsafeEnabled {
323		mi := &file_google_ads_googleads_v1_services_media_file_service_proto_msgTypes[4]
324		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
325		ms.StoreMessageInfo(mi)
326	}
327}
328
329func (x *MutateMediaFileResult) String() string {
330	return protoimpl.X.MessageStringOf(x)
331}
332
333func (*MutateMediaFileResult) ProtoMessage() {}
334
335func (x *MutateMediaFileResult) ProtoReflect() protoreflect.Message {
336	mi := &file_google_ads_googleads_v1_services_media_file_service_proto_msgTypes[4]
337	if protoimpl.UnsafeEnabled && x != nil {
338		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
339		if ms.LoadMessageInfo() == nil {
340			ms.StoreMessageInfo(mi)
341		}
342		return ms
343	}
344	return mi.MessageOf(x)
345}
346
347// Deprecated: Use MutateMediaFileResult.ProtoReflect.Descriptor instead.
348func (*MutateMediaFileResult) Descriptor() ([]byte, []int) {
349	return file_google_ads_googleads_v1_services_media_file_service_proto_rawDescGZIP(), []int{4}
350}
351
352func (x *MutateMediaFileResult) GetResourceName() string {
353	if x != nil {
354		return x.ResourceName
355	}
356	return ""
357}
358
359var File_google_ads_googleads_v1_services_media_file_service_proto protoreflect.FileDescriptor
360
361var file_google_ads_googleads_v1_services_media_file_service_proto_rawDesc = []byte{
362	0x0a, 0x39, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x64, 0x73, 0x2f, 0x67, 0x6f, 0x6f,
363	0x67, 0x6c, 0x65, 0x61, 0x64, 0x73, 0x2f, 0x76, 0x31, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63,
364	0x65, 0x73, 0x2f, 0x6d, 0x65, 0x64, 0x69, 0x61, 0x5f, 0x66, 0x69, 0x6c, 0x65, 0x5f, 0x73, 0x65,
365	0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x20, 0x67, 0x6f, 0x6f,
366	0x67, 0x6c, 0x65, 0x2e, 0x61, 0x64, 0x73, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x64,
367	0x73, 0x2e, 0x76, 0x31, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x1a, 0x32, 0x67,
368	0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x64, 0x73, 0x2f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
369	0x61, 0x64, 0x73, 0x2f, 0x76, 0x31, 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73,
370	0x2f, 0x6d, 0x65, 0x64, 0x69, 0x61, 0x5f, 0x66, 0x69, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74,
371	0x6f, 0x1a, 0x1c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x61, 0x6e,
372	0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a,
373	0x17, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x63, 0x6c, 0x69, 0x65,
374	0x6e, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
375	0x2f, 0x61, 0x70, 0x69, 0x2f, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x5f, 0x62, 0x65, 0x68, 0x61, 0x76,
376	0x69, 0x6f, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x19, 0x67, 0x6f, 0x6f, 0x67, 0x6c,
377	0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2e, 0x70,
378	0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x17, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x72, 0x70, 0x63,
379	0x2f, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x66, 0x0a,
380	0x13, 0x47, 0x65, 0x74, 0x4d, 0x65, 0x64, 0x69, 0x61, 0x46, 0x69, 0x6c, 0x65, 0x52, 0x65, 0x71,
381	0x75, 0x65, 0x73, 0x74, 0x12, 0x4f, 0x0a, 0x0d, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65,
382	0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x2a, 0xe0, 0x41, 0x02,
383	0xfa, 0x41, 0x24, 0x0a, 0x22, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x64, 0x73, 0x2e, 0x67,
384	0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x4d, 0x65,
385	0x64, 0x69, 0x61, 0x46, 0x69, 0x6c, 0x65, 0x52, 0x0c, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63,
386	0x65, 0x4e, 0x61, 0x6d, 0x65, 0x22, 0xe8, 0x01, 0x0a, 0x17, 0x4d, 0x75, 0x74, 0x61, 0x74, 0x65,
387	0x4d, 0x65, 0x64, 0x69, 0x61, 0x46, 0x69, 0x6c, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,
388	0x74, 0x12, 0x24, 0x0a, 0x0b, 0x63, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x65, 0x72, 0x5f, 0x69, 0x64,
389	0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x0a, 0x63, 0x75, 0x73,
390	0x74, 0x6f, 0x6d, 0x65, 0x72, 0x49, 0x64, 0x12, 0x59, 0x0a, 0x0a, 0x6f, 0x70, 0x65, 0x72, 0x61,
391	0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x34, 0x2e, 0x67, 0x6f,
392	0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x61, 0x64, 0x73, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61,
393	0x64, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x4d,
394	0x65, 0x64, 0x69, 0x61, 0x46, 0x69, 0x6c, 0x65, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f,
395	0x6e, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x0a, 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f,
396	0x6e, 0x73, 0x12, 0x27, 0x0a, 0x0f, 0x70, 0x61, 0x72, 0x74, 0x69, 0x61, 0x6c, 0x5f, 0x66, 0x61,
397	0x69, 0x6c, 0x75, 0x72, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0e, 0x70, 0x61, 0x72,
398	0x74, 0x69, 0x61, 0x6c, 0x46, 0x61, 0x69, 0x6c, 0x75, 0x72, 0x65, 0x12, 0x23, 0x0a, 0x0d, 0x76,
399	0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x6f, 0x6e, 0x6c, 0x79, 0x18, 0x04, 0x20, 0x01,
400	0x28, 0x08, 0x52, 0x0c, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x4f, 0x6e, 0x6c, 0x79,
401	0x22, 0x69, 0x0a, 0x12, 0x4d, 0x65, 0x64, 0x69, 0x61, 0x46, 0x69, 0x6c, 0x65, 0x4f, 0x70, 0x65,
402	0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x46, 0x0a, 0x06, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65,
403	0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2c, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e,
404	0x61, 0x64, 0x73, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x64, 0x73, 0x2e, 0x76, 0x31,
405	0x2e, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x2e, 0x4d, 0x65, 0x64, 0x69, 0x61,
406	0x46, 0x69, 0x6c, 0x65, 0x48, 0x00, 0x52, 0x06, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x42, 0x0b,
407	0x0a, 0x09, 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0xb5, 0x01, 0x0a, 0x18,
408	0x4d, 0x75, 0x74, 0x61, 0x74, 0x65, 0x4d, 0x65, 0x64, 0x69, 0x61, 0x46, 0x69, 0x6c, 0x65, 0x73,
409	0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x46, 0x0a, 0x15, 0x70, 0x61, 0x72, 0x74,
410	0x69, 0x61, 0x6c, 0x5f, 0x66, 0x61, 0x69, 0x6c, 0x75, 0x72, 0x65, 0x5f, 0x65, 0x72, 0x72, 0x6f,
411	0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
412	0x2e, 0x72, 0x70, 0x63, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x13, 0x70, 0x61, 0x72,
413	0x74, 0x69, 0x61, 0x6c, 0x46, 0x61, 0x69, 0x6c, 0x75, 0x72, 0x65, 0x45, 0x72, 0x72, 0x6f, 0x72,
414	0x12, 0x51, 0x0a, 0x07, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28,
415	0x0b, 0x32, 0x37, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x61, 0x64, 0x73, 0x2e, 0x67,
416	0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x64, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x73, 0x65, 0x72, 0x76,
417	0x69, 0x63, 0x65, 0x73, 0x2e, 0x4d, 0x75, 0x74, 0x61, 0x74, 0x65, 0x4d, 0x65, 0x64, 0x69, 0x61,
418	0x46, 0x69, 0x6c, 0x65, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x52, 0x07, 0x72, 0x65, 0x73, 0x75,
419	0x6c, 0x74, 0x73, 0x22, 0x3c, 0x0a, 0x15, 0x4d, 0x75, 0x74, 0x61, 0x74, 0x65, 0x4d, 0x65, 0x64,
420	0x69, 0x61, 0x46, 0x69, 0x6c, 0x65, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x12, 0x23, 0x0a, 0x0d,
421	0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20,
422	0x01, 0x28, 0x09, 0x52, 0x0c, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x4e, 0x61, 0x6d,
423	0x65, 0x32, 0xcc, 0x03, 0x0a, 0x10, 0x4d, 0x65, 0x64, 0x69, 0x61, 0x46, 0x69, 0x6c, 0x65, 0x53,
424	0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0xb9, 0x01, 0x0a, 0x0c, 0x47, 0x65, 0x74, 0x4d, 0x65,
425	0x64, 0x69, 0x61, 0x46, 0x69, 0x6c, 0x65, 0x12, 0x35, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
426	0x2e, 0x61, 0x64, 0x73, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x64, 0x73, 0x2e, 0x76,
427	0x31, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x47, 0x65, 0x74, 0x4d, 0x65,
428	0x64, 0x69, 0x61, 0x46, 0x69, 0x6c, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2c,
429	0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x61, 0x64, 0x73, 0x2e, 0x67, 0x6f, 0x6f, 0x67,
430	0x6c, 0x65, 0x61, 0x64, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63,
431	0x65, 0x73, 0x2e, 0x4d, 0x65, 0x64, 0x69, 0x61, 0x46, 0x69, 0x6c, 0x65, 0x22, 0x44, 0x82, 0xd3,
432	0xe4, 0x93, 0x02, 0x2e, 0x12, 0x2c, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x72, 0x65, 0x73, 0x6f, 0x75,
433	0x72, 0x63, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x63, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x65,
434	0x72, 0x73, 0x2f, 0x2a, 0x2f, 0x6d, 0x65, 0x64, 0x69, 0x61, 0x46, 0x69, 0x6c, 0x65, 0x73, 0x2f,
435	0x2a, 0x7d, 0xda, 0x41, 0x0d, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x6e, 0x61,
436	0x6d, 0x65, 0x12, 0xde, 0x01, 0x0a, 0x10, 0x4d, 0x75, 0x74, 0x61, 0x74, 0x65, 0x4d, 0x65, 0x64,
437	0x69, 0x61, 0x46, 0x69, 0x6c, 0x65, 0x73, 0x12, 0x39, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
438	0x2e, 0x61, 0x64, 0x73, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x64, 0x73, 0x2e, 0x76,
439	0x31, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x4d, 0x75, 0x74, 0x61, 0x74,
440	0x65, 0x4d, 0x65, 0x64, 0x69, 0x61, 0x46, 0x69, 0x6c, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65,
441	0x73, 0x74, 0x1a, 0x3a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x61, 0x64, 0x73, 0x2e,
442	0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x64, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x73, 0x65, 0x72,
443	0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x4d, 0x75, 0x74, 0x61, 0x74, 0x65, 0x4d, 0x65, 0x64, 0x69,
444	0x61, 0x46, 0x69, 0x6c, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x53,
445	0x82, 0xd3, 0xe4, 0x93, 0x02, 0x34, 0x22, 0x2f, 0x2f, 0x76, 0x31, 0x2f, 0x63, 0x75, 0x73, 0x74,
446	0x6f, 0x6d, 0x65, 0x72, 0x73, 0x2f, 0x7b, 0x63, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x65, 0x72, 0x5f,
447	0x69, 0x64, 0x3d, 0x2a, 0x7d, 0x2f, 0x6d, 0x65, 0x64, 0x69, 0x61, 0x46, 0x69, 0x6c, 0x65, 0x73,
448	0x3a, 0x6d, 0x75, 0x74, 0x61, 0x74, 0x65, 0x3a, 0x01, 0x2a, 0xda, 0x41, 0x16, 0x63, 0x75, 0x73,
449	0x74, 0x6f, 0x6d, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x2c, 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69,
450	0x6f, 0x6e, 0x73, 0x1a, 0x1b, 0xca, 0x41, 0x18, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x64,
451	0x73, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d,
452	0x42, 0xfc, 0x01, 0x0a, 0x24, 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e,
453	0x61, 0x64, 0x73, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x64, 0x73, 0x2e, 0x76, 0x31,
454	0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x42, 0x15, 0x4d, 0x65, 0x64, 0x69, 0x61,
455	0x46, 0x69, 0x6c, 0x65, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x50, 0x72, 0x6f, 0x74, 0x6f,
456	0x50, 0x01, 0x5a, 0x48, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x67, 0x6f, 0x6c, 0x61, 0x6e,
457	0x67, 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x67, 0x65, 0x6e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67,
458	0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2f, 0x61, 0x64, 0x73, 0x2f, 0x67, 0x6f,
459	0x6f, 0x67, 0x6c, 0x65, 0x61, 0x64, 0x73, 0x2f, 0x76, 0x31, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x69,
460	0x63, 0x65, 0x73, 0x3b, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0xa2, 0x02, 0x03, 0x47,
461	0x41, 0x41, 0xaa, 0x02, 0x20, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x41, 0x64, 0x73, 0x2e,
462	0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x41, 0x64, 0x73, 0x2e, 0x56, 0x31, 0x2e, 0x53, 0x65, 0x72,
463	0x76, 0x69, 0x63, 0x65, 0x73, 0xca, 0x02, 0x20, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x5c, 0x41,
464	0x64, 0x73, 0x5c, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x41, 0x64, 0x73, 0x5c, 0x56, 0x31, 0x5c,
465	0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0xea, 0x02, 0x24, 0x47, 0x6f, 0x6f, 0x67, 0x6c,
466	0x65, 0x3a, 0x3a, 0x41, 0x64, 0x73, 0x3a, 0x3a, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x41, 0x64,
467	0x73, 0x3a, 0x3a, 0x56, 0x31, 0x3a, 0x3a, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x62,
468	0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
469}
470
471var (
472	file_google_ads_googleads_v1_services_media_file_service_proto_rawDescOnce sync.Once
473	file_google_ads_googleads_v1_services_media_file_service_proto_rawDescData = file_google_ads_googleads_v1_services_media_file_service_proto_rawDesc
474)
475
476func file_google_ads_googleads_v1_services_media_file_service_proto_rawDescGZIP() []byte {
477	file_google_ads_googleads_v1_services_media_file_service_proto_rawDescOnce.Do(func() {
478		file_google_ads_googleads_v1_services_media_file_service_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_ads_googleads_v1_services_media_file_service_proto_rawDescData)
479	})
480	return file_google_ads_googleads_v1_services_media_file_service_proto_rawDescData
481}
482
483var file_google_ads_googleads_v1_services_media_file_service_proto_msgTypes = make([]protoimpl.MessageInfo, 5)
484var file_google_ads_googleads_v1_services_media_file_service_proto_goTypes = []interface{}{
485	(*GetMediaFileRequest)(nil),      // 0: google.ads.googleads.v1.services.GetMediaFileRequest
486	(*MutateMediaFilesRequest)(nil),  // 1: google.ads.googleads.v1.services.MutateMediaFilesRequest
487	(*MediaFileOperation)(nil),       // 2: google.ads.googleads.v1.services.MediaFileOperation
488	(*MutateMediaFilesResponse)(nil), // 3: google.ads.googleads.v1.services.MutateMediaFilesResponse
489	(*MutateMediaFileResult)(nil),    // 4: google.ads.googleads.v1.services.MutateMediaFileResult
490	(*resources.MediaFile)(nil),      // 5: google.ads.googleads.v1.resources.MediaFile
491	(*status.Status)(nil),            // 6: google.rpc.Status
492}
493var file_google_ads_googleads_v1_services_media_file_service_proto_depIdxs = []int32{
494	2, // 0: google.ads.googleads.v1.services.MutateMediaFilesRequest.operations:type_name -> google.ads.googleads.v1.services.MediaFileOperation
495	5, // 1: google.ads.googleads.v1.services.MediaFileOperation.create:type_name -> google.ads.googleads.v1.resources.MediaFile
496	6, // 2: google.ads.googleads.v1.services.MutateMediaFilesResponse.partial_failure_error:type_name -> google.rpc.Status
497	4, // 3: google.ads.googleads.v1.services.MutateMediaFilesResponse.results:type_name -> google.ads.googleads.v1.services.MutateMediaFileResult
498	0, // 4: google.ads.googleads.v1.services.MediaFileService.GetMediaFile:input_type -> google.ads.googleads.v1.services.GetMediaFileRequest
499	1, // 5: google.ads.googleads.v1.services.MediaFileService.MutateMediaFiles:input_type -> google.ads.googleads.v1.services.MutateMediaFilesRequest
500	5, // 6: google.ads.googleads.v1.services.MediaFileService.GetMediaFile:output_type -> google.ads.googleads.v1.resources.MediaFile
501	3, // 7: google.ads.googleads.v1.services.MediaFileService.MutateMediaFiles:output_type -> google.ads.googleads.v1.services.MutateMediaFilesResponse
502	6, // [6:8] is the sub-list for method output_type
503	4, // [4:6] is the sub-list for method input_type
504	4, // [4:4] is the sub-list for extension type_name
505	4, // [4:4] is the sub-list for extension extendee
506	0, // [0:4] is the sub-list for field type_name
507}
508
509func init() { file_google_ads_googleads_v1_services_media_file_service_proto_init() }
510func file_google_ads_googleads_v1_services_media_file_service_proto_init() {
511	if File_google_ads_googleads_v1_services_media_file_service_proto != nil {
512		return
513	}
514	if !protoimpl.UnsafeEnabled {
515		file_google_ads_googleads_v1_services_media_file_service_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
516			switch v := v.(*GetMediaFileRequest); i {
517			case 0:
518				return &v.state
519			case 1:
520				return &v.sizeCache
521			case 2:
522				return &v.unknownFields
523			default:
524				return nil
525			}
526		}
527		file_google_ads_googleads_v1_services_media_file_service_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
528			switch v := v.(*MutateMediaFilesRequest); i {
529			case 0:
530				return &v.state
531			case 1:
532				return &v.sizeCache
533			case 2:
534				return &v.unknownFields
535			default:
536				return nil
537			}
538		}
539		file_google_ads_googleads_v1_services_media_file_service_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
540			switch v := v.(*MediaFileOperation); i {
541			case 0:
542				return &v.state
543			case 1:
544				return &v.sizeCache
545			case 2:
546				return &v.unknownFields
547			default:
548				return nil
549			}
550		}
551		file_google_ads_googleads_v1_services_media_file_service_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
552			switch v := v.(*MutateMediaFilesResponse); i {
553			case 0:
554				return &v.state
555			case 1:
556				return &v.sizeCache
557			case 2:
558				return &v.unknownFields
559			default:
560				return nil
561			}
562		}
563		file_google_ads_googleads_v1_services_media_file_service_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
564			switch v := v.(*MutateMediaFileResult); i {
565			case 0:
566				return &v.state
567			case 1:
568				return &v.sizeCache
569			case 2:
570				return &v.unknownFields
571			default:
572				return nil
573			}
574		}
575	}
576	file_google_ads_googleads_v1_services_media_file_service_proto_msgTypes[2].OneofWrappers = []interface{}{
577		(*MediaFileOperation_Create)(nil),
578	}
579	type x struct{}
580	out := protoimpl.TypeBuilder{
581		File: protoimpl.DescBuilder{
582			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
583			RawDescriptor: file_google_ads_googleads_v1_services_media_file_service_proto_rawDesc,
584			NumEnums:      0,
585			NumMessages:   5,
586			NumExtensions: 0,
587			NumServices:   1,
588		},
589		GoTypes:           file_google_ads_googleads_v1_services_media_file_service_proto_goTypes,
590		DependencyIndexes: file_google_ads_googleads_v1_services_media_file_service_proto_depIdxs,
591		MessageInfos:      file_google_ads_googleads_v1_services_media_file_service_proto_msgTypes,
592	}.Build()
593	File_google_ads_googleads_v1_services_media_file_service_proto = out.File
594	file_google_ads_googleads_v1_services_media_file_service_proto_rawDesc = nil
595	file_google_ads_googleads_v1_services_media_file_service_proto_goTypes = nil
596	file_google_ads_googleads_v1_services_media_file_service_proto_depIdxs = nil
597}
598
599// Reference imports to suppress errors if they are not otherwise used.
600var _ context.Context
601var _ grpc.ClientConnInterface
602
603// This is a compile-time assertion to ensure that this generated file
604// is compatible with the grpc package it is being compiled against.
605const _ = grpc.SupportPackageIsVersion6
606
607// MediaFileServiceClient is the client API for MediaFileService service.
608//
609// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
610type MediaFileServiceClient interface {
611	// Returns the requested media file in full detail.
612	GetMediaFile(ctx context.Context, in *GetMediaFileRequest, opts ...grpc.CallOption) (*resources.MediaFile, error)
613	// Creates media files. Operation statuses are returned.
614	MutateMediaFiles(ctx context.Context, in *MutateMediaFilesRequest, opts ...grpc.CallOption) (*MutateMediaFilesResponse, error)
615}
616
617type mediaFileServiceClient struct {
618	cc grpc.ClientConnInterface
619}
620
621func NewMediaFileServiceClient(cc grpc.ClientConnInterface) MediaFileServiceClient {
622	return &mediaFileServiceClient{cc}
623}
624
625func (c *mediaFileServiceClient) GetMediaFile(ctx context.Context, in *GetMediaFileRequest, opts ...grpc.CallOption) (*resources.MediaFile, error) {
626	out := new(resources.MediaFile)
627	err := c.cc.Invoke(ctx, "/google.ads.googleads.v1.services.MediaFileService/GetMediaFile", in, out, opts...)
628	if err != nil {
629		return nil, err
630	}
631	return out, nil
632}
633
634func (c *mediaFileServiceClient) MutateMediaFiles(ctx context.Context, in *MutateMediaFilesRequest, opts ...grpc.CallOption) (*MutateMediaFilesResponse, error) {
635	out := new(MutateMediaFilesResponse)
636	err := c.cc.Invoke(ctx, "/google.ads.googleads.v1.services.MediaFileService/MutateMediaFiles", in, out, opts...)
637	if err != nil {
638		return nil, err
639	}
640	return out, nil
641}
642
643// MediaFileServiceServer is the server API for MediaFileService service.
644type MediaFileServiceServer interface {
645	// Returns the requested media file in full detail.
646	GetMediaFile(context.Context, *GetMediaFileRequest) (*resources.MediaFile, error)
647	// Creates media files. Operation statuses are returned.
648	MutateMediaFiles(context.Context, *MutateMediaFilesRequest) (*MutateMediaFilesResponse, error)
649}
650
651// UnimplementedMediaFileServiceServer can be embedded to have forward compatible implementations.
652type UnimplementedMediaFileServiceServer struct {
653}
654
655func (*UnimplementedMediaFileServiceServer) GetMediaFile(context.Context, *GetMediaFileRequest) (*resources.MediaFile, error) {
656	return nil, status1.Errorf(codes.Unimplemented, "method GetMediaFile not implemented")
657}
658func (*UnimplementedMediaFileServiceServer) MutateMediaFiles(context.Context, *MutateMediaFilesRequest) (*MutateMediaFilesResponse, error) {
659	return nil, status1.Errorf(codes.Unimplemented, "method MutateMediaFiles not implemented")
660}
661
662func RegisterMediaFileServiceServer(s *grpc.Server, srv MediaFileServiceServer) {
663	s.RegisterService(&_MediaFileService_serviceDesc, srv)
664}
665
666func _MediaFileService_GetMediaFile_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
667	in := new(GetMediaFileRequest)
668	if err := dec(in); err != nil {
669		return nil, err
670	}
671	if interceptor == nil {
672		return srv.(MediaFileServiceServer).GetMediaFile(ctx, in)
673	}
674	info := &grpc.UnaryServerInfo{
675		Server:     srv,
676		FullMethod: "/google.ads.googleads.v1.services.MediaFileService/GetMediaFile",
677	}
678	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
679		return srv.(MediaFileServiceServer).GetMediaFile(ctx, req.(*GetMediaFileRequest))
680	}
681	return interceptor(ctx, in, info, handler)
682}
683
684func _MediaFileService_MutateMediaFiles_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
685	in := new(MutateMediaFilesRequest)
686	if err := dec(in); err != nil {
687		return nil, err
688	}
689	if interceptor == nil {
690		return srv.(MediaFileServiceServer).MutateMediaFiles(ctx, in)
691	}
692	info := &grpc.UnaryServerInfo{
693		Server:     srv,
694		FullMethod: "/google.ads.googleads.v1.services.MediaFileService/MutateMediaFiles",
695	}
696	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
697		return srv.(MediaFileServiceServer).MutateMediaFiles(ctx, req.(*MutateMediaFilesRequest))
698	}
699	return interceptor(ctx, in, info, handler)
700}
701
702var _MediaFileService_serviceDesc = grpc.ServiceDesc{
703	ServiceName: "google.ads.googleads.v1.services.MediaFileService",
704	HandlerType: (*MediaFileServiceServer)(nil),
705	Methods: []grpc.MethodDesc{
706		{
707			MethodName: "GetMediaFile",
708			Handler:    _MediaFileService_GetMediaFile_Handler,
709		},
710		{
711			MethodName: "MutateMediaFiles",
712			Handler:    _MediaFileService_MutateMediaFiles_Handler,
713		},
714	},
715	Streams:  []grpc.StreamDesc{},
716	Metadata: "google/ads/googleads/v1/services/media_file_service.proto",
717}
718