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

     1  // Code generated by protoc-gen-go. DO NOT EDIT.
     2  // source: moc_cloudagent_role.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 GeneralAccessOperation int32
    30  
    31  const (
    32  	GeneralAccessOperation_Unspecified    GeneralAccessOperation = 0
    33  	GeneralAccessOperation_Read           GeneralAccessOperation = 1
    34  	GeneralAccessOperation_Write          GeneralAccessOperation = 2
    35  	GeneralAccessOperation_Delete         GeneralAccessOperation = 3
    36  	GeneralAccessOperation_All            GeneralAccessOperation = 4
    37  	GeneralAccessOperation_ProviderAction GeneralAccessOperation = 5
    38  )
    39  
    40  var GeneralAccessOperation_name = map[int32]string{
    41  	0: "Unspecified",
    42  	1: "Read",
    43  	2: "Write",
    44  	3: "Delete",
    45  	4: "All",
    46  	5: "ProviderAction",
    47  }
    48  
    49  var GeneralAccessOperation_value = map[string]int32{
    50  	"Unspecified":    0,
    51  	"Read":           1,
    52  	"Write":          2,
    53  	"Delete":         3,
    54  	"All":            4,
    55  	"ProviderAction": 5,
    56  }
    57  
    58  func (x GeneralAccessOperation) String() string {
    59  	return proto.EnumName(GeneralAccessOperation_name, int32(x))
    60  }
    61  
    62  func (GeneralAccessOperation) EnumDescriptor() ([]byte, []int) {
    63  	return fileDescriptor_b3d8f3a104bca746, []int{0}
    64  }
    65  
    66  type AccessOperation int32
    67  
    68  const (
    69  	AccessOperation_OBSOLETE_Read   AccessOperation = 0 // Deprecated: Do not use.
    70  	AccessOperation_OBSOLETE_Write  AccessOperation = 1 // Deprecated: Do not use.
    71  	AccessOperation_OBSOLETE_Delete AccessOperation = 2 // Deprecated: Do not use.
    72  	AccessOperation_OBSOLETE_All    AccessOperation = 3 // Deprecated: Do not use.
    73  )
    74  
    75  var AccessOperation_name = map[int32]string{
    76  	0: "OBSOLETE_Read",
    77  	1: "OBSOLETE_Write",
    78  	2: "OBSOLETE_Delete",
    79  	3: "OBSOLETE_All",
    80  }
    81  
    82  var AccessOperation_value = map[string]int32{
    83  	"OBSOLETE_Read":   0,
    84  	"OBSOLETE_Write":  1,
    85  	"OBSOLETE_Delete": 2,
    86  	"OBSOLETE_All":    3,
    87  }
    88  
    89  func (x AccessOperation) String() string {
    90  	return proto.EnumName(AccessOperation_name, int32(x))
    91  }
    92  
    93  func (AccessOperation) EnumDescriptor() ([]byte, []int) {
    94  	return fileDescriptor_b3d8f3a104bca746, []int{1}
    95  }
    96  
    97  type RoleRequest struct {
    98  	Roles                []*Role          `protobuf:"bytes,1,rep,name=Roles,proto3" json:"Roles,omitempty"`
    99  	OperationType        common.Operation `protobuf:"varint,2,opt,name=OperationType,proto3,enum=moc.Operation" json:"OperationType,omitempty"`
   100  	XXX_NoUnkeyedLiteral struct{}         `json:"-"`
   101  	XXX_unrecognized     []byte           `json:"-"`
   102  	XXX_sizecache        int32            `json:"-"`
   103  }
   104  
   105  func (m *RoleRequest) Reset()         { *m = RoleRequest{} }
   106  func (m *RoleRequest) String() string { return proto.CompactTextString(m) }
   107  func (*RoleRequest) ProtoMessage()    {}
   108  func (*RoleRequest) Descriptor() ([]byte, []int) {
   109  	return fileDescriptor_b3d8f3a104bca746, []int{0}
   110  }
   111  
   112  func (m *RoleRequest) XXX_Unmarshal(b []byte) error {
   113  	return xxx_messageInfo_RoleRequest.Unmarshal(m, b)
   114  }
   115  func (m *RoleRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   116  	return xxx_messageInfo_RoleRequest.Marshal(b, m, deterministic)
   117  }
   118  func (m *RoleRequest) XXX_Merge(src proto.Message) {
   119  	xxx_messageInfo_RoleRequest.Merge(m, src)
   120  }
   121  func (m *RoleRequest) XXX_Size() int {
   122  	return xxx_messageInfo_RoleRequest.Size(m)
   123  }
   124  func (m *RoleRequest) XXX_DiscardUnknown() {
   125  	xxx_messageInfo_RoleRequest.DiscardUnknown(m)
   126  }
   127  
   128  var xxx_messageInfo_RoleRequest proto.InternalMessageInfo
   129  
   130  func (m *RoleRequest) GetRoles() []*Role {
   131  	if m != nil {
   132  		return m.Roles
   133  	}
   134  	return nil
   135  }
   136  
   137  func (m *RoleRequest) GetOperationType() common.Operation {
   138  	if m != nil {
   139  		return m.OperationType
   140  	}
   141  	return common.Operation_GET
   142  }
   143  
   144  type RoleResponse struct {
   145  	Roles                []*Role             `protobuf:"bytes,1,rep,name=Roles,proto3" json:"Roles,omitempty"`
   146  	Result               *wrappers.BoolValue `protobuf:"bytes,2,opt,name=Result,proto3" json:"Result,omitempty"`
   147  	Error                string              `protobuf:"bytes,3,opt,name=Error,proto3" json:"Error,omitempty"`
   148  	XXX_NoUnkeyedLiteral struct{}            `json:"-"`
   149  	XXX_unrecognized     []byte              `json:"-"`
   150  	XXX_sizecache        int32               `json:"-"`
   151  }
   152  
   153  func (m *RoleResponse) Reset()         { *m = RoleResponse{} }
   154  func (m *RoleResponse) String() string { return proto.CompactTextString(m) }
   155  func (*RoleResponse) ProtoMessage()    {}
   156  func (*RoleResponse) Descriptor() ([]byte, []int) {
   157  	return fileDescriptor_b3d8f3a104bca746, []int{1}
   158  }
   159  
   160  func (m *RoleResponse) XXX_Unmarshal(b []byte) error {
   161  	return xxx_messageInfo_RoleResponse.Unmarshal(m, b)
   162  }
   163  func (m *RoleResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   164  	return xxx_messageInfo_RoleResponse.Marshal(b, m, deterministic)
   165  }
   166  func (m *RoleResponse) XXX_Merge(src proto.Message) {
   167  	xxx_messageInfo_RoleResponse.Merge(m, src)
   168  }
   169  func (m *RoleResponse) XXX_Size() int {
   170  	return xxx_messageInfo_RoleResponse.Size(m)
   171  }
   172  func (m *RoleResponse) XXX_DiscardUnknown() {
   173  	xxx_messageInfo_RoleResponse.DiscardUnknown(m)
   174  }
   175  
   176  var xxx_messageInfo_RoleResponse proto.InternalMessageInfo
   177  
   178  func (m *RoleResponse) GetRoles() []*Role {
   179  	if m != nil {
   180  		return m.Roles
   181  	}
   182  	return nil
   183  }
   184  
   185  func (m *RoleResponse) GetResult() *wrappers.BoolValue {
   186  	if m != nil {
   187  		return m.Result
   188  	}
   189  	return nil
   190  }
   191  
   192  func (m *RoleResponse) GetError() string {
   193  	if m != nil {
   194  		return m.Error
   195  	}
   196  	return ""
   197  }
   198  
   199  type Action struct {
   200  	Operation AccessOperation `protobuf:"varint,1,opt,name=operation,proto3,enum=moc.cloudagent.security.AccessOperation" json:"operation,omitempty"` // Deprecated: Do not use.
   201  	// ProviderType the rule works on
   202  	ProviderType common.ProviderType `protobuf:"varint,2,opt,name=providerType,proto3,enum=moc.ProviderType" json:"providerType,omitempty"`
   203  	// General access permissions
   204  	GeneralOperation GeneralAccessOperation `protobuf:"varint,3,opt,name=generalOperation,proto3,enum=moc.cloudagent.security.GeneralAccessOperation" json:"generalOperation,omitempty"`
   205  	// Provider specific access permissions
   206  	ProviderOperation    common.ProviderAccessOperation `protobuf:"varint,4,opt,name=providerOperation,proto3,enum=moc.ProviderAccessOperation" json:"providerOperation,omitempty"`
   207  	XXX_NoUnkeyedLiteral struct{}                       `json:"-"`
   208  	XXX_unrecognized     []byte                         `json:"-"`
   209  	XXX_sizecache        int32                          `json:"-"`
   210  }
   211  
   212  func (m *Action) Reset()         { *m = Action{} }
   213  func (m *Action) String() string { return proto.CompactTextString(m) }
   214  func (*Action) ProtoMessage()    {}
   215  func (*Action) Descriptor() ([]byte, []int) {
   216  	return fileDescriptor_b3d8f3a104bca746, []int{2}
   217  }
   218  
   219  func (m *Action) XXX_Unmarshal(b []byte) error {
   220  	return xxx_messageInfo_Action.Unmarshal(m, b)
   221  }
   222  func (m *Action) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   223  	return xxx_messageInfo_Action.Marshal(b, m, deterministic)
   224  }
   225  func (m *Action) XXX_Merge(src proto.Message) {
   226  	xxx_messageInfo_Action.Merge(m, src)
   227  }
   228  func (m *Action) XXX_Size() int {
   229  	return xxx_messageInfo_Action.Size(m)
   230  }
   231  func (m *Action) XXX_DiscardUnknown() {
   232  	xxx_messageInfo_Action.DiscardUnknown(m)
   233  }
   234  
   235  var xxx_messageInfo_Action proto.InternalMessageInfo
   236  
   237  // Deprecated: Do not use.
   238  func (m *Action) GetOperation() AccessOperation {
   239  	if m != nil {
   240  		return m.Operation
   241  	}
   242  	return AccessOperation_OBSOLETE_Read
   243  }
   244  
   245  func (m *Action) GetProviderType() common.ProviderType {
   246  	if m != nil {
   247  		return m.ProviderType
   248  	}
   249  	return common.ProviderType_AnyProvider
   250  }
   251  
   252  func (m *Action) GetGeneralOperation() GeneralAccessOperation {
   253  	if m != nil {
   254  		return m.GeneralOperation
   255  	}
   256  	return GeneralAccessOperation_Unspecified
   257  }
   258  
   259  func (m *Action) GetProviderOperation() common.ProviderAccessOperation {
   260  	if m != nil {
   261  		return m.ProviderOperation
   262  	}
   263  	return common.ProviderAccessOperation_Unspecified
   264  }
   265  
   266  type Permission struct {
   267  	Actions              []*Action `protobuf:"bytes,1,rep,name=actions,proto3" json:"actions,omitempty"`
   268  	NotActions           []*Action `protobuf:"bytes,2,rep,name=notActions,proto3" json:"notActions,omitempty"`
   269  	XXX_NoUnkeyedLiteral struct{}  `json:"-"`
   270  	XXX_unrecognized     []byte    `json:"-"`
   271  	XXX_sizecache        int32     `json:"-"`
   272  }
   273  
   274  func (m *Permission) Reset()         { *m = Permission{} }
   275  func (m *Permission) String() string { return proto.CompactTextString(m) }
   276  func (*Permission) ProtoMessage()    {}
   277  func (*Permission) Descriptor() ([]byte, []int) {
   278  	return fileDescriptor_b3d8f3a104bca746, []int{3}
   279  }
   280  
   281  func (m *Permission) XXX_Unmarshal(b []byte) error {
   282  	return xxx_messageInfo_Permission.Unmarshal(m, b)
   283  }
   284  func (m *Permission) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   285  	return xxx_messageInfo_Permission.Marshal(b, m, deterministic)
   286  }
   287  func (m *Permission) XXX_Merge(src proto.Message) {
   288  	xxx_messageInfo_Permission.Merge(m, src)
   289  }
   290  func (m *Permission) XXX_Size() int {
   291  	return xxx_messageInfo_Permission.Size(m)
   292  }
   293  func (m *Permission) XXX_DiscardUnknown() {
   294  	xxx_messageInfo_Permission.DiscardUnknown(m)
   295  }
   296  
   297  var xxx_messageInfo_Permission proto.InternalMessageInfo
   298  
   299  func (m *Permission) GetActions() []*Action {
   300  	if m != nil {
   301  		return m.Actions
   302  	}
   303  	return nil
   304  }
   305  
   306  func (m *Permission) GetNotActions() []*Action {
   307  	if m != nil {
   308  		return m.NotActions
   309  	}
   310  	return nil
   311  }
   312  
   313  type Role struct {
   314  	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
   315  	Id   string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"`
   316  	// The scopes to which this role can be applied
   317  	AssignableScopes     []*common.Scope `protobuf:"bytes,3,rep,name=assignableScopes,proto3" json:"assignableScopes,omitempty"`
   318  	Permissions          []*Permission   `protobuf:"bytes,4,rep,name=permissions,proto3" json:"permissions,omitempty"`
   319  	Status               *common.Status  `protobuf:"bytes,6,opt,name=status,proto3" json:"status,omitempty"`
   320  	Tags                 *common.Tags    `protobuf:"bytes,7,opt,name=tags,proto3" json:"tags,omitempty"`
   321  	XXX_NoUnkeyedLiteral struct{}        `json:"-"`
   322  	XXX_unrecognized     []byte          `json:"-"`
   323  	XXX_sizecache        int32           `json:"-"`
   324  }
   325  
   326  func (m *Role) Reset()         { *m = Role{} }
   327  func (m *Role) String() string { return proto.CompactTextString(m) }
   328  func (*Role) ProtoMessage()    {}
   329  func (*Role) Descriptor() ([]byte, []int) {
   330  	return fileDescriptor_b3d8f3a104bca746, []int{4}
   331  }
   332  
   333  func (m *Role) XXX_Unmarshal(b []byte) error {
   334  	return xxx_messageInfo_Role.Unmarshal(m, b)
   335  }
   336  func (m *Role) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   337  	return xxx_messageInfo_Role.Marshal(b, m, deterministic)
   338  }
   339  func (m *Role) XXX_Merge(src proto.Message) {
   340  	xxx_messageInfo_Role.Merge(m, src)
   341  }
   342  func (m *Role) XXX_Size() int {
   343  	return xxx_messageInfo_Role.Size(m)
   344  }
   345  func (m *Role) XXX_DiscardUnknown() {
   346  	xxx_messageInfo_Role.DiscardUnknown(m)
   347  }
   348  
   349  var xxx_messageInfo_Role proto.InternalMessageInfo
   350  
   351  func (m *Role) GetName() string {
   352  	if m != nil {
   353  		return m.Name
   354  	}
   355  	return ""
   356  }
   357  
   358  func (m *Role) GetId() string {
   359  	if m != nil {
   360  		return m.Id
   361  	}
   362  	return ""
   363  }
   364  
   365  func (m *Role) GetAssignableScopes() []*common.Scope {
   366  	if m != nil {
   367  		return m.AssignableScopes
   368  	}
   369  	return nil
   370  }
   371  
   372  func (m *Role) GetPermissions() []*Permission {
   373  	if m != nil {
   374  		return m.Permissions
   375  	}
   376  	return nil
   377  }
   378  
   379  func (m *Role) GetStatus() *common.Status {
   380  	if m != nil {
   381  		return m.Status
   382  	}
   383  	return nil
   384  }
   385  
   386  func (m *Role) GetTags() *common.Tags {
   387  	if m != nil {
   388  		return m.Tags
   389  	}
   390  	return nil
   391  }
   392  
   393  func init() {
   394  	proto.RegisterEnum("moc.cloudagent.security.GeneralAccessOperation", GeneralAccessOperation_name, GeneralAccessOperation_value)
   395  	proto.RegisterEnum("moc.cloudagent.security.AccessOperation", AccessOperation_name, AccessOperation_value)
   396  	proto.RegisterType((*RoleRequest)(nil), "moc.cloudagent.security.RoleRequest")
   397  	proto.RegisterType((*RoleResponse)(nil), "moc.cloudagent.security.RoleResponse")
   398  	proto.RegisterType((*Action)(nil), "moc.cloudagent.security.Action")
   399  	proto.RegisterType((*Permission)(nil), "moc.cloudagent.security.Permission")
   400  	proto.RegisterType((*Role)(nil), "moc.cloudagent.security.Role")
   401  }
   402  
   403  func init() { proto.RegisterFile("moc_cloudagent_role.proto", fileDescriptor_b3d8f3a104bca746) }
   404  
   405  var fileDescriptor_b3d8f3a104bca746 = []byte{
   406  	// 675 bytes of a gzipped FileDescriptorProto
   407  	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x54, 0xdf, 0x4e, 0xd4, 0x4c,
   408  	0x14, 0xa7, 0xdd, 0x3f, 0xd0, 0xb3, 0xb0, 0x94, 0x09, 0x1f, 0x94, 0xcd, 0xc7, 0xf7, 0x91, 0x45,
   409  	0x93, 0x0d, 0x17, 0xad, 0x29, 0x6a, 0xe2, 0x95, 0xd9, 0x8d, 0x1b, 0x23, 0x31, 0x81, 0x0c, 0x28,
   410  	0x89, 0x5e, 0x90, 0x6e, 0x7b, 0xa8, 0x8d, 0x6d, 0xa7, 0xce, 0x4c, 0x51, 0xde, 0xc0, 0x1b, 0xdf,
   411  	0xc6, 0xd7, 0xf2, 0x1d, 0x4c, 0xa7, 0xdb, 0xee, 0x02, 0x2e, 0x1a, 0xaf, 0x76, 0x7b, 0xce, 0xef,
   412  	0xdf, 0x9c, 0x33, 0x19, 0xd8, 0x49, 0x98, 0x7f, 0xe1, 0xc7, 0x2c, 0x0f, 0xbc, 0x10, 0x53, 0x79,
   413  	0xc1, 0x59, 0x8c, 0x76, 0xc6, 0x99, 0x64, 0x64, 0x3b, 0x61, 0xbe, 0x3d, 0x6b, 0xd9, 0x02, 0xfd,
   414  	0x9c, 0x47, 0xf2, 0xba, 0xf7, 0x5f, 0xc8, 0x58, 0x18, 0xa3, 0xa3, 0x60, 0x93, 0xfc, 0xd2, 0xf9,
   415  	0xcc, 0xbd, 0x2c, 0x43, 0x2e, 0x4a, 0x62, 0x6f, 0x5b, 0x69, 0xb2, 0x24, 0x61, 0xe9, 0xf4, 0x67,
   416  	0xda, 0xd8, 0x99, 0x6b, 0x54, 0x6a, 0x65, 0xab, 0xff, 0x05, 0x3a, 0x94, 0xc5, 0x48, 0xf1, 0x53,
   417  	0x8e, 0x42, 0x92, 0x43, 0x68, 0x15, 0x9f, 0xc2, 0xd2, 0xf6, 0x1a, 0x83, 0x8e, 0xbb, 0x6b, 0x2f,
   418  	0xc8, 0x62, 0x2b, 0x52, 0x89, 0x25, 0x8f, 0x61, 0xed, 0x38, 0x43, 0xee, 0xc9, 0x88, 0xa5, 0x67,
   419  	0xd7, 0x19, 0x5a, 0xfa, 0x9e, 0x36, 0xe8, 0xba, 0x5d, 0x45, 0xae, 0x3b, 0xf4, 0x26, 0xa8, 0xff,
   420  	0x4d, 0x83, 0xd5, 0xd2, 0x5a, 0x64, 0x2c, 0x15, 0xf8, 0x77, 0xde, 0x2e, 0xb4, 0x29, 0x8a, 0x3c,
   421  	0x96, 0xca, 0xb4, 0xe3, 0xf6, 0xec, 0x72, 0x48, 0x76, 0x35, 0x24, 0x7b, 0xc4, 0x58, 0xfc, 0xd6,
   422  	0x8b, 0x73, 0xa4, 0x53, 0x24, 0xd9, 0x84, 0xd6, 0x98, 0x73, 0xc6, 0xad, 0xc6, 0x9e, 0x36, 0x30,
   423  	0x68, 0xf9, 0xd1, 0xff, 0xae, 0x43, 0x7b, 0xe8, 0x17, 0xf1, 0xc8, 0x11, 0x18, 0xac, 0xca, 0x6a,
   424  	0x69, 0xea, 0x30, 0x83, 0x85, 0x69, 0x86, 0xbe, 0x8f, 0x42, 0xd4, 0x67, 0x1b, 0xe9, 0x96, 0x46,
   425  	0x67, 0x74, 0xf2, 0x04, 0x56, 0x33, 0xce, 0xae, 0xa2, 0x00, 0xf9, 0xdc, 0x6c, 0x36, 0x94, 0xdc,
   426  	0xc9, 0x5c, 0x83, 0xde, 0x80, 0x91, 0xf7, 0x60, 0x86, 0x98, 0x22, 0xf7, 0xe2, 0x5a, 0x59, 0xc5,
   427  	0xed, 0xba, 0xce, 0xc2, 0x24, 0x2f, 0x4b, 0xc2, 0xad, 0x40, 0xf4, 0x8e, 0x10, 0x39, 0x82, 0x8d,
   428  	0xca, 0x6c, 0xa6, 0xde, 0x54, 0xea, 0xff, 0xde, 0x08, 0x76, 0x5b, 0xea, 0x2e, 0xad, 0xff, 0x55,
   429  	0x03, 0x38, 0x41, 0x9e, 0x44, 0x42, 0x14, 0xd2, 0xcf, 0x60, 0xd9, 0x53, 0x43, 0xac, 0xd6, 0xf8,
   430  	0xff, 0x3d, 0x83, 0x53, 0x9a, 0x15, 0x9e, 0x3c, 0x07, 0x48, 0x99, 0x1c, 0x4e, 0xd9, 0xfa, 0x9f,
   431  	0xb1, 0xe7, 0x28, 0xfd, 0x1f, 0x1a, 0x34, 0x8b, 0x5b, 0x41, 0x08, 0x34, 0x53, 0x2f, 0x41, 0xb5,
   432  	0x3a, 0x83, 0xaa, 0xff, 0xa4, 0x0b, 0x7a, 0x14, 0xa8, 0xe9, 0x1b, 0x54, 0x8f, 0x02, 0xf2, 0x14,
   433  	0x4c, 0x4f, 0x88, 0x28, 0x4c, 0xbd, 0x49, 0x8c, 0xa7, 0x3e, 0xcb, 0x50, 0x58, 0x0d, 0xe5, 0x09,
   434  	0xca, 0x53, 0x95, 0xe8, 0x1d, 0x0c, 0x19, 0x43, 0x27, 0xab, 0x8f, 0x2b, 0xac, 0xa6, 0xa2, 0xec,
   435  	0x2f, 0x8c, 0x39, 0x1b, 0x0d, 0x9d, 0xe7, 0x91, 0x7d, 0x68, 0x0b, 0xe9, 0xc9, 0x5c, 0x58, 0x6d,
   436  	0x75, 0x6f, 0x3b, 0xa5, 0xa9, 0x2a, 0xd1, 0x69, 0x8b, 0xec, 0x42, 0x53, 0x7a, 0xa1, 0xb0, 0x96,
   437  	0x15, 0xc4, 0x50, 0x90, 0x33, 0x2f, 0x14, 0x54, 0x95, 0x0f, 0x42, 0xd8, 0xfa, 0xf5, 0xca, 0xc9,
   438  	0x3a, 0x74, 0xde, 0xa4, 0x22, 0x43, 0x3f, 0xba, 0x8c, 0x30, 0x30, 0x97, 0xc8, 0x0a, 0x34, 0x29,
   439  	0x7a, 0x81, 0xa9, 0x11, 0x03, 0x5a, 0xe7, 0x3c, 0x92, 0x68, 0xea, 0x04, 0xa0, 0xfd, 0x02, 0x63,
   440  	0x94, 0x68, 0x36, 0xc8, 0x32, 0x34, 0x86, 0x71, 0x6c, 0x36, 0x09, 0x81, 0xee, 0x6c, 0xfb, 0x85,
   441  	0x98, 0xd9, 0x3a, 0x60, 0xb0, 0x7e, 0xdb, 0xe1, 0x1f, 0x58, 0x3b, 0x1e, 0x9d, 0x1e, 0xbf, 0x1e,
   442  	0x9f, 0x8d, 0x2f, 0x94, 0xf2, 0x52, 0x4f, 0x5f, 0xd1, 0xc8, 0x16, 0x74, 0xeb, 0x72, 0x69, 0xa3,
   443  	0xa9, 0xfa, 0x36, 0xac, 0xd7, 0xf5, 0xa9, 0xa7, 0xae, 0x1a, 0x9b, 0xb0, 0x5a, 0x37, 0x8a, 0x00,
   444  	0x8d, 0xa2, 0xea, 0x06, 0x60, 0x14, 0x8b, 0x1c, 0x16, 0xb3, 0x24, 0xe7, 0xd0, 0x7e, 0x95, 0x5e,
   445  	0xb1, 0x8f, 0x48, 0x1e, 0xdc, 0xff, 0x24, 0x94, 0x6f, 0x58, 0xef, 0xe1, 0x6f, 0x50, 0xe5, 0x73,
   446  	0xd3, 0x5f, 0x1a, 0xb9, 0xef, 0x1e, 0x85, 0x91, 0xfc, 0x90, 0x4f, 0x6c, 0x9f, 0x25, 0x4e, 0x12,
   447  	0xf9, 0x9c, 0x09, 0x76, 0x29, 0x9d, 0x84, 0xf9, 0x0e, 0xcf, 0x7c, 0x67, 0x26, 0xe1, 0x54, 0x12,
   448  	0x93, 0xb6, 0x7a, 0x57, 0x0e, 0x7f, 0x06, 0x00, 0x00, 0xff, 0xff, 0x2c, 0x15, 0x41, 0xc4, 0xc0,
   449  	0x05, 0x00, 0x00,
   450  }
   451  
   452  // Reference imports to suppress errors if they are not otherwise used.
   453  var _ context.Context
   454  var _ grpc.ClientConn
   455  
   456  // This is a compile-time assertion to ensure that this generated file
   457  // is compatible with the grpc package it is being compiled against.
   458  const _ = grpc.SupportPackageIsVersion4
   459  
   460  // RoleAgentClient is the client API for RoleAgent service.
   461  //
   462  // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
   463  type RoleAgentClient interface {
   464  	Invoke(ctx context.Context, in *RoleRequest, opts ...grpc.CallOption) (*RoleResponse, error)
   465  }
   466  
   467  type roleAgentClient struct {
   468  	cc *grpc.ClientConn
   469  }
   470  
   471  func NewRoleAgentClient(cc *grpc.ClientConn) RoleAgentClient {
   472  	return &roleAgentClient{cc}
   473  }
   474  
   475  func (c *roleAgentClient) Invoke(ctx context.Context, in *RoleRequest, opts ...grpc.CallOption) (*RoleResponse, error) {
   476  	out := new(RoleResponse)
   477  	err := c.cc.Invoke(ctx, "/moc.cloudagent.security.RoleAgent/Invoke", in, out, opts...)
   478  	if err != nil {
   479  		return nil, err
   480  	}
   481  	return out, nil
   482  }
   483  
   484  // RoleAgentServer is the server API for RoleAgent service.
   485  type RoleAgentServer interface {
   486  	Invoke(context.Context, *RoleRequest) (*RoleResponse, error)
   487  }
   488  
   489  // UnimplementedRoleAgentServer can be embedded to have forward compatible implementations.
   490  type UnimplementedRoleAgentServer struct {
   491  }
   492  
   493  func (*UnimplementedRoleAgentServer) Invoke(ctx context.Context, req *RoleRequest) (*RoleResponse, error) {
   494  	return nil, status.Errorf(codes.Unimplemented, "method Invoke not implemented")
   495  }
   496  
   497  func RegisterRoleAgentServer(s *grpc.Server, srv RoleAgentServer) {
   498  	s.RegisterService(&_RoleAgent_serviceDesc, srv)
   499  }
   500  
   501  func _RoleAgent_Invoke_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
   502  	in := new(RoleRequest)
   503  	if err := dec(in); err != nil {
   504  		return nil, err
   505  	}
   506  	if interceptor == nil {
   507  		return srv.(RoleAgentServer).Invoke(ctx, in)
   508  	}
   509  	info := &grpc.UnaryServerInfo{
   510  		Server:     srv,
   511  		FullMethod: "/moc.cloudagent.security.RoleAgent/Invoke",
   512  	}
   513  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
   514  		return srv.(RoleAgentServer).Invoke(ctx, req.(*RoleRequest))
   515  	}
   516  	return interceptor(ctx, in, info, handler)
   517  }
   518  
   519  var _RoleAgent_serviceDesc = grpc.ServiceDesc{
   520  	ServiceName: "moc.cloudagent.security.RoleAgent",
   521  	HandlerType: (*RoleAgentServer)(nil),
   522  	Methods: []grpc.MethodDesc{
   523  		{
   524  			MethodName: "Invoke",
   525  			Handler:    _RoleAgent_Invoke_Handler,
   526  		},
   527  	},
   528  	Streams:  []grpc.StreamDesc{},
   529  	Metadata: "moc_cloudagent_role.proto",
   530  }