-
Notifications
You must be signed in to change notification settings - Fork 1
/
group_member_service.pb.client.go
196 lines (171 loc) · 6.67 KB
/
group_member_service.pb.client.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
// Code generated by protoc-gen-goten-client
// API: GroupMemberService
// DO NOT EDIT!!!
package group_member_client
import (
"context"
"google.golang.org/grpc"
"google.golang.org/protobuf/runtime/protoimpl"
)
// proto imports
import (
group_member "github.com/cloudwan/edgelq-sdk/iam/resources/v1alpha/group_member"
empty "github.com/golang/protobuf/ptypes/empty"
)
// Reference imports to suppress errors if they are not otherwise used.
var (
_ = protoimpl.DescBuilder{}
_ = context.Context(nil)
_ = grpc.ClientConn{}
)
// make sure we're using proto imports
var (
_ = &group_member.GroupMember{}
_ = &empty.Empty{}
)
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const (
// Verify that this generated code is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
// Verify that runtime/protoimpl is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)
// This is a compile-time assertion to ensure that this generated file
// is compatible with the grpc package it is being compiled against.
const _ = grpc.SupportPackageIsVersion6
// GroupMemberServiceClient is the client API for GroupMemberService.
//
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
type GroupMemberServiceClient interface {
GetGroupMember(ctx context.Context, in *GetGroupMemberRequest, opts ...grpc.CallOption) (*group_member.GroupMember, error)
BatchGetGroupMembers(ctx context.Context, in *BatchGetGroupMembersRequest, opts ...grpc.CallOption) (*BatchGetGroupMembersResponse, error)
ListGroupMembers(ctx context.Context, in *ListGroupMembersRequest, opts ...grpc.CallOption) (*ListGroupMembersResponse, error)
WatchGroupMember(ctx context.Context, in *WatchGroupMemberRequest, opts ...grpc.CallOption) (WatchGroupMemberClientStream, error)
WatchGroupMembers(ctx context.Context, in *WatchGroupMembersRequest, opts ...grpc.CallOption) (WatchGroupMembersClientStream, error)
CreateGroupMember(ctx context.Context, in *CreateGroupMemberRequest, opts ...grpc.CallOption) (*group_member.GroupMember, error)
UpdateGroupMember(ctx context.Context, in *UpdateGroupMemberRequest, opts ...grpc.CallOption) (*group_member.GroupMember, error)
DeleteGroupMember(ctx context.Context, in *DeleteGroupMemberRequest, opts ...grpc.CallOption) (*empty.Empty, error)
}
type client struct {
cc grpc.ClientConnInterface
}
func NewGroupMemberServiceClient(cc grpc.ClientConnInterface) GroupMemberServiceClient {
return &client{cc}
}
func (c *client) GetGroupMember(ctx context.Context, in *GetGroupMemberRequest, opts ...grpc.CallOption) (*group_member.GroupMember, error) {
out := new(group_member.GroupMember)
err := c.cc.Invoke(ctx, "/ntt.iam.v1alpha.GroupMemberService/GetGroupMember", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *client) BatchGetGroupMembers(ctx context.Context, in *BatchGetGroupMembersRequest, opts ...grpc.CallOption) (*BatchGetGroupMembersResponse, error) {
out := new(BatchGetGroupMembersResponse)
err := c.cc.Invoke(ctx, "/ntt.iam.v1alpha.GroupMemberService/BatchGetGroupMembers", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *client) ListGroupMembers(ctx context.Context, in *ListGroupMembersRequest, opts ...grpc.CallOption) (*ListGroupMembersResponse, error) {
out := new(ListGroupMembersResponse)
err := c.cc.Invoke(ctx, "/ntt.iam.v1alpha.GroupMemberService/ListGroupMembers", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *client) WatchGroupMember(ctx context.Context, in *WatchGroupMemberRequest, opts ...grpc.CallOption) (WatchGroupMemberClientStream, error) {
stream, err := c.cc.NewStream(ctx,
&grpc.StreamDesc{
StreamName: "WatchGroupMember",
ServerStreams: true,
},
"/ntt.iam.v1alpha.GroupMemberService/WatchGroupMember", opts...)
if err != nil {
return nil, err
}
x := &watchGroupMemberWatchGroupMemberClient{stream}
if err := x.ClientStream.SendMsg(in); err != nil {
return nil, err
}
if err := x.ClientStream.CloseSend(); err != nil {
return nil, err
}
return x, nil
}
type WatchGroupMemberClientStream interface {
Recv() (*WatchGroupMemberResponse, error)
grpc.ClientStream
}
type watchGroupMemberWatchGroupMemberClient struct {
grpc.ClientStream
}
func (x *watchGroupMemberWatchGroupMemberClient) Recv() (*WatchGroupMemberResponse, error) {
m := new(WatchGroupMemberResponse)
if err := x.ClientStream.RecvMsg(m); err != nil {
return nil, err
}
return m, nil
}
func (c *client) WatchGroupMembers(ctx context.Context, in *WatchGroupMembersRequest, opts ...grpc.CallOption) (WatchGroupMembersClientStream, error) {
stream, err := c.cc.NewStream(ctx,
&grpc.StreamDesc{
StreamName: "WatchGroupMembers",
ServerStreams: true,
},
"/ntt.iam.v1alpha.GroupMemberService/WatchGroupMembers", opts...)
if err != nil {
return nil, err
}
x := &watchGroupMembersWatchGroupMembersClient{stream}
if err := x.ClientStream.SendMsg(in); err != nil {
return nil, err
}
if err := x.ClientStream.CloseSend(); err != nil {
return nil, err
}
return x, nil
}
type WatchGroupMembersClientStream interface {
Recv() (*WatchGroupMembersResponse, error)
grpc.ClientStream
}
type watchGroupMembersWatchGroupMembersClient struct {
grpc.ClientStream
}
func (x *watchGroupMembersWatchGroupMembersClient) Recv() (*WatchGroupMembersResponse, error) {
m := new(WatchGroupMembersResponse)
if err := x.ClientStream.RecvMsg(m); err != nil {
return nil, err
}
return m, nil
}
func (c *client) CreateGroupMember(ctx context.Context, in *CreateGroupMemberRequest, opts ...grpc.CallOption) (*group_member.GroupMember, error) {
out := new(group_member.GroupMember)
err := c.cc.Invoke(ctx, "/ntt.iam.v1alpha.GroupMemberService/CreateGroupMember", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *client) UpdateGroupMember(ctx context.Context, in *UpdateGroupMemberRequest, opts ...grpc.CallOption) (*group_member.GroupMember, error) {
out := new(group_member.GroupMember)
err := c.cc.Invoke(ctx, "/ntt.iam.v1alpha.GroupMemberService/UpdateGroupMember", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *client) DeleteGroupMember(ctx context.Context, in *DeleteGroupMemberRequest, opts ...grpc.CallOption) (*empty.Empty, error) {
out := new(empty.Empty)
err := c.cc.Invoke(ctx, "/ntt.iam.v1alpha.GroupMemberService/DeleteGroupMember", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}