| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
|
| 13 |
|
| 14 |
|
| 15 |
|
| 16 |
|
| 17 |
|
| 18 |
|
| 19 |
|
| 20 |
|
| 21 |
package iampb |
| 22 |
|
| 23 |
import ( |
| 24 |
context "context" |
| 25 |
grpc "google.golang.org/grpc" |
| 26 |
codes "google.golang.org/grpc/codes" |
| 27 |
status "google.golang.org/grpc/status" |
| 28 |
) |
| 29 |
|
| 30 |
|
| 31 |
|
| 32 |
|
| 33 |
const _ = grpc.SupportPackageIsVersion7 |
| 34 |
|
| 35 |
const ( |
| 36 |
PolicyTroubleshooter_TroubleshootIamPolicy_FullMethodName = "/google.cloud.policytroubleshooter.iam.v3.PolicyTroubleshooter/TroubleshootIamPolicy" |
| 37 |
) |
| 38 |
|
| 39 |
|
| 40 |
|
| 41 |
|
| 42 |
type PolicyTroubleshooterClient interface { |
| 43 |
|
| 44 |
|
| 45 |
|
| 46 |
TroubleshootIamPolicy(ctx context.Context, in *TroubleshootIamPolicyRequest, opts ...grpc.CallOption) (*TroubleshootIamPolicyResponse, error) |
| 47 |
} |
| 48 |
|
| 49 |
type policyTroubleshooterClient struct { |
| 50 |
cc grpc.ClientConnInterface |
| 51 |
} |
| 52 |
|
| 53 |
func NewPolicyTroubleshooterClient(cc grpc.ClientConnInterface) PolicyTroubleshooterClient { |
| 54 |
return &policyTroubleshooterClient{cc} |
| 55 |
} |
| 56 |
|
| 57 |
func (c *policyTroubleshooterClient) TroubleshootIamPolicy(ctx context.Context, in *TroubleshootIamPolicyRequest, opts ...grpc.CallOption) (*TroubleshootIamPolicyResponse, error) { |
| 58 |
out := new(TroubleshootIamPolicyResponse) |
| 59 |
err := c.cc.Invoke(ctx, PolicyTroubleshooter_TroubleshootIamPolicy_FullMethodName, in, out, opts...) |
| 60 |
if err != nil { |
| 61 |
return nil, err |
| 62 |
} |
| 63 |
return out, nil |
| 64 |
} |
| 65 |
|
| 66 |
|
| 67 |
|
| 68 |
|
| 69 |
type PolicyTroubleshooterServer interface { |
| 70 |
|
| 71 |
|
| 72 |
|
| 73 |
TroubleshootIamPolicy(context.Context, *TroubleshootIamPolicyRequest) (*TroubleshootIamPolicyResponse, error) |
| 74 |
} |
| 75 |
|
| 76 |
|
| 77 |
type UnimplementedPolicyTroubleshooterServer struct { |
| 78 |
} |
| 79 |
|
| 80 |
func (UnimplementedPolicyTroubleshooterServer) TroubleshootIamPolicy(context.Context, *TroubleshootIamPolicyRequest) (*TroubleshootIamPolicyResponse, error) { |
| 81 |
return nil, status.Errorf(codes.Unimplemented, "method TroubleshootIamPolicy not implemented") |
| 82 |
} |
| 83 |
|
| 84 |
|
| 85 |
|
| 86 |
|
| 87 |
type UnsafePolicyTroubleshooterServer interface { |
| 88 |
mustEmbedUnimplementedPolicyTroubleshooterServer() |
| 89 |
} |
| 90 |
|
| 91 |
func RegisterPolicyTroubleshooterServer(s grpc.ServiceRegistrar, srv PolicyTroubleshooterServer) { |
| 92 |
s.RegisterService(&PolicyTroubleshooter_ServiceDesc, srv) |
| 93 |
} |
| 94 |
|
| 95 |
func _PolicyTroubleshooter_TroubleshootIamPolicy_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 96 |
in := new(TroubleshootIamPolicyRequest) |
| 97 |
if err := dec(in); err != nil { |
| 98 |
return nil, err |
| 99 |
} |
| 100 |
if interceptor == nil { |
| 101 |
return srv.(PolicyTroubleshooterServer).TroubleshootIamPolicy(ctx, in) |
| 102 |
} |
| 103 |
info := &grpc.UnaryServerInfo{ |
| 104 |
Server: srv, |
| 105 |
FullMethod: PolicyTroubleshooter_TroubleshootIamPolicy_FullMethodName, |
| 106 |
} |
| 107 |
handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 108 |
return srv.(PolicyTroubleshooterServer).TroubleshootIamPolicy(ctx, req.(*TroubleshootIamPolicyRequest)) |
| 109 |
} |
| 110 |
return interceptor(ctx, in, info, handler) |
| 111 |
} |
| 112 |
|
| 113 |
|
| 114 |
|
| 115 |
|
| 116 |
var PolicyTroubleshooter_ServiceDesc = grpc.ServiceDesc{ |
| 117 |
ServiceName: "google.cloud.policytroubleshooter.iam.v3.PolicyTroubleshooter", |
| 118 |
HandlerType: (*PolicyTroubleshooterServer)(nil), |
| 119 |
Methods: []grpc.MethodDesc{ |
| 120 |
{ |
| 121 |
MethodName: "TroubleshootIamPolicy", |
| 122 |
Handler: _PolicyTroubleshooter_TroubleshootIamPolicy_Handler, |
| 123 |
}, |
| 124 |
}, |
| 125 |
Streams: []grpc.StreamDesc{}, |
| 126 |
Metadata: "google/cloud/policytroubleshooter/iam/v3/troubleshooter.proto", |
| 127 |
} |