Debian Codegraph @

servicedirectory/apiv1beta1/servicedirectorypb/lookup_service.pb.go

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