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.25.0
18// 	protoc        v3.13.0
19// source: google/cloud/servicedirectory/v1/lookup_service.proto
20
21package servicedirectory
22
23import (
24	context "context"
25	reflect "reflect"
26	sync "sync"
27
28	proto "github.com/golang/protobuf/proto"
29	_ "google.golang.org/genproto/googleapis/api/annotations"
30	grpc "google.golang.org/grpc"
31	codes "google.golang.org/grpc/codes"
32	status "google.golang.org/grpc/status"
33	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
34	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
35)
36
37const (
38	// Verify that this generated code is sufficiently up-to-date.
39	_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
40	// Verify that runtime/protoimpl is sufficiently up-to-date.
41	_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
42)
43
44// This is a compile-time assertion that a sufficiently up-to-date version
45// of the legacy proto package is being used.
46const _ = proto.ProtoPackageIsVersion4
47
48// The request message for
49// [LookupService.ResolveService][google.cloud.servicedirectory.v1.LookupService.ResolveService].
50// Looks up a service by its name, returns the service and its endpoints.
51type ResolveServiceRequest struct {
52	state         protoimpl.MessageState
53	sizeCache     protoimpl.SizeCache
54	unknownFields protoimpl.UnknownFields
55
56	// Required. The name of the service to resolve.
57	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
58	// Optional. The maximum number of endpoints to return. Defaults to 25.
59	// Maximum is 100. If a value less than one is specified, the Default is used.
60	// If a value greater than the Maximum is specified, the Maximum is used.
61	MaxEndpoints int32 `protobuf:"varint,2,opt,name=max_endpoints,json=maxEndpoints,proto3" json:"max_endpoints,omitempty"`
62	// Optional. The filter applied to the endpoints of the resolved service.
63	//
64	// General filter string syntax:
65	// <field> <operator> <value> (<logical connector>)
66	// <field> can be "name" or "metadata.<key>" for map field.
67	// <operator> can be "<, >, <=, >=, !=, =, :". Of which ":" means HAS and is
68	// roughly the same as "=".
69	// <value> must be the same data type as the field.
70	// <logical connector> can be "AND, OR, NOT".
71	//
72	// Examples of valid filters:
73	// * "metadata.owner" returns Endpoints that have a label with the
74	//   key "owner", this is the same as "metadata:owner"
75	// * "metadata.protocol=gRPC" returns Endpoints that have key/value
76	//   "protocol=gRPC"
77	// * "metadata.owner!=sd AND metadata.foo=bar" returns
78	//   Endpoints that have "owner" field in metadata with a value that is not
79	//   "sd" AND have the key/value foo=bar.
80	EndpointFilter string `protobuf:"bytes,3,opt,name=endpoint_filter,json=endpointFilter,proto3" json:"endpoint_filter,omitempty"`
81}
82
83func (x *ResolveServiceRequest) Reset() {
84	*x = ResolveServiceRequest{}
85	if protoimpl.UnsafeEnabled {
86		mi := &file_google_cloud_servicedirectory_v1_lookup_service_proto_msgTypes[0]
87		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
88		ms.StoreMessageInfo(mi)
89	}
90}
91
92func (x *ResolveServiceRequest) String() string {
93	return protoimpl.X.MessageStringOf(x)
94}
95
96func (*ResolveServiceRequest) ProtoMessage() {}
97
98func (x *ResolveServiceRequest) ProtoReflect() protoreflect.Message {
99	mi := &file_google_cloud_servicedirectory_v1_lookup_service_proto_msgTypes[0]
100	if protoimpl.UnsafeEnabled && x != nil {
101		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
102		if ms.LoadMessageInfo() == nil {
103			ms.StoreMessageInfo(mi)
104		}
105		return ms
106	}
107	return mi.MessageOf(x)
108}
109
110// Deprecated: Use ResolveServiceRequest.ProtoReflect.Descriptor instead.
111func (*ResolveServiceRequest) Descriptor() ([]byte, []int) {
112	return file_google_cloud_servicedirectory_v1_lookup_service_proto_rawDescGZIP(), []int{0}
113}
114
115func (x *ResolveServiceRequest) GetName() string {
116	if x != nil {
117		return x.Name
118	}
119	return ""
120}
121
122func (x *ResolveServiceRequest) GetMaxEndpoints() int32 {
123	if x != nil {
124		return x.MaxEndpoints
125	}
126	return 0
127}
128
129func (x *ResolveServiceRequest) GetEndpointFilter() string {
130	if x != nil {
131		return x.EndpointFilter
132	}
133	return ""
134}
135
136// The response message for
137// [LookupService.ResolveService][google.cloud.servicedirectory.v1.LookupService.ResolveService].
138type ResolveServiceResponse struct {
139	state         protoimpl.MessageState
140	sizeCache     protoimpl.SizeCache
141	unknownFields protoimpl.UnknownFields
142
143	Service *Service `protobuf:"bytes,1,opt,name=service,proto3" json:"service,omitempty"`
144}
145
146func (x *ResolveServiceResponse) Reset() {
147	*x = ResolveServiceResponse{}
148	if protoimpl.UnsafeEnabled {
149		mi := &file_google_cloud_servicedirectory_v1_lookup_service_proto_msgTypes[1]
150		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
151		ms.StoreMessageInfo(mi)
152	}
153}
154
155func (x *ResolveServiceResponse) String() string {
156	return protoimpl.X.MessageStringOf(x)
157}
158
159func (*ResolveServiceResponse) ProtoMessage() {}
160
161func (x *ResolveServiceResponse) ProtoReflect() protoreflect.Message {
162	mi := &file_google_cloud_servicedirectory_v1_lookup_service_proto_msgTypes[1]
163	if protoimpl.UnsafeEnabled && x != nil {
164		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
165		if ms.LoadMessageInfo() == nil {
166			ms.StoreMessageInfo(mi)
167		}
168		return ms
169	}
170	return mi.MessageOf(x)
171}
172
173// Deprecated: Use ResolveServiceResponse.ProtoReflect.Descriptor instead.
174func (*ResolveServiceResponse) Descriptor() ([]byte, []int) {
175	return file_google_cloud_servicedirectory_v1_lookup_service_proto_rawDescGZIP(), []int{1}
176}
177
178func (x *ResolveServiceResponse) GetService() *Service {
179	if x != nil {
180		return x.Service
181	}
182	return nil
183}
184
185var File_google_cloud_servicedirectory_v1_lookup_service_proto protoreflect.FileDescriptor
186
187var file_google_cloud_servicedirectory_v1_lookup_service_proto_rawDesc = []byte{
188	0x0a, 0x35, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x73,
189	0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x64, 0x69, 0x72, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x79, 0x2f,
190	0x76, 0x31, 0x2f, 0x6c, 0x6f, 0x6f, 0x6b, 0x75, 0x70, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63,
191	0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x20, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e,
192	0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x64, 0x69, 0x72,
193	0x65, 0x63, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x1a, 0x1c, 0x67, 0x6f, 0x6f, 0x67, 0x6c,
194	0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e,
195	0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x17, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f,
196	0x61, 0x70, 0x69, 0x2f, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
197	0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x66, 0x69, 0x65,
198	0x6c, 0x64, 0x5f, 0x62, 0x65, 0x68, 0x61, 0x76, 0x69, 0x6f, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74,
199	0x6f, 0x1a, 0x19, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x72, 0x65,
200	0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x2e, 0x67, 0x6f,
201	0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x69,
202	0x63, 0x65, 0x64, 0x69, 0x72, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x79, 0x2f, 0x76, 0x31, 0x2f, 0x73,
203	0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xb4, 0x01, 0x0a,
204	0x15, 0x52, 0x65, 0x73, 0x6f, 0x6c, 0x76, 0x65, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x52,
205	0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x43, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01,
206	0x20, 0x01, 0x28, 0x09, 0x42, 0x2f, 0xe0, 0x41, 0x02, 0xfa, 0x41, 0x29, 0x0a, 0x27, 0x73, 0x65,
207	0x72, 0x76, 0x69, 0x63, 0x65, 0x64, 0x69, 0x72, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x67,
208	0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x53, 0x65,
209	0x72, 0x76, 0x69, 0x63, 0x65, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x28, 0x0a, 0x0d, 0x6d,
210	0x61, 0x78, 0x5f, 0x65, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x73, 0x18, 0x02, 0x20, 0x01,
211	0x28, 0x05, 0x42, 0x03, 0xe0, 0x41, 0x01, 0x52, 0x0c, 0x6d, 0x61, 0x78, 0x45, 0x6e, 0x64, 0x70,
212	0x6f, 0x69, 0x6e, 0x74, 0x73, 0x12, 0x2c, 0x0a, 0x0f, 0x65, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e,
213	0x74, 0x5f, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03,
214	0xe0, 0x41, 0x01, 0x52, 0x0e, 0x65, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x46, 0x69, 0x6c,
215	0x74, 0x65, 0x72, 0x22, 0x5d, 0x0a, 0x16, 0x52, 0x65, 0x73, 0x6f, 0x6c, 0x76, 0x65, 0x53, 0x65,
216	0x72, 0x76, 0x69, 0x63, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x43, 0x0a,
217	0x07, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x29,
218	0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x73, 0x65,
219	0x72, 0x76, 0x69, 0x63, 0x65, 0x64, 0x69, 0x72, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x76,
220	0x31, 0x2e, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x52, 0x07, 0x73, 0x65, 0x72, 0x76, 0x69,
221	0x63, 0x65, 0x32, 0xb8, 0x02, 0x0a, 0x0d, 0x4c, 0x6f, 0x6f, 0x6b, 0x75, 0x70, 0x53, 0x65, 0x72,
222	0x76, 0x69, 0x63, 0x65, 0x12, 0xd1, 0x01, 0x0a, 0x0e, 0x52, 0x65, 0x73, 0x6f, 0x6c, 0x76, 0x65,
223	0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x37, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
224	0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x64, 0x69,
225	0x72, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x6c,
226	0x76, 0x65, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,
227	0x1a, 0x38, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e,
228	0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x64, 0x69, 0x72, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x79,
229	0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x6c, 0x76, 0x65, 0x53, 0x65, 0x72, 0x76, 0x69,
230	0x63, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x4c, 0x82, 0xd3, 0xe4, 0x93,
231	0x02, 0x46, 0x22, 0x41, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x70, 0x72,
232	0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f,
233	0x6e, 0x73, 0x2f, 0x2a, 0x2f, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x70, 0x61, 0x63, 0x65, 0x73, 0x2f,
234	0x2a, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x3a, 0x72, 0x65,
235	0x73, 0x6f, 0x6c, 0x76, 0x65, 0x3a, 0x01, 0x2a, 0x1a, 0x53, 0xca, 0x41, 0x1f, 0x73, 0x65, 0x72,
236	0x76, 0x69, 0x63, 0x65, 0x64, 0x69, 0x72, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x67, 0x6f,
237	0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0xd2, 0x41, 0x2e, 0x68,
238	0x74, 0x74, 0x70, 0x73, 0x3a, 0x2f, 0x2f, 0x77, 0x77, 0x77, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c,
239	0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x61, 0x75, 0x74, 0x68, 0x2f, 0x63,
240	0x6c, 0x6f, 0x75, 0x64, 0x2d, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x42, 0xfd, 0x01,
241	0x0a, 0x24, 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f,
242	0x75, 0x64, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x64, 0x69, 0x72, 0x65, 0x63, 0x74,
243	0x6f, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x42, 0x12, 0x4c, 0x6f, 0x6f, 0x6b, 0x75, 0x70, 0x53, 0x65,
244	0x72, 0x76, 0x69, 0x63, 0x65, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x50, 0x67, 0x6f,
245	0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x67, 0x6f, 0x6c, 0x61, 0x6e, 0x67, 0x2e, 0x6f, 0x72, 0x67, 0x2f,
246	0x67, 0x65, 0x6e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61,
247	0x70, 0x69, 0x73, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63,
248	0x65, 0x64, 0x69, 0x72, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x79, 0x2f, 0x76, 0x31, 0x3b, 0x73, 0x65,
249	0x72, 0x76, 0x69, 0x63, 0x65, 0x64, 0x69, 0x72, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x79, 0xf8, 0x01,
250	0x01, 0xaa, 0x02, 0x20, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x43, 0x6c, 0x6f, 0x75, 0x64,
251	0x2e, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x44, 0x69, 0x72, 0x65, 0x63, 0x74, 0x6f, 0x72,
252	0x79, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x20, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x5c, 0x43, 0x6c,
253	0x6f, 0x75, 0x64, 0x5c, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x44, 0x69, 0x72, 0x65, 0x63,
254	0x74, 0x6f, 0x72, 0x79, 0x5c, 0x56, 0x31, 0xea, 0x02, 0x23, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
255	0x3a, 0x3a, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x3a, 0x3a, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65,
256	0x44, 0x69, 0x72, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x79, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70,
257	0x72, 0x6f, 0x74, 0x6f, 0x33,
258}
259
260var (
261	file_google_cloud_servicedirectory_v1_lookup_service_proto_rawDescOnce sync.Once
262	file_google_cloud_servicedirectory_v1_lookup_service_proto_rawDescData = file_google_cloud_servicedirectory_v1_lookup_service_proto_rawDesc
263)
264
265func file_google_cloud_servicedirectory_v1_lookup_service_proto_rawDescGZIP() []byte {
266	file_google_cloud_servicedirectory_v1_lookup_service_proto_rawDescOnce.Do(func() {
267		file_google_cloud_servicedirectory_v1_lookup_service_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_cloud_servicedirectory_v1_lookup_service_proto_rawDescData)
268	})
269	return file_google_cloud_servicedirectory_v1_lookup_service_proto_rawDescData
270}
271
272var file_google_cloud_servicedirectory_v1_lookup_service_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
273var file_google_cloud_servicedirectory_v1_lookup_service_proto_goTypes = []interface{}{
274	(*ResolveServiceRequest)(nil),  // 0: google.cloud.servicedirectory.v1.ResolveServiceRequest
275	(*ResolveServiceResponse)(nil), // 1: google.cloud.servicedirectory.v1.ResolveServiceResponse
276	(*Service)(nil),                // 2: google.cloud.servicedirectory.v1.Service
277}
278var file_google_cloud_servicedirectory_v1_lookup_service_proto_depIdxs = []int32{
279	2, // 0: google.cloud.servicedirectory.v1.ResolveServiceResponse.service:type_name -> google.cloud.servicedirectory.v1.Service
280	0, // 1: google.cloud.servicedirectory.v1.LookupService.ResolveService:input_type -> google.cloud.servicedirectory.v1.ResolveServiceRequest
281	1, // 2: google.cloud.servicedirectory.v1.LookupService.ResolveService:output_type -> google.cloud.servicedirectory.v1.ResolveServiceResponse
282	2, // [2:3] is the sub-list for method output_type
283	1, // [1:2] is the sub-list for method input_type
284	1, // [1:1] is the sub-list for extension type_name
285	1, // [1:1] is the sub-list for extension extendee
286	0, // [0:1] is the sub-list for field type_name
287}
288
289func init() { file_google_cloud_servicedirectory_v1_lookup_service_proto_init() }
290func file_google_cloud_servicedirectory_v1_lookup_service_proto_init() {
291	if File_google_cloud_servicedirectory_v1_lookup_service_proto != nil {
292		return
293	}
294	file_google_cloud_servicedirectory_v1_service_proto_init()
295	if !protoimpl.UnsafeEnabled {
296		file_google_cloud_servicedirectory_v1_lookup_service_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
297			switch v := v.(*ResolveServiceRequest); i {
298			case 0:
299				return &v.state
300			case 1:
301				return &v.sizeCache
302			case 2:
303				return &v.unknownFields
304			default:
305				return nil
306			}
307		}
308		file_google_cloud_servicedirectory_v1_lookup_service_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
309			switch v := v.(*ResolveServiceResponse); i {
310			case 0:
311				return &v.state
312			case 1:
313				return &v.sizeCache
314			case 2:
315				return &v.unknownFields
316			default:
317				return nil
318			}
319		}
320	}
321	type x struct{}
322	out := protoimpl.TypeBuilder{
323		File: protoimpl.DescBuilder{
324			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
325			RawDescriptor: file_google_cloud_servicedirectory_v1_lookup_service_proto_rawDesc,
326			NumEnums:      0,
327			NumMessages:   2,
328			NumExtensions: 0,
329			NumServices:   1,
330		},
331		GoTypes:           file_google_cloud_servicedirectory_v1_lookup_service_proto_goTypes,
332		DependencyIndexes: file_google_cloud_servicedirectory_v1_lookup_service_proto_depIdxs,
333		MessageInfos:      file_google_cloud_servicedirectory_v1_lookup_service_proto_msgTypes,
334	}.Build()
335	File_google_cloud_servicedirectory_v1_lookup_service_proto = out.File
336	file_google_cloud_servicedirectory_v1_lookup_service_proto_rawDesc = nil
337	file_google_cloud_servicedirectory_v1_lookup_service_proto_goTypes = nil
338	file_google_cloud_servicedirectory_v1_lookup_service_proto_depIdxs = nil
339}
340
341// Reference imports to suppress errors if they are not otherwise used.
342var _ context.Context
343var _ grpc.ClientConnInterface
344
345// This is a compile-time assertion to ensure that this generated file
346// is compatible with the grpc package it is being compiled against.
347const _ = grpc.SupportPackageIsVersion6
348
349// LookupServiceClient is the client API for LookupService service.
350//
351// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
352type LookupServiceClient interface {
353	// Returns a [service][google.cloud.servicedirectory.v1.Service] and its
354	// associated endpoints.
355	// Resolving a service is not considered an active developer method.
356	ResolveService(ctx context.Context, in *ResolveServiceRequest, opts ...grpc.CallOption) (*ResolveServiceResponse, error)
357}
358
359type lookupServiceClient struct {
360	cc grpc.ClientConnInterface
361}
362
363func NewLookupServiceClient(cc grpc.ClientConnInterface) LookupServiceClient {
364	return &lookupServiceClient{cc}
365}
366
367func (c *lookupServiceClient) ResolveService(ctx context.Context, in *ResolveServiceRequest, opts ...grpc.CallOption) (*ResolveServiceResponse, error) {
368	out := new(ResolveServiceResponse)
369	err := c.cc.Invoke(ctx, "/google.cloud.servicedirectory.v1.LookupService/ResolveService", in, out, opts...)
370	if err != nil {
371		return nil, err
372	}
373	return out, nil
374}
375
376// LookupServiceServer is the server API for LookupService service.
377type LookupServiceServer interface {
378	// Returns a [service][google.cloud.servicedirectory.v1.Service] and its
379	// associated endpoints.
380	// Resolving a service is not considered an active developer method.
381	ResolveService(context.Context, *ResolveServiceRequest) (*ResolveServiceResponse, error)
382}
383
384// UnimplementedLookupServiceServer can be embedded to have forward compatible implementations.
385type UnimplementedLookupServiceServer struct {
386}
387
388func (*UnimplementedLookupServiceServer) ResolveService(context.Context, *ResolveServiceRequest) (*ResolveServiceResponse, error) {
389	return nil, status.Errorf(codes.Unimplemented, "method ResolveService not implemented")
390}
391
392func RegisterLookupServiceServer(s *grpc.Server, srv LookupServiceServer) {
393	s.RegisterService(&_LookupService_serviceDesc, srv)
394}
395
396func _LookupService_ResolveService_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
397	in := new(ResolveServiceRequest)
398	if err := dec(in); err != nil {
399		return nil, err
400	}
401	if interceptor == nil {
402		return srv.(LookupServiceServer).ResolveService(ctx, in)
403	}
404	info := &grpc.UnaryServerInfo{
405		Server:     srv,
406		FullMethod: "/google.cloud.servicedirectory.v1.LookupService/ResolveService",
407	}
408	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
409		return srv.(LookupServiceServer).ResolveService(ctx, req.(*ResolveServiceRequest))
410	}
411	return interceptor(ctx, in, info, handler)
412}
413
414var _LookupService_serviceDesc = grpc.ServiceDesc{
415	ServiceName: "google.cloud.servicedirectory.v1.LookupService",
416	HandlerType: (*LookupServiceServer)(nil),
417	Methods: []grpc.MethodDesc{
418		{
419			MethodName: "ResolveService",
420			Handler:    _LookupService_ResolveService_Handler,
421		},
422	},
423	Streams:  []grpc.StreamDesc{},
424	Metadata: "google/cloud/servicedirectory/v1/lookup_service.proto",
425}
426