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/gkeconnect/gateway/v1beta1/gateway.proto 20 21package gateway 22 23import ( 24 context "context" 25 reflect "reflect" 26 27 _ "google.golang.org/genproto/googleapis/api/annotations" 28 httpbody "google.golang.org/genproto/googleapis/api/httpbody" 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 43var File_google_cloud_gkeconnect_gateway_v1beta1_gateway_proto protoreflect.FileDescriptor 44 45var file_google_cloud_gkeconnect_gateway_v1beta1_gateway_proto_rawDesc = []byte{ 46 0x0a, 0x35, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x67, 47 0x6b, 0x65, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x2f, 0x67, 0x61, 0x74, 0x65, 0x77, 0x61, 48 0x79, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x67, 0x61, 0x74, 0x65, 0x77, 0x61, 49 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x27, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 50 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x67, 0x6b, 0x65, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 51 0x2e, 0x67, 0x61, 0x74, 0x65, 0x77, 0x61, 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 52 0x1a, 0x1c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x61, 0x6e, 0x6e, 53 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x17, 54 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x63, 0x6c, 0x69, 0x65, 0x6e, 55 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x19, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 56 0x61, 0x70, 0x69, 0x2f, 0x68, 0x74, 0x74, 0x70, 0x62, 0x6f, 0x64, 0x79, 0x2e, 0x70, 0x72, 0x6f, 57 0x74, 0x6f, 0x32, 0xf9, 0x03, 0x0a, 0x0e, 0x47, 0x61, 0x74, 0x65, 0x77, 0x61, 0x79, 0x53, 0x65, 58 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x4e, 0x0a, 0x0b, 0x47, 0x65, 0x74, 0x52, 0x65, 0x73, 0x6f, 59 0x75, 0x72, 0x63, 0x65, 0x12, 0x14, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x61, 0x70, 60 0x69, 0x2e, 0x48, 0x74, 0x74, 0x70, 0x42, 0x6f, 0x64, 0x79, 0x1a, 0x14, 0x2e, 0x67, 0x6f, 0x6f, 61 0x67, 0x6c, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x48, 0x74, 0x74, 0x70, 0x42, 0x6f, 0x64, 0x79, 62 0x22, 0x13, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x0d, 0x12, 0x0b, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 63 0x61, 0x31, 0x2f, 0x2a, 0x2a, 0x12, 0x4f, 0x0a, 0x0c, 0x50, 0x6f, 0x73, 0x74, 0x52, 0x65, 0x73, 64 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12, 0x14, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x61, 65 0x70, 0x69, 0x2e, 0x48, 0x74, 0x74, 0x70, 0x42, 0x6f, 0x64, 0x79, 0x1a, 0x14, 0x2e, 0x67, 0x6f, 66 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x48, 0x74, 0x74, 0x70, 0x42, 0x6f, 0x64, 67 0x79, 0x22, 0x13, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x0d, 0x22, 0x0b, 0x2f, 0x76, 0x31, 0x62, 0x65, 68 0x74, 0x61, 0x31, 0x2f, 0x2a, 0x2a, 0x12, 0x51, 0x0a, 0x0e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 69 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12, 0x14, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 70 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x48, 0x74, 0x74, 0x70, 0x42, 0x6f, 0x64, 0x79, 0x1a, 0x14, 71 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x48, 0x74, 0x74, 0x70, 72 0x42, 0x6f, 0x64, 0x79, 0x22, 0x13, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x0d, 0x2a, 0x0b, 0x2f, 0x76, 73 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x2a, 0x2a, 0x12, 0x4e, 0x0a, 0x0b, 0x50, 0x75, 0x74, 74 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12, 0x14, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 75 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x48, 0x74, 0x74, 0x70, 0x42, 0x6f, 0x64, 0x79, 0x1a, 0x14, 76 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x48, 0x74, 0x74, 0x70, 77 0x42, 0x6f, 0x64, 0x79, 0x22, 0x13, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x0d, 0x1a, 0x0b, 0x2f, 0x76, 78 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x2a, 0x2a, 0x12, 0x50, 0x0a, 0x0d, 0x50, 0x61, 0x74, 79 0x63, 0x68, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12, 0x14, 0x2e, 0x67, 0x6f, 0x6f, 80 0x67, 0x6c, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x48, 0x74, 0x74, 0x70, 0x42, 0x6f, 0x64, 0x79, 81 0x1a, 0x14, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x48, 0x74, 82 0x74, 0x70, 0x42, 0x6f, 0x64, 0x79, 0x22, 0x13, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x0d, 0x32, 0x0b, 83 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x2a, 0x2a, 0x1a, 0x51, 0xca, 0x41, 0x1d, 84 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x67, 0x61, 0x74, 0x65, 0x77, 0x61, 0x79, 0x2e, 0x67, 85 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0xd2, 0x41, 0x2e, 86 0x68, 0x74, 0x74, 0x70, 0x73, 0x3a, 0x2f, 0x2f, 0x77, 0x77, 0x77, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 87 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x61, 0x75, 0x74, 0x68, 0x2f, 88 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2d, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x42, 0x8f, 89 0x02, 0x0a, 0x2b, 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 90 0x6f, 0x75, 0x64, 0x2e, 0x67, 0x6b, 0x65, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x2e, 0x67, 91 0x61, 0x74, 0x65, 0x77, 0x61, 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x42, 0x0c, 92 0x47, 0x61, 0x74, 0x65, 0x77, 0x61, 0x79, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x4e, 93 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x67, 0x6f, 0x6c, 0x61, 0x6e, 0x67, 0x2e, 0x6f, 0x72, 94 0x67, 0x2f, 0x67, 0x65, 0x6e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 95 0x65, 0x61, 0x70, 0x69, 0x73, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x67, 0x6b, 0x65, 0x63, 96 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x2f, 0x67, 0x61, 0x74, 0x65, 0x77, 0x61, 0x79, 0x2f, 0x76, 97 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x3b, 0x67, 0x61, 0x74, 0x65, 0x77, 0x61, 0x79, 0xaa, 0x02, 98 0x27, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x47, 0x6b, 99 0x65, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x2e, 0x47, 0x61, 0x74, 0x65, 0x77, 0x61, 0x79, 100 0x2e, 0x56, 0x31, 0x42, 0x65, 0x74, 0x61, 0x31, 0xca, 0x02, 0x27, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 101 0x65, 0x5c, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x5c, 0x47, 0x6b, 0x65, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 102 0x63, 0x74, 0x5c, 0x47, 0x61, 0x74, 0x65, 0x77, 0x61, 0x79, 0x5c, 0x56, 0x31, 0x62, 0x65, 0x74, 103 0x61, 0x31, 0xea, 0x02, 0x2b, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x3a, 0x3a, 0x43, 0x6c, 0x6f, 104 0x75, 0x64, 0x3a, 0x3a, 0x47, 0x6b, 0x65, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x3a, 0x3a, 105 0x47, 0x61, 0x74, 0x65, 0x77, 0x61, 0x79, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 106 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, 107} 108 109var file_google_cloud_gkeconnect_gateway_v1beta1_gateway_proto_goTypes = []interface{}{ 110 (*httpbody.HttpBody)(nil), // 0: google.api.HttpBody 111} 112var file_google_cloud_gkeconnect_gateway_v1beta1_gateway_proto_depIdxs = []int32{ 113 0, // 0: google.cloud.gkeconnect.gateway.v1beta1.GatewayService.GetResource:input_type -> google.api.HttpBody 114 0, // 1: google.cloud.gkeconnect.gateway.v1beta1.GatewayService.PostResource:input_type -> google.api.HttpBody 115 0, // 2: google.cloud.gkeconnect.gateway.v1beta1.GatewayService.DeleteResource:input_type -> google.api.HttpBody 116 0, // 3: google.cloud.gkeconnect.gateway.v1beta1.GatewayService.PutResource:input_type -> google.api.HttpBody 117 0, // 4: google.cloud.gkeconnect.gateway.v1beta1.GatewayService.PatchResource:input_type -> google.api.HttpBody 118 0, // 5: google.cloud.gkeconnect.gateway.v1beta1.GatewayService.GetResource:output_type -> google.api.HttpBody 119 0, // 6: google.cloud.gkeconnect.gateway.v1beta1.GatewayService.PostResource:output_type -> google.api.HttpBody 120 0, // 7: google.cloud.gkeconnect.gateway.v1beta1.GatewayService.DeleteResource:output_type -> google.api.HttpBody 121 0, // 8: google.cloud.gkeconnect.gateway.v1beta1.GatewayService.PutResource:output_type -> google.api.HttpBody 122 0, // 9: google.cloud.gkeconnect.gateway.v1beta1.GatewayService.PatchResource:output_type -> google.api.HttpBody 123 5, // [5:10] is the sub-list for method output_type 124 0, // [0:5] is the sub-list for method input_type 125 0, // [0:0] is the sub-list for extension type_name 126 0, // [0:0] is the sub-list for extension extendee 127 0, // [0:0] is the sub-list for field type_name 128} 129 130func init() { file_google_cloud_gkeconnect_gateway_v1beta1_gateway_proto_init() } 131func file_google_cloud_gkeconnect_gateway_v1beta1_gateway_proto_init() { 132 if File_google_cloud_gkeconnect_gateway_v1beta1_gateway_proto != nil { 133 return 134 } 135 type x struct{} 136 out := protoimpl.TypeBuilder{ 137 File: protoimpl.DescBuilder{ 138 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 139 RawDescriptor: file_google_cloud_gkeconnect_gateway_v1beta1_gateway_proto_rawDesc, 140 NumEnums: 0, 141 NumMessages: 0, 142 NumExtensions: 0, 143 NumServices: 1, 144 }, 145 GoTypes: file_google_cloud_gkeconnect_gateway_v1beta1_gateway_proto_goTypes, 146 DependencyIndexes: file_google_cloud_gkeconnect_gateway_v1beta1_gateway_proto_depIdxs, 147 }.Build() 148 File_google_cloud_gkeconnect_gateway_v1beta1_gateway_proto = out.File 149 file_google_cloud_gkeconnect_gateway_v1beta1_gateway_proto_rawDesc = nil 150 file_google_cloud_gkeconnect_gateway_v1beta1_gateway_proto_goTypes = nil 151 file_google_cloud_gkeconnect_gateway_v1beta1_gateway_proto_depIdxs = nil 152} 153 154// Reference imports to suppress errors if they are not otherwise used. 155var _ context.Context 156var _ grpc.ClientConnInterface 157 158// This is a compile-time assertion to ensure that this generated file 159// is compatible with the grpc package it is being compiled against. 160const _ = grpc.SupportPackageIsVersion6 161 162// GatewayServiceClient is the client API for GatewayService service. 163// 164// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. 165type GatewayServiceClient interface { 166 // GetResource performs an HTTP GET request on the Kubernetes API Server. 167 GetResource(ctx context.Context, in *httpbody.HttpBody, opts ...grpc.CallOption) (*httpbody.HttpBody, error) 168 // PostResource performs an HTTP POST on the Kubernetes API Server. 169 PostResource(ctx context.Context, in *httpbody.HttpBody, opts ...grpc.CallOption) (*httpbody.HttpBody, error) 170 // DeleteResource performs an HTTP DELETE on the Kubernetes API Server. 171 DeleteResource(ctx context.Context, in *httpbody.HttpBody, opts ...grpc.CallOption) (*httpbody.HttpBody, error) 172 // PutResource performs an HTTP PUT on the Kubernetes API Server. 173 PutResource(ctx context.Context, in *httpbody.HttpBody, opts ...grpc.CallOption) (*httpbody.HttpBody, error) 174 // PatchResource performs an HTTP PATCH on the Kubernetes API Server. 175 PatchResource(ctx context.Context, in *httpbody.HttpBody, opts ...grpc.CallOption) (*httpbody.HttpBody, error) 176} 177 178type gatewayServiceClient struct { 179 cc grpc.ClientConnInterface 180} 181 182func NewGatewayServiceClient(cc grpc.ClientConnInterface) GatewayServiceClient { 183 return &gatewayServiceClient{cc} 184} 185 186func (c *gatewayServiceClient) GetResource(ctx context.Context, in *httpbody.HttpBody, opts ...grpc.CallOption) (*httpbody.HttpBody, error) { 187 out := new(httpbody.HttpBody) 188 err := c.cc.Invoke(ctx, "/google.cloud.gkeconnect.gateway.v1beta1.GatewayService/GetResource", in, out, opts...) 189 if err != nil { 190 return nil, err 191 } 192 return out, nil 193} 194 195func (c *gatewayServiceClient) PostResource(ctx context.Context, in *httpbody.HttpBody, opts ...grpc.CallOption) (*httpbody.HttpBody, error) { 196 out := new(httpbody.HttpBody) 197 err := c.cc.Invoke(ctx, "/google.cloud.gkeconnect.gateway.v1beta1.GatewayService/PostResource", in, out, opts...) 198 if err != nil { 199 return nil, err 200 } 201 return out, nil 202} 203 204func (c *gatewayServiceClient) DeleteResource(ctx context.Context, in *httpbody.HttpBody, opts ...grpc.CallOption) (*httpbody.HttpBody, error) { 205 out := new(httpbody.HttpBody) 206 err := c.cc.Invoke(ctx, "/google.cloud.gkeconnect.gateway.v1beta1.GatewayService/DeleteResource", in, out, opts...) 207 if err != nil { 208 return nil, err 209 } 210 return out, nil 211} 212 213func (c *gatewayServiceClient) PutResource(ctx context.Context, in *httpbody.HttpBody, opts ...grpc.CallOption) (*httpbody.HttpBody, error) { 214 out := new(httpbody.HttpBody) 215 err := c.cc.Invoke(ctx, "/google.cloud.gkeconnect.gateway.v1beta1.GatewayService/PutResource", in, out, opts...) 216 if err != nil { 217 return nil, err 218 } 219 return out, nil 220} 221 222func (c *gatewayServiceClient) PatchResource(ctx context.Context, in *httpbody.HttpBody, opts ...grpc.CallOption) (*httpbody.HttpBody, error) { 223 out := new(httpbody.HttpBody) 224 err := c.cc.Invoke(ctx, "/google.cloud.gkeconnect.gateway.v1beta1.GatewayService/PatchResource", in, out, opts...) 225 if err != nil { 226 return nil, err 227 } 228 return out, nil 229} 230 231// GatewayServiceServer is the server API for GatewayService service. 232type GatewayServiceServer interface { 233 // GetResource performs an HTTP GET request on the Kubernetes API Server. 234 GetResource(context.Context, *httpbody.HttpBody) (*httpbody.HttpBody, error) 235 // PostResource performs an HTTP POST on the Kubernetes API Server. 236 PostResource(context.Context, *httpbody.HttpBody) (*httpbody.HttpBody, error) 237 // DeleteResource performs an HTTP DELETE on the Kubernetes API Server. 238 DeleteResource(context.Context, *httpbody.HttpBody) (*httpbody.HttpBody, error) 239 // PutResource performs an HTTP PUT on the Kubernetes API Server. 240 PutResource(context.Context, *httpbody.HttpBody) (*httpbody.HttpBody, error) 241 // PatchResource performs an HTTP PATCH on the Kubernetes API Server. 242 PatchResource(context.Context, *httpbody.HttpBody) (*httpbody.HttpBody, error) 243} 244 245// UnimplementedGatewayServiceServer can be embedded to have forward compatible implementations. 246type UnimplementedGatewayServiceServer struct { 247} 248 249func (*UnimplementedGatewayServiceServer) GetResource(context.Context, *httpbody.HttpBody) (*httpbody.HttpBody, error) { 250 return nil, status.Errorf(codes.Unimplemented, "method GetResource not implemented") 251} 252func (*UnimplementedGatewayServiceServer) PostResource(context.Context, *httpbody.HttpBody) (*httpbody.HttpBody, error) { 253 return nil, status.Errorf(codes.Unimplemented, "method PostResource not implemented") 254} 255func (*UnimplementedGatewayServiceServer) DeleteResource(context.Context, *httpbody.HttpBody) (*httpbody.HttpBody, error) { 256 return nil, status.Errorf(codes.Unimplemented, "method DeleteResource not implemented") 257} 258func (*UnimplementedGatewayServiceServer) PutResource(context.Context, *httpbody.HttpBody) (*httpbody.HttpBody, error) { 259 return nil, status.Errorf(codes.Unimplemented, "method PutResource not implemented") 260} 261func (*UnimplementedGatewayServiceServer) PatchResource(context.Context, *httpbody.HttpBody) (*httpbody.HttpBody, error) { 262 return nil, status.Errorf(codes.Unimplemented, "method PatchResource not implemented") 263} 264 265func RegisterGatewayServiceServer(s *grpc.Server, srv GatewayServiceServer) { 266 s.RegisterService(&_GatewayService_serviceDesc, srv) 267} 268 269func _GatewayService_GetResource_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 270 in := new(httpbody.HttpBody) 271 if err := dec(in); err != nil { 272 return nil, err 273 } 274 if interceptor == nil { 275 return srv.(GatewayServiceServer).GetResource(ctx, in) 276 } 277 info := &grpc.UnaryServerInfo{ 278 Server: srv, 279 FullMethod: "/google.cloud.gkeconnect.gateway.v1beta1.GatewayService/GetResource", 280 } 281 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 282 return srv.(GatewayServiceServer).GetResource(ctx, req.(*httpbody.HttpBody)) 283 } 284 return interceptor(ctx, in, info, handler) 285} 286 287func _GatewayService_PostResource_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 288 in := new(httpbody.HttpBody) 289 if err := dec(in); err != nil { 290 return nil, err 291 } 292 if interceptor == nil { 293 return srv.(GatewayServiceServer).PostResource(ctx, in) 294 } 295 info := &grpc.UnaryServerInfo{ 296 Server: srv, 297 FullMethod: "/google.cloud.gkeconnect.gateway.v1beta1.GatewayService/PostResource", 298 } 299 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 300 return srv.(GatewayServiceServer).PostResource(ctx, req.(*httpbody.HttpBody)) 301 } 302 return interceptor(ctx, in, info, handler) 303} 304 305func _GatewayService_DeleteResource_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 306 in := new(httpbody.HttpBody) 307 if err := dec(in); err != nil { 308 return nil, err 309 } 310 if interceptor == nil { 311 return srv.(GatewayServiceServer).DeleteResource(ctx, in) 312 } 313 info := &grpc.UnaryServerInfo{ 314 Server: srv, 315 FullMethod: "/google.cloud.gkeconnect.gateway.v1beta1.GatewayService/DeleteResource", 316 } 317 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 318 return srv.(GatewayServiceServer).DeleteResource(ctx, req.(*httpbody.HttpBody)) 319 } 320 return interceptor(ctx, in, info, handler) 321} 322 323func _GatewayService_PutResource_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 324 in := new(httpbody.HttpBody) 325 if err := dec(in); err != nil { 326 return nil, err 327 } 328 if interceptor == nil { 329 return srv.(GatewayServiceServer).PutResource(ctx, in) 330 } 331 info := &grpc.UnaryServerInfo{ 332 Server: srv, 333 FullMethod: "/google.cloud.gkeconnect.gateway.v1beta1.GatewayService/PutResource", 334 } 335 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 336 return srv.(GatewayServiceServer).PutResource(ctx, req.(*httpbody.HttpBody)) 337 } 338 return interceptor(ctx, in, info, handler) 339} 340 341func _GatewayService_PatchResource_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 342 in := new(httpbody.HttpBody) 343 if err := dec(in); err != nil { 344 return nil, err 345 } 346 if interceptor == nil { 347 return srv.(GatewayServiceServer).PatchResource(ctx, in) 348 } 349 info := &grpc.UnaryServerInfo{ 350 Server: srv, 351 FullMethod: "/google.cloud.gkeconnect.gateway.v1beta1.GatewayService/PatchResource", 352 } 353 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 354 return srv.(GatewayServiceServer).PatchResource(ctx, req.(*httpbody.HttpBody)) 355 } 356 return interceptor(ctx, in, info, handler) 357} 358 359var _GatewayService_serviceDesc = grpc.ServiceDesc{ 360 ServiceName: "google.cloud.gkeconnect.gateway.v1beta1.GatewayService", 361 HandlerType: (*GatewayServiceServer)(nil), 362 Methods: []grpc.MethodDesc{ 363 { 364 MethodName: "GetResource", 365 Handler: _GatewayService_GetResource_Handler, 366 }, 367 { 368 MethodName: "PostResource", 369 Handler: _GatewayService_PostResource_Handler, 370 }, 371 { 372 MethodName: "DeleteResource", 373 Handler: _GatewayService_DeleteResource_Handler, 374 }, 375 { 376 MethodName: "PutResource", 377 Handler: _GatewayService_PutResource_Handler, 378 }, 379 { 380 MethodName: "PatchResource", 381 Handler: _GatewayService_PatchResource_Handler, 382 }, 383 }, 384 Streams: []grpc.StreamDesc{}, 385 Metadata: "google/cloud/gkeconnect/gateway/v1beta1/gateway.proto", 386} 387