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