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/ad_schedule_view_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	grpc "google.golang.org/grpc"
32	codes "google.golang.org/grpc/codes"
33	status "google.golang.org/grpc/status"
34	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
35	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
36)
37
38const (
39	// Verify that this generated code is sufficiently up-to-date.
40	_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
41	// Verify that runtime/protoimpl is sufficiently up-to-date.
42	_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
43)
44
45// This is a compile-time assertion that a sufficiently up-to-date version
46// of the legacy proto package is being used.
47const _ = proto.ProtoPackageIsVersion4
48
49// Request message for [AdScheduleViewService.GetAdScheduleView][google.ads.googleads.v1.services.AdScheduleViewService.GetAdScheduleView].
50type GetAdScheduleViewRequest struct {
51	state         protoimpl.MessageState
52	sizeCache     protoimpl.SizeCache
53	unknownFields protoimpl.UnknownFields
54
55	// Required. The resource name of the ad schedule view to fetch.
56	ResourceName string `protobuf:"bytes,1,opt,name=resource_name,json=resourceName,proto3" json:"resource_name,omitempty"`
57}
58
59func (x *GetAdScheduleViewRequest) Reset() {
60	*x = GetAdScheduleViewRequest{}
61	if protoimpl.UnsafeEnabled {
62		mi := &file_google_ads_googleads_v1_services_ad_schedule_view_service_proto_msgTypes[0]
63		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
64		ms.StoreMessageInfo(mi)
65	}
66}
67
68func (x *GetAdScheduleViewRequest) String() string {
69	return protoimpl.X.MessageStringOf(x)
70}
71
72func (*GetAdScheduleViewRequest) ProtoMessage() {}
73
74func (x *GetAdScheduleViewRequest) ProtoReflect() protoreflect.Message {
75	mi := &file_google_ads_googleads_v1_services_ad_schedule_view_service_proto_msgTypes[0]
76	if protoimpl.UnsafeEnabled && x != nil {
77		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
78		if ms.LoadMessageInfo() == nil {
79			ms.StoreMessageInfo(mi)
80		}
81		return ms
82	}
83	return mi.MessageOf(x)
84}
85
86// Deprecated: Use GetAdScheduleViewRequest.ProtoReflect.Descriptor instead.
87func (*GetAdScheduleViewRequest) Descriptor() ([]byte, []int) {
88	return file_google_ads_googleads_v1_services_ad_schedule_view_service_proto_rawDescGZIP(), []int{0}
89}
90
91func (x *GetAdScheduleViewRequest) GetResourceName() string {
92	if x != nil {
93		return x.ResourceName
94	}
95	return ""
96}
97
98var File_google_ads_googleads_v1_services_ad_schedule_view_service_proto protoreflect.FileDescriptor
99
100var file_google_ads_googleads_v1_services_ad_schedule_view_service_proto_rawDesc = []byte{
101	0x0a, 0x3f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x64, 0x73, 0x2f, 0x67, 0x6f, 0x6f,
102	0x67, 0x6c, 0x65, 0x61, 0x64, 0x73, 0x2f, 0x76, 0x31, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63,
103	0x65, 0x73, 0x2f, 0x61, 0x64, 0x5f, 0x73, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x5f, 0x76,
104	0x69, 0x65, 0x77, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74,
105	0x6f, 0x12, 0x20, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x61, 0x64, 0x73, 0x2e, 0x67, 0x6f,
106	0x6f, 0x67, 0x6c, 0x65, 0x61, 0x64, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69,
107	0x63, 0x65, 0x73, 0x1a, 0x38, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x64, 0x73, 0x2f,
108	0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x64, 0x73, 0x2f, 0x76, 0x31, 0x2f, 0x72, 0x65, 0x73,
109	0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x2f, 0x61, 0x64, 0x5f, 0x73, 0x63, 0x68, 0x65, 0x64, 0x75,
110	0x6c, 0x65, 0x5f, 0x76, 0x69, 0x65, 0x77, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1c, 0x67,
111	0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61,
112	0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x17, 0x67, 0x6f, 0x6f,
113	0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x2e, 0x70,
114	0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69,
115	0x2f, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x5f, 0x62, 0x65, 0x68, 0x61, 0x76, 0x69, 0x6f, 0x72, 0x2e,
116	0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x19, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70,
117	0x69, 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
118	0x22, 0x70, 0x0a, 0x18, 0x47, 0x65, 0x74, 0x41, 0x64, 0x53, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c,
119	0x65, 0x56, 0x69, 0x65, 0x77, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x54, 0x0a, 0x0d,
120	0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20,
121	0x01, 0x28, 0x09, 0x42, 0x2f, 0xe0, 0x41, 0x02, 0xfa, 0x41, 0x29, 0x0a, 0x27, 0x67, 0x6f, 0x6f,
122	0x67, 0x6c, 0x65, 0x61, 0x64, 0x73, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69,
123	0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x41, 0x64, 0x53, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65,
124	0x56, 0x69, 0x65, 0x77, 0x52, 0x0c, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x4e, 0x61,
125	0x6d, 0x65, 0x32, 0x84, 0x02, 0x0a, 0x15, 0x41, 0x64, 0x53, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c,
126	0x65, 0x56, 0x69, 0x65, 0x77, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0xcd, 0x01, 0x0a,
127	0x11, 0x47, 0x65, 0x74, 0x41, 0x64, 0x53, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x56, 0x69,
128	0x65, 0x77, 0x12, 0x3a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x61, 0x64, 0x73, 0x2e,
129	0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x64, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x73, 0x65, 0x72,
130	0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x47, 0x65, 0x74, 0x41, 0x64, 0x53, 0x63, 0x68, 0x65, 0x64,
131	0x75, 0x6c, 0x65, 0x56, 0x69, 0x65, 0x77, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x31,
132	0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x61, 0x64, 0x73, 0x2e, 0x67, 0x6f, 0x6f, 0x67,
133	0x6c, 0x65, 0x61, 0x64, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63,
134	0x65, 0x73, 0x2e, 0x41, 0x64, 0x53, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x56, 0x69, 0x65,
135	0x77, 0x22, 0x49, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x33, 0x12, 0x31, 0x2f, 0x76, 0x31, 0x2f, 0x7b,
136	0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x63, 0x75,
137	0x73, 0x74, 0x6f, 0x6d, 0x65, 0x72, 0x73, 0x2f, 0x2a, 0x2f, 0x61, 0x64, 0x53, 0x63, 0x68, 0x65,
138	0x64, 0x75, 0x6c, 0x65, 0x56, 0x69, 0x65, 0x77, 0x73, 0x2f, 0x2a, 0x7d, 0xda, 0x41, 0x0d, 0x72,
139	0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x1a, 0x1b, 0xca, 0x41,
140	0x18, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x64, 0x73, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c,
141	0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x42, 0x81, 0x02, 0x0a, 0x24, 0x63, 0x6f,
142	0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x61, 0x64, 0x73, 0x2e, 0x67, 0x6f, 0x6f,
143	0x67, 0x6c, 0x65, 0x61, 0x64, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63,
144	0x65, 0x73, 0x42, 0x1a, 0x41, 0x64, 0x53, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x56, 0x69,
145	0x65, 0x77, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01,
146	0x5a, 0x48, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x67, 0x6f, 0x6c, 0x61, 0x6e, 0x67, 0x2e,
147	0x6f, 0x72, 0x67, 0x2f, 0x67, 0x65, 0x6e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x6f,
148	0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2f, 0x61, 0x64, 0x73, 0x2f, 0x67, 0x6f, 0x6f, 0x67,
149	0x6c, 0x65, 0x61, 0x64, 0x73, 0x2f, 0x76, 0x31, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65,
150	0x73, 0x3b, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0xa2, 0x02, 0x03, 0x47, 0x41, 0x41,
151	0xaa, 0x02, 0x20, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x41, 0x64, 0x73, 0x2e, 0x47, 0x6f,
152	0x6f, 0x67, 0x6c, 0x65, 0x41, 0x64, 0x73, 0x2e, 0x56, 0x31, 0x2e, 0x53, 0x65, 0x72, 0x76, 0x69,
153	0x63, 0x65, 0x73, 0xca, 0x02, 0x20, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x5c, 0x41, 0x64, 0x73,
154	0x5c, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x41, 0x64, 0x73, 0x5c, 0x56, 0x31, 0x5c, 0x53, 0x65,
155	0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0xea, 0x02, 0x24, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x3a,
156	0x3a, 0x41, 0x64, 0x73, 0x3a, 0x3a, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x41, 0x64, 0x73, 0x3a,
157	0x3a, 0x56, 0x31, 0x3a, 0x3a, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x62, 0x06, 0x70,
158	0x72, 0x6f, 0x74, 0x6f, 0x33,
159}
160
161var (
162	file_google_ads_googleads_v1_services_ad_schedule_view_service_proto_rawDescOnce sync.Once
163	file_google_ads_googleads_v1_services_ad_schedule_view_service_proto_rawDescData = file_google_ads_googleads_v1_services_ad_schedule_view_service_proto_rawDesc
164)
165
166func file_google_ads_googleads_v1_services_ad_schedule_view_service_proto_rawDescGZIP() []byte {
167	file_google_ads_googleads_v1_services_ad_schedule_view_service_proto_rawDescOnce.Do(func() {
168		file_google_ads_googleads_v1_services_ad_schedule_view_service_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_ads_googleads_v1_services_ad_schedule_view_service_proto_rawDescData)
169	})
170	return file_google_ads_googleads_v1_services_ad_schedule_view_service_proto_rawDescData
171}
172
173var file_google_ads_googleads_v1_services_ad_schedule_view_service_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
174var file_google_ads_googleads_v1_services_ad_schedule_view_service_proto_goTypes = []interface{}{
175	(*GetAdScheduleViewRequest)(nil), // 0: google.ads.googleads.v1.services.GetAdScheduleViewRequest
176	(*resources.AdScheduleView)(nil), // 1: google.ads.googleads.v1.resources.AdScheduleView
177}
178var file_google_ads_googleads_v1_services_ad_schedule_view_service_proto_depIdxs = []int32{
179	0, // 0: google.ads.googleads.v1.services.AdScheduleViewService.GetAdScheduleView:input_type -> google.ads.googleads.v1.services.GetAdScheduleViewRequest
180	1, // 1: google.ads.googleads.v1.services.AdScheduleViewService.GetAdScheduleView:output_type -> google.ads.googleads.v1.resources.AdScheduleView
181	1, // [1:2] is the sub-list for method output_type
182	0, // [0:1] is the sub-list for method input_type
183	0, // [0:0] is the sub-list for extension type_name
184	0, // [0:0] is the sub-list for extension extendee
185	0, // [0:0] is the sub-list for field type_name
186}
187
188func init() { file_google_ads_googleads_v1_services_ad_schedule_view_service_proto_init() }
189func file_google_ads_googleads_v1_services_ad_schedule_view_service_proto_init() {
190	if File_google_ads_googleads_v1_services_ad_schedule_view_service_proto != nil {
191		return
192	}
193	if !protoimpl.UnsafeEnabled {
194		file_google_ads_googleads_v1_services_ad_schedule_view_service_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
195			switch v := v.(*GetAdScheduleViewRequest); i {
196			case 0:
197				return &v.state
198			case 1:
199				return &v.sizeCache
200			case 2:
201				return &v.unknownFields
202			default:
203				return nil
204			}
205		}
206	}
207	type x struct{}
208	out := protoimpl.TypeBuilder{
209		File: protoimpl.DescBuilder{
210			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
211			RawDescriptor: file_google_ads_googleads_v1_services_ad_schedule_view_service_proto_rawDesc,
212			NumEnums:      0,
213			NumMessages:   1,
214			NumExtensions: 0,
215			NumServices:   1,
216		},
217		GoTypes:           file_google_ads_googleads_v1_services_ad_schedule_view_service_proto_goTypes,
218		DependencyIndexes: file_google_ads_googleads_v1_services_ad_schedule_view_service_proto_depIdxs,
219		MessageInfos:      file_google_ads_googleads_v1_services_ad_schedule_view_service_proto_msgTypes,
220	}.Build()
221	File_google_ads_googleads_v1_services_ad_schedule_view_service_proto = out.File
222	file_google_ads_googleads_v1_services_ad_schedule_view_service_proto_rawDesc = nil
223	file_google_ads_googleads_v1_services_ad_schedule_view_service_proto_goTypes = nil
224	file_google_ads_googleads_v1_services_ad_schedule_view_service_proto_depIdxs = nil
225}
226
227// Reference imports to suppress errors if they are not otherwise used.
228var _ context.Context
229var _ grpc.ClientConnInterface
230
231// This is a compile-time assertion to ensure that this generated file
232// is compatible with the grpc package it is being compiled against.
233const _ = grpc.SupportPackageIsVersion6
234
235// AdScheduleViewServiceClient is the client API for AdScheduleViewService service.
236//
237// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
238type AdScheduleViewServiceClient interface {
239	// Returns the requested ad schedule view in full detail.
240	GetAdScheduleView(ctx context.Context, in *GetAdScheduleViewRequest, opts ...grpc.CallOption) (*resources.AdScheduleView, error)
241}
242
243type adScheduleViewServiceClient struct {
244	cc grpc.ClientConnInterface
245}
246
247func NewAdScheduleViewServiceClient(cc grpc.ClientConnInterface) AdScheduleViewServiceClient {
248	return &adScheduleViewServiceClient{cc}
249}
250
251func (c *adScheduleViewServiceClient) GetAdScheduleView(ctx context.Context, in *GetAdScheduleViewRequest, opts ...grpc.CallOption) (*resources.AdScheduleView, error) {
252	out := new(resources.AdScheduleView)
253	err := c.cc.Invoke(ctx, "/google.ads.googleads.v1.services.AdScheduleViewService/GetAdScheduleView", in, out, opts...)
254	if err != nil {
255		return nil, err
256	}
257	return out, nil
258}
259
260// AdScheduleViewServiceServer is the server API for AdScheduleViewService service.
261type AdScheduleViewServiceServer interface {
262	// Returns the requested ad schedule view in full detail.
263	GetAdScheduleView(context.Context, *GetAdScheduleViewRequest) (*resources.AdScheduleView, error)
264}
265
266// UnimplementedAdScheduleViewServiceServer can be embedded to have forward compatible implementations.
267type UnimplementedAdScheduleViewServiceServer struct {
268}
269
270func (*UnimplementedAdScheduleViewServiceServer) GetAdScheduleView(context.Context, *GetAdScheduleViewRequest) (*resources.AdScheduleView, error) {
271	return nil, status.Errorf(codes.Unimplemented, "method GetAdScheduleView not implemented")
272}
273
274func RegisterAdScheduleViewServiceServer(s *grpc.Server, srv AdScheduleViewServiceServer) {
275	s.RegisterService(&_AdScheduleViewService_serviceDesc, srv)
276}
277
278func _AdScheduleViewService_GetAdScheduleView_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
279	in := new(GetAdScheduleViewRequest)
280	if err := dec(in); err != nil {
281		return nil, err
282	}
283	if interceptor == nil {
284		return srv.(AdScheduleViewServiceServer).GetAdScheduleView(ctx, in)
285	}
286	info := &grpc.UnaryServerInfo{
287		Server:     srv,
288		FullMethod: "/google.ads.googleads.v1.services.AdScheduleViewService/GetAdScheduleView",
289	}
290	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
291		return srv.(AdScheduleViewServiceServer).GetAdScheduleView(ctx, req.(*GetAdScheduleViewRequest))
292	}
293	return interceptor(ctx, in, info, handler)
294}
295
296var _AdScheduleViewService_serviceDesc = grpc.ServiceDesc{
297	ServiceName: "google.ads.googleads.v1.services.AdScheduleViewService",
298	HandlerType: (*AdScheduleViewServiceServer)(nil),
299	Methods: []grpc.MethodDesc{
300		{
301			MethodName: "GetAdScheduleView",
302			Handler:    _AdScheduleViewService_GetAdScheduleView_Handler,
303		},
304	},
305	Streams:  []grpc.StreamDesc{},
306	Metadata: "google/ads/googleads/v1/services/ad_schedule_view_service.proto",
307}
308