| 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/v1/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.v1.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 `annotations.<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 |
// - `annotations.owner` returns endpoints that have a annotation with the |
| 71 |
// key `owner`, this is the same as `annotations:owner` |
| 72 |
// - `annotations.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 |
// - `annotations.owner!=sd AND annotations.foo=bar` returns endpoints that |
| 88 |
// have `owner` in annotation key but value is not `sd` AND have |
| 89 |
// key/value `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_v1_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_v1_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_v1_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.v1.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_v1_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_v1_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_v1_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_v1_lookup_service_proto protoreflect.FileDescriptor |
| 198 |
|
| 199 |
var file_google_cloud_servicedirectory_v1_lookup_service_proto_rawDesc = []byte{ |
| 200 |
0x0a, 0x35, 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, 0x2f, 0x6c, 0x6f, 0x6f, 0x6b, 0x75, 0x70, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, |
| 203 |
0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x20, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, |
| 204 |
0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x64, 0x69, 0x72, |
| 205 |
0x65, 0x63, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x1a, 0x1c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, |
| 206 |
0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, |
| 207 |
0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x17, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, |
| 208 |
0x61, 0x70, 0x69, 0x2f, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, |
| 209 |
0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x66, 0x69, 0x65, |
| 210 |
0x6c, 0x64, 0x5f, 0x62, 0x65, 0x68, 0x61, 0x76, 0x69, 0x6f, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, |
| 211 |
0x6f, 0x1a, 0x19, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x72, 0x65, |
| 212 |
0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x2e, 0x67, 0x6f, |
| 213 |
0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x69, |
| 214 |
0x63, 0x65, 0x64, 0x69, 0x72, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x79, 0x2f, 0x76, 0x31, 0x2f, 0x73, |
| 215 |
0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xb4, 0x01, 0x0a, |
| 216 |
0x15, 0x52, 0x65, 0x73, 0x6f, 0x6c, 0x76, 0x65, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x52, |
| 217 |
0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x43, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, |
| 218 |
0x20, 0x01, 0x28, 0x09, 0x42, 0x2f, 0xe0, 0x41, 0x02, 0xfa, 0x41, 0x29, 0x0a, 0x27, 0x73, 0x65, |
| 219 |
0x72, 0x76, 0x69, 0x63, 0x65, 0x64, 0x69, 0x72, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x67, |
| 220 |
0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x53, 0x65, |
| 221 |
0x72, 0x76, 0x69, 0x63, 0x65, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x28, 0x0a, 0x0d, 0x6d, |
| 222 |
0x61, 0x78, 0x5f, 0x65, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x73, 0x18, 0x02, 0x20, 0x01, |
| 223 |
0x28, 0x05, 0x42, 0x03, 0xe0, 0x41, 0x01, 0x52, 0x0c, 0x6d, 0x61, 0x78, 0x45, 0x6e, 0x64, 0x70, |
| 224 |
0x6f, 0x69, 0x6e, 0x74, 0x73, 0x12, 0x2c, 0x0a, 0x0f, 0x65, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, |
| 225 |
0x74, 0x5f, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, |
| 226 |
0xe0, 0x41, 0x01, 0x52, 0x0e, 0x65, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x46, 0x69, 0x6c, |
| 227 |
0x74, 0x65, 0x72, 0x22, 0x5d, 0x0a, 0x16, 0x52, 0x65, 0x73, 0x6f, 0x6c, 0x76, 0x65, 0x53, 0x65, |
| 228 |
0x72, 0x76, 0x69, 0x63, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x43, 0x0a, |
| 229 |
0x07, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x29, |
| 230 |
0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x73, 0x65, |
| 231 |
0x72, 0x76, 0x69, 0x63, 0x65, 0x64, 0x69, 0x72, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x76, |
| 232 |
0x31, 0x2e, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x52, 0x07, 0x73, 0x65, 0x72, 0x76, 0x69, |
| 233 |
0x63, 0x65, 0x32, 0xb8, 0x02, 0x0a, 0x0d, 0x4c, 0x6f, 0x6f, 0x6b, 0x75, 0x70, 0x53, 0x65, 0x72, |
| 234 |
0x76, 0x69, 0x63, 0x65, 0x12, 0xd1, 0x01, 0x0a, 0x0e, 0x52, 0x65, 0x73, 0x6f, 0x6c, 0x76, 0x65, |
| 235 |
0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x37, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, |
| 236 |
0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x64, 0x69, |
| 237 |
0x72, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x6c, |
| 238 |
0x76, 0x65, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, |
| 239 |
0x1a, 0x38, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, |
| 240 |
0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x64, 0x69, 0x72, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x79, |
| 241 |
0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x6c, 0x76, 0x65, 0x53, 0x65, 0x72, 0x76, 0x69, |
| 242 |
0x63, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x4c, 0x82, 0xd3, 0xe4, 0x93, |
| 243 |
0x02, 0x46, 0x3a, 0x01, 0x2a, 0x22, 0x41, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, |
| 244 |
0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x6c, 0x6f, 0x63, 0x61, |
| 245 |
0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x2a, 0x2f, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x70, 0x61, 0x63, |
| 246 |
0x65, 0x73, 0x2f, 0x2a, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2f, 0x2a, 0x7d, |
| 247 |
0x3a, 0x72, 0x65, 0x73, 0x6f, 0x6c, 0x76, 0x65, 0x1a, 0x53, 0xca, 0x41, 0x1f, 0x73, 0x65, 0x72, |
| 248 |
0x76, 0x69, 0x63, 0x65, 0x64, 0x69, 0x72, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x67, 0x6f, |
| 249 |
0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0xd2, 0x41, 0x2e, 0x68, |
| 250 |
0x74, 0x74, 0x70, 0x73, 0x3a, 0x2f, 0x2f, 0x77, 0x77, 0x77, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, |
| 251 |
0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x61, 0x75, 0x74, 0x68, 0x2f, 0x63, |
| 252 |
0x6c, 0x6f, 0x75, 0x64, 0x2d, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x42, 0xfa, 0x01, |
| 253 |
0x0a, 0x24, 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, |
| 254 |
0x75, 0x64, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x64, 0x69, 0x72, 0x65, 0x63, 0x74, |
| 255 |
0x6f, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x42, 0x12, 0x4c, 0x6f, 0x6f, 0x6b, 0x75, 0x70, 0x53, 0x65, |
| 256 |
0x72, 0x76, 0x69, 0x63, 0x65, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x50, 0x63, 0x6c, |
| 257 |
0x6f, 0x75, 0x64, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, |
| 258 |
0x6f, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x64, 0x69, 0x72, 0x65, 0x63, 0x74, 0x6f, |
| 259 |
0x72, 0x79, 0x2f, 0x61, 0x70, 0x69, 0x76, 0x31, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, |
| 260 |
0x64, 0x69, 0x72, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x79, 0x70, 0x62, 0x3b, 0x73, 0x65, 0x72, 0x76, |
| 261 |
0x69, 0x63, 0x65, 0x64, 0x69, 0x72, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x79, 0x70, 0x62, 0xaa, 0x02, |
| 262 |
0x20, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x53, 0x65, |
| 263 |
0x72, 0x76, 0x69, 0x63, 0x65, 0x44, 0x69, 0x72, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x56, |
| 264 |
0x31, 0xca, 0x02, 0x20, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x5c, 0x43, 0x6c, 0x6f, 0x75, 0x64, |
| 265 |
0x5c, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x44, 0x69, 0x72, 0x65, 0x63, 0x74, 0x6f, 0x72, |
| 266 |
0x79, 0x5c, 0x56, 0x31, 0xea, 0x02, 0x23, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x3a, 0x3a, 0x43, |
| 267 |
0x6c, 0x6f, 0x75, 0x64, 0x3a, 0x3a, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x44, 0x69, 0x72, |
| 268 |
0x65, 0x63, 0x74, 0x6f, 0x72, 0x79, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, |
| 269 |
0x6f, 0x33, |
| 270 |
} |
| 271 |
|
| 272 |
var ( |
| 273 |
file_google_cloud_servicedirectory_v1_lookup_service_proto_rawDescOnce sync.Once |
| 274 |
file_google_cloud_servicedirectory_v1_lookup_service_proto_rawDescData = file_google_cloud_servicedirectory_v1_lookup_service_proto_rawDesc |
| 275 |
) |
| 276 |
|
| 277 |
func file_google_cloud_servicedirectory_v1_lookup_service_proto_rawDescGZIP() []byte { |
| 278 |
file_google_cloud_servicedirectory_v1_lookup_service_proto_rawDescOnce.Do(func() { |
| 279 |
file_google_cloud_servicedirectory_v1_lookup_service_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_cloud_servicedirectory_v1_lookup_service_proto_rawDescData) |
| 280 |
}) |
| 281 |
return file_google_cloud_servicedirectory_v1_lookup_service_proto_rawDescData |
| 282 |
} |
| 283 |
|
| 284 |
var file_google_cloud_servicedirectory_v1_lookup_service_proto_msgTypes = make([]protoimpl.MessageInfo, 2) |
| 285 |
var file_google_cloud_servicedirectory_v1_lookup_service_proto_goTypes = []any{ |
| 286 |
(*ResolveServiceRequest)(nil), // 0: google.cloud.servicedirectory.v1.ResolveServiceRequest |
| 287 |
(*ResolveServiceResponse)(nil), // 1: google.cloud.servicedirectory.v1.ResolveServiceResponse |
| 288 |
(*Service)(nil), // 2: google.cloud.servicedirectory.v1.Service |
| 289 |
} |
| 290 |
var file_google_cloud_servicedirectory_v1_lookup_service_proto_depIdxs = []int32{ |
| 291 |
2, // 0: google.cloud.servicedirectory.v1.ResolveServiceResponse.service:type_name -> google.cloud.servicedirectory.v1.Service |
| 292 |
0, // 1: google.cloud.servicedirectory.v1.LookupService.ResolveService:input_type -> google.cloud.servicedirectory.v1.ResolveServiceRequest |
| 293 |
1, // 2: google.cloud.servicedirectory.v1.LookupService.ResolveService:output_type -> google.cloud.servicedirectory.v1.ResolveServiceResponse |
| 294 |
2, // [2:3] is the sub-list for method output_type |
| 295 |
1, // [1:2] is the sub-list for method input_type |
| 296 |
1, // [1:1] is the sub-list for extension type_name |
| 297 |
1, // [1:1] is the sub-list for extension extendee |
| 298 |
0, // [0:1] is the sub-list for field type_name |
| 299 |
} |
| 300 |
|
| 301 |
func init() { file_google_cloud_servicedirectory_v1_lookup_service_proto_init() } |
| 302 |
func file_google_cloud_servicedirectory_v1_lookup_service_proto_init() { |
| 303 |
if File_google_cloud_servicedirectory_v1_lookup_service_proto != nil { |
| 304 |
return |
| 305 |
} |
| 306 |
file_google_cloud_servicedirectory_v1_service_proto_init() |
| 307 |
type x struct{} |
| 308 |
out := protoimpl.TypeBuilder{ |
| 309 |
File: protoimpl.DescBuilder{ |
| 310 |
GoPackagePath: reflect.TypeOf(x{}).PkgPath(), |
| 311 |
RawDescriptor: file_google_cloud_servicedirectory_v1_lookup_service_proto_rawDesc, |
| 312 |
NumEnums: 0, |
| 313 |
NumMessages: 2, |
| 314 |
NumExtensions: 0, |
| 315 |
NumServices: 1, |
| 316 |
}, |
| 317 |
GoTypes: file_google_cloud_servicedirectory_v1_lookup_service_proto_goTypes, |
| 318 |
DependencyIndexes: file_google_cloud_servicedirectory_v1_lookup_service_proto_depIdxs, |
| 319 |
MessageInfos: file_google_cloud_servicedirectory_v1_lookup_service_proto_msgTypes, |
| 320 |
}.Build() |
| 321 |
File_google_cloud_servicedirectory_v1_lookup_service_proto = out.File |
| 322 |
file_google_cloud_servicedirectory_v1_lookup_service_proto_rawDesc = nil |
| 323 |
file_google_cloud_servicedirectory_v1_lookup_service_proto_goTypes = nil |
| 324 |
file_google_cloud_servicedirectory_v1_lookup_service_proto_depIdxs = nil |
| 325 |
} |
| 326 |
|
| 327 |
// Reference imports to suppress errors if they are not otherwise used. |
| 328 |
var _ context.Context |
| 329 |
var _ grpc.ClientConnInterface |
| 330 |
|
| 331 |
// This is a compile-time assertion to ensure that this generated file |
| 332 |
// is compatible with the grpc package it is being compiled against. |
| 333 |
const _ = grpc.SupportPackageIsVersion6 |
| 334 |
|
| 335 |
// LookupServiceClient is the client API for LookupService service. |
| 336 |
// |
| 337 |
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. |
| 338 |
type LookupServiceClient interface { |
| 339 |
// Returns a [service][google.cloud.servicedirectory.v1.Service] and its |
| 340 |
// associated endpoints. |
| 341 |
// Resolving a service is not considered an active developer method. |
| 342 |
ResolveService(ctx context.Context, in *ResolveServiceRequest, opts ...grpc.CallOption) (*ResolveServiceResponse, error) |
| 343 |
} |
| 344 |
|
| 345 |
type lookupServiceClient struct { |
| 346 |
cc grpc.ClientConnInterface |
| 347 |
} |
| 348 |
|
| 349 |
func NewLookupServiceClient(cc grpc.ClientConnInterface) LookupServiceClient { |
| 350 |
return &lookupServiceClient{cc} |
| 351 |
} |
| 352 |
|
| 353 |
func (c *lookupServiceClient) ResolveService(ctx context.Context, in *ResolveServiceRequest, opts ...grpc.CallOption) (*ResolveServiceResponse, error) { |
| 354 |
out := new(ResolveServiceResponse) |
| 355 |
err := c.cc.Invoke(ctx, "/google.cloud.servicedirectory.v1.LookupService/ResolveService", in, out, opts...) |
| 356 |
if err != nil { |
| 357 |
return nil, err |
| 358 |
} |
| 359 |
return out, nil |
| 360 |
} |
| 361 |
|
| 362 |
// LookupServiceServer is the server API for LookupService service. |
| 363 |
type LookupServiceServer interface { |
| 364 |
// Returns a [service][google.cloud.servicedirectory.v1.Service] and its |
| 365 |
// associated endpoints. |
| 366 |
// Resolving a service is not considered an active developer method. |
| 367 |
ResolveService(context.Context, *ResolveServiceRequest) (*ResolveServiceResponse, error) |
| 368 |
} |
| 369 |
|
| 370 |
// UnimplementedLookupServiceServer can be embedded to have forward compatible implementations. |
| 371 |
type UnimplementedLookupServiceServer struct { |
| 372 |
} |
| 373 |
|
| 374 |
func (*UnimplementedLookupServiceServer) ResolveService(context.Context, *ResolveServiceRequest) (*ResolveServiceResponse, error) { |
| 375 |
return nil, status.Errorf(codes.Unimplemented, "method ResolveService not implemented") |
| 376 |
} |
| 377 |
|
| 378 |
func RegisterLookupServiceServer(s *grpc.Server, srv LookupServiceServer) { |
| 379 |
s.RegisterService(&_LookupService_serviceDesc, srv) |
| 380 |
} |
| 381 |
|
| 382 |
func _LookupService_ResolveService_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 383 |
in := new(ResolveServiceRequest) |
| 384 |
if err := dec(in); err != nil { |
| 385 |
return nil, err |
| 386 |
} |
| 387 |
if interceptor == nil { |
| 388 |
return srv.(LookupServiceServer).ResolveService(ctx, in) |
| 389 |
} |
| 390 |
info := &grpc.UnaryServerInfo{ |
| 391 |
Server: srv, |
| 392 |
FullMethod: "/google.cloud.servicedirectory.v1.LookupService/ResolveService", |
| 393 |
} |
| 394 |
handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 395 |
return srv.(LookupServiceServer).ResolveService(ctx, req.(*ResolveServiceRequest)) |
| 396 |
} |
| 397 |
return interceptor(ctx, in, info, handler) |
| 398 |
} |
| 399 |
|
| 400 |
var _LookupService_serviceDesc = grpc.ServiceDesc{ |
| 401 |
ServiceName: "google.cloud.servicedirectory.v1.LookupService", |
| 402 |
HandlerType: (*LookupServiceServer)(nil), |
| 403 |
Methods: []grpc.MethodDesc{ |
| 404 |
{ |
| 405 |
MethodName: "ResolveService", |
| 406 |
Handler: _LookupService_ResolveService_Handler, |
| 407 |
}, |
| 408 |
}, |
| 409 |
Streams: []grpc.StreamDesc{}, |
| 410 |
Metadata: "google/cloud/servicedirectory/v1/lookup_service.proto", |
| 411 |
} |