github.com/microsoft/moc@v0.17.1/rpc/cloudagent/cloud/moc_cloudagent_group.pb.go (about) 1 // Code generated by protoc-gen-go. DO NOT EDIT. 2 // source: moc_cloudagent_group.proto 3 4 package cloud 5 6 import ( 7 context "context" 8 fmt "fmt" 9 proto "github.com/golang/protobuf/proto" 10 wrappers "github.com/golang/protobuf/ptypes/wrappers" 11 common "github.com/microsoft/moc/rpc/common" 12 grpc "google.golang.org/grpc" 13 codes "google.golang.org/grpc/codes" 14 status "google.golang.org/grpc/status" 15 math "math" 16 ) 17 18 // Reference imports to suppress errors if they are not otherwise used. 19 var _ = proto.Marshal 20 var _ = fmt.Errorf 21 var _ = math.Inf 22 23 // This is a compile-time assertion to ensure that this generated file 24 // is compatible with the proto package it is being compiled against. 25 // A compilation error at this line likely means your copy of the 26 // proto package needs to be updated. 27 const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package 28 29 type SubPostOperation int32 30 31 const ( 32 SubPostOperation_CREATE SubPostOperation = 0 33 SubPostOperation_UPDATE SubPostOperation = 1 34 SubPostOperation_LOCK SubPostOperation = 2 35 ) 36 37 var SubPostOperation_name = map[int32]string{ 38 0: "CREATE", 39 1: "UPDATE", 40 2: "LOCK", 41 } 42 43 var SubPostOperation_value = map[string]int32{ 44 "CREATE": 0, 45 "UPDATE": 1, 46 "LOCK": 2, 47 } 48 49 func (x SubPostOperation) String() string { 50 return proto.EnumName(SubPostOperation_name, int32(x)) 51 } 52 53 func (SubPostOperation) EnumDescriptor() ([]byte, []int) { 54 return fileDescriptor_82e28c34d456fc6b, []int{0} 55 } 56 57 type GroupRequest struct { 58 Groups []*Group `protobuf:"bytes,1,rep,name=Groups,proto3" json:"Groups,omitempty"` 59 OperationType common.Operation `protobuf:"varint,2,opt,name=OperationType,proto3,enum=moc.Operation" json:"OperationType,omitempty"` 60 PostOperationType SubPostOperation `protobuf:"varint,3,opt,name=PostOperationType,proto3,enum=moc.cloudagent.group.SubPostOperation" json:"PostOperationType,omitempty"` 61 XXX_NoUnkeyedLiteral struct{} `json:"-"` 62 XXX_unrecognized []byte `json:"-"` 63 XXX_sizecache int32 `json:"-"` 64 } 65 66 func (m *GroupRequest) Reset() { *m = GroupRequest{} } 67 func (m *GroupRequest) String() string { return proto.CompactTextString(m) } 68 func (*GroupRequest) ProtoMessage() {} 69 func (*GroupRequest) Descriptor() ([]byte, []int) { 70 return fileDescriptor_82e28c34d456fc6b, []int{0} 71 } 72 73 func (m *GroupRequest) XXX_Unmarshal(b []byte) error { 74 return xxx_messageInfo_GroupRequest.Unmarshal(m, b) 75 } 76 func (m *GroupRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 77 return xxx_messageInfo_GroupRequest.Marshal(b, m, deterministic) 78 } 79 func (m *GroupRequest) XXX_Merge(src proto.Message) { 80 xxx_messageInfo_GroupRequest.Merge(m, src) 81 } 82 func (m *GroupRequest) XXX_Size() int { 83 return xxx_messageInfo_GroupRequest.Size(m) 84 } 85 func (m *GroupRequest) XXX_DiscardUnknown() { 86 xxx_messageInfo_GroupRequest.DiscardUnknown(m) 87 } 88 89 var xxx_messageInfo_GroupRequest proto.InternalMessageInfo 90 91 func (m *GroupRequest) GetGroups() []*Group { 92 if m != nil { 93 return m.Groups 94 } 95 return nil 96 } 97 98 func (m *GroupRequest) GetOperationType() common.Operation { 99 if m != nil { 100 return m.OperationType 101 } 102 return common.Operation_GET 103 } 104 105 func (m *GroupRequest) GetPostOperationType() SubPostOperation { 106 if m != nil { 107 return m.PostOperationType 108 } 109 return SubPostOperation_CREATE 110 } 111 112 type GroupResponse struct { 113 Groups []*Group `protobuf:"bytes,1,rep,name=Groups,proto3" json:"Groups,omitempty"` 114 Result *wrappers.BoolValue `protobuf:"bytes,2,opt,name=Result,proto3" json:"Result,omitempty"` 115 Error string `protobuf:"bytes,3,opt,name=Error,proto3" json:"Error,omitempty"` 116 XXX_NoUnkeyedLiteral struct{} `json:"-"` 117 XXX_unrecognized []byte `json:"-"` 118 XXX_sizecache int32 `json:"-"` 119 } 120 121 func (m *GroupResponse) Reset() { *m = GroupResponse{} } 122 func (m *GroupResponse) String() string { return proto.CompactTextString(m) } 123 func (*GroupResponse) ProtoMessage() {} 124 func (*GroupResponse) Descriptor() ([]byte, []int) { 125 return fileDescriptor_82e28c34d456fc6b, []int{1} 126 } 127 128 func (m *GroupResponse) XXX_Unmarshal(b []byte) error { 129 return xxx_messageInfo_GroupResponse.Unmarshal(m, b) 130 } 131 func (m *GroupResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 132 return xxx_messageInfo_GroupResponse.Marshal(b, m, deterministic) 133 } 134 func (m *GroupResponse) XXX_Merge(src proto.Message) { 135 xxx_messageInfo_GroupResponse.Merge(m, src) 136 } 137 func (m *GroupResponse) XXX_Size() int { 138 return xxx_messageInfo_GroupResponse.Size(m) 139 } 140 func (m *GroupResponse) XXX_DiscardUnknown() { 141 xxx_messageInfo_GroupResponse.DiscardUnknown(m) 142 } 143 144 var xxx_messageInfo_GroupResponse proto.InternalMessageInfo 145 146 func (m *GroupResponse) GetGroups() []*Group { 147 if m != nil { 148 return m.Groups 149 } 150 return nil 151 } 152 153 func (m *GroupResponse) GetResult() *wrappers.BoolValue { 154 if m != nil { 155 return m.Result 156 } 157 return nil 158 } 159 160 func (m *GroupResponse) GetError() string { 161 if m != nil { 162 return m.Error 163 } 164 return "" 165 } 166 167 type Group struct { 168 Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` 169 Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"` 170 Status *common.Status `protobuf:"bytes,3,opt,name=status,proto3" json:"status,omitempty"` 171 LocationName string `protobuf:"bytes,4,opt,name=locationName,proto3" json:"locationName,omitempty"` 172 Tags *common.Tags `protobuf:"bytes,5,opt,name=tags,proto3" json:"tags,omitempty"` 173 XXX_NoUnkeyedLiteral struct{} `json:"-"` 174 XXX_unrecognized []byte `json:"-"` 175 XXX_sizecache int32 `json:"-"` 176 } 177 178 func (m *Group) Reset() { *m = Group{} } 179 func (m *Group) String() string { return proto.CompactTextString(m) } 180 func (*Group) ProtoMessage() {} 181 func (*Group) Descriptor() ([]byte, []int) { 182 return fileDescriptor_82e28c34d456fc6b, []int{2} 183 } 184 185 func (m *Group) XXX_Unmarshal(b []byte) error { 186 return xxx_messageInfo_Group.Unmarshal(m, b) 187 } 188 func (m *Group) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 189 return xxx_messageInfo_Group.Marshal(b, m, deterministic) 190 } 191 func (m *Group) XXX_Merge(src proto.Message) { 192 xxx_messageInfo_Group.Merge(m, src) 193 } 194 func (m *Group) XXX_Size() int { 195 return xxx_messageInfo_Group.Size(m) 196 } 197 func (m *Group) XXX_DiscardUnknown() { 198 xxx_messageInfo_Group.DiscardUnknown(m) 199 } 200 201 var xxx_messageInfo_Group proto.InternalMessageInfo 202 203 func (m *Group) GetName() string { 204 if m != nil { 205 return m.Name 206 } 207 return "" 208 } 209 210 func (m *Group) GetId() string { 211 if m != nil { 212 return m.Id 213 } 214 return "" 215 } 216 217 func (m *Group) GetStatus() *common.Status { 218 if m != nil { 219 return m.Status 220 } 221 return nil 222 } 223 224 func (m *Group) GetLocationName() string { 225 if m != nil { 226 return m.LocationName 227 } 228 return "" 229 } 230 231 func (m *Group) GetTags() *common.Tags { 232 if m != nil { 233 return m.Tags 234 } 235 return nil 236 } 237 238 func init() { 239 proto.RegisterEnum("moc.cloudagent.group.SubPostOperation", SubPostOperation_name, SubPostOperation_value) 240 proto.RegisterType((*GroupRequest)(nil), "moc.cloudagent.group.GroupRequest") 241 proto.RegisterType((*GroupResponse)(nil), "moc.cloudagent.group.GroupResponse") 242 proto.RegisterType((*Group)(nil), "moc.cloudagent.group.Group") 243 } 244 245 func init() { proto.RegisterFile("moc_cloudagent_group.proto", fileDescriptor_82e28c34d456fc6b) } 246 247 var fileDescriptor_82e28c34d456fc6b = []byte{ 248 // 437 bytes of a gzipped FileDescriptorProto 249 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x52, 0x5d, 0x6b, 0xd4, 0x40, 250 0x14, 0x6d, 0xb6, 0xbb, 0xc1, 0xbd, 0xdb, 0x2e, 0xeb, 0x50, 0x70, 0x89, 0x28, 0x25, 0x05, 0x29, 251 0x82, 0x13, 0x48, 0xfb, 0x07, 0xda, 0xba, 0x88, 0x28, 0xb6, 0xcc, 0xae, 0x3e, 0xf8, 0x52, 0x66, 252 0xb3, 0xd3, 0x18, 0x4c, 0x72, 0xe3, 0x7c, 0x28, 0xfe, 0x09, 0x5f, 0xfc, 0x61, 0xfe, 0x25, 0xc9, 253 0x9d, 0x68, 0x89, 0x96, 0x7d, 0xe8, 0x53, 0xee, 0xdc, 0x73, 0xcf, 0xb9, 0x39, 0x67, 0x06, 0xa2, 254 0x0a, 0xb3, 0xeb, 0xac, 0x44, 0xb7, 0x91, 0xb9, 0xaa, 0xed, 0x75, 0xae, 0xd1, 0x35, 0xbc, 0xd1, 255 0x68, 0x91, 0x1d, 0x54, 0x98, 0xf1, 0x5b, 0x8c, 0x13, 0x16, 0x3d, 0xcd, 0x11, 0xf3, 0x52, 0x25, 256 0x34, 0xb3, 0x76, 0x37, 0xc9, 0x37, 0x2d, 0x9b, 0x46, 0x69, 0xe3, 0x59, 0xd1, 0x23, 0x52, 0xc4, 257 0xaa, 0xc2, 0xba, 0xfb, 0x78, 0x20, 0xfe, 0x15, 0xc0, 0xde, 0xab, 0x56, 0x42, 0xa8, 0x2f, 0x4e, 258 0x19, 0xcb, 0x4e, 0x20, 0xa4, 0xb3, 0x99, 0x07, 0x87, 0xbb, 0xc7, 0x93, 0xf4, 0x31, 0xbf, 0x6b, 259 0x21, 0xf7, 0x9c, 0x6e, 0x94, 0x9d, 0xc2, 0xfe, 0x65, 0xa3, 0xb4, 0xb4, 0x05, 0xd6, 0xab, 0xef, 260 0x8d, 0x9a, 0x0f, 0x0e, 0x83, 0xe3, 0x69, 0x3a, 0x25, 0xee, 0x5f, 0x44, 0xf4, 0x87, 0xd8, 0x0a, 261 0x1e, 0x5e, 0xa1, 0xb1, 0x7d, 0xe6, 0x2e, 0x31, 0x9f, 0xdd, 0xbd, 0x75, 0xe9, 0xd6, 0x3d, 0x86, 262 0xf8, 0x5f, 0x20, 0xfe, 0x11, 0xc0, 0x7e, 0xe7, 0xc8, 0x34, 0x58, 0x1b, 0x75, 0x3f, 0x4b, 0x29, 263 0x84, 0x42, 0x19, 0x57, 0x5a, 0xf2, 0x32, 0x49, 0x23, 0xee, 0x23, 0xe6, 0x7f, 0x22, 0xe6, 0xe7, 264 0x88, 0xe5, 0x07, 0x59, 0x3a, 0x25, 0xba, 0x49, 0x76, 0x00, 0xa3, 0x85, 0xd6, 0xa8, 0xc9, 0xc4, 265 0x58, 0xf8, 0x43, 0xfc, 0x33, 0x80, 0x11, 0x89, 0x32, 0x06, 0xc3, 0x5a, 0x56, 0x6a, 0x1e, 0x10, 266 0x4c, 0x35, 0x9b, 0xc2, 0xa0, 0xd8, 0xd0, 0x8e, 0xb1, 0x18, 0x14, 0x1b, 0x76, 0x04, 0xa1, 0xb1, 267 0xd2, 0x3a, 0x43, 0x22, 0x93, 0x74, 0x42, 0x3f, 0xbb, 0xa4, 0x96, 0xe8, 0x20, 0x16, 0xc3, 0x5e, 268 0x89, 0x19, 0x79, 0x7e, 0xd7, 0x0a, 0x0e, 0x89, 0xde, 0xeb, 0xb1, 0x27, 0x30, 0xb4, 0x32, 0x37, 269 0xf3, 0x11, 0xc9, 0x8c, 0x49, 0x66, 0x25, 0x73, 0x23, 0xa8, 0xfd, 0xfc, 0x14, 0x66, 0xff, 0xa6, 270 0xc9, 0x00, 0xc2, 0x0b, 0xb1, 0x38, 0x5b, 0x2d, 0x66, 0x3b, 0x6d, 0xfd, 0xfe, 0xea, 0x65, 0x5b, 271 0x07, 0xec, 0x01, 0x0c, 0xdf, 0x5e, 0x5e, 0xbc, 0x99, 0x0d, 0x52, 0x09, 0x40, 0x56, 0xce, 0xda, 272 0xdc, 0xd8, 0x12, 0xc2, 0xd7, 0xf5, 0x57, 0xfc, 0xac, 0x58, 0xbc, 0x2d, 0x52, 0xff, 0xb2, 0xa2, 273 0xa3, 0xad, 0x33, 0xfe, 0xae, 0xe2, 0x9d, 0xf3, 0xe4, 0xe3, 0x8b, 0xbc, 0xb0, 0x9f, 0xdc, 0x9a, 274 0x67, 0x58, 0x25, 0x55, 0x91, 0x69, 0x34, 0x78, 0x63, 0x93, 0x0a, 0xb3, 0x44, 0x37, 0x59, 0x72, 275 0x2b, 0xe0, 0xcb, 0x75, 0x48, 0x37, 0x72, 0xf2, 0x3b, 0x00, 0x00, 0xff, 0xff, 0xe2, 0x3f, 0xce, 276 0xf4, 0x36, 0x03, 0x00, 0x00, 277 } 278 279 // Reference imports to suppress errors if they are not otherwise used. 280 var _ context.Context 281 var _ grpc.ClientConn 282 283 // This is a compile-time assertion to ensure that this generated file 284 // is compatible with the grpc package it is being compiled against. 285 const _ = grpc.SupportPackageIsVersion4 286 287 // GroupAgentClient is the client API for GroupAgent service. 288 // 289 // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. 290 type GroupAgentClient interface { 291 Invoke(ctx context.Context, in *GroupRequest, opts ...grpc.CallOption) (*GroupResponse, error) 292 } 293 294 type groupAgentClient struct { 295 cc *grpc.ClientConn 296 } 297 298 func NewGroupAgentClient(cc *grpc.ClientConn) GroupAgentClient { 299 return &groupAgentClient{cc} 300 } 301 302 func (c *groupAgentClient) Invoke(ctx context.Context, in *GroupRequest, opts ...grpc.CallOption) (*GroupResponse, error) { 303 out := new(GroupResponse) 304 err := c.cc.Invoke(ctx, "/moc.cloudagent.group.GroupAgent/Invoke", in, out, opts...) 305 if err != nil { 306 return nil, err 307 } 308 return out, nil 309 } 310 311 // GroupAgentServer is the server API for GroupAgent service. 312 type GroupAgentServer interface { 313 Invoke(context.Context, *GroupRequest) (*GroupResponse, error) 314 } 315 316 // UnimplementedGroupAgentServer can be embedded to have forward compatible implementations. 317 type UnimplementedGroupAgentServer struct { 318 } 319 320 func (*UnimplementedGroupAgentServer) Invoke(ctx context.Context, req *GroupRequest) (*GroupResponse, error) { 321 return nil, status.Errorf(codes.Unimplemented, "method Invoke not implemented") 322 } 323 324 func RegisterGroupAgentServer(s *grpc.Server, srv GroupAgentServer) { 325 s.RegisterService(&_GroupAgent_serviceDesc, srv) 326 } 327 328 func _GroupAgent_Invoke_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 329 in := new(GroupRequest) 330 if err := dec(in); err != nil { 331 return nil, err 332 } 333 if interceptor == nil { 334 return srv.(GroupAgentServer).Invoke(ctx, in) 335 } 336 info := &grpc.UnaryServerInfo{ 337 Server: srv, 338 FullMethod: "/moc.cloudagent.group.GroupAgent/Invoke", 339 } 340 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 341 return srv.(GroupAgentServer).Invoke(ctx, req.(*GroupRequest)) 342 } 343 return interceptor(ctx, in, info, handler) 344 } 345 346 var _GroupAgent_serviceDesc = grpc.ServiceDesc{ 347 ServiceName: "moc.cloudagent.group.GroupAgent", 348 HandlerType: (*GroupAgentServer)(nil), 349 Methods: []grpc.MethodDesc{ 350 { 351 MethodName: "Invoke", 352 Handler: _GroupAgent_Invoke_Handler, 353 }, 354 }, 355 Streams: []grpc.StreamDesc{}, 356 Metadata: "moc_cloudagent_group.proto", 357 }