github.com/argoproj/argo-cd/v2@v2.10.9/pkg/apiclient/certificate/certificate.pb.go (about)

     1  // Code generated by protoc-gen-gogo. DO NOT EDIT.
     2  // source: server/certificate/certificate.proto
     3  
     4  // Certificate Service
     5  //
     6  // Certificate Service API performs CRUD actions against repository certificate
     7  // resources.
     8  
     9  package certificate
    10  
    11  import (
    12  	context "context"
    13  	fmt "fmt"
    14  	v1alpha1 "github.com/argoproj/argo-cd/v2/pkg/apis/application/v1alpha1"
    15  	proto "github.com/gogo/protobuf/proto"
    16  	_ "google.golang.org/genproto/googleapis/api/annotations"
    17  	grpc "google.golang.org/grpc"
    18  	codes "google.golang.org/grpc/codes"
    19  	status "google.golang.org/grpc/status"
    20  	io "io"
    21  	math "math"
    22  	math_bits "math/bits"
    23  )
    24  
    25  // Reference imports to suppress errors if they are not otherwise used.
    26  var _ = proto.Marshal
    27  var _ = fmt.Errorf
    28  var _ = math.Inf
    29  
    30  // This is a compile-time assertion to ensure that this generated file
    31  // is compatible with the proto package it is being compiled against.
    32  // A compilation error at this line likely means your copy of the
    33  // proto package needs to be updated.
    34  const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package
    35  
    36  // Message to query the server for configured repository certificates
    37  type RepositoryCertificateQuery struct {
    38  	// A file-glob pattern (not regular expression) the host name has to match
    39  	HostNamePattern string `protobuf:"bytes,1,opt,name=hostNamePattern,proto3" json:"hostNamePattern,omitempty"`
    40  	// The type of the certificate to match (ssh or https)
    41  	CertType string `protobuf:"bytes,2,opt,name=certType,proto3" json:"certType,omitempty"`
    42  	// The sub type of the certificate to match (protocol dependent, usually only used for ssh certs)
    43  	CertSubType          string   `protobuf:"bytes,3,opt,name=certSubType,proto3" json:"certSubType,omitempty"`
    44  	XXX_NoUnkeyedLiteral struct{} `json:"-"`
    45  	XXX_unrecognized     []byte   `json:"-"`
    46  	XXX_sizecache        int32    `json:"-"`
    47  }
    48  
    49  func (m *RepositoryCertificateQuery) Reset()         { *m = RepositoryCertificateQuery{} }
    50  func (m *RepositoryCertificateQuery) String() string { return proto.CompactTextString(m) }
    51  func (*RepositoryCertificateQuery) ProtoMessage()    {}
    52  func (*RepositoryCertificateQuery) Descriptor() ([]byte, []int) {
    53  	return fileDescriptor_387c41efc0710f00, []int{0}
    54  }
    55  func (m *RepositoryCertificateQuery) XXX_Unmarshal(b []byte) error {
    56  	return m.Unmarshal(b)
    57  }
    58  func (m *RepositoryCertificateQuery) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
    59  	if deterministic {
    60  		return xxx_messageInfo_RepositoryCertificateQuery.Marshal(b, m, deterministic)
    61  	} else {
    62  		b = b[:cap(b)]
    63  		n, err := m.MarshalToSizedBuffer(b)
    64  		if err != nil {
    65  			return nil, err
    66  		}
    67  		return b[:n], nil
    68  	}
    69  }
    70  func (m *RepositoryCertificateQuery) XXX_Merge(src proto.Message) {
    71  	xxx_messageInfo_RepositoryCertificateQuery.Merge(m, src)
    72  }
    73  func (m *RepositoryCertificateQuery) XXX_Size() int {
    74  	return m.Size()
    75  }
    76  func (m *RepositoryCertificateQuery) XXX_DiscardUnknown() {
    77  	xxx_messageInfo_RepositoryCertificateQuery.DiscardUnknown(m)
    78  }
    79  
    80  var xxx_messageInfo_RepositoryCertificateQuery proto.InternalMessageInfo
    81  
    82  func (m *RepositoryCertificateQuery) GetHostNamePattern() string {
    83  	if m != nil {
    84  		return m.HostNamePattern
    85  	}
    86  	return ""
    87  }
    88  
    89  func (m *RepositoryCertificateQuery) GetCertType() string {
    90  	if m != nil {
    91  		return m.CertType
    92  	}
    93  	return ""
    94  }
    95  
    96  func (m *RepositoryCertificateQuery) GetCertSubType() string {
    97  	if m != nil {
    98  		return m.CertSubType
    99  	}
   100  	return ""
   101  }
   102  
   103  // Request to create a set of certificates
   104  type RepositoryCertificateCreateRequest struct {
   105  	// List of certificates to be created
   106  	Certificates *v1alpha1.RepositoryCertificateList `protobuf:"bytes,1,opt,name=certificates,proto3" json:"certificates,omitempty"`
   107  	// Whether to upsert already existing certificates
   108  	Upsert               bool     `protobuf:"varint,2,opt,name=upsert,proto3" json:"upsert,omitempty"`
   109  	XXX_NoUnkeyedLiteral struct{} `json:"-"`
   110  	XXX_unrecognized     []byte   `json:"-"`
   111  	XXX_sizecache        int32    `json:"-"`
   112  }
   113  
   114  func (m *RepositoryCertificateCreateRequest) Reset()         { *m = RepositoryCertificateCreateRequest{} }
   115  func (m *RepositoryCertificateCreateRequest) String() string { return proto.CompactTextString(m) }
   116  func (*RepositoryCertificateCreateRequest) ProtoMessage()    {}
   117  func (*RepositoryCertificateCreateRequest) Descriptor() ([]byte, []int) {
   118  	return fileDescriptor_387c41efc0710f00, []int{1}
   119  }
   120  func (m *RepositoryCertificateCreateRequest) XXX_Unmarshal(b []byte) error {
   121  	return m.Unmarshal(b)
   122  }
   123  func (m *RepositoryCertificateCreateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   124  	if deterministic {
   125  		return xxx_messageInfo_RepositoryCertificateCreateRequest.Marshal(b, m, deterministic)
   126  	} else {
   127  		b = b[:cap(b)]
   128  		n, err := m.MarshalToSizedBuffer(b)
   129  		if err != nil {
   130  			return nil, err
   131  		}
   132  		return b[:n], nil
   133  	}
   134  }
   135  func (m *RepositoryCertificateCreateRequest) XXX_Merge(src proto.Message) {
   136  	xxx_messageInfo_RepositoryCertificateCreateRequest.Merge(m, src)
   137  }
   138  func (m *RepositoryCertificateCreateRequest) XXX_Size() int {
   139  	return m.Size()
   140  }
   141  func (m *RepositoryCertificateCreateRequest) XXX_DiscardUnknown() {
   142  	xxx_messageInfo_RepositoryCertificateCreateRequest.DiscardUnknown(m)
   143  }
   144  
   145  var xxx_messageInfo_RepositoryCertificateCreateRequest proto.InternalMessageInfo
   146  
   147  func (m *RepositoryCertificateCreateRequest) GetCertificates() *v1alpha1.RepositoryCertificateList {
   148  	if m != nil {
   149  		return m.Certificates
   150  	}
   151  	return nil
   152  }
   153  
   154  func (m *RepositoryCertificateCreateRequest) GetUpsert() bool {
   155  	if m != nil {
   156  		return m.Upsert
   157  	}
   158  	return false
   159  }
   160  
   161  type RepositoryCertificateResponse struct {
   162  	XXX_NoUnkeyedLiteral struct{} `json:"-"`
   163  	XXX_unrecognized     []byte   `json:"-"`
   164  	XXX_sizecache        int32    `json:"-"`
   165  }
   166  
   167  func (m *RepositoryCertificateResponse) Reset()         { *m = RepositoryCertificateResponse{} }
   168  func (m *RepositoryCertificateResponse) String() string { return proto.CompactTextString(m) }
   169  func (*RepositoryCertificateResponse) ProtoMessage()    {}
   170  func (*RepositoryCertificateResponse) Descriptor() ([]byte, []int) {
   171  	return fileDescriptor_387c41efc0710f00, []int{2}
   172  }
   173  func (m *RepositoryCertificateResponse) XXX_Unmarshal(b []byte) error {
   174  	return m.Unmarshal(b)
   175  }
   176  func (m *RepositoryCertificateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   177  	if deterministic {
   178  		return xxx_messageInfo_RepositoryCertificateResponse.Marshal(b, m, deterministic)
   179  	} else {
   180  		b = b[:cap(b)]
   181  		n, err := m.MarshalToSizedBuffer(b)
   182  		if err != nil {
   183  			return nil, err
   184  		}
   185  		return b[:n], nil
   186  	}
   187  }
   188  func (m *RepositoryCertificateResponse) XXX_Merge(src proto.Message) {
   189  	xxx_messageInfo_RepositoryCertificateResponse.Merge(m, src)
   190  }
   191  func (m *RepositoryCertificateResponse) XXX_Size() int {
   192  	return m.Size()
   193  }
   194  func (m *RepositoryCertificateResponse) XXX_DiscardUnknown() {
   195  	xxx_messageInfo_RepositoryCertificateResponse.DiscardUnknown(m)
   196  }
   197  
   198  var xxx_messageInfo_RepositoryCertificateResponse proto.InternalMessageInfo
   199  
   200  func init() {
   201  	proto.RegisterType((*RepositoryCertificateQuery)(nil), "certificate.RepositoryCertificateQuery")
   202  	proto.RegisterType((*RepositoryCertificateCreateRequest)(nil), "certificate.RepositoryCertificateCreateRequest")
   203  	proto.RegisterType((*RepositoryCertificateResponse)(nil), "certificate.RepositoryCertificateResponse")
   204  }
   205  
   206  func init() {
   207  	proto.RegisterFile("server/certificate/certificate.proto", fileDescriptor_387c41efc0710f00)
   208  }
   209  
   210  var fileDescriptor_387c41efc0710f00 = []byte{
   211  	// 448 bytes of a gzipped FileDescriptorProto
   212  	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xcc, 0x54, 0xcf, 0x6a, 0x14, 0x31,
   213  	0x18, 0x27, 0x55, 0x4a, 0x4d, 0x05, 0x6d, 0x90, 0x52, 0x86, 0xba, 0x96, 0xa1, 0x60, 0x29, 0x98,
   214  	0xb0, 0xe3, 0x45, 0x3c, 0xba, 0xe2, 0xa9, 0x88, 0x4e, 0x05, 0xc1, 0x8b, 0x64, 0x67, 0x3f, 0x67,
   215  	0x63, 0xa7, 0x49, 0x4c, 0xbe, 0x19, 0x58, 0xbc, 0x89, 0x6f, 0xe0, 0x9b, 0xe8, 0xc9, 0x37, 0x50,
   216  	0xbc, 0x08, 0xbe, 0x80, 0x2c, 0x3e, 0x88, 0x4c, 0xd6, 0xba, 0x19, 0x19, 0xd1, 0xcb, 0x42, 0x6f,
   217  	0x5f, 0xbe, 0x24, 0xdf, 0xef, 0x5f, 0x08, 0xdd, 0xf7, 0xe0, 0x1a, 0x70, 0xa2, 0x00, 0x87, 0xea,
   218  	0x85, 0x2a, 0x24, 0x42, 0x5c, 0x73, 0xeb, 0x0c, 0x1a, 0xb6, 0x19, 0xb5, 0x92, 0xdd, 0xd2, 0x98,
   219  	0xb2, 0x02, 0x21, 0xad, 0x12, 0x52, 0x6b, 0x83, 0x12, 0x95, 0xd1, 0x7e, 0x71, 0x34, 0x39, 0x2a,
   220  	0x15, 0x4e, 0xeb, 0x31, 0x2f, 0xcc, 0xa9, 0x90, 0xae, 0x34, 0xd6, 0x99, 0x97, 0xa1, 0xb8, 0x55,
   221  	0x4c, 0x44, 0x93, 0x09, 0x7b, 0x52, 0xb6, 0x37, 0xbd, 0x90, 0xd6, 0x56, 0xed, 0x40, 0x65, 0xb4,
   222  	0x68, 0x86, 0xb2, 0xb2, 0x53, 0x39, 0x14, 0x25, 0x68, 0x70, 0x12, 0x61, 0xb2, 0x98, 0x96, 0xbe,
   223  	0x25, 0x34, 0xc9, 0xc1, 0x1a, 0xaf, 0xd0, 0xb8, 0xd9, 0x68, 0xc9, 0xe2, 0x71, 0x0d, 0x6e, 0xc6,
   224  	0x0e, 0xe8, 0x95, 0xa9, 0xf1, 0xf8, 0x50, 0x9e, 0xc2, 0x23, 0x89, 0x08, 0x4e, 0xef, 0x90, 0x3d,
   225  	0x72, 0x70, 0x29, 0xff, 0xb3, 0xcd, 0x12, 0xba, 0xd1, 0x6a, 0x78, 0x32, 0xb3, 0xb0, 0xb3, 0x16,
   226  	0x8e, 0xfc, 0x5e, 0xb3, 0x3d, 0x1a, 0xf4, 0x1d, 0xd7, 0xe3, 0xb0, 0x7d, 0x21, 0x6c, 0xc7, 0xad,
   227  	0xf4, 0x23, 0xa1, 0x69, 0x2f, 0x8d, 0x91, 0x03, 0x89, 0x90, 0xc3, 0xab, 0x1a, 0x3c, 0xb2, 0xd7,
   228  	0xf4, 0x72, 0x64, 0x94, 0x0f, 0x5c, 0x36, 0xb3, 0xa7, 0x7c, 0x69, 0x09, 0x3f, 0xb3, 0x24, 0x14,
   229  	0xcf, 0x8b, 0x09, 0x6f, 0x32, 0x6e, 0x4f, 0x4a, 0xde, 0x5a, 0xc2, 0x23, 0x4b, 0xf8, 0x99, 0x25,
   230  	0xbc, 0x17, 0xf7, 0x48, 0x79, 0xcc, 0x3b, 0x60, 0x6c, 0x9b, 0xae, 0xd7, 0xd6, 0x83, 0xc3, 0xa0,
   231  	0x6f, 0x23, 0xff, 0xb5, 0x4a, 0x6f, 0xd0, 0xeb, 0xbd, 0x23, 0x72, 0xf0, 0xd6, 0x68, 0x0f, 0xd9,
   232  	0x97, 0x8b, 0x94, 0x45, 0xfd, 0x63, 0x70, 0x8d, 0x2a, 0x80, 0xbd, 0x27, 0xf4, 0x6a, 0x0b, 0x33,
   233  	0x8a, 0x41, 0x6e, 0xf2, 0xf8, 0x71, 0xfc, 0x3d, 0x99, 0x64, 0x55, 0xa2, 0xd3, 0xdd, 0x37, 0xdf,
   234  	0x7e, 0xbc, 0x5b, 0xdb, 0x66, 0xd7, 0xc2, 0xfb, 0x6b, 0x86, 0xa2, 0x63, 0xc2, 0x67, 0x42, 0xb7,
   235  	0x16, 0x99, 0x44, 0xf7, 0x98, 0xf8, 0x37, 0xeb, 0x4e, 0x90, 0xab, 0x63, 0x7f, 0x18, 0xd8, 0xef,
   236  	0xa7, 0xbd, 0xec, 0xef, 0x76, 0x03, 0xfd, 0x40, 0xe8, 0xd6, 0x7d, 0xa8, 0xa0, 0xab, 0xe5, 0xdc,
   237  	0x24, 0x70, 0xd8, 0xab, 0xe1, 0xde, 0x83, 0x4f, 0xf3, 0x01, 0xf9, 0x3a, 0x1f, 0x90, 0xef, 0xf3,
   238  	0x01, 0x79, 0x76, 0xe7, 0xff, 0x7e, 0x83, 0xa2, 0x52, 0xa0, 0x31, 0x1e, 0x34, 0x5e, 0x0f, 0x1f,
   239  	0xc0, 0xed, 0x9f, 0x01, 0x00, 0x00, 0xff, 0xff, 0x19, 0x1a, 0x3e, 0x95, 0xa1, 0x04, 0x00, 0x00,
   240  }
   241  
   242  // Reference imports to suppress errors if they are not otherwise used.
   243  var _ context.Context
   244  var _ grpc.ClientConn
   245  
   246  // This is a compile-time assertion to ensure that this generated file
   247  // is compatible with the grpc package it is being compiled against.
   248  const _ = grpc.SupportPackageIsVersion4
   249  
   250  // CertificateServiceClient is the client API for CertificateService service.
   251  //
   252  // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
   253  type CertificateServiceClient interface {
   254  	// List all available repository certificates
   255  	ListCertificates(ctx context.Context, in *RepositoryCertificateQuery, opts ...grpc.CallOption) (*v1alpha1.RepositoryCertificateList, error)
   256  	// Creates repository certificates on the server
   257  	CreateCertificate(ctx context.Context, in *RepositoryCertificateCreateRequest, opts ...grpc.CallOption) (*v1alpha1.RepositoryCertificateList, error)
   258  	// Delete the certificates that match the RepositoryCertificateQuery
   259  	DeleteCertificate(ctx context.Context, in *RepositoryCertificateQuery, opts ...grpc.CallOption) (*v1alpha1.RepositoryCertificateList, error)
   260  }
   261  
   262  type certificateServiceClient struct {
   263  	cc *grpc.ClientConn
   264  }
   265  
   266  func NewCertificateServiceClient(cc *grpc.ClientConn) CertificateServiceClient {
   267  	return &certificateServiceClient{cc}
   268  }
   269  
   270  func (c *certificateServiceClient) ListCertificates(ctx context.Context, in *RepositoryCertificateQuery, opts ...grpc.CallOption) (*v1alpha1.RepositoryCertificateList, error) {
   271  	out := new(v1alpha1.RepositoryCertificateList)
   272  	err := c.cc.Invoke(ctx, "/certificate.CertificateService/ListCertificates", in, out, opts...)
   273  	if err != nil {
   274  		return nil, err
   275  	}
   276  	return out, nil
   277  }
   278  
   279  func (c *certificateServiceClient) CreateCertificate(ctx context.Context, in *RepositoryCertificateCreateRequest, opts ...grpc.CallOption) (*v1alpha1.RepositoryCertificateList, error) {
   280  	out := new(v1alpha1.RepositoryCertificateList)
   281  	err := c.cc.Invoke(ctx, "/certificate.CertificateService/CreateCertificate", in, out, opts...)
   282  	if err != nil {
   283  		return nil, err
   284  	}
   285  	return out, nil
   286  }
   287  
   288  func (c *certificateServiceClient) DeleteCertificate(ctx context.Context, in *RepositoryCertificateQuery, opts ...grpc.CallOption) (*v1alpha1.RepositoryCertificateList, error) {
   289  	out := new(v1alpha1.RepositoryCertificateList)
   290  	err := c.cc.Invoke(ctx, "/certificate.CertificateService/DeleteCertificate", in, out, opts...)
   291  	if err != nil {
   292  		return nil, err
   293  	}
   294  	return out, nil
   295  }
   296  
   297  // CertificateServiceServer is the server API for CertificateService service.
   298  type CertificateServiceServer interface {
   299  	// List all available repository certificates
   300  	ListCertificates(context.Context, *RepositoryCertificateQuery) (*v1alpha1.RepositoryCertificateList, error)
   301  	// Creates repository certificates on the server
   302  	CreateCertificate(context.Context, *RepositoryCertificateCreateRequest) (*v1alpha1.RepositoryCertificateList, error)
   303  	// Delete the certificates that match the RepositoryCertificateQuery
   304  	DeleteCertificate(context.Context, *RepositoryCertificateQuery) (*v1alpha1.RepositoryCertificateList, error)
   305  }
   306  
   307  // UnimplementedCertificateServiceServer can be embedded to have forward compatible implementations.
   308  type UnimplementedCertificateServiceServer struct {
   309  }
   310  
   311  func (*UnimplementedCertificateServiceServer) ListCertificates(ctx context.Context, req *RepositoryCertificateQuery) (*v1alpha1.RepositoryCertificateList, error) {
   312  	return nil, status.Errorf(codes.Unimplemented, "method ListCertificates not implemented")
   313  }
   314  func (*UnimplementedCertificateServiceServer) CreateCertificate(ctx context.Context, req *RepositoryCertificateCreateRequest) (*v1alpha1.RepositoryCertificateList, error) {
   315  	return nil, status.Errorf(codes.Unimplemented, "method CreateCertificate not implemented")
   316  }
   317  func (*UnimplementedCertificateServiceServer) DeleteCertificate(ctx context.Context, req *RepositoryCertificateQuery) (*v1alpha1.RepositoryCertificateList, error) {
   318  	return nil, status.Errorf(codes.Unimplemented, "method DeleteCertificate not implemented")
   319  }
   320  
   321  func RegisterCertificateServiceServer(s *grpc.Server, srv CertificateServiceServer) {
   322  	s.RegisterService(&_CertificateService_serviceDesc, srv)
   323  }
   324  
   325  func _CertificateService_ListCertificates_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
   326  	in := new(RepositoryCertificateQuery)
   327  	if err := dec(in); err != nil {
   328  		return nil, err
   329  	}
   330  	if interceptor == nil {
   331  		return srv.(CertificateServiceServer).ListCertificates(ctx, in)
   332  	}
   333  	info := &grpc.UnaryServerInfo{
   334  		Server:     srv,
   335  		FullMethod: "/certificate.CertificateService/ListCertificates",
   336  	}
   337  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
   338  		return srv.(CertificateServiceServer).ListCertificates(ctx, req.(*RepositoryCertificateQuery))
   339  	}
   340  	return interceptor(ctx, in, info, handler)
   341  }
   342  
   343  func _CertificateService_CreateCertificate_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
   344  	in := new(RepositoryCertificateCreateRequest)
   345  	if err := dec(in); err != nil {
   346  		return nil, err
   347  	}
   348  	if interceptor == nil {
   349  		return srv.(CertificateServiceServer).CreateCertificate(ctx, in)
   350  	}
   351  	info := &grpc.UnaryServerInfo{
   352  		Server:     srv,
   353  		FullMethod: "/certificate.CertificateService/CreateCertificate",
   354  	}
   355  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
   356  		return srv.(CertificateServiceServer).CreateCertificate(ctx, req.(*RepositoryCertificateCreateRequest))
   357  	}
   358  	return interceptor(ctx, in, info, handler)
   359  }
   360  
   361  func _CertificateService_DeleteCertificate_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
   362  	in := new(RepositoryCertificateQuery)
   363  	if err := dec(in); err != nil {
   364  		return nil, err
   365  	}
   366  	if interceptor == nil {
   367  		return srv.(CertificateServiceServer).DeleteCertificate(ctx, in)
   368  	}
   369  	info := &grpc.UnaryServerInfo{
   370  		Server:     srv,
   371  		FullMethod: "/certificate.CertificateService/DeleteCertificate",
   372  	}
   373  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
   374  		return srv.(CertificateServiceServer).DeleteCertificate(ctx, req.(*RepositoryCertificateQuery))
   375  	}
   376  	return interceptor(ctx, in, info, handler)
   377  }
   378  
   379  var _CertificateService_serviceDesc = grpc.ServiceDesc{
   380  	ServiceName: "certificate.CertificateService",
   381  	HandlerType: (*CertificateServiceServer)(nil),
   382  	Methods: []grpc.MethodDesc{
   383  		{
   384  			MethodName: "ListCertificates",
   385  			Handler:    _CertificateService_ListCertificates_Handler,
   386  		},
   387  		{
   388  			MethodName: "CreateCertificate",
   389  			Handler:    _CertificateService_CreateCertificate_Handler,
   390  		},
   391  		{
   392  			MethodName: "DeleteCertificate",
   393  			Handler:    _CertificateService_DeleteCertificate_Handler,
   394  		},
   395  	},
   396  	Streams:  []grpc.StreamDesc{},
   397  	Metadata: "server/certificate/certificate.proto",
   398  }
   399  
   400  func (m *RepositoryCertificateQuery) Marshal() (dAtA []byte, err error) {
   401  	size := m.Size()
   402  	dAtA = make([]byte, size)
   403  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
   404  	if err != nil {
   405  		return nil, err
   406  	}
   407  	return dAtA[:n], nil
   408  }
   409  
   410  func (m *RepositoryCertificateQuery) MarshalTo(dAtA []byte) (int, error) {
   411  	size := m.Size()
   412  	return m.MarshalToSizedBuffer(dAtA[:size])
   413  }
   414  
   415  func (m *RepositoryCertificateQuery) MarshalToSizedBuffer(dAtA []byte) (int, error) {
   416  	i := len(dAtA)
   417  	_ = i
   418  	var l int
   419  	_ = l
   420  	if m.XXX_unrecognized != nil {
   421  		i -= len(m.XXX_unrecognized)
   422  		copy(dAtA[i:], m.XXX_unrecognized)
   423  	}
   424  	if len(m.CertSubType) > 0 {
   425  		i -= len(m.CertSubType)
   426  		copy(dAtA[i:], m.CertSubType)
   427  		i = encodeVarintCertificate(dAtA, i, uint64(len(m.CertSubType)))
   428  		i--
   429  		dAtA[i] = 0x1a
   430  	}
   431  	if len(m.CertType) > 0 {
   432  		i -= len(m.CertType)
   433  		copy(dAtA[i:], m.CertType)
   434  		i = encodeVarintCertificate(dAtA, i, uint64(len(m.CertType)))
   435  		i--
   436  		dAtA[i] = 0x12
   437  	}
   438  	if len(m.HostNamePattern) > 0 {
   439  		i -= len(m.HostNamePattern)
   440  		copy(dAtA[i:], m.HostNamePattern)
   441  		i = encodeVarintCertificate(dAtA, i, uint64(len(m.HostNamePattern)))
   442  		i--
   443  		dAtA[i] = 0xa
   444  	}
   445  	return len(dAtA) - i, nil
   446  }
   447  
   448  func (m *RepositoryCertificateCreateRequest) Marshal() (dAtA []byte, err error) {
   449  	size := m.Size()
   450  	dAtA = make([]byte, size)
   451  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
   452  	if err != nil {
   453  		return nil, err
   454  	}
   455  	return dAtA[:n], nil
   456  }
   457  
   458  func (m *RepositoryCertificateCreateRequest) MarshalTo(dAtA []byte) (int, error) {
   459  	size := m.Size()
   460  	return m.MarshalToSizedBuffer(dAtA[:size])
   461  }
   462  
   463  func (m *RepositoryCertificateCreateRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
   464  	i := len(dAtA)
   465  	_ = i
   466  	var l int
   467  	_ = l
   468  	if m.XXX_unrecognized != nil {
   469  		i -= len(m.XXX_unrecognized)
   470  		copy(dAtA[i:], m.XXX_unrecognized)
   471  	}
   472  	if m.Upsert {
   473  		i--
   474  		if m.Upsert {
   475  			dAtA[i] = 1
   476  		} else {
   477  			dAtA[i] = 0
   478  		}
   479  		i--
   480  		dAtA[i] = 0x10
   481  	}
   482  	if m.Certificates != nil {
   483  		{
   484  			size, err := m.Certificates.MarshalToSizedBuffer(dAtA[:i])
   485  			if err != nil {
   486  				return 0, err
   487  			}
   488  			i -= size
   489  			i = encodeVarintCertificate(dAtA, i, uint64(size))
   490  		}
   491  		i--
   492  		dAtA[i] = 0xa
   493  	}
   494  	return len(dAtA) - i, nil
   495  }
   496  
   497  func (m *RepositoryCertificateResponse) Marshal() (dAtA []byte, err error) {
   498  	size := m.Size()
   499  	dAtA = make([]byte, size)
   500  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
   501  	if err != nil {
   502  		return nil, err
   503  	}
   504  	return dAtA[:n], nil
   505  }
   506  
   507  func (m *RepositoryCertificateResponse) MarshalTo(dAtA []byte) (int, error) {
   508  	size := m.Size()
   509  	return m.MarshalToSizedBuffer(dAtA[:size])
   510  }
   511  
   512  func (m *RepositoryCertificateResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
   513  	i := len(dAtA)
   514  	_ = i
   515  	var l int
   516  	_ = l
   517  	if m.XXX_unrecognized != nil {
   518  		i -= len(m.XXX_unrecognized)
   519  		copy(dAtA[i:], m.XXX_unrecognized)
   520  	}
   521  	return len(dAtA) - i, nil
   522  }
   523  
   524  func encodeVarintCertificate(dAtA []byte, offset int, v uint64) int {
   525  	offset -= sovCertificate(v)
   526  	base := offset
   527  	for v >= 1<<7 {
   528  		dAtA[offset] = uint8(v&0x7f | 0x80)
   529  		v >>= 7
   530  		offset++
   531  	}
   532  	dAtA[offset] = uint8(v)
   533  	return base
   534  }
   535  func (m *RepositoryCertificateQuery) Size() (n int) {
   536  	if m == nil {
   537  		return 0
   538  	}
   539  	var l int
   540  	_ = l
   541  	l = len(m.HostNamePattern)
   542  	if l > 0 {
   543  		n += 1 + l + sovCertificate(uint64(l))
   544  	}
   545  	l = len(m.CertType)
   546  	if l > 0 {
   547  		n += 1 + l + sovCertificate(uint64(l))
   548  	}
   549  	l = len(m.CertSubType)
   550  	if l > 0 {
   551  		n += 1 + l + sovCertificate(uint64(l))
   552  	}
   553  	if m.XXX_unrecognized != nil {
   554  		n += len(m.XXX_unrecognized)
   555  	}
   556  	return n
   557  }
   558  
   559  func (m *RepositoryCertificateCreateRequest) Size() (n int) {
   560  	if m == nil {
   561  		return 0
   562  	}
   563  	var l int
   564  	_ = l
   565  	if m.Certificates != nil {
   566  		l = m.Certificates.Size()
   567  		n += 1 + l + sovCertificate(uint64(l))
   568  	}
   569  	if m.Upsert {
   570  		n += 2
   571  	}
   572  	if m.XXX_unrecognized != nil {
   573  		n += len(m.XXX_unrecognized)
   574  	}
   575  	return n
   576  }
   577  
   578  func (m *RepositoryCertificateResponse) Size() (n int) {
   579  	if m == nil {
   580  		return 0
   581  	}
   582  	var l int
   583  	_ = l
   584  	if m.XXX_unrecognized != nil {
   585  		n += len(m.XXX_unrecognized)
   586  	}
   587  	return n
   588  }
   589  
   590  func sovCertificate(x uint64) (n int) {
   591  	return (math_bits.Len64(x|1) + 6) / 7
   592  }
   593  func sozCertificate(x uint64) (n int) {
   594  	return sovCertificate(uint64((x << 1) ^ uint64((int64(x) >> 63))))
   595  }
   596  func (m *RepositoryCertificateQuery) Unmarshal(dAtA []byte) error {
   597  	l := len(dAtA)
   598  	iNdEx := 0
   599  	for iNdEx < l {
   600  		preIndex := iNdEx
   601  		var wire uint64
   602  		for shift := uint(0); ; shift += 7 {
   603  			if shift >= 64 {
   604  				return ErrIntOverflowCertificate
   605  			}
   606  			if iNdEx >= l {
   607  				return io.ErrUnexpectedEOF
   608  			}
   609  			b := dAtA[iNdEx]
   610  			iNdEx++
   611  			wire |= uint64(b&0x7F) << shift
   612  			if b < 0x80 {
   613  				break
   614  			}
   615  		}
   616  		fieldNum := int32(wire >> 3)
   617  		wireType := int(wire & 0x7)
   618  		if wireType == 4 {
   619  			return fmt.Errorf("proto: RepositoryCertificateQuery: wiretype end group for non-group")
   620  		}
   621  		if fieldNum <= 0 {
   622  			return fmt.Errorf("proto: RepositoryCertificateQuery: illegal tag %d (wire type %d)", fieldNum, wire)
   623  		}
   624  		switch fieldNum {
   625  		case 1:
   626  			if wireType != 2 {
   627  				return fmt.Errorf("proto: wrong wireType = %d for field HostNamePattern", wireType)
   628  			}
   629  			var stringLen uint64
   630  			for shift := uint(0); ; shift += 7 {
   631  				if shift >= 64 {
   632  					return ErrIntOverflowCertificate
   633  				}
   634  				if iNdEx >= l {
   635  					return io.ErrUnexpectedEOF
   636  				}
   637  				b := dAtA[iNdEx]
   638  				iNdEx++
   639  				stringLen |= uint64(b&0x7F) << shift
   640  				if b < 0x80 {
   641  					break
   642  				}
   643  			}
   644  			intStringLen := int(stringLen)
   645  			if intStringLen < 0 {
   646  				return ErrInvalidLengthCertificate
   647  			}
   648  			postIndex := iNdEx + intStringLen
   649  			if postIndex < 0 {
   650  				return ErrInvalidLengthCertificate
   651  			}
   652  			if postIndex > l {
   653  				return io.ErrUnexpectedEOF
   654  			}
   655  			m.HostNamePattern = string(dAtA[iNdEx:postIndex])
   656  			iNdEx = postIndex
   657  		case 2:
   658  			if wireType != 2 {
   659  				return fmt.Errorf("proto: wrong wireType = %d for field CertType", wireType)
   660  			}
   661  			var stringLen uint64
   662  			for shift := uint(0); ; shift += 7 {
   663  				if shift >= 64 {
   664  					return ErrIntOverflowCertificate
   665  				}
   666  				if iNdEx >= l {
   667  					return io.ErrUnexpectedEOF
   668  				}
   669  				b := dAtA[iNdEx]
   670  				iNdEx++
   671  				stringLen |= uint64(b&0x7F) << shift
   672  				if b < 0x80 {
   673  					break
   674  				}
   675  			}
   676  			intStringLen := int(stringLen)
   677  			if intStringLen < 0 {
   678  				return ErrInvalidLengthCertificate
   679  			}
   680  			postIndex := iNdEx + intStringLen
   681  			if postIndex < 0 {
   682  				return ErrInvalidLengthCertificate
   683  			}
   684  			if postIndex > l {
   685  				return io.ErrUnexpectedEOF
   686  			}
   687  			m.CertType = string(dAtA[iNdEx:postIndex])
   688  			iNdEx = postIndex
   689  		case 3:
   690  			if wireType != 2 {
   691  				return fmt.Errorf("proto: wrong wireType = %d for field CertSubType", wireType)
   692  			}
   693  			var stringLen uint64
   694  			for shift := uint(0); ; shift += 7 {
   695  				if shift >= 64 {
   696  					return ErrIntOverflowCertificate
   697  				}
   698  				if iNdEx >= l {
   699  					return io.ErrUnexpectedEOF
   700  				}
   701  				b := dAtA[iNdEx]
   702  				iNdEx++
   703  				stringLen |= uint64(b&0x7F) << shift
   704  				if b < 0x80 {
   705  					break
   706  				}
   707  			}
   708  			intStringLen := int(stringLen)
   709  			if intStringLen < 0 {
   710  				return ErrInvalidLengthCertificate
   711  			}
   712  			postIndex := iNdEx + intStringLen
   713  			if postIndex < 0 {
   714  				return ErrInvalidLengthCertificate
   715  			}
   716  			if postIndex > l {
   717  				return io.ErrUnexpectedEOF
   718  			}
   719  			m.CertSubType = string(dAtA[iNdEx:postIndex])
   720  			iNdEx = postIndex
   721  		default:
   722  			iNdEx = preIndex
   723  			skippy, err := skipCertificate(dAtA[iNdEx:])
   724  			if err != nil {
   725  				return err
   726  			}
   727  			if (skippy < 0) || (iNdEx+skippy) < 0 {
   728  				return ErrInvalidLengthCertificate
   729  			}
   730  			if (iNdEx + skippy) > l {
   731  				return io.ErrUnexpectedEOF
   732  			}
   733  			m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
   734  			iNdEx += skippy
   735  		}
   736  	}
   737  
   738  	if iNdEx > l {
   739  		return io.ErrUnexpectedEOF
   740  	}
   741  	return nil
   742  }
   743  func (m *RepositoryCertificateCreateRequest) Unmarshal(dAtA []byte) error {
   744  	l := len(dAtA)
   745  	iNdEx := 0
   746  	for iNdEx < l {
   747  		preIndex := iNdEx
   748  		var wire uint64
   749  		for shift := uint(0); ; shift += 7 {
   750  			if shift >= 64 {
   751  				return ErrIntOverflowCertificate
   752  			}
   753  			if iNdEx >= l {
   754  				return io.ErrUnexpectedEOF
   755  			}
   756  			b := dAtA[iNdEx]
   757  			iNdEx++
   758  			wire |= uint64(b&0x7F) << shift
   759  			if b < 0x80 {
   760  				break
   761  			}
   762  		}
   763  		fieldNum := int32(wire >> 3)
   764  		wireType := int(wire & 0x7)
   765  		if wireType == 4 {
   766  			return fmt.Errorf("proto: RepositoryCertificateCreateRequest: wiretype end group for non-group")
   767  		}
   768  		if fieldNum <= 0 {
   769  			return fmt.Errorf("proto: RepositoryCertificateCreateRequest: illegal tag %d (wire type %d)", fieldNum, wire)
   770  		}
   771  		switch fieldNum {
   772  		case 1:
   773  			if wireType != 2 {
   774  				return fmt.Errorf("proto: wrong wireType = %d for field Certificates", wireType)
   775  			}
   776  			var msglen int
   777  			for shift := uint(0); ; shift += 7 {
   778  				if shift >= 64 {
   779  					return ErrIntOverflowCertificate
   780  				}
   781  				if iNdEx >= l {
   782  					return io.ErrUnexpectedEOF
   783  				}
   784  				b := dAtA[iNdEx]
   785  				iNdEx++
   786  				msglen |= int(b&0x7F) << shift
   787  				if b < 0x80 {
   788  					break
   789  				}
   790  			}
   791  			if msglen < 0 {
   792  				return ErrInvalidLengthCertificate
   793  			}
   794  			postIndex := iNdEx + msglen
   795  			if postIndex < 0 {
   796  				return ErrInvalidLengthCertificate
   797  			}
   798  			if postIndex > l {
   799  				return io.ErrUnexpectedEOF
   800  			}
   801  			if m.Certificates == nil {
   802  				m.Certificates = &v1alpha1.RepositoryCertificateList{}
   803  			}
   804  			if err := m.Certificates.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
   805  				return err
   806  			}
   807  			iNdEx = postIndex
   808  		case 2:
   809  			if wireType != 0 {
   810  				return fmt.Errorf("proto: wrong wireType = %d for field Upsert", wireType)
   811  			}
   812  			var v int
   813  			for shift := uint(0); ; shift += 7 {
   814  				if shift >= 64 {
   815  					return ErrIntOverflowCertificate
   816  				}
   817  				if iNdEx >= l {
   818  					return io.ErrUnexpectedEOF
   819  				}
   820  				b := dAtA[iNdEx]
   821  				iNdEx++
   822  				v |= int(b&0x7F) << shift
   823  				if b < 0x80 {
   824  					break
   825  				}
   826  			}
   827  			m.Upsert = bool(v != 0)
   828  		default:
   829  			iNdEx = preIndex
   830  			skippy, err := skipCertificate(dAtA[iNdEx:])
   831  			if err != nil {
   832  				return err
   833  			}
   834  			if (skippy < 0) || (iNdEx+skippy) < 0 {
   835  				return ErrInvalidLengthCertificate
   836  			}
   837  			if (iNdEx + skippy) > l {
   838  				return io.ErrUnexpectedEOF
   839  			}
   840  			m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
   841  			iNdEx += skippy
   842  		}
   843  	}
   844  
   845  	if iNdEx > l {
   846  		return io.ErrUnexpectedEOF
   847  	}
   848  	return nil
   849  }
   850  func (m *RepositoryCertificateResponse) Unmarshal(dAtA []byte) error {
   851  	l := len(dAtA)
   852  	iNdEx := 0
   853  	for iNdEx < l {
   854  		preIndex := iNdEx
   855  		var wire uint64
   856  		for shift := uint(0); ; shift += 7 {
   857  			if shift >= 64 {
   858  				return ErrIntOverflowCertificate
   859  			}
   860  			if iNdEx >= l {
   861  				return io.ErrUnexpectedEOF
   862  			}
   863  			b := dAtA[iNdEx]
   864  			iNdEx++
   865  			wire |= uint64(b&0x7F) << shift
   866  			if b < 0x80 {
   867  				break
   868  			}
   869  		}
   870  		fieldNum := int32(wire >> 3)
   871  		wireType := int(wire & 0x7)
   872  		if wireType == 4 {
   873  			return fmt.Errorf("proto: RepositoryCertificateResponse: wiretype end group for non-group")
   874  		}
   875  		if fieldNum <= 0 {
   876  			return fmt.Errorf("proto: RepositoryCertificateResponse: illegal tag %d (wire type %d)", fieldNum, wire)
   877  		}
   878  		switch fieldNum {
   879  		default:
   880  			iNdEx = preIndex
   881  			skippy, err := skipCertificate(dAtA[iNdEx:])
   882  			if err != nil {
   883  				return err
   884  			}
   885  			if (skippy < 0) || (iNdEx+skippy) < 0 {
   886  				return ErrInvalidLengthCertificate
   887  			}
   888  			if (iNdEx + skippy) > l {
   889  				return io.ErrUnexpectedEOF
   890  			}
   891  			m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
   892  			iNdEx += skippy
   893  		}
   894  	}
   895  
   896  	if iNdEx > l {
   897  		return io.ErrUnexpectedEOF
   898  	}
   899  	return nil
   900  }
   901  func skipCertificate(dAtA []byte) (n int, err error) {
   902  	l := len(dAtA)
   903  	iNdEx := 0
   904  	depth := 0
   905  	for iNdEx < l {
   906  		var wire uint64
   907  		for shift := uint(0); ; shift += 7 {
   908  			if shift >= 64 {
   909  				return 0, ErrIntOverflowCertificate
   910  			}
   911  			if iNdEx >= l {
   912  				return 0, io.ErrUnexpectedEOF
   913  			}
   914  			b := dAtA[iNdEx]
   915  			iNdEx++
   916  			wire |= (uint64(b) & 0x7F) << shift
   917  			if b < 0x80 {
   918  				break
   919  			}
   920  		}
   921  		wireType := int(wire & 0x7)
   922  		switch wireType {
   923  		case 0:
   924  			for shift := uint(0); ; shift += 7 {
   925  				if shift >= 64 {
   926  					return 0, ErrIntOverflowCertificate
   927  				}
   928  				if iNdEx >= l {
   929  					return 0, io.ErrUnexpectedEOF
   930  				}
   931  				iNdEx++
   932  				if dAtA[iNdEx-1] < 0x80 {
   933  					break
   934  				}
   935  			}
   936  		case 1:
   937  			iNdEx += 8
   938  		case 2:
   939  			var length int
   940  			for shift := uint(0); ; shift += 7 {
   941  				if shift >= 64 {
   942  					return 0, ErrIntOverflowCertificate
   943  				}
   944  				if iNdEx >= l {
   945  					return 0, io.ErrUnexpectedEOF
   946  				}
   947  				b := dAtA[iNdEx]
   948  				iNdEx++
   949  				length |= (int(b) & 0x7F) << shift
   950  				if b < 0x80 {
   951  					break
   952  				}
   953  			}
   954  			if length < 0 {
   955  				return 0, ErrInvalidLengthCertificate
   956  			}
   957  			iNdEx += length
   958  		case 3:
   959  			depth++
   960  		case 4:
   961  			if depth == 0 {
   962  				return 0, ErrUnexpectedEndOfGroupCertificate
   963  			}
   964  			depth--
   965  		case 5:
   966  			iNdEx += 4
   967  		default:
   968  			return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
   969  		}
   970  		if iNdEx < 0 {
   971  			return 0, ErrInvalidLengthCertificate
   972  		}
   973  		if depth == 0 {
   974  			return iNdEx, nil
   975  		}
   976  	}
   977  	return 0, io.ErrUnexpectedEOF
   978  }
   979  
   980  var (
   981  	ErrInvalidLengthCertificate        = fmt.Errorf("proto: negative length found during unmarshaling")
   982  	ErrIntOverflowCertificate          = fmt.Errorf("proto: integer overflow")
   983  	ErrUnexpectedEndOfGroupCertificate = fmt.Errorf("proto: unexpected end of group")
   984  )