github.com/microsoft/moc@v0.17.1/rpc/cloudagent/security/moc_cloudagent_roleassignment.pb.go (about)

     1  // Code generated by protoc-gen-go. DO NOT EDIT.
     2  // source: moc_cloudagent_roleassignment.proto
     3  
     4  package security
     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 RoleAssignmentRequest struct {
    30  	RoleAssignments      []*RoleAssignment `protobuf:"bytes,2,rep,name=roleAssignments,proto3" json:"roleAssignments,omitempty"`
    31  	OperationType        common.Operation  `protobuf:"varint,3,opt,name=OperationType,proto3,enum=moc.Operation" json:"OperationType,omitempty"`
    32  	XXX_NoUnkeyedLiteral struct{}          `json:"-"`
    33  	XXX_unrecognized     []byte            `json:"-"`
    34  	XXX_sizecache        int32             `json:"-"`
    35  }
    36  
    37  func (m *RoleAssignmentRequest) Reset()         { *m = RoleAssignmentRequest{} }
    38  func (m *RoleAssignmentRequest) String() string { return proto.CompactTextString(m) }
    39  func (*RoleAssignmentRequest) ProtoMessage()    {}
    40  func (*RoleAssignmentRequest) Descriptor() ([]byte, []int) {
    41  	return fileDescriptor_b3e5139f0af5b831, []int{0}
    42  }
    43  
    44  func (m *RoleAssignmentRequest) XXX_Unmarshal(b []byte) error {
    45  	return xxx_messageInfo_RoleAssignmentRequest.Unmarshal(m, b)
    46  }
    47  func (m *RoleAssignmentRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
    48  	return xxx_messageInfo_RoleAssignmentRequest.Marshal(b, m, deterministic)
    49  }
    50  func (m *RoleAssignmentRequest) XXX_Merge(src proto.Message) {
    51  	xxx_messageInfo_RoleAssignmentRequest.Merge(m, src)
    52  }
    53  func (m *RoleAssignmentRequest) XXX_Size() int {
    54  	return xxx_messageInfo_RoleAssignmentRequest.Size(m)
    55  }
    56  func (m *RoleAssignmentRequest) XXX_DiscardUnknown() {
    57  	xxx_messageInfo_RoleAssignmentRequest.DiscardUnknown(m)
    58  }
    59  
    60  var xxx_messageInfo_RoleAssignmentRequest proto.InternalMessageInfo
    61  
    62  func (m *RoleAssignmentRequest) GetRoleAssignments() []*RoleAssignment {
    63  	if m != nil {
    64  		return m.RoleAssignments
    65  	}
    66  	return nil
    67  }
    68  
    69  func (m *RoleAssignmentRequest) GetOperationType() common.Operation {
    70  	if m != nil {
    71  		return m.OperationType
    72  	}
    73  	return common.Operation_GET
    74  }
    75  
    76  type RoleAssignmentResponse struct {
    77  	RoleAssignments      []*RoleAssignment   `protobuf:"bytes,1,rep,name=roleAssignments,proto3" json:"roleAssignments,omitempty"`
    78  	Result               *wrappers.BoolValue `protobuf:"bytes,2,opt,name=Result,proto3" json:"Result,omitempty"`
    79  	Error                string              `protobuf:"bytes,3,opt,name=Error,proto3" json:"Error,omitempty"`
    80  	XXX_NoUnkeyedLiteral struct{}            `json:"-"`
    81  	XXX_unrecognized     []byte              `json:"-"`
    82  	XXX_sizecache        int32               `json:"-"`
    83  }
    84  
    85  func (m *RoleAssignmentResponse) Reset()         { *m = RoleAssignmentResponse{} }
    86  func (m *RoleAssignmentResponse) String() string { return proto.CompactTextString(m) }
    87  func (*RoleAssignmentResponse) ProtoMessage()    {}
    88  func (*RoleAssignmentResponse) Descriptor() ([]byte, []int) {
    89  	return fileDescriptor_b3e5139f0af5b831, []int{1}
    90  }
    91  
    92  func (m *RoleAssignmentResponse) XXX_Unmarshal(b []byte) error {
    93  	return xxx_messageInfo_RoleAssignmentResponse.Unmarshal(m, b)
    94  }
    95  func (m *RoleAssignmentResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
    96  	return xxx_messageInfo_RoleAssignmentResponse.Marshal(b, m, deterministic)
    97  }
    98  func (m *RoleAssignmentResponse) XXX_Merge(src proto.Message) {
    99  	xxx_messageInfo_RoleAssignmentResponse.Merge(m, src)
   100  }
   101  func (m *RoleAssignmentResponse) XXX_Size() int {
   102  	return xxx_messageInfo_RoleAssignmentResponse.Size(m)
   103  }
   104  func (m *RoleAssignmentResponse) XXX_DiscardUnknown() {
   105  	xxx_messageInfo_RoleAssignmentResponse.DiscardUnknown(m)
   106  }
   107  
   108  var xxx_messageInfo_RoleAssignmentResponse proto.InternalMessageInfo
   109  
   110  func (m *RoleAssignmentResponse) GetRoleAssignments() []*RoleAssignment {
   111  	if m != nil {
   112  		return m.RoleAssignments
   113  	}
   114  	return nil
   115  }
   116  
   117  func (m *RoleAssignmentResponse) GetResult() *wrappers.BoolValue {
   118  	if m != nil {
   119  		return m.Result
   120  	}
   121  	return nil
   122  }
   123  
   124  func (m *RoleAssignmentResponse) GetError() string {
   125  	if m != nil {
   126  		return m.Error
   127  	}
   128  	return ""
   129  }
   130  
   131  type RoleAssignment struct {
   132  	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
   133  	Id   string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"`
   134  	// Name of role to be applied
   135  	RoleName string `protobuf:"bytes,3,opt,name=roleName,proto3" json:"roleName,omitempty"`
   136  	// Scope to which role is applied
   137  	Scope *common.Scope `protobuf:"bytes,4,opt,name=scope,proto3" json:"scope,omitempty"`
   138  	// Name of identity to be assigned to
   139  	IdentityName         string         `protobuf:"bytes,5,opt,name=identityName,proto3" json:"identityName,omitempty"`
   140  	Status               *common.Status `protobuf:"bytes,6,opt,name=status,proto3" json:"status,omitempty"`
   141  	Tags                 *common.Tags   `protobuf:"bytes,7,opt,name=tags,proto3" json:"tags,omitempty"`
   142  	XXX_NoUnkeyedLiteral struct{}       `json:"-"`
   143  	XXX_unrecognized     []byte         `json:"-"`
   144  	XXX_sizecache        int32          `json:"-"`
   145  }
   146  
   147  func (m *RoleAssignment) Reset()         { *m = RoleAssignment{} }
   148  func (m *RoleAssignment) String() string { return proto.CompactTextString(m) }
   149  func (*RoleAssignment) ProtoMessage()    {}
   150  func (*RoleAssignment) Descriptor() ([]byte, []int) {
   151  	return fileDescriptor_b3e5139f0af5b831, []int{2}
   152  }
   153  
   154  func (m *RoleAssignment) XXX_Unmarshal(b []byte) error {
   155  	return xxx_messageInfo_RoleAssignment.Unmarshal(m, b)
   156  }
   157  func (m *RoleAssignment) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   158  	return xxx_messageInfo_RoleAssignment.Marshal(b, m, deterministic)
   159  }
   160  func (m *RoleAssignment) XXX_Merge(src proto.Message) {
   161  	xxx_messageInfo_RoleAssignment.Merge(m, src)
   162  }
   163  func (m *RoleAssignment) XXX_Size() int {
   164  	return xxx_messageInfo_RoleAssignment.Size(m)
   165  }
   166  func (m *RoleAssignment) XXX_DiscardUnknown() {
   167  	xxx_messageInfo_RoleAssignment.DiscardUnknown(m)
   168  }
   169  
   170  var xxx_messageInfo_RoleAssignment proto.InternalMessageInfo
   171  
   172  func (m *RoleAssignment) GetName() string {
   173  	if m != nil {
   174  		return m.Name
   175  	}
   176  	return ""
   177  }
   178  
   179  func (m *RoleAssignment) GetId() string {
   180  	if m != nil {
   181  		return m.Id
   182  	}
   183  	return ""
   184  }
   185  
   186  func (m *RoleAssignment) GetRoleName() string {
   187  	if m != nil {
   188  		return m.RoleName
   189  	}
   190  	return ""
   191  }
   192  
   193  func (m *RoleAssignment) GetScope() *common.Scope {
   194  	if m != nil {
   195  		return m.Scope
   196  	}
   197  	return nil
   198  }
   199  
   200  func (m *RoleAssignment) GetIdentityName() string {
   201  	if m != nil {
   202  		return m.IdentityName
   203  	}
   204  	return ""
   205  }
   206  
   207  func (m *RoleAssignment) GetStatus() *common.Status {
   208  	if m != nil {
   209  		return m.Status
   210  	}
   211  	return nil
   212  }
   213  
   214  func (m *RoleAssignment) GetTags() *common.Tags {
   215  	if m != nil {
   216  		return m.Tags
   217  	}
   218  	return nil
   219  }
   220  
   221  func init() {
   222  	proto.RegisterType((*RoleAssignmentRequest)(nil), "moc.cloudagent.security.RoleAssignmentRequest")
   223  	proto.RegisterType((*RoleAssignmentResponse)(nil), "moc.cloudagent.security.RoleAssignmentResponse")
   224  	proto.RegisterType((*RoleAssignment)(nil), "moc.cloudagent.security.RoleAssignment")
   225  }
   226  
   227  func init() {
   228  	proto.RegisterFile("moc_cloudagent_roleassignment.proto", fileDescriptor_b3e5139f0af5b831)
   229  }
   230  
   231  var fileDescriptor_b3e5139f0af5b831 = []byte{
   232  	// 445 bytes of a gzipped FileDescriptorProto
   233  	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x92, 0xcf, 0x8e, 0xd3, 0x30,
   234  	0x10, 0xc6, 0x49, 0xb7, 0x2d, 0x74, 0x0a, 0x45, 0x32, 0x7f, 0x36, 0x44, 0x02, 0x55, 0xd9, 0x03,
   235  	0x3d, 0x39, 0x28, 0xf0, 0x02, 0xbb, 0x12, 0x07, 0x2e, 0x20, 0xcc, 0x8a, 0x03, 0x97, 0x55, 0xea,
   236  	0xce, 0x06, 0x6b, 0x63, 0x4f, 0xb0, 0x1d, 0x50, 0xaf, 0x3c, 0x09, 0x2f, 0xc1, 0xcb, 0xf0, 0x34,
   237  	0xa8, 0x76, 0xdb, 0x25, 0x15, 0x48, 0x2b, 0x71, 0x6a, 0x3d, 0xdf, 0xe7, 0x9f, 0xbf, 0x99, 0x09,
   238  	0x9c, 0x68, 0x92, 0x17, 0xb2, 0xa1, 0x6e, 0x55, 0xd5, 0x68, 0xfc, 0x85, 0xa5, 0x06, 0x2b, 0xe7,
   239  	0x54, 0x6d, 0x34, 0x1a, 0xcf, 0x5b, 0x4b, 0x9e, 0xd8, 0xb1, 0x26, 0xc9, 0xaf, 0x4d, 0xdc, 0xa1,
   240  	0xec, 0xac, 0xf2, 0xeb, 0xec, 0x59, 0x4d, 0x54, 0x37, 0x58, 0x04, 0xdb, 0xb2, 0xbb, 0x2c, 0xbe,
   241  	0xd9, 0xaa, 0x6d, 0xd1, 0xba, 0x78, 0x31, 0x3b, 0x0e, 0x74, 0xd2, 0x9a, 0xcc, 0xf6, 0x67, 0x2b,
   242  	0x3c, 0xf9, 0x43, 0xd8, 0xd1, 0xa2, 0x94, 0xff, 0x48, 0xe0, 0x91, 0xa0, 0x06, 0x4f, 0xf7, 0x29,
   243  	0x04, 0x7e, 0xe9, 0xd0, 0x79, 0xf6, 0x1e, 0xee, 0xdb, 0x9e, 0xe0, 0xd2, 0xc1, 0xfc, 0x68, 0x31,
   244  	0x2d, 0x9f, 0xf3, 0x7f, 0x04, 0xe4, 0x07, 0xa0, 0xc3, 0xfb, 0xec, 0x15, 0xdc, 0x7b, 0xd7, 0xa2,
   245  	0xad, 0xbc, 0x22, 0x73, 0xbe, 0x6e, 0x31, 0x3d, 0x9a, 0x27, 0x8b, 0x59, 0x39, 0x0b, 0xc0, 0xbd,
   246  	0x22, 0xfa, 0xa6, 0xfc, 0x67, 0x02, 0x8f, 0x0f, 0x23, 0xba, 0x96, 0x8c, 0xc3, 0xbf, 0x65, 0x4c,
   247  	0xfe, 0x33, 0x63, 0x09, 0x63, 0x81, 0xae, 0x6b, 0x7c, 0x3a, 0x98, 0x27, 0x8b, 0x69, 0x99, 0xf1,
   248  	0x38, 0x75, 0xbe, 0x9b, 0x3a, 0x3f, 0x23, 0x6a, 0x3e, 0x56, 0x4d, 0x87, 0x62, 0xeb, 0x64, 0x0f,
   249  	0x61, 0xf4, 0xda, 0x5a, 0xb2, 0xa1, 0x9f, 0x89, 0x88, 0x87, 0xfc, 0x57, 0x02, 0xb3, 0xfe, 0x6b,
   250  	0x8c, 0xc1, 0xd0, 0x54, 0x1a, 0xd3, 0x24, 0xf8, 0xc2, 0x7f, 0x36, 0x83, 0x81, 0x5a, 0x85, 0xc7,
   251  	0x26, 0x62, 0xa0, 0x56, 0x2c, 0x83, 0x3b, 0x9b, 0x4c, 0x6f, 0x37, 0xbe, 0xc8, 0xdb, 0x9f, 0xd9,
   252  	0x1c, 0x46, 0x4e, 0x52, 0x8b, 0xe9, 0x30, 0x64, 0x83, 0xd0, 0xe5, 0x87, 0x4d, 0x45, 0x44, 0x81,
   253  	0xe5, 0x70, 0x57, 0xad, 0xd0, 0x78, 0xe5, 0xd7, 0x81, 0x30, 0x0a, 0x84, 0x5e, 0x8d, 0x9d, 0xc0,
   254  	0xd8, 0xf9, 0xca, 0x77, 0x2e, 0x1d, 0x07, 0xcc, 0x34, 0x62, 0x42, 0x49, 0x6c, 0x25, 0xf6, 0x14,
   255  	0x86, 0xbe, 0xaa, 0x5d, 0x7a, 0x3b, 0x58, 0x26, 0xc1, 0x72, 0x5e, 0xd5, 0x4e, 0x84, 0x72, 0xf9,
   256  	0x3d, 0x81, 0x07, 0xfd, 0xe6, 0x4e, 0x37, 0x73, 0x66, 0x57, 0x30, 0x7e, 0x63, 0xbe, 0xd2, 0x15,
   257  	0x32, 0x7e, 0xd3, 0x15, 0xc4, 0xef, 0x2d, 0x2b, 0x6e, 0xec, 0x8f, 0xcb, 0xcf, 0x6f, 0x9d, 0x95,
   258  	0x9f, 0x5e, 0xd4, 0xca, 0x7f, 0xee, 0x96, 0x5c, 0x92, 0x2e, 0xb4, 0x92, 0x96, 0x1c, 0x5d, 0xfa,
   259  	0x42, 0x93, 0x2c, 0x6c, 0x2b, 0x8b, 0x6b, 0x58, 0xb1, 0x83, 0x2d, 0xc7, 0x61, 0x8f, 0x2f, 0x7f,
   260  	0x07, 0x00, 0x00, 0xff, 0xff, 0xc1, 0x52, 0xd3, 0x51, 0x8b, 0x03, 0x00, 0x00,
   261  }
   262  
   263  // Reference imports to suppress errors if they are not otherwise used.
   264  var _ context.Context
   265  var _ grpc.ClientConn
   266  
   267  // This is a compile-time assertion to ensure that this generated file
   268  // is compatible with the grpc package it is being compiled against.
   269  const _ = grpc.SupportPackageIsVersion4
   270  
   271  // RoleAssignmentAgentClient is the client API for RoleAssignmentAgent service.
   272  //
   273  // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
   274  type RoleAssignmentAgentClient interface {
   275  	Invoke(ctx context.Context, in *RoleAssignmentRequest, opts ...grpc.CallOption) (*RoleAssignmentResponse, error)
   276  }
   277  
   278  type roleAssignmentAgentClient struct {
   279  	cc *grpc.ClientConn
   280  }
   281  
   282  func NewRoleAssignmentAgentClient(cc *grpc.ClientConn) RoleAssignmentAgentClient {
   283  	return &roleAssignmentAgentClient{cc}
   284  }
   285  
   286  func (c *roleAssignmentAgentClient) Invoke(ctx context.Context, in *RoleAssignmentRequest, opts ...grpc.CallOption) (*RoleAssignmentResponse, error) {
   287  	out := new(RoleAssignmentResponse)
   288  	err := c.cc.Invoke(ctx, "/moc.cloudagent.security.RoleAssignmentAgent/Invoke", in, out, opts...)
   289  	if err != nil {
   290  		return nil, err
   291  	}
   292  	return out, nil
   293  }
   294  
   295  // RoleAssignmentAgentServer is the server API for RoleAssignmentAgent service.
   296  type RoleAssignmentAgentServer interface {
   297  	Invoke(context.Context, *RoleAssignmentRequest) (*RoleAssignmentResponse, error)
   298  }
   299  
   300  // UnimplementedRoleAssignmentAgentServer can be embedded to have forward compatible implementations.
   301  type UnimplementedRoleAssignmentAgentServer struct {
   302  }
   303  
   304  func (*UnimplementedRoleAssignmentAgentServer) Invoke(ctx context.Context, req *RoleAssignmentRequest) (*RoleAssignmentResponse, error) {
   305  	return nil, status.Errorf(codes.Unimplemented, "method Invoke not implemented")
   306  }
   307  
   308  func RegisterRoleAssignmentAgentServer(s *grpc.Server, srv RoleAssignmentAgentServer) {
   309  	s.RegisterService(&_RoleAssignmentAgent_serviceDesc, srv)
   310  }
   311  
   312  func _RoleAssignmentAgent_Invoke_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
   313  	in := new(RoleAssignmentRequest)
   314  	if err := dec(in); err != nil {
   315  		return nil, err
   316  	}
   317  	if interceptor == nil {
   318  		return srv.(RoleAssignmentAgentServer).Invoke(ctx, in)
   319  	}
   320  	info := &grpc.UnaryServerInfo{
   321  		Server:     srv,
   322  		FullMethod: "/moc.cloudagent.security.RoleAssignmentAgent/Invoke",
   323  	}
   324  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
   325  		return srv.(RoleAssignmentAgentServer).Invoke(ctx, req.(*RoleAssignmentRequest))
   326  	}
   327  	return interceptor(ctx, in, info, handler)
   328  }
   329  
   330  var _RoleAssignmentAgent_serviceDesc = grpc.ServiceDesc{
   331  	ServiceName: "moc.cloudagent.security.RoleAssignmentAgent",
   332  	HandlerType: (*RoleAssignmentAgentServer)(nil),
   333  	Methods: []grpc.MethodDesc{
   334  		{
   335  			MethodName: "Invoke",
   336  			Handler:    _RoleAssignmentAgent_Invoke_Handler,
   337  		},
   338  	},
   339  	Streams:  []grpc.StreamDesc{},
   340  	Metadata: "moc_cloudagent_roleassignment.proto",
   341  }