1// Copyright 2021 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/v1beta1/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 [LookupService.ResolveService][google.cloud.servicedirectory.v1beta1.LookupService.ResolveService]. 44// Looks up a service by its name, returns the service and its endpoints. 45type 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. Maximum is 100. 53 // 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 // `name>projects/my-project/locations/us-east1/namespaces/my-namespace/services/my-service/endpoints/endpoint-c` 78 // returns endpoints that have name that is alphabetically later than the 79 // string, so "endpoint-e" is returned but "endpoint-a" is not 80 // * `metadata.owner!=sd AND metadata.foo=bar` returns endpoints that have 81 // `owner` in annotation key but value is not `sd` AND have key/value 82 // `foo=bar` 83 // * `doesnotexist.foo=bar` returns an empty list. Note that endpoint 84 // doesn't have a field called "doesnotexist". Since the filter does not 85 // match any endpoint, it returns no results 86 // 87 // For more information about filtering, see 88 // [API Filtering](https://aip.dev/160). 89 EndpointFilter string `protobuf:"bytes,3,opt,name=endpoint_filter,json=endpointFilter,proto3" json:"endpoint_filter,omitempty"` 90} 91 92func (x *ResolveServiceRequest) Reset() { 93 *x = ResolveServiceRequest{} 94 if protoimpl.UnsafeEnabled { 95 mi := &file_google_cloud_servicedirectory_v1beta1_lookup_service_proto_msgTypes[0] 96 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 97 ms.StoreMessageInfo(mi) 98 } 99} 100 101func (x *ResolveServiceRequest) String() string { 102 return protoimpl.X.MessageStringOf(x) 103} 104 105func (*ResolveServiceRequest) ProtoMessage() {} 106 107func (x *ResolveServiceRequest) ProtoReflect() protoreflect.Message { 108 mi := &file_google_cloud_servicedirectory_v1beta1_lookup_service_proto_msgTypes[0] 109 if protoimpl.UnsafeEnabled && x != nil { 110 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 111 if ms.LoadMessageInfo() == nil { 112 ms.StoreMessageInfo(mi) 113 } 114 return ms 115 } 116 return mi.MessageOf(x) 117} 118 119// Deprecated: Use ResolveServiceRequest.ProtoReflect.Descriptor instead. 120func (*ResolveServiceRequest) Descriptor() ([]byte, []int) { 121 return file_google_cloud_servicedirectory_v1beta1_lookup_service_proto_rawDescGZIP(), []int{0} 122} 123 124func (x *ResolveServiceRequest) GetName() string { 125 if x != nil { 126 return x.Name 127 } 128 return "" 129} 130 131func (x *ResolveServiceRequest) GetMaxEndpoints() int32 { 132 if x != nil { 133 return x.MaxEndpoints 134 } 135 return 0 136} 137 138func (x *ResolveServiceRequest) GetEndpointFilter() string { 139 if x != nil { 140 return x.EndpointFilter 141 } 142 return "" 143} 144 145// The response message for [LookupService.ResolveService][google.cloud.servicedirectory.v1beta1.LookupService.ResolveService]. 146type ResolveServiceResponse struct { 147 state protoimpl.MessageState 148 sizeCache protoimpl.SizeCache 149 unknownFields protoimpl.UnknownFields 150 151 Service *Service `protobuf:"bytes,1,opt,name=service,proto3" json:"service,omitempty"` 152} 153 154func (x *ResolveServiceResponse) Reset() { 155 *x = ResolveServiceResponse{} 156 if protoimpl.UnsafeEnabled { 157 mi := &file_google_cloud_servicedirectory_v1beta1_lookup_service_proto_msgTypes[1] 158 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 159 ms.StoreMessageInfo(mi) 160 } 161} 162 163func (x *ResolveServiceResponse) String() string { 164 return protoimpl.X.MessageStringOf(x) 165} 166 167func (*ResolveServiceResponse) ProtoMessage() {} 168 169func (x *ResolveServiceResponse) ProtoReflect() protoreflect.Message { 170 mi := &file_google_cloud_servicedirectory_v1beta1_lookup_service_proto_msgTypes[1] 171 if protoimpl.UnsafeEnabled && x != nil { 172 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 173 if ms.LoadMessageInfo() == nil { 174 ms.StoreMessageInfo(mi) 175 } 176 return ms 177 } 178 return mi.MessageOf(x) 179} 180 181// Deprecated: Use ResolveServiceResponse.ProtoReflect.Descriptor instead. 182func (*ResolveServiceResponse) Descriptor() ([]byte, []int) { 183 return file_google_cloud_servicedirectory_v1beta1_lookup_service_proto_rawDescGZIP(), []int{1} 184} 185 186func (x *ResolveServiceResponse) GetService() *Service { 187 if x != nil { 188 return x.Service 189 } 190 return nil 191} 192 193var File_google_cloud_servicedirectory_v1beta1_lookup_service_proto protoreflect.FileDescriptor 194 195var file_google_cloud_servicedirectory_v1beta1_lookup_service_proto_rawDesc = []byte{ 196 0x0a, 0x3a, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x73, 197 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x64, 0x69, 0x72, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x79, 0x2f, 198 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x6c, 0x6f, 0x6f, 0x6b, 0x75, 0x70, 0x5f, 0x73, 199 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x25, 0x67, 0x6f, 200 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 201 0x63, 0x65, 0x64, 0x69, 0x72, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, 202 0x74, 0x61, 0x31, 0x1a, 0x1c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 203 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 204 0x6f, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x66, 0x69, 205 0x65, 0x6c, 0x64, 0x5f, 0x62, 0x65, 0x68, 0x61, 0x76, 0x69, 0x6f, 0x72, 0x2e, 0x70, 0x72, 0x6f, 206 0x74, 0x6f, 0x1a, 0x19, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x72, 207 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x33, 0x67, 208 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x73, 0x65, 0x72, 0x76, 209 0x69, 0x63, 0x65, 0x64, 0x69, 0x72, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x79, 0x2f, 0x76, 0x31, 0x62, 210 0x65, 0x74, 0x61, 0x31, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 211 0x74, 0x6f, 0x1a, 0x17, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x63, 212 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xb4, 0x01, 0x0a, 0x15, 213 0x52, 0x65, 0x73, 0x6f, 0x6c, 0x76, 0x65, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x52, 0x65, 214 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x43, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 215 0x01, 0x28, 0x09, 0x42, 0x2f, 0xe0, 0x41, 0x02, 0xfa, 0x41, 0x29, 0x0a, 0x27, 0x73, 0x65, 0x72, 216 0x76, 0x69, 0x63, 0x65, 0x64, 0x69, 0x72, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x67, 0x6f, 217 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x53, 0x65, 0x72, 218 0x76, 0x69, 0x63, 0x65, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x28, 0x0a, 0x0d, 0x6d, 0x61, 219 0x78, 0x5f, 0x65, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 220 0x05, 0x42, 0x03, 0xe0, 0x41, 0x01, 0x52, 0x0c, 0x6d, 0x61, 0x78, 0x45, 0x6e, 0x64, 0x70, 0x6f, 221 0x69, 0x6e, 0x74, 0x73, 0x12, 0x2c, 0x0a, 0x0f, 0x65, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 222 0x5f, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 223 0x41, 0x01, 0x52, 0x0e, 0x65, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x46, 0x69, 0x6c, 0x74, 224 0x65, 0x72, 0x22, 0x62, 0x0a, 0x16, 0x52, 0x65, 0x73, 0x6f, 0x6c, 0x76, 0x65, 0x53, 0x65, 0x72, 225 0x76, 0x69, 0x63, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x48, 0x0a, 0x07, 226 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2e, 0x2e, 227 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x73, 0x65, 0x72, 228 0x76, 0x69, 0x63, 0x65, 0x64, 0x69, 0x72, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x76, 0x31, 229 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x52, 0x07, 0x73, 230 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x32, 0xc7, 0x02, 0x0a, 0x0d, 0x4c, 0x6f, 0x6f, 0x6b, 0x75, 231 0x70, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0xe0, 0x01, 0x0a, 0x0e, 0x52, 0x65, 0x73, 232 0x6f, 0x6c, 0x76, 0x65, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x3c, 0x2e, 0x67, 0x6f, 233 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 234 0x63, 0x65, 0x64, 0x69, 0x72, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, 235 0x74, 0x61, 0x31, 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x6c, 0x76, 0x65, 0x53, 0x65, 0x72, 0x76, 0x69, 236 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x3d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 237 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 238 0x64, 0x69, 0x72, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 239 0x31, 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x6c, 0x76, 0x65, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 240 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x51, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x4b, 241 0x22, 0x46, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 242 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x6c, 0x6f, 0x63, 0x61, 243 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x2a, 0x2f, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x70, 0x61, 0x63, 244 0x65, 0x73, 0x2f, 0x2a, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 245 0x3a, 0x72, 0x65, 0x73, 0x6f, 0x6c, 0x76, 0x65, 0x3a, 0x01, 0x2a, 0x1a, 0x53, 0xca, 0x41, 0x1f, 246 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x64, 0x69, 0x72, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x79, 247 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0xd2, 248 0x41, 0x2e, 0x68, 0x74, 0x74, 0x70, 0x73, 0x3a, 0x2f, 0x2f, 0x77, 0x77, 0x77, 0x2e, 0x67, 0x6f, 249 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x61, 0x75, 0x74, 250 0x68, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2d, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 251 0x42, 0x96, 0x02, 0x0a, 0x29, 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 252 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x64, 0x69, 0x72, 253 0x65, 0x63, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x42, 0x12, 254 0x4c, 0x6f, 0x6f, 0x6b, 0x75, 0x70, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x50, 0x72, 0x6f, 255 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x55, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x67, 0x6f, 0x6c, 256 0x61, 0x6e, 0x67, 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x67, 0x65, 0x6e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 257 0x2f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 258 0x64, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x64, 0x69, 0x72, 0x65, 0x63, 0x74, 0x6f, 259 0x72, 0x79, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x3b, 0x73, 0x65, 0x72, 0x76, 0x69, 260 0x63, 0x65, 0x64, 0x69, 0x72, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x79, 0xf8, 0x01, 0x01, 0xaa, 0x02, 261 0x25, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x53, 0x65, 262 0x72, 0x76, 0x69, 0x63, 0x65, 0x44, 0x69, 0x72, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x56, 263 0x31, 0x42, 0x65, 0x74, 0x61, 0x31, 0xca, 0x02, 0x25, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x5c, 264 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x5c, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x44, 0x69, 0x72, 265 0x65, 0x63, 0x74, 0x6f, 0x72, 0x79, 0x5c, 0x56, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0xea, 0x02, 266 0x28, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x3a, 0x3a, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x3a, 0x3a, 267 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x44, 0x69, 0x72, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x79, 268 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 269 0x33, 270} 271 272var ( 273 file_google_cloud_servicedirectory_v1beta1_lookup_service_proto_rawDescOnce sync.Once 274 file_google_cloud_servicedirectory_v1beta1_lookup_service_proto_rawDescData = file_google_cloud_servicedirectory_v1beta1_lookup_service_proto_rawDesc 275) 276 277func file_google_cloud_servicedirectory_v1beta1_lookup_service_proto_rawDescGZIP() []byte { 278 file_google_cloud_servicedirectory_v1beta1_lookup_service_proto_rawDescOnce.Do(func() { 279 file_google_cloud_servicedirectory_v1beta1_lookup_service_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_cloud_servicedirectory_v1beta1_lookup_service_proto_rawDescData) 280 }) 281 return file_google_cloud_servicedirectory_v1beta1_lookup_service_proto_rawDescData 282} 283 284var file_google_cloud_servicedirectory_v1beta1_lookup_service_proto_msgTypes = make([]protoimpl.MessageInfo, 2) 285var file_google_cloud_servicedirectory_v1beta1_lookup_service_proto_goTypes = []interface{}{ 286 (*ResolveServiceRequest)(nil), // 0: google.cloud.servicedirectory.v1beta1.ResolveServiceRequest 287 (*ResolveServiceResponse)(nil), // 1: google.cloud.servicedirectory.v1beta1.ResolveServiceResponse 288 (*Service)(nil), // 2: google.cloud.servicedirectory.v1beta1.Service 289} 290var file_google_cloud_servicedirectory_v1beta1_lookup_service_proto_depIdxs = []int32{ 291 2, // 0: google.cloud.servicedirectory.v1beta1.ResolveServiceResponse.service:type_name -> google.cloud.servicedirectory.v1beta1.Service 292 0, // 1: google.cloud.servicedirectory.v1beta1.LookupService.ResolveService:input_type -> google.cloud.servicedirectory.v1beta1.ResolveServiceRequest 293 1, // 2: google.cloud.servicedirectory.v1beta1.LookupService.ResolveService:output_type -> google.cloud.servicedirectory.v1beta1.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 301func init() { file_google_cloud_servicedirectory_v1beta1_lookup_service_proto_init() } 302func file_google_cloud_servicedirectory_v1beta1_lookup_service_proto_init() { 303 if File_google_cloud_servicedirectory_v1beta1_lookup_service_proto != nil { 304 return 305 } 306 file_google_cloud_servicedirectory_v1beta1_service_proto_init() 307 if !protoimpl.UnsafeEnabled { 308 file_google_cloud_servicedirectory_v1beta1_lookup_service_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 309 switch v := v.(*ResolveServiceRequest); 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 file_google_cloud_servicedirectory_v1beta1_lookup_service_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { 321 switch v := v.(*ResolveServiceResponse); i { 322 case 0: 323 return &v.state 324 case 1: 325 return &v.sizeCache 326 case 2: 327 return &v.unknownFields 328 default: 329 return nil 330 } 331 } 332 } 333 type x struct{} 334 out := protoimpl.TypeBuilder{ 335 File: protoimpl.DescBuilder{ 336 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 337 RawDescriptor: file_google_cloud_servicedirectory_v1beta1_lookup_service_proto_rawDesc, 338 NumEnums: 0, 339 NumMessages: 2, 340 NumExtensions: 0, 341 NumServices: 1, 342 }, 343 GoTypes: file_google_cloud_servicedirectory_v1beta1_lookup_service_proto_goTypes, 344 DependencyIndexes: file_google_cloud_servicedirectory_v1beta1_lookup_service_proto_depIdxs, 345 MessageInfos: file_google_cloud_servicedirectory_v1beta1_lookup_service_proto_msgTypes, 346 }.Build() 347 File_google_cloud_servicedirectory_v1beta1_lookup_service_proto = out.File 348 file_google_cloud_servicedirectory_v1beta1_lookup_service_proto_rawDesc = nil 349 file_google_cloud_servicedirectory_v1beta1_lookup_service_proto_goTypes = nil 350 file_google_cloud_servicedirectory_v1beta1_lookup_service_proto_depIdxs = nil 351} 352 353// Reference imports to suppress errors if they are not otherwise used. 354var _ context.Context 355var _ grpc.ClientConnInterface 356 357// This is a compile-time assertion to ensure that this generated file 358// is compatible with the grpc package it is being compiled against. 359const _ = grpc.SupportPackageIsVersion6 360 361// LookupServiceClient is the client API for LookupService service. 362// 363// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. 364type LookupServiceClient interface { 365 // Returns a [service][google.cloud.servicedirectory.v1beta1.Service] and its 366 // associated endpoints. 367 // Resolving a service is not considered an active developer method. 368 ResolveService(ctx context.Context, in *ResolveServiceRequest, opts ...grpc.CallOption) (*ResolveServiceResponse, error) 369} 370 371type lookupServiceClient struct { 372 cc grpc.ClientConnInterface 373} 374 375func NewLookupServiceClient(cc grpc.ClientConnInterface) LookupServiceClient { 376 return &lookupServiceClient{cc} 377} 378 379func (c *lookupServiceClient) ResolveService(ctx context.Context, in *ResolveServiceRequest, opts ...grpc.CallOption) (*ResolveServiceResponse, error) { 380 out := new(ResolveServiceResponse) 381 err := c.cc.Invoke(ctx, "/google.cloud.servicedirectory.v1beta1.LookupService/ResolveService", in, out, opts...) 382 if err != nil { 383 return nil, err 384 } 385 return out, nil 386} 387 388// LookupServiceServer is the server API for LookupService service. 389type LookupServiceServer interface { 390 // Returns a [service][google.cloud.servicedirectory.v1beta1.Service] and its 391 // associated endpoints. 392 // Resolving a service is not considered an active developer method. 393 ResolveService(context.Context, *ResolveServiceRequest) (*ResolveServiceResponse, error) 394} 395 396// UnimplementedLookupServiceServer can be embedded to have forward compatible implementations. 397type UnimplementedLookupServiceServer struct { 398} 399 400func (*UnimplementedLookupServiceServer) ResolveService(context.Context, *ResolveServiceRequest) (*ResolveServiceResponse, error) { 401 return nil, status.Errorf(codes.Unimplemented, "method ResolveService not implemented") 402} 403 404func RegisterLookupServiceServer(s *grpc.Server, srv LookupServiceServer) { 405 s.RegisterService(&_LookupService_serviceDesc, srv) 406} 407 408func _LookupService_ResolveService_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 409 in := new(ResolveServiceRequest) 410 if err := dec(in); err != nil { 411 return nil, err 412 } 413 if interceptor == nil { 414 return srv.(LookupServiceServer).ResolveService(ctx, in) 415 } 416 info := &grpc.UnaryServerInfo{ 417 Server: srv, 418 FullMethod: "/google.cloud.servicedirectory.v1beta1.LookupService/ResolveService", 419 } 420 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 421 return srv.(LookupServiceServer).ResolveService(ctx, req.(*ResolveServiceRequest)) 422 } 423 return interceptor(ctx, in, info, handler) 424} 425 426var _LookupService_serviceDesc = grpc.ServiceDesc{ 427 ServiceName: "google.cloud.servicedirectory.v1beta1.LookupService", 428 HandlerType: (*LookupServiceServer)(nil), 429 Methods: []grpc.MethodDesc{ 430 { 431 MethodName: "ResolveService", 432 Handler: _LookupService_ResolveService_Handler, 433 }, 434 }, 435 Streams: []grpc.StreamDesc{}, 436 Metadata: "google/cloud/servicedirectory/v1beta1/lookup_service.proto", 437} 438