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

     1  // Code generated by protoc-gen-go. DO NOT EDIT.
     2  // source: moc_cloudagent_key.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 KeyRequest struct {
    30  	Keys                 []*Key           `protobuf:"bytes,1,rep,name=Keys,proto3" json:"Keys,omitempty"`
    31  	OperationType        common.Operation `protobuf:"varint,2,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 *KeyRequest) Reset()         { *m = KeyRequest{} }
    38  func (m *KeyRequest) String() string { return proto.CompactTextString(m) }
    39  func (*KeyRequest) ProtoMessage()    {}
    40  func (*KeyRequest) Descriptor() ([]byte, []int) {
    41  	return fileDescriptor_d1154d4ecd5d6df6, []int{0}
    42  }
    43  
    44  func (m *KeyRequest) XXX_Unmarshal(b []byte) error {
    45  	return xxx_messageInfo_KeyRequest.Unmarshal(m, b)
    46  }
    47  func (m *KeyRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
    48  	return xxx_messageInfo_KeyRequest.Marshal(b, m, deterministic)
    49  }
    50  func (m *KeyRequest) XXX_Merge(src proto.Message) {
    51  	xxx_messageInfo_KeyRequest.Merge(m, src)
    52  }
    53  func (m *KeyRequest) XXX_Size() int {
    54  	return xxx_messageInfo_KeyRequest.Size(m)
    55  }
    56  func (m *KeyRequest) XXX_DiscardUnknown() {
    57  	xxx_messageInfo_KeyRequest.DiscardUnknown(m)
    58  }
    59  
    60  var xxx_messageInfo_KeyRequest proto.InternalMessageInfo
    61  
    62  func (m *KeyRequest) GetKeys() []*Key {
    63  	if m != nil {
    64  		return m.Keys
    65  	}
    66  	return nil
    67  }
    68  
    69  func (m *KeyRequest) GetOperationType() common.Operation {
    70  	if m != nil {
    71  		return m.OperationType
    72  	}
    73  	return common.Operation_GET
    74  }
    75  
    76  type KeyResponse struct {
    77  	Keys                 []*Key              `protobuf:"bytes,1,rep,name=Keys,proto3" json:"Keys,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 *KeyResponse) Reset()         { *m = KeyResponse{} }
    86  func (m *KeyResponse) String() string { return proto.CompactTextString(m) }
    87  func (*KeyResponse) ProtoMessage()    {}
    88  func (*KeyResponse) Descriptor() ([]byte, []int) {
    89  	return fileDescriptor_d1154d4ecd5d6df6, []int{1}
    90  }
    91  
    92  func (m *KeyResponse) XXX_Unmarshal(b []byte) error {
    93  	return xxx_messageInfo_KeyResponse.Unmarshal(m, b)
    94  }
    95  func (m *KeyResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
    96  	return xxx_messageInfo_KeyResponse.Marshal(b, m, deterministic)
    97  }
    98  func (m *KeyResponse) XXX_Merge(src proto.Message) {
    99  	xxx_messageInfo_KeyResponse.Merge(m, src)
   100  }
   101  func (m *KeyResponse) XXX_Size() int {
   102  	return xxx_messageInfo_KeyResponse.Size(m)
   103  }
   104  func (m *KeyResponse) XXX_DiscardUnknown() {
   105  	xxx_messageInfo_KeyResponse.DiscardUnknown(m)
   106  }
   107  
   108  var xxx_messageInfo_KeyResponse proto.InternalMessageInfo
   109  
   110  func (m *KeyResponse) GetKeys() []*Key {
   111  	if m != nil {
   112  		return m.Keys
   113  	}
   114  	return nil
   115  }
   116  
   117  func (m *KeyResponse) GetResult() *wrappers.BoolValue {
   118  	if m != nil {
   119  		return m.Result
   120  	}
   121  	return nil
   122  }
   123  
   124  func (m *KeyResponse) GetError() string {
   125  	if m != nil {
   126  		return m.Error
   127  	}
   128  	return ""
   129  }
   130  
   131  type KeyOperationRequest struct {
   132  	Key                    *Key                           `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
   133  	Data                   string                         `protobuf:"bytes,2,opt,name=Data,proto3" json:"Data,omitempty"`
   134  	Algorithm              common.Algorithm               `protobuf:"varint,3,opt,name=algorithm,proto3,enum=moc.Algorithm" json:"algorithm,omitempty"`
   135  	OBSOLETE_OperationType common.KeyOperation            `protobuf:"varint,4,opt,name=OBSOLETE_OperationType,json=OBSOLETEOperationType,proto3,enum=moc.KeyOperation" json:"OBSOLETE_OperationType,omitempty"` // Deprecated: Do not use.
   136  	SignVerifyParams       *SignVerifyParams              `protobuf:"bytes,5,opt,name=SignVerifyParams,proto3" json:"SignVerifyParams,omitempty"`
   137  	OperationType          common.ProviderAccessOperation `protobuf:"varint,6,opt,name=OperationType,proto3,enum=moc.ProviderAccessOperation" json:"OperationType,omitempty"`
   138  	XXX_NoUnkeyedLiteral   struct{}                       `json:"-"`
   139  	XXX_unrecognized       []byte                         `json:"-"`
   140  	XXX_sizecache          int32                          `json:"-"`
   141  }
   142  
   143  func (m *KeyOperationRequest) Reset()         { *m = KeyOperationRequest{} }
   144  func (m *KeyOperationRequest) String() string { return proto.CompactTextString(m) }
   145  func (*KeyOperationRequest) ProtoMessage()    {}
   146  func (*KeyOperationRequest) Descriptor() ([]byte, []int) {
   147  	return fileDescriptor_d1154d4ecd5d6df6, []int{2}
   148  }
   149  
   150  func (m *KeyOperationRequest) XXX_Unmarshal(b []byte) error {
   151  	return xxx_messageInfo_KeyOperationRequest.Unmarshal(m, b)
   152  }
   153  func (m *KeyOperationRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   154  	return xxx_messageInfo_KeyOperationRequest.Marshal(b, m, deterministic)
   155  }
   156  func (m *KeyOperationRequest) XXX_Merge(src proto.Message) {
   157  	xxx_messageInfo_KeyOperationRequest.Merge(m, src)
   158  }
   159  func (m *KeyOperationRequest) XXX_Size() int {
   160  	return xxx_messageInfo_KeyOperationRequest.Size(m)
   161  }
   162  func (m *KeyOperationRequest) XXX_DiscardUnknown() {
   163  	xxx_messageInfo_KeyOperationRequest.DiscardUnknown(m)
   164  }
   165  
   166  var xxx_messageInfo_KeyOperationRequest proto.InternalMessageInfo
   167  
   168  func (m *KeyOperationRequest) GetKey() *Key {
   169  	if m != nil {
   170  		return m.Key
   171  	}
   172  	return nil
   173  }
   174  
   175  func (m *KeyOperationRequest) GetData() string {
   176  	if m != nil {
   177  		return m.Data
   178  	}
   179  	return ""
   180  }
   181  
   182  func (m *KeyOperationRequest) GetAlgorithm() common.Algorithm {
   183  	if m != nil {
   184  		return m.Algorithm
   185  	}
   186  	return common.Algorithm_A_UNKNOWN
   187  }
   188  
   189  // Deprecated: Do not use.
   190  func (m *KeyOperationRequest) GetOBSOLETE_OperationType() common.KeyOperation {
   191  	if m != nil {
   192  		return m.OBSOLETE_OperationType
   193  	}
   194  	return common.KeyOperation_ENCRYPT
   195  }
   196  
   197  func (m *KeyOperationRequest) GetSignVerifyParams() *SignVerifyParams {
   198  	if m != nil {
   199  		return m.SignVerifyParams
   200  	}
   201  	return nil
   202  }
   203  
   204  func (m *KeyOperationRequest) GetOperationType() common.ProviderAccessOperation {
   205  	if m != nil {
   206  		return m.OperationType
   207  	}
   208  	return common.ProviderAccessOperation_Unspecified
   209  }
   210  
   211  type KeyOperationResponse struct {
   212  	Data                 string              `protobuf:"bytes,1,opt,name=Data,proto3" json:"Data,omitempty"`
   213  	Result               *wrappers.BoolValue `protobuf:"bytes,2,opt,name=Result,proto3" json:"Result,omitempty"`
   214  	Error                string              `protobuf:"bytes,3,opt,name=Error,proto3" json:"Error,omitempty"`
   215  	XXX_NoUnkeyedLiteral struct{}            `json:"-"`
   216  	XXX_unrecognized     []byte              `json:"-"`
   217  	XXX_sizecache        int32               `json:"-"`
   218  }
   219  
   220  func (m *KeyOperationResponse) Reset()         { *m = KeyOperationResponse{} }
   221  func (m *KeyOperationResponse) String() string { return proto.CompactTextString(m) }
   222  func (*KeyOperationResponse) ProtoMessage()    {}
   223  func (*KeyOperationResponse) Descriptor() ([]byte, []int) {
   224  	return fileDescriptor_d1154d4ecd5d6df6, []int{3}
   225  }
   226  
   227  func (m *KeyOperationResponse) XXX_Unmarshal(b []byte) error {
   228  	return xxx_messageInfo_KeyOperationResponse.Unmarshal(m, b)
   229  }
   230  func (m *KeyOperationResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   231  	return xxx_messageInfo_KeyOperationResponse.Marshal(b, m, deterministic)
   232  }
   233  func (m *KeyOperationResponse) XXX_Merge(src proto.Message) {
   234  	xxx_messageInfo_KeyOperationResponse.Merge(m, src)
   235  }
   236  func (m *KeyOperationResponse) XXX_Size() int {
   237  	return xxx_messageInfo_KeyOperationResponse.Size(m)
   238  }
   239  func (m *KeyOperationResponse) XXX_DiscardUnknown() {
   240  	xxx_messageInfo_KeyOperationResponse.DiscardUnknown(m)
   241  }
   242  
   243  var xxx_messageInfo_KeyOperationResponse proto.InternalMessageInfo
   244  
   245  func (m *KeyOperationResponse) GetData() string {
   246  	if m != nil {
   247  		return m.Data
   248  	}
   249  	return ""
   250  }
   251  
   252  func (m *KeyOperationResponse) GetResult() *wrappers.BoolValue {
   253  	if m != nil {
   254  		return m.Result
   255  	}
   256  	return nil
   257  }
   258  
   259  func (m *KeyOperationResponse) GetError() string {
   260  	if m != nil {
   261  		return m.Error
   262  	}
   263  	return ""
   264  }
   265  
   266  type PrivateKeyWrappingInfo struct {
   267  	WrappingKeyName      string                      `protobuf:"bytes,1,opt,name=WrappingKeyName,proto3" json:"WrappingKeyName,omitempty"`
   268  	WrappingKeyPublic    []byte                      `protobuf:"bytes,2,opt,name=WrappingKeyPublic,proto3" json:"WrappingKeyPublic,omitempty"`
   269  	WrappingAlgorithm    common.KeyWrappingAlgorithm `protobuf:"varint,3,opt,name=WrappingAlgorithm,proto3,enum=moc.KeyWrappingAlgorithm" json:"WrappingAlgorithm,omitempty"`
   270  	XXX_NoUnkeyedLiteral struct{}                    `json:"-"`
   271  	XXX_unrecognized     []byte                      `json:"-"`
   272  	XXX_sizecache        int32                       `json:"-"`
   273  }
   274  
   275  func (m *PrivateKeyWrappingInfo) Reset()         { *m = PrivateKeyWrappingInfo{} }
   276  func (m *PrivateKeyWrappingInfo) String() string { return proto.CompactTextString(m) }
   277  func (*PrivateKeyWrappingInfo) ProtoMessage()    {}
   278  func (*PrivateKeyWrappingInfo) Descriptor() ([]byte, []int) {
   279  	return fileDescriptor_d1154d4ecd5d6df6, []int{4}
   280  }
   281  
   282  func (m *PrivateKeyWrappingInfo) XXX_Unmarshal(b []byte) error {
   283  	return xxx_messageInfo_PrivateKeyWrappingInfo.Unmarshal(m, b)
   284  }
   285  func (m *PrivateKeyWrappingInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   286  	return xxx_messageInfo_PrivateKeyWrappingInfo.Marshal(b, m, deterministic)
   287  }
   288  func (m *PrivateKeyWrappingInfo) XXX_Merge(src proto.Message) {
   289  	xxx_messageInfo_PrivateKeyWrappingInfo.Merge(m, src)
   290  }
   291  func (m *PrivateKeyWrappingInfo) XXX_Size() int {
   292  	return xxx_messageInfo_PrivateKeyWrappingInfo.Size(m)
   293  }
   294  func (m *PrivateKeyWrappingInfo) XXX_DiscardUnknown() {
   295  	xxx_messageInfo_PrivateKeyWrappingInfo.DiscardUnknown(m)
   296  }
   297  
   298  var xxx_messageInfo_PrivateKeyWrappingInfo proto.InternalMessageInfo
   299  
   300  func (m *PrivateKeyWrappingInfo) GetWrappingKeyName() string {
   301  	if m != nil {
   302  		return m.WrappingKeyName
   303  	}
   304  	return ""
   305  }
   306  
   307  func (m *PrivateKeyWrappingInfo) GetWrappingKeyPublic() []byte {
   308  	if m != nil {
   309  		return m.WrappingKeyPublic
   310  	}
   311  	return nil
   312  }
   313  
   314  func (m *PrivateKeyWrappingInfo) GetWrappingAlgorithm() common.KeyWrappingAlgorithm {
   315  	if m != nil {
   316  		return m.WrappingAlgorithm
   317  	}
   318  	return common.KeyWrappingAlgorithm_CKM_RSA_AES_KEY_WRAP
   319  }
   320  
   321  type SignVerifyParams struct {
   322  	Algorithm            common.JSONWebKeySignatureAlgorithm `protobuf:"varint,1,opt,name=algorithm,proto3,enum=moc.JSONWebKeySignatureAlgorithm" json:"algorithm,omitempty"`
   323  	Signature            string                              `protobuf:"bytes,2,opt,name=signature,proto3" json:"signature,omitempty"`
   324  	XXX_NoUnkeyedLiteral struct{}                            `json:"-"`
   325  	XXX_unrecognized     []byte                              `json:"-"`
   326  	XXX_sizecache        int32                               `json:"-"`
   327  }
   328  
   329  func (m *SignVerifyParams) Reset()         { *m = SignVerifyParams{} }
   330  func (m *SignVerifyParams) String() string { return proto.CompactTextString(m) }
   331  func (*SignVerifyParams) ProtoMessage()    {}
   332  func (*SignVerifyParams) Descriptor() ([]byte, []int) {
   333  	return fileDescriptor_d1154d4ecd5d6df6, []int{5}
   334  }
   335  
   336  func (m *SignVerifyParams) XXX_Unmarshal(b []byte) error {
   337  	return xxx_messageInfo_SignVerifyParams.Unmarshal(m, b)
   338  }
   339  func (m *SignVerifyParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   340  	return xxx_messageInfo_SignVerifyParams.Marshal(b, m, deterministic)
   341  }
   342  func (m *SignVerifyParams) XXX_Merge(src proto.Message) {
   343  	xxx_messageInfo_SignVerifyParams.Merge(m, src)
   344  }
   345  func (m *SignVerifyParams) XXX_Size() int {
   346  	return xxx_messageInfo_SignVerifyParams.Size(m)
   347  }
   348  func (m *SignVerifyParams) XXX_DiscardUnknown() {
   349  	xxx_messageInfo_SignVerifyParams.DiscardUnknown(m)
   350  }
   351  
   352  var xxx_messageInfo_SignVerifyParams proto.InternalMessageInfo
   353  
   354  func (m *SignVerifyParams) GetAlgorithm() common.JSONWebKeySignatureAlgorithm {
   355  	if m != nil {
   356  		return m.Algorithm
   357  	}
   358  	return common.JSONWebKeySignatureAlgorithm_RSNULL
   359  }
   360  
   361  func (m *SignVerifyParams) GetSignature() string {
   362  	if m != nil {
   363  		return m.Signature
   364  	}
   365  	return ""
   366  }
   367  
   368  type Key struct {
   369  	Name         string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
   370  	Id           string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"`
   371  	LocationName string `protobuf:"bytes,3,opt,name=locationName,proto3" json:"locationName,omitempty"`
   372  	// Public Key Value
   373  	PublicKey                     []byte                     `protobuf:"bytes,4,opt,name=publicKey,proto3" json:"publicKey,omitempty"`
   374  	Type                          common.JsonWebKeyType      `protobuf:"varint,5,opt,name=type,proto3,enum=moc.JsonWebKeyType" json:"type,omitempty"`
   375  	VaultName                     string                     `protobuf:"bytes,6,opt,name=vaultName,proto3" json:"vaultName,omitempty"`
   376  	GroupName                     string                     `protobuf:"bytes,7,opt,name=groupName,proto3" json:"groupName,omitempty"`
   377  	Status                        *common.Status             `protobuf:"bytes,8,opt,name=status,proto3" json:"status,omitempty"`
   378  	Size                          common.KeySize             `protobuf:"varint,9,opt,name=size,proto3,enum=moc.KeySize" json:"size,omitempty"`
   379  	Curve                         common.JsonWebKeyCurveName `protobuf:"varint,10,opt,name=curve,proto3,enum=moc.JsonWebKeyCurveName" json:"curve,omitempty"`
   380  	KeyOps                        []common.KeyOperation      `protobuf:"varint,11,rep,packed,name=keyOps,proto3,enum=moc.KeyOperation" json:"keyOps,omitempty"`
   381  	Tags                          *common.Tags               `protobuf:"bytes,12,opt,name=tags,proto3" json:"tags,omitempty"`
   382  	KeyRotationFrequencyInSeconds int64                      `protobuf:"varint,13,opt,name=keyRotationFrequencyInSeconds,proto3" json:"keyRotationFrequencyInSeconds,omitempty"`
   383  	// Private Key Value and wrapping information
   384  	PrivateKey             []byte                  `protobuf:"bytes,14,opt,name=privateKey,proto3" json:"privateKey,omitempty"`
   385  	PrivateKeyWrappingInfo *PrivateKeyWrappingInfo `protobuf:"bytes,15,opt,name=privateKeyWrappingInfo,proto3" json:"privateKeyWrappingInfo,omitempty"`
   386  	XXX_NoUnkeyedLiteral   struct{}                `json:"-"`
   387  	XXX_unrecognized       []byte                  `json:"-"`
   388  	XXX_sizecache          int32                   `json:"-"`
   389  }
   390  
   391  func (m *Key) Reset()         { *m = Key{} }
   392  func (m *Key) String() string { return proto.CompactTextString(m) }
   393  func (*Key) ProtoMessage()    {}
   394  func (*Key) Descriptor() ([]byte, []int) {
   395  	return fileDescriptor_d1154d4ecd5d6df6, []int{6}
   396  }
   397  
   398  func (m *Key) XXX_Unmarshal(b []byte) error {
   399  	return xxx_messageInfo_Key.Unmarshal(m, b)
   400  }
   401  func (m *Key) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   402  	return xxx_messageInfo_Key.Marshal(b, m, deterministic)
   403  }
   404  func (m *Key) XXX_Merge(src proto.Message) {
   405  	xxx_messageInfo_Key.Merge(m, src)
   406  }
   407  func (m *Key) XXX_Size() int {
   408  	return xxx_messageInfo_Key.Size(m)
   409  }
   410  func (m *Key) XXX_DiscardUnknown() {
   411  	xxx_messageInfo_Key.DiscardUnknown(m)
   412  }
   413  
   414  var xxx_messageInfo_Key proto.InternalMessageInfo
   415  
   416  func (m *Key) GetName() string {
   417  	if m != nil {
   418  		return m.Name
   419  	}
   420  	return ""
   421  }
   422  
   423  func (m *Key) GetId() string {
   424  	if m != nil {
   425  		return m.Id
   426  	}
   427  	return ""
   428  }
   429  
   430  func (m *Key) GetLocationName() string {
   431  	if m != nil {
   432  		return m.LocationName
   433  	}
   434  	return ""
   435  }
   436  
   437  func (m *Key) GetPublicKey() []byte {
   438  	if m != nil {
   439  		return m.PublicKey
   440  	}
   441  	return nil
   442  }
   443  
   444  func (m *Key) GetType() common.JsonWebKeyType {
   445  	if m != nil {
   446  		return m.Type
   447  	}
   448  	return common.JsonWebKeyType_EC
   449  }
   450  
   451  func (m *Key) GetVaultName() string {
   452  	if m != nil {
   453  		return m.VaultName
   454  	}
   455  	return ""
   456  }
   457  
   458  func (m *Key) GetGroupName() string {
   459  	if m != nil {
   460  		return m.GroupName
   461  	}
   462  	return ""
   463  }
   464  
   465  func (m *Key) GetStatus() *common.Status {
   466  	if m != nil {
   467  		return m.Status
   468  	}
   469  	return nil
   470  }
   471  
   472  func (m *Key) GetSize() common.KeySize {
   473  	if m != nil {
   474  		return m.Size
   475  	}
   476  	return common.KeySize_K_UNKNOWN
   477  }
   478  
   479  func (m *Key) GetCurve() common.JsonWebKeyCurveName {
   480  	if m != nil {
   481  		return m.Curve
   482  	}
   483  	return common.JsonWebKeyCurveName_P_256
   484  }
   485  
   486  func (m *Key) GetKeyOps() []common.KeyOperation {
   487  	if m != nil {
   488  		return m.KeyOps
   489  	}
   490  	return nil
   491  }
   492  
   493  func (m *Key) GetTags() *common.Tags {
   494  	if m != nil {
   495  		return m.Tags
   496  	}
   497  	return nil
   498  }
   499  
   500  func (m *Key) GetKeyRotationFrequencyInSeconds() int64 {
   501  	if m != nil {
   502  		return m.KeyRotationFrequencyInSeconds
   503  	}
   504  	return 0
   505  }
   506  
   507  func (m *Key) GetPrivateKey() []byte {
   508  	if m != nil {
   509  		return m.PrivateKey
   510  	}
   511  	return nil
   512  }
   513  
   514  func (m *Key) GetPrivateKeyWrappingInfo() *PrivateKeyWrappingInfo {
   515  	if m != nil {
   516  		return m.PrivateKeyWrappingInfo
   517  	}
   518  	return nil
   519  }
   520  
   521  func init() {
   522  	proto.RegisterType((*KeyRequest)(nil), "moc.cloudagent.security.KeyRequest")
   523  	proto.RegisterType((*KeyResponse)(nil), "moc.cloudagent.security.KeyResponse")
   524  	proto.RegisterType((*KeyOperationRequest)(nil), "moc.cloudagent.security.KeyOperationRequest")
   525  	proto.RegisterType((*KeyOperationResponse)(nil), "moc.cloudagent.security.KeyOperationResponse")
   526  	proto.RegisterType((*PrivateKeyWrappingInfo)(nil), "moc.cloudagent.security.PrivateKeyWrappingInfo")
   527  	proto.RegisterType((*SignVerifyParams)(nil), "moc.cloudagent.security.SignVerifyParams")
   528  	proto.RegisterType((*Key)(nil), "moc.cloudagent.security.Key")
   529  }
   530  
   531  func init() { proto.RegisterFile("moc_cloudagent_key.proto", fileDescriptor_d1154d4ecd5d6df6) }
   532  
   533  var fileDescriptor_d1154d4ecd5d6df6 = []byte{
   534  	// 860 bytes of a gzipped FileDescriptorProto
   535  	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x55, 0xdd, 0x6e, 0xdb, 0x46,
   536  	0x13, 0xfd, 0x28, 0xc9, 0x4a, 0x34, 0x72, 0x9c, 0x2f, 0x9b, 0xd4, 0xd9, 0x08, 0x49, 0xa1, 0x2a,
   537  	0x01, 0xaa, 0x00, 0x29, 0x15, 0xa8, 0xbd, 0x2f, 0xac, 0xc6, 0x2d, 0x5c, 0x06, 0xb1, 0xb1, 0x72,
   538  	0x12, 0xa0, 0x37, 0x06, 0x45, 0x8d, 0x69, 0x42, 0x24, 0x97, 0xdd, 0x5d, 0x2a, 0xa0, 0x9f, 0xa0,
   539  	0x7d, 0xa0, 0x5e, 0xf7, 0x01, 0xfa, 0x2a, 0xbd, 0xee, 0x75, 0xc1, 0xa1, 0x68, 0xea, 0xc7, 0x12,
   540  	0x8a, 0xa2, 0x57, 0x36, 0x67, 0xce, 0x99, 0x39, 0x7b, 0x66, 0x76, 0x05, 0x3c, 0x92, 0xde, 0x85,
   541  	0x17, 0xca, 0x74, 0xea, 0xfa, 0x18, 0x9b, 0x8b, 0x19, 0x66, 0x76, 0xa2, 0xa4, 0x91, 0xec, 0x71,
   542  	0x24, 0x3d, 0xbb, 0xca, 0xd8, 0x1a, 0xbd, 0x54, 0x05, 0x26, 0xeb, 0x7c, 0xee, 0x4b, 0xe9, 0x87,
   543  	0x38, 0x20, 0xd8, 0x24, 0xbd, 0x1c, 0x7c, 0x52, 0x6e, 0x92, 0xa0, 0xd2, 0x05, 0xb1, 0xf3, 0x98,
   544  	0x4a, 0xca, 0x28, 0x92, 0xf1, 0xe2, 0xcf, 0x22, 0xf1, 0x64, 0x29, 0x51, 0x56, 0x2b, 0x52, 0x3d,
   545  	0x03, 0xe0, 0x60, 0x26, 0xf0, 0xe7, 0x14, 0xb5, 0x61, 0xaf, 0xa1, 0xe1, 0x60, 0xa6, 0xb9, 0xd5,
   546  	0xad, 0xf7, 0xdb, 0xc3, 0xa7, 0xf6, 0x16, 0x25, 0x76, 0x4e, 0x21, 0x24, 0xfb, 0x06, 0xee, 0x9d,
   547  	0x26, 0xa8, 0x5c, 0x13, 0xc8, 0xf8, 0x3c, 0x4b, 0x90, 0xd7, 0xba, 0x56, 0xff, 0x60, 0x78, 0x40,
   548  	0xd4, 0x9b, 0x8c, 0x58, 0x05, 0xf5, 0x7e, 0xb5, 0xa0, 0x4d, 0x6d, 0x75, 0x22, 0x63, 0x8d, 0xff,
   549  	0xa2, 0xef, 0x10, 0x9a, 0x02, 0x75, 0x1a, 0x1a, 0x6a, 0xd8, 0x1e, 0x76, 0xec, 0xc2, 0x1c, 0xbb,
   550  	0x34, 0xc7, 0x1e, 0x49, 0x19, 0x7e, 0x70, 0xc3, 0x14, 0xc5, 0x02, 0xc9, 0x1e, 0xc1, 0xde, 0xb1,
   551  	0x52, 0x52, 0xf1, 0x7a, 0xd7, 0xea, 0xb7, 0x44, 0xf1, 0xd1, 0xfb, 0xab, 0x06, 0x0f, 0x1d, 0xcc,
   552  	0x2a, 0xad, 0x0b, 0x2f, 0x6c, 0xa8, 0xcf, 0x30, 0xe3, 0x16, 0x95, 0xdf, 0x2d, 0x29, 0x07, 0x32,
   553  	0x0e, 0x8d, 0x37, 0xae, 0x71, 0x49, 0x4f, 0x6b, 0xd4, 0xf8, 0xe5, 0x37, 0x6e, 0x09, 0x8a, 0xb0,
   554  	0x57, 0xd0, 0x72, 0x43, 0x5f, 0xaa, 0xc0, 0x5c, 0x45, 0xd4, 0xbb, 0xf4, 0xe7, 0xa8, 0x8c, 0x8a,
   555  	0x0a, 0xc0, 0xde, 0xc2, 0xe1, 0xe9, 0x68, 0x7c, 0xfa, 0xf6, 0xf8, 0xfc, 0xf8, 0x62, 0xd5, 0xda,
   556  	0x06, 0x51, 0x1f, 0x10, 0x75, 0x59, 0xf1, 0xa8, 0xc6, 0x2d, 0xf1, 0x59, 0x49, 0x5a, 0xe1, 0xb0,
   557  	0xf7, 0xf0, 0xff, 0x71, 0xe0, 0xc7, 0x1f, 0x50, 0x05, 0x97, 0xd9, 0x99, 0xab, 0xdc, 0x48, 0xf3,
   558  	0x3d, 0x3a, 0xd2, 0xcb, 0xad, 0x47, 0x5a, 0x27, 0x88, 0x8d, 0x12, 0x6c, 0xb4, 0x3e, 0xf6, 0x26,
   559  	0x69, 0x2b, 0x6c, 0x3a, 0x53, 0x72, 0x1e, 0x4c, 0x51, 0x1d, 0x79, 0x1e, 0x6a, 0xbd, 0x75, 0x09,
   560  	0xae, 0xe1, 0xd1, 0xaa, 0xef, 0x8b, 0x65, 0x28, 0x8d, 0xb4, 0x36, 0x8c, 0xfc, 0xef, 0x86, 0xfe,
   561  	0xbb, 0x05, 0x87, 0x67, 0x2a, 0x98, 0xbb, 0x06, 0x1d, 0xcc, 0x3e, 0xe6, 0xf7, 0x28, 0x88, 0xfd,
   562  	0x93, 0xf8, 0x52, 0xb2, 0x3e, 0xdc, 0x2f, 0xbf, 0x1d, 0xcc, 0xde, 0xb9, 0x11, 0x16, 0x4a, 0xc4,
   563  	0x7a, 0x98, 0x0d, 0xe1, 0xc1, 0x52, 0xe8, 0x2c, 0x9d, 0x84, 0x81, 0x47, 0xca, 0xf6, 0x17, 0xaa,
   564  	0x37, 0xd3, 0xec, 0x87, 0x8a, 0x73, 0xb4, 0xb6, 0x13, 0x4f, 0xca, 0xc1, 0x6e, 0x00, 0xc4, 0x26,
   565  	0xa7, 0xf7, 0x69, 0x73, 0xb0, 0xec, 0xdb, 0xe5, 0x45, 0xb3, 0xa8, 0xe8, 0x17, 0x54, 0xf4, 0xc7,
   566  	0xf1, 0xe9, 0xbb, 0x8f, 0x38, 0x71, 0x30, 0xcb, 0x39, 0xae, 0x49, 0x15, 0xde, 0xba, 0x7b, 0x3d,
   567  	0x68, 0xe9, 0x12, 0xb0, 0xb2, 0xc8, 0x55, 0xb8, 0xf7, 0x67, 0x03, 0xea, 0x0e, 0x66, 0x8c, 0x41,
   568  	0x23, 0xae, 0xcc, 0xa1, 0xff, 0xd9, 0x01, 0xd4, 0x82, 0x69, 0x41, 0x14, 0xb5, 0x60, 0xca, 0x7a,
   569  	0xb0, 0x1f, 0x4a, 0x8f, 0xc6, 0x4b, 0x46, 0x16, 0x33, 0x58, 0x89, 0xe5, 0x3d, 0x13, 0xf2, 0xc6,
   570  	0xc1, 0x8c, 0x56, 0xbc, 0x74, 0xaf, 0x0a, 0xb3, 0x2f, 0xa1, 0x61, 0xf2, 0x2d, 0xdb, 0xa3, 0x33,
   571  	0x3d, 0x2c, 0xce, 0xa4, 0x65, 0x5c, 0x9c, 0x29, 0xdf, 0x26, 0x41, 0x00, 0xf6, 0x14, 0x5a, 0x73,
   572  	0x37, 0x0d, 0x0d, 0x75, 0x6b, 0x52, 0xb7, 0x2a, 0x90, 0x67, 0x7d, 0x25, 0xd3, 0x84, 0xb2, 0x77,
   573  	0x8a, 0xec, 0x4d, 0x80, 0x3d, 0x87, 0xa6, 0x36, 0xae, 0x49, 0x35, 0xbf, 0x4b, 0xdb, 0xd5, 0xa6,
   574  	0x36, 0x63, 0x0a, 0x89, 0x45, 0x8a, 0x75, 0xa1, 0xa1, 0x83, 0x6b, 0xe4, 0x2d, 0x52, 0xb2, 0x5f,
   575  	0x8e, 0x6c, 0x1c, 0x5c, 0xa3, 0xa0, 0x0c, 0xb3, 0x61, 0xcf, 0x4b, 0xd5, 0x1c, 0x39, 0x10, 0x84,
   576  	0xaf, 0x89, 0xfd, 0x2e, 0xcf, 0xe5, 0xfd, 0x44, 0x01, 0x63, 0x2f, 0xa1, 0x39, 0xcb, 0xaf, 0x81,
   577  	0xe6, 0xed, 0x6e, 0xfd, 0xd6, 0xfb, 0x2d, 0x16, 0x00, 0xf6, 0x0c, 0x1a, 0xc6, 0xf5, 0x35, 0xdf,
   578  	0x27, 0x7d, 0x2d, 0x02, 0x9e, 0xbb, 0xbe, 0x16, 0x14, 0x66, 0x6f, 0xe0, 0xd9, 0x0c, 0x33, 0x21,
   579  	0x0d, 0xb1, 0xbe, 0x57, 0xf9, 0x43, 0x16, 0x7b, 0xd9, 0x49, 0x3c, 0x46, 0x4f, 0xc6, 0x53, 0xcd,
   580  	0xef, 0x75, 0xad, 0x7e, 0x5d, 0xec, 0x06, 0xb1, 0x17, 0x00, 0xc9, 0xcd, 0xcd, 0xe0, 0x07, 0x4b,
   581  	0x03, 0x59, 0x8a, 0x33, 0x1f, 0x0e, 0x93, 0x5b, 0xef, 0x0f, 0xbf, 0x4f, 0xe2, 0x06, 0x5b, 0x5f,
   582  	0x97, 0xdb, 0xaf, 0x9d, 0xd8, 0x52, 0x6e, 0xf8, 0x87, 0x05, 0x77, 0x1d, 0xcc, 0x8e, 0xf2, 0x22,
   583  	0xec, 0x3d, 0x34, 0x4f, 0xe2, 0xb9, 0x9c, 0x21, 0x7b, 0xbe, 0xf3, 0x41, 0x2e, 0x9e, 0xf0, 0xce,
   584  	0x8b, 0xdd, 0xa0, 0xe2, 0xbd, 0xe9, 0xfd, 0x8f, 0x5d, 0xc1, 0x9d, 0xc2, 0x6c, 0x64, 0xaf, 0x76,
   585  	0x51, 0xd6, 0x7f, 0x23, 0x3a, 0x5f, 0xfd, 0x43, 0x74, 0xd9, 0x69, 0x34, 0xfc, 0xe9, 0xb5, 0x1f,
   586  	0x98, 0xab, 0x74, 0x62, 0x7b, 0x32, 0x1a, 0x44, 0x81, 0xa7, 0xa4, 0x96, 0x97, 0x66, 0x10, 0x49,
   587  	0x6f, 0xa0, 0x12, 0x6f, 0x50, 0x95, 0x1a, 0x94, 0xa5, 0x26, 0x4d, 0x7a, 0xdd, 0xbe, 0xfe, 0x3b,
   588  	0x00, 0x00, 0xff, 0xff, 0xef, 0xb5, 0x88, 0x62, 0x32, 0x08, 0x00, 0x00,
   589  }
   590  
   591  // Reference imports to suppress errors if they are not otherwise used.
   592  var _ context.Context
   593  var _ grpc.ClientConn
   594  
   595  // This is a compile-time assertion to ensure that this generated file
   596  // is compatible with the grpc package it is being compiled against.
   597  const _ = grpc.SupportPackageIsVersion4
   598  
   599  // KeyAgentClient is the client API for KeyAgent service.
   600  //
   601  // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
   602  type KeyAgentClient interface {
   603  	Invoke(ctx context.Context, in *KeyRequest, opts ...grpc.CallOption) (*KeyResponse, error)
   604  	Operate(ctx context.Context, in *KeyOperationRequest, opts ...grpc.CallOption) (*KeyOperationResponse, error)
   605  }
   606  
   607  type keyAgentClient struct {
   608  	cc *grpc.ClientConn
   609  }
   610  
   611  func NewKeyAgentClient(cc *grpc.ClientConn) KeyAgentClient {
   612  	return &keyAgentClient{cc}
   613  }
   614  
   615  func (c *keyAgentClient) Invoke(ctx context.Context, in *KeyRequest, opts ...grpc.CallOption) (*KeyResponse, error) {
   616  	out := new(KeyResponse)
   617  	err := c.cc.Invoke(ctx, "/moc.cloudagent.security.KeyAgent/Invoke", in, out, opts...)
   618  	if err != nil {
   619  		return nil, err
   620  	}
   621  	return out, nil
   622  }
   623  
   624  func (c *keyAgentClient) Operate(ctx context.Context, in *KeyOperationRequest, opts ...grpc.CallOption) (*KeyOperationResponse, error) {
   625  	out := new(KeyOperationResponse)
   626  	err := c.cc.Invoke(ctx, "/moc.cloudagent.security.KeyAgent/Operate", in, out, opts...)
   627  	if err != nil {
   628  		return nil, err
   629  	}
   630  	return out, nil
   631  }
   632  
   633  // KeyAgentServer is the server API for KeyAgent service.
   634  type KeyAgentServer interface {
   635  	Invoke(context.Context, *KeyRequest) (*KeyResponse, error)
   636  	Operate(context.Context, *KeyOperationRequest) (*KeyOperationResponse, error)
   637  }
   638  
   639  // UnimplementedKeyAgentServer can be embedded to have forward compatible implementations.
   640  type UnimplementedKeyAgentServer struct {
   641  }
   642  
   643  func (*UnimplementedKeyAgentServer) Invoke(ctx context.Context, req *KeyRequest) (*KeyResponse, error) {
   644  	return nil, status.Errorf(codes.Unimplemented, "method Invoke not implemented")
   645  }
   646  func (*UnimplementedKeyAgentServer) Operate(ctx context.Context, req *KeyOperationRequest) (*KeyOperationResponse, error) {
   647  	return nil, status.Errorf(codes.Unimplemented, "method Operate not implemented")
   648  }
   649  
   650  func RegisterKeyAgentServer(s *grpc.Server, srv KeyAgentServer) {
   651  	s.RegisterService(&_KeyAgent_serviceDesc, srv)
   652  }
   653  
   654  func _KeyAgent_Invoke_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
   655  	in := new(KeyRequest)
   656  	if err := dec(in); err != nil {
   657  		return nil, err
   658  	}
   659  	if interceptor == nil {
   660  		return srv.(KeyAgentServer).Invoke(ctx, in)
   661  	}
   662  	info := &grpc.UnaryServerInfo{
   663  		Server:     srv,
   664  		FullMethod: "/moc.cloudagent.security.KeyAgent/Invoke",
   665  	}
   666  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
   667  		return srv.(KeyAgentServer).Invoke(ctx, req.(*KeyRequest))
   668  	}
   669  	return interceptor(ctx, in, info, handler)
   670  }
   671  
   672  func _KeyAgent_Operate_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
   673  	in := new(KeyOperationRequest)
   674  	if err := dec(in); err != nil {
   675  		return nil, err
   676  	}
   677  	if interceptor == nil {
   678  		return srv.(KeyAgentServer).Operate(ctx, in)
   679  	}
   680  	info := &grpc.UnaryServerInfo{
   681  		Server:     srv,
   682  		FullMethod: "/moc.cloudagent.security.KeyAgent/Operate",
   683  	}
   684  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
   685  		return srv.(KeyAgentServer).Operate(ctx, req.(*KeyOperationRequest))
   686  	}
   687  	return interceptor(ctx, in, info, handler)
   688  }
   689  
   690  var _KeyAgent_serviceDesc = grpc.ServiceDesc{
   691  	ServiceName: "moc.cloudagent.security.KeyAgent",
   692  	HandlerType: (*KeyAgentServer)(nil),
   693  	Methods: []grpc.MethodDesc{
   694  		{
   695  			MethodName: "Invoke",
   696  			Handler:    _KeyAgent_Invoke_Handler,
   697  		},
   698  		{
   699  			MethodName: "Operate",
   700  			Handler:    _KeyAgent_Operate_Handler,
   701  		},
   702  	},
   703  	Streams:  []grpc.StreamDesc{},
   704  	Metadata: "moc_cloudagent_key.proto",
   705  }