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