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