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

     1  // Code generated by protoc-gen-go. DO NOT EDIT.
     2  // source: moc_nodeagent_certificate.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 CertificateType int32
    30  
    31  const (
    32  	CertificateType_Client         CertificateType = 0
    33  	CertificateType_Server         CertificateType = 1
    34  	CertificateType_IntermediateCA CertificateType = 2
    35  )
    36  
    37  var CertificateType_name = map[int32]string{
    38  	0: "Client",
    39  	1: "Server",
    40  	2: "IntermediateCA",
    41  }
    42  
    43  var CertificateType_value = map[string]int32{
    44  	"Client":         0,
    45  	"Server":         1,
    46  	"IntermediateCA": 2,
    47  }
    48  
    49  func (x CertificateType) String() string {
    50  	return proto.EnumName(CertificateType_name, int32(x))
    51  }
    52  
    53  func (CertificateType) EnumDescriptor() ([]byte, []int) {
    54  	return fileDescriptor_ae3bff7543638e48, []int{0}
    55  }
    56  
    57  type CertificateRequest struct {
    58  	Certificates         []*Certificate `protobuf:"bytes,1,rep,name=Certificates,proto3" json:"Certificates,omitempty"`
    59  	XXX_NoUnkeyedLiteral struct{}       `json:"-"`
    60  	XXX_unrecognized     []byte         `json:"-"`
    61  	XXX_sizecache        int32          `json:"-"`
    62  }
    63  
    64  func (m *CertificateRequest) Reset()         { *m = CertificateRequest{} }
    65  func (m *CertificateRequest) String() string { return proto.CompactTextString(m) }
    66  func (*CertificateRequest) ProtoMessage()    {}
    67  func (*CertificateRequest) Descriptor() ([]byte, []int) {
    68  	return fileDescriptor_ae3bff7543638e48, []int{0}
    69  }
    70  
    71  func (m *CertificateRequest) XXX_Unmarshal(b []byte) error {
    72  	return xxx_messageInfo_CertificateRequest.Unmarshal(m, b)
    73  }
    74  func (m *CertificateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
    75  	return xxx_messageInfo_CertificateRequest.Marshal(b, m, deterministic)
    76  }
    77  func (m *CertificateRequest) XXX_Merge(src proto.Message) {
    78  	xxx_messageInfo_CertificateRequest.Merge(m, src)
    79  }
    80  func (m *CertificateRequest) XXX_Size() int {
    81  	return xxx_messageInfo_CertificateRequest.Size(m)
    82  }
    83  func (m *CertificateRequest) XXX_DiscardUnknown() {
    84  	xxx_messageInfo_CertificateRequest.DiscardUnknown(m)
    85  }
    86  
    87  var xxx_messageInfo_CertificateRequest proto.InternalMessageInfo
    88  
    89  func (m *CertificateRequest) GetCertificates() []*Certificate {
    90  	if m != nil {
    91  		return m.Certificates
    92  	}
    93  	return nil
    94  }
    95  
    96  type CertificateResponse struct {
    97  	Certificates         []*Certificate      `protobuf:"bytes,1,rep,name=Certificates,proto3" json:"Certificates,omitempty"`
    98  	Result               *wrappers.BoolValue `protobuf:"bytes,2,opt,name=Result,proto3" json:"Result,omitempty"`
    99  	Error                string              `protobuf:"bytes,3,opt,name=Error,proto3" json:"Error,omitempty"`
   100  	XXX_NoUnkeyedLiteral struct{}            `json:"-"`
   101  	XXX_unrecognized     []byte              `json:"-"`
   102  	XXX_sizecache        int32               `json:"-"`
   103  }
   104  
   105  func (m *CertificateResponse) Reset()         { *m = CertificateResponse{} }
   106  func (m *CertificateResponse) String() string { return proto.CompactTextString(m) }
   107  func (*CertificateResponse) ProtoMessage()    {}
   108  func (*CertificateResponse) Descriptor() ([]byte, []int) {
   109  	return fileDescriptor_ae3bff7543638e48, []int{1}
   110  }
   111  
   112  func (m *CertificateResponse) XXX_Unmarshal(b []byte) error {
   113  	return xxx_messageInfo_CertificateResponse.Unmarshal(m, b)
   114  }
   115  func (m *CertificateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   116  	return xxx_messageInfo_CertificateResponse.Marshal(b, m, deterministic)
   117  }
   118  func (m *CertificateResponse) XXX_Merge(src proto.Message) {
   119  	xxx_messageInfo_CertificateResponse.Merge(m, src)
   120  }
   121  func (m *CertificateResponse) XXX_Size() int {
   122  	return xxx_messageInfo_CertificateResponse.Size(m)
   123  }
   124  func (m *CertificateResponse) XXX_DiscardUnknown() {
   125  	xxx_messageInfo_CertificateResponse.DiscardUnknown(m)
   126  }
   127  
   128  var xxx_messageInfo_CertificateResponse proto.InternalMessageInfo
   129  
   130  func (m *CertificateResponse) GetCertificates() []*Certificate {
   131  	if m != nil {
   132  		return m.Certificates
   133  	}
   134  	return nil
   135  }
   136  
   137  func (m *CertificateResponse) GetResult() *wrappers.BoolValue {
   138  	if m != nil {
   139  		return m.Result
   140  	}
   141  	return nil
   142  }
   143  
   144  func (m *CertificateResponse) GetError() string {
   145  	if m != nil {
   146  		return m.Error
   147  	}
   148  	return ""
   149  }
   150  
   151  type Certificate struct {
   152  	Name                 string          `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
   153  	Id                   string          `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"`
   154  	NotBefore            int64           `protobuf:"varint,3,opt,name=notBefore,proto3" json:"notBefore,omitempty"`
   155  	NotAfter             int64           `protobuf:"varint,4,opt,name=notAfter,proto3" json:"notAfter,omitempty"`
   156  	Certificate          string          `protobuf:"bytes,5,opt,name=certificate,proto3" json:"certificate,omitempty"`
   157  	Status               *common.Status  `protobuf:"bytes,6,opt,name=status,proto3" json:"status,omitempty"`
   158  	Type                 CertificateType `protobuf:"varint,7,opt,name=type,proto3,enum=moc.nodeagent.security.CertificateType" json:"type,omitempty"`
   159  	Entity               *common.Entity  `protobuf:"bytes,8,opt,name=entity,proto3" json:"entity,omitempty"`
   160  	Tags                 *common.Tags    `protobuf:"bytes,9,opt,name=tags,proto3" json:"tags,omitempty"`
   161  	XXX_NoUnkeyedLiteral struct{}        `json:"-"`
   162  	XXX_unrecognized     []byte          `json:"-"`
   163  	XXX_sizecache        int32           `json:"-"`
   164  }
   165  
   166  func (m *Certificate) Reset()         { *m = Certificate{} }
   167  func (m *Certificate) String() string { return proto.CompactTextString(m) }
   168  func (*Certificate) ProtoMessage()    {}
   169  func (*Certificate) Descriptor() ([]byte, []int) {
   170  	return fileDescriptor_ae3bff7543638e48, []int{2}
   171  }
   172  
   173  func (m *Certificate) XXX_Unmarshal(b []byte) error {
   174  	return xxx_messageInfo_Certificate.Unmarshal(m, b)
   175  }
   176  func (m *Certificate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   177  	return xxx_messageInfo_Certificate.Marshal(b, m, deterministic)
   178  }
   179  func (m *Certificate) XXX_Merge(src proto.Message) {
   180  	xxx_messageInfo_Certificate.Merge(m, src)
   181  }
   182  func (m *Certificate) XXX_Size() int {
   183  	return xxx_messageInfo_Certificate.Size(m)
   184  }
   185  func (m *Certificate) XXX_DiscardUnknown() {
   186  	xxx_messageInfo_Certificate.DiscardUnknown(m)
   187  }
   188  
   189  var xxx_messageInfo_Certificate proto.InternalMessageInfo
   190  
   191  func (m *Certificate) GetName() string {
   192  	if m != nil {
   193  		return m.Name
   194  	}
   195  	return ""
   196  }
   197  
   198  func (m *Certificate) GetId() string {
   199  	if m != nil {
   200  		return m.Id
   201  	}
   202  	return ""
   203  }
   204  
   205  func (m *Certificate) GetNotBefore() int64 {
   206  	if m != nil {
   207  		return m.NotBefore
   208  	}
   209  	return 0
   210  }
   211  
   212  func (m *Certificate) GetNotAfter() int64 {
   213  	if m != nil {
   214  		return m.NotAfter
   215  	}
   216  	return 0
   217  }
   218  
   219  func (m *Certificate) GetCertificate() string {
   220  	if m != nil {
   221  		return m.Certificate
   222  	}
   223  	return ""
   224  }
   225  
   226  func (m *Certificate) GetStatus() *common.Status {
   227  	if m != nil {
   228  		return m.Status
   229  	}
   230  	return nil
   231  }
   232  
   233  func (m *Certificate) GetType() CertificateType {
   234  	if m != nil {
   235  		return m.Type
   236  	}
   237  	return CertificateType_Client
   238  }
   239  
   240  func (m *Certificate) GetEntity() *common.Entity {
   241  	if m != nil {
   242  		return m.Entity
   243  	}
   244  	return nil
   245  }
   246  
   247  func (m *Certificate) GetTags() *common.Tags {
   248  	if m != nil {
   249  		return m.Tags
   250  	}
   251  	return nil
   252  }
   253  
   254  type CSRRequest struct {
   255  	CSRs                 []*CertificateSigningRequest `protobuf:"bytes,1,rep,name=CSRs,proto3" json:"CSRs,omitempty"`
   256  	XXX_NoUnkeyedLiteral struct{}                     `json:"-"`
   257  	XXX_unrecognized     []byte                       `json:"-"`
   258  	XXX_sizecache        int32                        `json:"-"`
   259  }
   260  
   261  func (m *CSRRequest) Reset()         { *m = CSRRequest{} }
   262  func (m *CSRRequest) String() string { return proto.CompactTextString(m) }
   263  func (*CSRRequest) ProtoMessage()    {}
   264  func (*CSRRequest) Descriptor() ([]byte, []int) {
   265  	return fileDescriptor_ae3bff7543638e48, []int{3}
   266  }
   267  
   268  func (m *CSRRequest) XXX_Unmarshal(b []byte) error {
   269  	return xxx_messageInfo_CSRRequest.Unmarshal(m, b)
   270  }
   271  func (m *CSRRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   272  	return xxx_messageInfo_CSRRequest.Marshal(b, m, deterministic)
   273  }
   274  func (m *CSRRequest) XXX_Merge(src proto.Message) {
   275  	xxx_messageInfo_CSRRequest.Merge(m, src)
   276  }
   277  func (m *CSRRequest) XXX_Size() int {
   278  	return xxx_messageInfo_CSRRequest.Size(m)
   279  }
   280  func (m *CSRRequest) XXX_DiscardUnknown() {
   281  	xxx_messageInfo_CSRRequest.DiscardUnknown(m)
   282  }
   283  
   284  var xxx_messageInfo_CSRRequest proto.InternalMessageInfo
   285  
   286  func (m *CSRRequest) GetCSRs() []*CertificateSigningRequest {
   287  	if m != nil {
   288  		return m.CSRs
   289  	}
   290  	return nil
   291  }
   292  
   293  type CertificateSigningRequest struct {
   294  	Name                 string              `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
   295  	Csr                  string              `protobuf:"bytes,2,opt,name=csr,proto3" json:"csr,omitempty"`
   296  	OldCertificate       string              `protobuf:"bytes,3,opt,name=oldCertificate,proto3" json:"oldCertificate,omitempty"`
   297  	Status               *common.Status      `protobuf:"bytes,4,opt,name=status,proto3" json:"status,omitempty"`
   298  	CaName               string              `protobuf:"bytes,5,opt,name=caName,proto3" json:"caName,omitempty"`
   299  	Validity             int64               `protobuf:"varint,6,opt,name=validity,proto3" json:"validity,omitempty"`
   300  	ServerAuth           *wrappers.BoolValue `protobuf:"bytes,7,opt,name=serverAuth,proto3" json:"serverAuth,omitempty"`
   301  	XXX_NoUnkeyedLiteral struct{}            `json:"-"`
   302  	XXX_unrecognized     []byte              `json:"-"`
   303  	XXX_sizecache        int32               `json:"-"`
   304  }
   305  
   306  func (m *CertificateSigningRequest) Reset()         { *m = CertificateSigningRequest{} }
   307  func (m *CertificateSigningRequest) String() string { return proto.CompactTextString(m) }
   308  func (*CertificateSigningRequest) ProtoMessage()    {}
   309  func (*CertificateSigningRequest) Descriptor() ([]byte, []int) {
   310  	return fileDescriptor_ae3bff7543638e48, []int{4}
   311  }
   312  
   313  func (m *CertificateSigningRequest) XXX_Unmarshal(b []byte) error {
   314  	return xxx_messageInfo_CertificateSigningRequest.Unmarshal(m, b)
   315  }
   316  func (m *CertificateSigningRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   317  	return xxx_messageInfo_CertificateSigningRequest.Marshal(b, m, deterministic)
   318  }
   319  func (m *CertificateSigningRequest) XXX_Merge(src proto.Message) {
   320  	xxx_messageInfo_CertificateSigningRequest.Merge(m, src)
   321  }
   322  func (m *CertificateSigningRequest) XXX_Size() int {
   323  	return xxx_messageInfo_CertificateSigningRequest.Size(m)
   324  }
   325  func (m *CertificateSigningRequest) XXX_DiscardUnknown() {
   326  	xxx_messageInfo_CertificateSigningRequest.DiscardUnknown(m)
   327  }
   328  
   329  var xxx_messageInfo_CertificateSigningRequest proto.InternalMessageInfo
   330  
   331  func (m *CertificateSigningRequest) GetName() string {
   332  	if m != nil {
   333  		return m.Name
   334  	}
   335  	return ""
   336  }
   337  
   338  func (m *CertificateSigningRequest) GetCsr() string {
   339  	if m != nil {
   340  		return m.Csr
   341  	}
   342  	return ""
   343  }
   344  
   345  func (m *CertificateSigningRequest) GetOldCertificate() string {
   346  	if m != nil {
   347  		return m.OldCertificate
   348  	}
   349  	return ""
   350  }
   351  
   352  func (m *CertificateSigningRequest) GetStatus() *common.Status {
   353  	if m != nil {
   354  		return m.Status
   355  	}
   356  	return nil
   357  }
   358  
   359  func (m *CertificateSigningRequest) GetCaName() string {
   360  	if m != nil {
   361  		return m.CaName
   362  	}
   363  	return ""
   364  }
   365  
   366  func (m *CertificateSigningRequest) GetValidity() int64 {
   367  	if m != nil {
   368  		return m.Validity
   369  	}
   370  	return 0
   371  }
   372  
   373  func (m *CertificateSigningRequest) GetServerAuth() *wrappers.BoolValue {
   374  	if m != nil {
   375  		return m.ServerAuth
   376  	}
   377  	return nil
   378  }
   379  
   380  func init() {
   381  	proto.RegisterEnum("moc.nodeagent.security.CertificateType", CertificateType_name, CertificateType_value)
   382  	proto.RegisterType((*CertificateRequest)(nil), "moc.nodeagent.security.CertificateRequest")
   383  	proto.RegisterType((*CertificateResponse)(nil), "moc.nodeagent.security.CertificateResponse")
   384  	proto.RegisterType((*Certificate)(nil), "moc.nodeagent.security.Certificate")
   385  	proto.RegisterType((*CSRRequest)(nil), "moc.nodeagent.security.CSRRequest")
   386  	proto.RegisterType((*CertificateSigningRequest)(nil), "moc.nodeagent.security.CertificateSigningRequest")
   387  }
   388  
   389  func init() { proto.RegisterFile("moc_nodeagent_certificate.proto", fileDescriptor_ae3bff7543638e48) }
   390  
   391  var fileDescriptor_ae3bff7543638e48 = []byte{
   392  	// 637 bytes of a gzipped FileDescriptorProto
   393  	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x53, 0xcd, 0x6e, 0xd3, 0x40,
   394  	0x10, 0xae, 0x13, 0xd7, 0x34, 0x13, 0x14, 0xa2, 0x05, 0x15, 0x13, 0xf1, 0x13, 0xb9, 0x12, 0x44,
   395  	0x05, 0xd9, 0x6a, 0xb8, 0x81, 0x38, 0x24, 0xa1, 0xaa, 0xb8, 0x80, 0xb4, 0x29, 0x48, 0x54, 0x42,
   396  	0xc5, 0xb5, 0x27, 0xae, 0x85, 0xbd, 0x6b, 0x76, 0xd7, 0xad, 0xf2, 0x06, 0x88, 0x27, 0xe1, 0x05,
   397  	0x38, 0xf0, 0x70, 0x48, 0xc8, 0x6b, 0x27, 0x75, 0xab, 0x16, 0x05, 0x89, 0x9e, 0xec, 0x99, 0xf9,
   398  	0xe6, 0x9b, 0xdd, 0xef, 0x9b, 0x85, 0x47, 0x29, 0x0f, 0x0e, 0x19, 0x0f, 0xd1, 0x8f, 0x90, 0xa9,
   399  	0xc3, 0x00, 0x85, 0x8a, 0x67, 0x71, 0xe0, 0x2b, 0x74, 0x33, 0xc1, 0x15, 0x27, 0x9b, 0x29, 0x0f,
   400  	0xdc, 0x25, 0xc0, 0x95, 0x18, 0xe4, 0x22, 0x56, 0xf3, 0xde, 0xc3, 0x88, 0xf3, 0x28, 0x41, 0x4f,
   401  	0xa3, 0x8e, 0xf2, 0x99, 0x77, 0x2a, 0xfc, 0x2c, 0x43, 0x21, 0xcb, 0xbe, 0xde, 0xdd, 0x82, 0x38,
   402  	0xe0, 0x69, 0xca, 0x59, 0xf5, 0x29, 0x0b, 0xce, 0x27, 0x20, 0x93, 0xb3, 0x29, 0x14, 0xbf, 0xe6,
   403  	0x28, 0x15, 0xd9, 0x83, 0x9b, 0xb5, 0xac, 0xb4, 0x8d, 0x7e, 0x73, 0xd0, 0x1e, 0x6e, 0xb9, 0x97,
   404  	0x4f, 0x77, 0xeb, 0x0c, 0xe7, 0x1a, 0x9d, 0x1f, 0x06, 0xdc, 0x3e, 0xc7, 0x2f, 0x33, 0xce, 0x24,
   405  	0xfe, 0xb7, 0x01, 0x64, 0x08, 0x16, 0x45, 0x99, 0x27, 0xca, 0x6e, 0xf4, 0x8d, 0x41, 0x7b, 0xd8,
   406  	0x73, 0x4b, 0x25, 0xdc, 0x85, 0x12, 0xee, 0x98, 0xf3, 0xe4, 0x83, 0x9f, 0xe4, 0x48, 0x2b, 0x24,
   407  	0xb9, 0x03, 0xeb, 0xbb, 0x42, 0x70, 0x61, 0x37, 0xfb, 0xc6, 0xa0, 0x45, 0xcb, 0xc0, 0xf9, 0xd5,
   408  	0x80, 0x76, 0x8d, 0x9a, 0x10, 0x30, 0x99, 0x9f, 0xa2, 0x6d, 0x68, 0x90, 0xfe, 0x27, 0x1d, 0x68,
   409  	0xc4, 0xa1, 0x9e, 0xd4, 0xa2, 0x8d, 0x38, 0x24, 0xf7, 0xa1, 0xc5, 0xb8, 0x1a, 0xe3, 0x8c, 0x0b,
   410  	0xd4, 0x6c, 0x4d, 0x7a, 0x96, 0x20, 0x3d, 0xd8, 0x60, 0x5c, 0x8d, 0x66, 0x0a, 0x85, 0x6d, 0xea,
   411  	0xe2, 0x32, 0x26, 0x8f, 0xa1, 0x5d, 0x73, 0xd7, 0x5e, 0x2f, 0x28, 0xc7, 0xe6, 0xb7, 0x9f, 0xb6,
   412  	0x41, 0xeb, 0x05, 0xb2, 0x05, 0x96, 0x54, 0xbe, 0xca, 0xa5, 0x6d, 0xe9, 0xfb, 0xb5, 0xb5, 0x44,
   413  	0x53, 0x9d, 0xa2, 0x55, 0x89, 0xbc, 0x04, 0x53, 0xcd, 0x33, 0xb4, 0x6f, 0xf4, 0x8d, 0x41, 0x67,
   414  	0xf8, 0x64, 0x05, 0x15, 0xf7, 0xe7, 0x19, 0x52, 0xdd, 0x54, 0x4c, 0x40, 0xa6, 0x62, 0x35, 0xb7,
   415  	0x37, 0x6a, 0x13, 0x76, 0x75, 0x8a, 0x56, 0x25, 0xf2, 0x00, 0x4c, 0xe5, 0x47, 0xd2, 0x6e, 0x69,
   416  	0x48, 0x4b, 0x43, 0xf6, 0xfd, 0x48, 0x52, 0x9d, 0x76, 0xa6, 0x00, 0x93, 0x29, 0x5d, 0x6c, 0xcf,
   417  	0x2e, 0x98, 0x93, 0x29, 0x5d, 0x98, 0xba, 0xb3, 0xc2, 0x71, 0xa6, 0x71, 0xc4, 0x62, 0x16, 0x55,
   418  	0x04, 0x54, 0xb7, 0x3b, 0xdf, 0x1b, 0x70, 0xef, 0x4a, 0xcc, 0xa5, 0xf6, 0x6c, 0x42, 0x33, 0x90,
   419  	0xa2, 0xf4, 0xa7, 0x12, 0xb3, 0x48, 0x90, 0x67, 0xd0, 0xe1, 0x49, 0x58, 0xe3, 0x2a, 0x9d, 0xaf,
   420  	0x20, 0x17, 0x6a, 0x35, 0xc9, 0xcd, 0xab, 0x25, 0xdf, 0x04, 0x2b, 0xf0, 0xdf, 0x16, 0x07, 0xd0,
   421  	0xd6, 0xd1, 0x2a, 0x2a, 0x3c, 0x3f, 0xf1, 0x93, 0x38, 0x2c, 0xf4, 0xb4, 0x4a, 0xcf, 0x17, 0x31,
   422  	0x79, 0x01, 0x20, 0x51, 0x9c, 0xa0, 0x18, 0xe5, 0xea, 0x58, 0x9b, 0xf5, 0xf7, 0x7d, 0xad, 0xa1,
   423  	0xb7, 0x5f, 0xc1, 0xad, 0x0b, 0xf6, 0x11, 0x00, 0x6b, 0x92, 0xc4, 0xc8, 0x54, 0x77, 0xad, 0xf8,
   424  	0x9f, 0x6a, 0x70, 0xd7, 0x20, 0x04, 0x3a, 0x6f, 0x98, 0x42, 0x91, 0x62, 0x18, 0xfb, 0x0a, 0x27,
   425  	0xa3, 0x6e, 0x63, 0xf8, 0xbb, 0x09, 0xdd, 0x5a, 0xff, 0xa8, 0x70, 0x82, 0x7c, 0x81, 0xce, 0x44,
   426  	0xa0, 0xaf, 0xf0, 0x9d, 0x78, 0x9f, 0x85, 0xc5, 0xd5, 0xb7, 0x57, 0x79, 0x80, 0xa5, 0x01, 0xbd,
   427  	0xa7, 0x2b, 0x61, 0xcb, 0xf7, 0xee, 0xac, 0x91, 0xcf, 0xd0, 0xdc, 0x43, 0x75, 0x9d, 0x13, 0x02,
   428  	0xb0, 0x5e, 0x63, 0x82, 0xd7, 0x7b, 0x8d, 0x8f, 0x60, 0x16, 0x8b, 0x48, 0x9c, 0x2b, 0xdb, 0x96,
   429  	0xef, 0xe0, 0x5f, 0xa9, 0x0f, 0x60, 0x9d, 0x22, 0xc3, 0xd3, 0x6b, 0xe0, 0x1e, 0xef, 0x1c, 0x78,
   430  	0x51, 0xac, 0x8e, 0xf3, 0x23, 0x37, 0xe0, 0xa9, 0x97, 0xc6, 0x81, 0xe0, 0x92, 0xcf, 0x94, 0x97,
   431  	0xf2, 0xc0, 0x13, 0x59, 0xe0, 0x2d, 0x89, 0xbc, 0x05, 0xd1, 0x91, 0xa5, 0x37, 0xf2, 0xf9, 0x9f,
   432  	0x00, 0x00, 0x00, 0xff, 0xff, 0x5e, 0x98, 0xfc, 0x53, 0x94, 0x06, 0x00, 0x00,
   433  }
   434  
   435  // Reference imports to suppress errors if they are not otherwise used.
   436  var _ context.Context
   437  var _ grpc.ClientConn
   438  
   439  // This is a compile-time assertion to ensure that this generated file
   440  // is compatible with the grpc package it is being compiled against.
   441  const _ = grpc.SupportPackageIsVersion4
   442  
   443  // CertificateAgentClient is the client API for CertificateAgent service.
   444  //
   445  // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
   446  type CertificateAgentClient interface {
   447  	CreateOrUpdate(ctx context.Context, in *CertificateRequest, opts ...grpc.CallOption) (*CertificateResponse, error)
   448  	Get(ctx context.Context, in *CertificateRequest, opts ...grpc.CallOption) (*CertificateResponse, error)
   449  	Delete(ctx context.Context, in *CertificateRequest, opts ...grpc.CallOption) (*CertificateResponse, error)
   450  	Sign(ctx context.Context, in *CSRRequest, opts ...grpc.CallOption) (*CertificateResponse, error)
   451  	Renew(ctx context.Context, in *CSRRequest, opts ...grpc.CallOption) (*CertificateResponse, error)
   452  }
   453  
   454  type certificateAgentClient struct {
   455  	cc *grpc.ClientConn
   456  }
   457  
   458  func NewCertificateAgentClient(cc *grpc.ClientConn) CertificateAgentClient {
   459  	return &certificateAgentClient{cc}
   460  }
   461  
   462  func (c *certificateAgentClient) CreateOrUpdate(ctx context.Context, in *CertificateRequest, opts ...grpc.CallOption) (*CertificateResponse, error) {
   463  	out := new(CertificateResponse)
   464  	err := c.cc.Invoke(ctx, "/moc.nodeagent.security.CertificateAgent/CreateOrUpdate", in, out, opts...)
   465  	if err != nil {
   466  		return nil, err
   467  	}
   468  	return out, nil
   469  }
   470  
   471  func (c *certificateAgentClient) Get(ctx context.Context, in *CertificateRequest, opts ...grpc.CallOption) (*CertificateResponse, error) {
   472  	out := new(CertificateResponse)
   473  	err := c.cc.Invoke(ctx, "/moc.nodeagent.security.CertificateAgent/Get", in, out, opts...)
   474  	if err != nil {
   475  		return nil, err
   476  	}
   477  	return out, nil
   478  }
   479  
   480  func (c *certificateAgentClient) Delete(ctx context.Context, in *CertificateRequest, opts ...grpc.CallOption) (*CertificateResponse, error) {
   481  	out := new(CertificateResponse)
   482  	err := c.cc.Invoke(ctx, "/moc.nodeagent.security.CertificateAgent/Delete", in, out, opts...)
   483  	if err != nil {
   484  		return nil, err
   485  	}
   486  	return out, nil
   487  }
   488  
   489  func (c *certificateAgentClient) Sign(ctx context.Context, in *CSRRequest, opts ...grpc.CallOption) (*CertificateResponse, error) {
   490  	out := new(CertificateResponse)
   491  	err := c.cc.Invoke(ctx, "/moc.nodeagent.security.CertificateAgent/Sign", in, out, opts...)
   492  	if err != nil {
   493  		return nil, err
   494  	}
   495  	return out, nil
   496  }
   497  
   498  func (c *certificateAgentClient) Renew(ctx context.Context, in *CSRRequest, opts ...grpc.CallOption) (*CertificateResponse, error) {
   499  	out := new(CertificateResponse)
   500  	err := c.cc.Invoke(ctx, "/moc.nodeagent.security.CertificateAgent/Renew", in, out, opts...)
   501  	if err != nil {
   502  		return nil, err
   503  	}
   504  	return out, nil
   505  }
   506  
   507  // CertificateAgentServer is the server API for CertificateAgent service.
   508  type CertificateAgentServer interface {
   509  	CreateOrUpdate(context.Context, *CertificateRequest) (*CertificateResponse, error)
   510  	Get(context.Context, *CertificateRequest) (*CertificateResponse, error)
   511  	Delete(context.Context, *CertificateRequest) (*CertificateResponse, error)
   512  	Sign(context.Context, *CSRRequest) (*CertificateResponse, error)
   513  	Renew(context.Context, *CSRRequest) (*CertificateResponse, error)
   514  }
   515  
   516  // UnimplementedCertificateAgentServer can be embedded to have forward compatible implementations.
   517  type UnimplementedCertificateAgentServer struct {
   518  }
   519  
   520  func (*UnimplementedCertificateAgentServer) CreateOrUpdate(ctx context.Context, req *CertificateRequest) (*CertificateResponse, error) {
   521  	return nil, status.Errorf(codes.Unimplemented, "method CreateOrUpdate not implemented")
   522  }
   523  func (*UnimplementedCertificateAgentServer) Get(ctx context.Context, req *CertificateRequest) (*CertificateResponse, error) {
   524  	return nil, status.Errorf(codes.Unimplemented, "method Get not implemented")
   525  }
   526  func (*UnimplementedCertificateAgentServer) Delete(ctx context.Context, req *CertificateRequest) (*CertificateResponse, error) {
   527  	return nil, status.Errorf(codes.Unimplemented, "method Delete not implemented")
   528  }
   529  func (*UnimplementedCertificateAgentServer) Sign(ctx context.Context, req *CSRRequest) (*CertificateResponse, error) {
   530  	return nil, status.Errorf(codes.Unimplemented, "method Sign not implemented")
   531  }
   532  func (*UnimplementedCertificateAgentServer) Renew(ctx context.Context, req *CSRRequest) (*CertificateResponse, error) {
   533  	return nil, status.Errorf(codes.Unimplemented, "method Renew not implemented")
   534  }
   535  
   536  func RegisterCertificateAgentServer(s *grpc.Server, srv CertificateAgentServer) {
   537  	s.RegisterService(&_CertificateAgent_serviceDesc, srv)
   538  }
   539  
   540  func _CertificateAgent_CreateOrUpdate_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
   541  	in := new(CertificateRequest)
   542  	if err := dec(in); err != nil {
   543  		return nil, err
   544  	}
   545  	if interceptor == nil {
   546  		return srv.(CertificateAgentServer).CreateOrUpdate(ctx, in)
   547  	}
   548  	info := &grpc.UnaryServerInfo{
   549  		Server:     srv,
   550  		FullMethod: "/moc.nodeagent.security.CertificateAgent/CreateOrUpdate",
   551  	}
   552  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
   553  		return srv.(CertificateAgentServer).CreateOrUpdate(ctx, req.(*CertificateRequest))
   554  	}
   555  	return interceptor(ctx, in, info, handler)
   556  }
   557  
   558  func _CertificateAgent_Get_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
   559  	in := new(CertificateRequest)
   560  	if err := dec(in); err != nil {
   561  		return nil, err
   562  	}
   563  	if interceptor == nil {
   564  		return srv.(CertificateAgentServer).Get(ctx, in)
   565  	}
   566  	info := &grpc.UnaryServerInfo{
   567  		Server:     srv,
   568  		FullMethod: "/moc.nodeagent.security.CertificateAgent/Get",
   569  	}
   570  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
   571  		return srv.(CertificateAgentServer).Get(ctx, req.(*CertificateRequest))
   572  	}
   573  	return interceptor(ctx, in, info, handler)
   574  }
   575  
   576  func _CertificateAgent_Delete_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
   577  	in := new(CertificateRequest)
   578  	if err := dec(in); err != nil {
   579  		return nil, err
   580  	}
   581  	if interceptor == nil {
   582  		return srv.(CertificateAgentServer).Delete(ctx, in)
   583  	}
   584  	info := &grpc.UnaryServerInfo{
   585  		Server:     srv,
   586  		FullMethod: "/moc.nodeagent.security.CertificateAgent/Delete",
   587  	}
   588  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
   589  		return srv.(CertificateAgentServer).Delete(ctx, req.(*CertificateRequest))
   590  	}
   591  	return interceptor(ctx, in, info, handler)
   592  }
   593  
   594  func _CertificateAgent_Sign_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
   595  	in := new(CSRRequest)
   596  	if err := dec(in); err != nil {
   597  		return nil, err
   598  	}
   599  	if interceptor == nil {
   600  		return srv.(CertificateAgentServer).Sign(ctx, in)
   601  	}
   602  	info := &grpc.UnaryServerInfo{
   603  		Server:     srv,
   604  		FullMethod: "/moc.nodeagent.security.CertificateAgent/Sign",
   605  	}
   606  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
   607  		return srv.(CertificateAgentServer).Sign(ctx, req.(*CSRRequest))
   608  	}
   609  	return interceptor(ctx, in, info, handler)
   610  }
   611  
   612  func _CertificateAgent_Renew_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
   613  	in := new(CSRRequest)
   614  	if err := dec(in); err != nil {
   615  		return nil, err
   616  	}
   617  	if interceptor == nil {
   618  		return srv.(CertificateAgentServer).Renew(ctx, in)
   619  	}
   620  	info := &grpc.UnaryServerInfo{
   621  		Server:     srv,
   622  		FullMethod: "/moc.nodeagent.security.CertificateAgent/Renew",
   623  	}
   624  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
   625  		return srv.(CertificateAgentServer).Renew(ctx, req.(*CSRRequest))
   626  	}
   627  	return interceptor(ctx, in, info, handler)
   628  }
   629  
   630  var _CertificateAgent_serviceDesc = grpc.ServiceDesc{
   631  	ServiceName: "moc.nodeagent.security.CertificateAgent",
   632  	HandlerType: (*CertificateAgentServer)(nil),
   633  	Methods: []grpc.MethodDesc{
   634  		{
   635  			MethodName: "CreateOrUpdate",
   636  			Handler:    _CertificateAgent_CreateOrUpdate_Handler,
   637  		},
   638  		{
   639  			MethodName: "Get",
   640  			Handler:    _CertificateAgent_Get_Handler,
   641  		},
   642  		{
   643  			MethodName: "Delete",
   644  			Handler:    _CertificateAgent_Delete_Handler,
   645  		},
   646  		{
   647  			MethodName: "Sign",
   648  			Handler:    _CertificateAgent_Sign_Handler,
   649  		},
   650  		{
   651  			MethodName: "Renew",
   652  			Handler:    _CertificateAgent_Renew_Handler,
   653  		},
   654  	},
   655  	Streams:  []grpc.StreamDesc{},
   656  	Metadata: "moc_nodeagent_certificate.proto",
   657  }