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