...

Source file src/google.golang.org/genproto/googleapis/cloud/iap/v1beta1/service.pb.go

Documentation: google.golang.org/genproto/googleapis/cloud/iap/v1beta1

     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/iap/v1beta1/service.proto
    20  
    21  package iap
    22  
    23  import (
    24  	context "context"
    25  	reflect "reflect"
    26  
    27  	_ "google.golang.org/genproto/googleapis/api/annotations"
    28  	v1 "google.golang.org/genproto/googleapis/iam/v1"
    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  
    36  const (
    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  var File_google_cloud_iap_v1beta1_service_proto protoreflect.FileDescriptor
    44  
    45  var file_google_cloud_iap_v1beta1_service_proto_rawDesc = []byte{
    46  	0x0a, 0x26, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x69,
    47  	0x61, 0x70, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x69,
    48  	0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x18, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
    49  	0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x69, 0x61, 0x70, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74,
    50  	0x61, 0x31, 0x1a, 0x1c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x61,
    51  	0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
    52  	0x1a, 0x17, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x63, 0x6c, 0x69,
    53  	0x65, 0x6e, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1e, 0x67, 0x6f, 0x6f, 0x67, 0x6c,
    54  	0x65, 0x2f, 0x69, 0x61, 0x6d, 0x2f, 0x76, 0x31, 0x2f, 0x69, 0x61, 0x6d, 0x5f, 0x70, 0x6f, 0x6c,
    55  	0x69, 0x63, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1a, 0x67, 0x6f, 0x6f, 0x67, 0x6c,
    56  	0x65, 0x2f, 0x69, 0x61, 0x6d, 0x2f, 0x76, 0x31, 0x2f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x2e,
    57  	0x70, 0x72, 0x6f, 0x74, 0x6f, 0x32, 0x80, 0x04, 0x0a, 0x1e, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69,
    58  	0x74, 0x79, 0x41, 0x77, 0x61, 0x72, 0x65, 0x50, 0x72, 0x6f, 0x78, 0x79, 0x41, 0x64, 0x6d, 0x69,
    59  	0x6e, 0x56, 0x31, 0x42, 0x65, 0x74, 0x61, 0x31, 0x12, 0x79, 0x0a, 0x0c, 0x53, 0x65, 0x74, 0x49,
    60  	0x61, 0x6d, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12, 0x22, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c,
    61  	0x65, 0x2e, 0x69, 0x61, 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x65, 0x74, 0x49, 0x61, 0x6d, 0x50,
    62  	0x6f, 0x6c, 0x69, 0x63, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x15, 0x2e, 0x67,
    63  	0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x69, 0x61, 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x6f, 0x6c,
    64  	0x69, 0x63, 0x79, 0x22, 0x2e, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x28, 0x22, 0x23, 0x2f, 0x76, 0x31,
    65  	0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x7b, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x3d,
    66  	0x2a, 0x2a, 0x7d, 0x3a, 0x73, 0x65, 0x74, 0x49, 0x61, 0x6d, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79,
    67  	0x3a, 0x01, 0x2a, 0x12, 0x79, 0x0a, 0x0c, 0x47, 0x65, 0x74, 0x49, 0x61, 0x6d, 0x50, 0x6f, 0x6c,
    68  	0x69, 0x63, 0x79, 0x12, 0x22, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x69, 0x61, 0x6d,
    69  	0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x49, 0x61, 0x6d, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79,
    70  	0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x15, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
    71  	0x2e, 0x69, 0x61, 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x22, 0x2e,
    72  	0x82, 0xd3, 0xe4, 0x93, 0x02, 0x28, 0x22, 0x23, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31,
    73  	0x2f, 0x7b, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x3d, 0x2a, 0x2a, 0x7d, 0x3a, 0x67,
    74  	0x65, 0x74, 0x49, 0x61, 0x6d, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x3a, 0x01, 0x2a, 0x12, 0x9f,
    75  	0x01, 0x0a, 0x12, 0x54, 0x65, 0x73, 0x74, 0x49, 0x61, 0x6d, 0x50, 0x65, 0x72, 0x6d, 0x69, 0x73,
    76  	0x73, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x28, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x69,
    77  	0x61, 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x49, 0x61, 0x6d, 0x50, 0x65, 0x72,
    78  	0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a,
    79  	0x29, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x69, 0x61, 0x6d, 0x2e, 0x76, 0x31, 0x2e,
    80  	0x54, 0x65, 0x73, 0x74, 0x49, 0x61, 0x6d, 0x50, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f,
    81  	0x6e, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x34, 0x82, 0xd3, 0xe4, 0x93,
    82  	0x02, 0x2e, 0x22, 0x29, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x7b, 0x72, 0x65,
    83  	0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x3d, 0x2a, 0x2a, 0x7d, 0x3a, 0x74, 0x65, 0x73, 0x74, 0x49,
    84  	0x61, 0x6d, 0x50, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x3a, 0x01, 0x2a,
    85  	0x1a, 0x46, 0xca, 0x41, 0x12, 0x69, 0x61, 0x70, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61,
    86  	0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0xd2, 0x41, 0x2e, 0x68, 0x74, 0x74, 0x70, 0x73, 0x3a,
    87  	0x2f, 0x2f, 0x77, 0x77, 0x77, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73,
    88  	0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x61, 0x75, 0x74, 0x68, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2d,
    89  	0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x42, 0x5d, 0x0a, 0x1c, 0x63, 0x6f, 0x6d, 0x2e,
    90  	0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x69, 0x61, 0x70,
    91  	0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x50, 0x01, 0x5a, 0x3b, 0x67, 0x6f, 0x6f, 0x67,
    92  	0x6c, 0x65, 0x2e, 0x67, 0x6f, 0x6c, 0x61, 0x6e, 0x67, 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x67, 0x65,
    93  	0x6e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69,
    94  	0x73, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x69, 0x61, 0x70, 0x2f, 0x76, 0x31, 0x62, 0x65,
    95  	0x74, 0x61, 0x31, 0x3b, 0x69, 0x61, 0x70, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
    96  }
    97  
    98  var file_google_cloud_iap_v1beta1_service_proto_goTypes = []interface{}{
    99  	(*v1.SetIamPolicyRequest)(nil),        // 0: google.iam.v1.SetIamPolicyRequest
   100  	(*v1.GetIamPolicyRequest)(nil),        // 1: google.iam.v1.GetIamPolicyRequest
   101  	(*v1.TestIamPermissionsRequest)(nil),  // 2: google.iam.v1.TestIamPermissionsRequest
   102  	(*v1.Policy)(nil),                     // 3: google.iam.v1.Policy
   103  	(*v1.TestIamPermissionsResponse)(nil), // 4: google.iam.v1.TestIamPermissionsResponse
   104  }
   105  var file_google_cloud_iap_v1beta1_service_proto_depIdxs = []int32{
   106  	0, // 0: google.cloud.iap.v1beta1.IdentityAwareProxyAdminV1Beta1.SetIamPolicy:input_type -> google.iam.v1.SetIamPolicyRequest
   107  	1, // 1: google.cloud.iap.v1beta1.IdentityAwareProxyAdminV1Beta1.GetIamPolicy:input_type -> google.iam.v1.GetIamPolicyRequest
   108  	2, // 2: google.cloud.iap.v1beta1.IdentityAwareProxyAdminV1Beta1.TestIamPermissions:input_type -> google.iam.v1.TestIamPermissionsRequest
   109  	3, // 3: google.cloud.iap.v1beta1.IdentityAwareProxyAdminV1Beta1.SetIamPolicy:output_type -> google.iam.v1.Policy
   110  	3, // 4: google.cloud.iap.v1beta1.IdentityAwareProxyAdminV1Beta1.GetIamPolicy:output_type -> google.iam.v1.Policy
   111  	4, // 5: google.cloud.iap.v1beta1.IdentityAwareProxyAdminV1Beta1.TestIamPermissions:output_type -> google.iam.v1.TestIamPermissionsResponse
   112  	3, // [3:6] is the sub-list for method output_type
   113  	0, // [0:3] is the sub-list for method input_type
   114  	0, // [0:0] is the sub-list for extension type_name
   115  	0, // [0:0] is the sub-list for extension extendee
   116  	0, // [0:0] is the sub-list for field type_name
   117  }
   118  
   119  func init() { file_google_cloud_iap_v1beta1_service_proto_init() }
   120  func file_google_cloud_iap_v1beta1_service_proto_init() {
   121  	if File_google_cloud_iap_v1beta1_service_proto != nil {
   122  		return
   123  	}
   124  	type x struct{}
   125  	out := protoimpl.TypeBuilder{
   126  		File: protoimpl.DescBuilder{
   127  			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
   128  			RawDescriptor: file_google_cloud_iap_v1beta1_service_proto_rawDesc,
   129  			NumEnums:      0,
   130  			NumMessages:   0,
   131  			NumExtensions: 0,
   132  			NumServices:   1,
   133  		},
   134  		GoTypes:           file_google_cloud_iap_v1beta1_service_proto_goTypes,
   135  		DependencyIndexes: file_google_cloud_iap_v1beta1_service_proto_depIdxs,
   136  	}.Build()
   137  	File_google_cloud_iap_v1beta1_service_proto = out.File
   138  	file_google_cloud_iap_v1beta1_service_proto_rawDesc = nil
   139  	file_google_cloud_iap_v1beta1_service_proto_goTypes = nil
   140  	file_google_cloud_iap_v1beta1_service_proto_depIdxs = nil
   141  }
   142  
   143  // Reference imports to suppress errors if they are not otherwise used.
   144  var _ context.Context
   145  var _ grpc.ClientConnInterface
   146  
   147  // This is a compile-time assertion to ensure that this generated file
   148  // is compatible with the grpc package it is being compiled against.
   149  const _ = grpc.SupportPackageIsVersion6
   150  
   151  // IdentityAwareProxyAdminV1Beta1Client is the client API for IdentityAwareProxyAdminV1Beta1 service.
   152  //
   153  // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
   154  type IdentityAwareProxyAdminV1Beta1Client interface {
   155  	// Sets the access control policy for an Identity-Aware Proxy protected
   156  	// resource. Replaces any existing policy.
   157  	// More information about managing access via IAP can be found at:
   158  	// https://cloud.google.com/iap/docs/managing-access#managing_access_via_the_api
   159  	SetIamPolicy(ctx context.Context, in *v1.SetIamPolicyRequest, opts ...grpc.CallOption) (*v1.Policy, error)
   160  	// Gets the access control policy for an Identity-Aware Proxy protected
   161  	// resource.
   162  	// More information about managing access via IAP can be found at:
   163  	// https://cloud.google.com/iap/docs/managing-access#managing_access_via_the_api
   164  	GetIamPolicy(ctx context.Context, in *v1.GetIamPolicyRequest, opts ...grpc.CallOption) (*v1.Policy, error)
   165  	// Returns permissions that a caller has on the Identity-Aware Proxy protected
   166  	// resource. If the resource does not exist or the caller does not have
   167  	// Identity-Aware Proxy permissions a [google.rpc.Code.PERMISSION_DENIED]
   168  	// will be returned.
   169  	// More information about managing access via IAP can be found at:
   170  	// https://cloud.google.com/iap/docs/managing-access#managing_access_via_the_api
   171  	TestIamPermissions(ctx context.Context, in *v1.TestIamPermissionsRequest, opts ...grpc.CallOption) (*v1.TestIamPermissionsResponse, error)
   172  }
   173  
   174  type identityAwareProxyAdminV1Beta1Client struct {
   175  	cc grpc.ClientConnInterface
   176  }
   177  
   178  func NewIdentityAwareProxyAdminV1Beta1Client(cc grpc.ClientConnInterface) IdentityAwareProxyAdminV1Beta1Client {
   179  	return &identityAwareProxyAdminV1Beta1Client{cc}
   180  }
   181  
   182  func (c *identityAwareProxyAdminV1Beta1Client) SetIamPolicy(ctx context.Context, in *v1.SetIamPolicyRequest, opts ...grpc.CallOption) (*v1.Policy, error) {
   183  	out := new(v1.Policy)
   184  	err := c.cc.Invoke(ctx, "/google.cloud.iap.v1beta1.IdentityAwareProxyAdminV1Beta1/SetIamPolicy", in, out, opts...)
   185  	if err != nil {
   186  		return nil, err
   187  	}
   188  	return out, nil
   189  }
   190  
   191  func (c *identityAwareProxyAdminV1Beta1Client) GetIamPolicy(ctx context.Context, in *v1.GetIamPolicyRequest, opts ...grpc.CallOption) (*v1.Policy, error) {
   192  	out := new(v1.Policy)
   193  	err := c.cc.Invoke(ctx, "/google.cloud.iap.v1beta1.IdentityAwareProxyAdminV1Beta1/GetIamPolicy", in, out, opts...)
   194  	if err != nil {
   195  		return nil, err
   196  	}
   197  	return out, nil
   198  }
   199  
   200  func (c *identityAwareProxyAdminV1Beta1Client) TestIamPermissions(ctx context.Context, in *v1.TestIamPermissionsRequest, opts ...grpc.CallOption) (*v1.TestIamPermissionsResponse, error) {
   201  	out := new(v1.TestIamPermissionsResponse)
   202  	err := c.cc.Invoke(ctx, "/google.cloud.iap.v1beta1.IdentityAwareProxyAdminV1Beta1/TestIamPermissions", in, out, opts...)
   203  	if err != nil {
   204  		return nil, err
   205  	}
   206  	return out, nil
   207  }
   208  
   209  // IdentityAwareProxyAdminV1Beta1Server is the server API for IdentityAwareProxyAdminV1Beta1 service.
   210  type IdentityAwareProxyAdminV1Beta1Server interface {
   211  	// Sets the access control policy for an Identity-Aware Proxy protected
   212  	// resource. Replaces any existing policy.
   213  	// More information about managing access via IAP can be found at:
   214  	// https://cloud.google.com/iap/docs/managing-access#managing_access_via_the_api
   215  	SetIamPolicy(context.Context, *v1.SetIamPolicyRequest) (*v1.Policy, error)
   216  	// Gets the access control policy for an Identity-Aware Proxy protected
   217  	// resource.
   218  	// More information about managing access via IAP can be found at:
   219  	// https://cloud.google.com/iap/docs/managing-access#managing_access_via_the_api
   220  	GetIamPolicy(context.Context, *v1.GetIamPolicyRequest) (*v1.Policy, error)
   221  	// Returns permissions that a caller has on the Identity-Aware Proxy protected
   222  	// resource. If the resource does not exist or the caller does not have
   223  	// Identity-Aware Proxy permissions a [google.rpc.Code.PERMISSION_DENIED]
   224  	// will be returned.
   225  	// More information about managing access via IAP can be found at:
   226  	// https://cloud.google.com/iap/docs/managing-access#managing_access_via_the_api
   227  	TestIamPermissions(context.Context, *v1.TestIamPermissionsRequest) (*v1.TestIamPermissionsResponse, error)
   228  }
   229  
   230  // UnimplementedIdentityAwareProxyAdminV1Beta1Server can be embedded to have forward compatible implementations.
   231  type UnimplementedIdentityAwareProxyAdminV1Beta1Server struct {
   232  }
   233  
   234  func (*UnimplementedIdentityAwareProxyAdminV1Beta1Server) SetIamPolicy(context.Context, *v1.SetIamPolicyRequest) (*v1.Policy, error) {
   235  	return nil, status.Errorf(codes.Unimplemented, "method SetIamPolicy not implemented")
   236  }
   237  func (*UnimplementedIdentityAwareProxyAdminV1Beta1Server) GetIamPolicy(context.Context, *v1.GetIamPolicyRequest) (*v1.Policy, error) {
   238  	return nil, status.Errorf(codes.Unimplemented, "method GetIamPolicy not implemented")
   239  }
   240  func (*UnimplementedIdentityAwareProxyAdminV1Beta1Server) TestIamPermissions(context.Context, *v1.TestIamPermissionsRequest) (*v1.TestIamPermissionsResponse, error) {
   241  	return nil, status.Errorf(codes.Unimplemented, "method TestIamPermissions not implemented")
   242  }
   243  
   244  func RegisterIdentityAwareProxyAdminV1Beta1Server(s *grpc.Server, srv IdentityAwareProxyAdminV1Beta1Server) {
   245  	s.RegisterService(&_IdentityAwareProxyAdminV1Beta1_serviceDesc, srv)
   246  }
   247  
   248  func _IdentityAwareProxyAdminV1Beta1_SetIamPolicy_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
   249  	in := new(v1.SetIamPolicyRequest)
   250  	if err := dec(in); err != nil {
   251  		return nil, err
   252  	}
   253  	if interceptor == nil {
   254  		return srv.(IdentityAwareProxyAdminV1Beta1Server).SetIamPolicy(ctx, in)
   255  	}
   256  	info := &grpc.UnaryServerInfo{
   257  		Server:     srv,
   258  		FullMethod: "/google.cloud.iap.v1beta1.IdentityAwareProxyAdminV1Beta1/SetIamPolicy",
   259  	}
   260  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
   261  		return srv.(IdentityAwareProxyAdminV1Beta1Server).SetIamPolicy(ctx, req.(*v1.SetIamPolicyRequest))
   262  	}
   263  	return interceptor(ctx, in, info, handler)
   264  }
   265  
   266  func _IdentityAwareProxyAdminV1Beta1_GetIamPolicy_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
   267  	in := new(v1.GetIamPolicyRequest)
   268  	if err := dec(in); err != nil {
   269  		return nil, err
   270  	}
   271  	if interceptor == nil {
   272  		return srv.(IdentityAwareProxyAdminV1Beta1Server).GetIamPolicy(ctx, in)
   273  	}
   274  	info := &grpc.UnaryServerInfo{
   275  		Server:     srv,
   276  		FullMethod: "/google.cloud.iap.v1beta1.IdentityAwareProxyAdminV1Beta1/GetIamPolicy",
   277  	}
   278  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
   279  		return srv.(IdentityAwareProxyAdminV1Beta1Server).GetIamPolicy(ctx, req.(*v1.GetIamPolicyRequest))
   280  	}
   281  	return interceptor(ctx, in, info, handler)
   282  }
   283  
   284  func _IdentityAwareProxyAdminV1Beta1_TestIamPermissions_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
   285  	in := new(v1.TestIamPermissionsRequest)
   286  	if err := dec(in); err != nil {
   287  		return nil, err
   288  	}
   289  	if interceptor == nil {
   290  		return srv.(IdentityAwareProxyAdminV1Beta1Server).TestIamPermissions(ctx, in)
   291  	}
   292  	info := &grpc.UnaryServerInfo{
   293  		Server:     srv,
   294  		FullMethod: "/google.cloud.iap.v1beta1.IdentityAwareProxyAdminV1Beta1/TestIamPermissions",
   295  	}
   296  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
   297  		return srv.(IdentityAwareProxyAdminV1Beta1Server).TestIamPermissions(ctx, req.(*v1.TestIamPermissionsRequest))
   298  	}
   299  	return interceptor(ctx, in, info, handler)
   300  }
   301  
   302  var _IdentityAwareProxyAdminV1Beta1_serviceDesc = grpc.ServiceDesc{
   303  	ServiceName: "google.cloud.iap.v1beta1.IdentityAwareProxyAdminV1Beta1",
   304  	HandlerType: (*IdentityAwareProxyAdminV1Beta1Server)(nil),
   305  	Methods: []grpc.MethodDesc{
   306  		{
   307  			MethodName: "SetIamPolicy",
   308  			Handler:    _IdentityAwareProxyAdminV1Beta1_SetIamPolicy_Handler,
   309  		},
   310  		{
   311  			MethodName: "GetIamPolicy",
   312  			Handler:    _IdentityAwareProxyAdminV1Beta1_GetIamPolicy_Handler,
   313  		},
   314  		{
   315  			MethodName: "TestIamPermissions",
   316  			Handler:    _IdentityAwareProxyAdminV1Beta1_TestIamPermissions_Handler,
   317  		},
   318  	},
   319  	Streams:  []grpc.StreamDesc{},
   320  	Metadata: "google/cloud/iap/v1beta1/service.proto",
   321  }
   322  

View as plain text