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

     1  // Code generated by protoc-gen-gogo. DO NOT EDIT.
     2  // source: server/gpgkey/gpgkey.proto
     3  
     4  // GPG public key service
     5  //
     6  // GPG public key API performs CRUD actions against GnuPGPublicKey resources
     7  
     8  package gpgkey
     9  
    10  import (
    11  	context "context"
    12  	fmt "fmt"
    13  	v1alpha1 "github.com/argoproj/argo-cd/v2/pkg/apis/application/v1alpha1"
    14  	proto "github.com/gogo/protobuf/proto"
    15  	_ "google.golang.org/genproto/googleapis/api/annotations"
    16  	grpc "google.golang.org/grpc"
    17  	codes "google.golang.org/grpc/codes"
    18  	status "google.golang.org/grpc/status"
    19  	io "io"
    20  	math "math"
    21  	math_bits "math/bits"
    22  )
    23  
    24  // Reference imports to suppress errors if they are not otherwise used.
    25  var _ = proto.Marshal
    26  var _ = fmt.Errorf
    27  var _ = math.Inf
    28  
    29  // This is a compile-time assertion to ensure that this generated file
    30  // is compatible with the proto package it is being compiled against.
    31  // A compilation error at this line likely means your copy of the
    32  // proto package needs to be updated.
    33  const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package
    34  
    35  // Message to query the server for configured GPG public keys
    36  type GnuPGPublicKeyQuery struct {
    37  	// The GPG key ID to query for
    38  	KeyID                string   `protobuf:"bytes,1,opt,name=keyID,proto3" json:"keyID,omitempty"`
    39  	XXX_NoUnkeyedLiteral struct{} `json:"-"`
    40  	XXX_unrecognized     []byte   `json:"-"`
    41  	XXX_sizecache        int32    `json:"-"`
    42  }
    43  
    44  func (m *GnuPGPublicKeyQuery) Reset()         { *m = GnuPGPublicKeyQuery{} }
    45  func (m *GnuPGPublicKeyQuery) String() string { return proto.CompactTextString(m) }
    46  func (*GnuPGPublicKeyQuery) ProtoMessage()    {}
    47  func (*GnuPGPublicKeyQuery) Descriptor() ([]byte, []int) {
    48  	return fileDescriptor_8ba55a5eb76dc6fd, []int{0}
    49  }
    50  func (m *GnuPGPublicKeyQuery) XXX_Unmarshal(b []byte) error {
    51  	return m.Unmarshal(b)
    52  }
    53  func (m *GnuPGPublicKeyQuery) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
    54  	if deterministic {
    55  		return xxx_messageInfo_GnuPGPublicKeyQuery.Marshal(b, m, deterministic)
    56  	} else {
    57  		b = b[:cap(b)]
    58  		n, err := m.MarshalToSizedBuffer(b)
    59  		if err != nil {
    60  			return nil, err
    61  		}
    62  		return b[:n], nil
    63  	}
    64  }
    65  func (m *GnuPGPublicKeyQuery) XXX_Merge(src proto.Message) {
    66  	xxx_messageInfo_GnuPGPublicKeyQuery.Merge(m, src)
    67  }
    68  func (m *GnuPGPublicKeyQuery) XXX_Size() int {
    69  	return m.Size()
    70  }
    71  func (m *GnuPGPublicKeyQuery) XXX_DiscardUnknown() {
    72  	xxx_messageInfo_GnuPGPublicKeyQuery.DiscardUnknown(m)
    73  }
    74  
    75  var xxx_messageInfo_GnuPGPublicKeyQuery proto.InternalMessageInfo
    76  
    77  func (m *GnuPGPublicKeyQuery) GetKeyID() string {
    78  	if m != nil {
    79  		return m.KeyID
    80  	}
    81  	return ""
    82  }
    83  
    84  // Request to create one or more public keys on the server
    85  type GnuPGPublicKeyCreateRequest struct {
    86  	// Raw key data of the GPG key(s) to create
    87  	Publickey *v1alpha1.GnuPGPublicKey `protobuf:"bytes,1,opt,name=publickey,proto3" json:"publickey,omitempty"`
    88  	// Whether to upsert already existing public keys
    89  	Upsert               bool     `protobuf:"varint,2,opt,name=upsert,proto3" json:"upsert,omitempty"`
    90  	XXX_NoUnkeyedLiteral struct{} `json:"-"`
    91  	XXX_unrecognized     []byte   `json:"-"`
    92  	XXX_sizecache        int32    `json:"-"`
    93  }
    94  
    95  func (m *GnuPGPublicKeyCreateRequest) Reset()         { *m = GnuPGPublicKeyCreateRequest{} }
    96  func (m *GnuPGPublicKeyCreateRequest) String() string { return proto.CompactTextString(m) }
    97  func (*GnuPGPublicKeyCreateRequest) ProtoMessage()    {}
    98  func (*GnuPGPublicKeyCreateRequest) Descriptor() ([]byte, []int) {
    99  	return fileDescriptor_8ba55a5eb76dc6fd, []int{1}
   100  }
   101  func (m *GnuPGPublicKeyCreateRequest) XXX_Unmarshal(b []byte) error {
   102  	return m.Unmarshal(b)
   103  }
   104  func (m *GnuPGPublicKeyCreateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   105  	if deterministic {
   106  		return xxx_messageInfo_GnuPGPublicKeyCreateRequest.Marshal(b, m, deterministic)
   107  	} else {
   108  		b = b[:cap(b)]
   109  		n, err := m.MarshalToSizedBuffer(b)
   110  		if err != nil {
   111  			return nil, err
   112  		}
   113  		return b[:n], nil
   114  	}
   115  }
   116  func (m *GnuPGPublicKeyCreateRequest) XXX_Merge(src proto.Message) {
   117  	xxx_messageInfo_GnuPGPublicKeyCreateRequest.Merge(m, src)
   118  }
   119  func (m *GnuPGPublicKeyCreateRequest) XXX_Size() int {
   120  	return m.Size()
   121  }
   122  func (m *GnuPGPublicKeyCreateRequest) XXX_DiscardUnknown() {
   123  	xxx_messageInfo_GnuPGPublicKeyCreateRequest.DiscardUnknown(m)
   124  }
   125  
   126  var xxx_messageInfo_GnuPGPublicKeyCreateRequest proto.InternalMessageInfo
   127  
   128  func (m *GnuPGPublicKeyCreateRequest) GetPublickey() *v1alpha1.GnuPGPublicKey {
   129  	if m != nil {
   130  		return m.Publickey
   131  	}
   132  	return nil
   133  }
   134  
   135  func (m *GnuPGPublicKeyCreateRequest) GetUpsert() bool {
   136  	if m != nil {
   137  		return m.Upsert
   138  	}
   139  	return false
   140  }
   141  
   142  // Response to a public key creation request
   143  type GnuPGPublicKeyCreateResponse struct {
   144  	// List of GPG public keys that have been created
   145  	Created *v1alpha1.GnuPGPublicKeyList `protobuf:"bytes,1,opt,name=created,proto3" json:"created,omitempty"`
   146  	// List of key IDs that haven been skipped because they already exist on the server
   147  	Skipped              []string `protobuf:"bytes,2,rep,name=skipped,proto3" json:"skipped,omitempty"`
   148  	XXX_NoUnkeyedLiteral struct{} `json:"-"`
   149  	XXX_unrecognized     []byte   `json:"-"`
   150  	XXX_sizecache        int32    `json:"-"`
   151  }
   152  
   153  func (m *GnuPGPublicKeyCreateResponse) Reset()         { *m = GnuPGPublicKeyCreateResponse{} }
   154  func (m *GnuPGPublicKeyCreateResponse) String() string { return proto.CompactTextString(m) }
   155  func (*GnuPGPublicKeyCreateResponse) ProtoMessage()    {}
   156  func (*GnuPGPublicKeyCreateResponse) Descriptor() ([]byte, []int) {
   157  	return fileDescriptor_8ba55a5eb76dc6fd, []int{2}
   158  }
   159  func (m *GnuPGPublicKeyCreateResponse) XXX_Unmarshal(b []byte) error {
   160  	return m.Unmarshal(b)
   161  }
   162  func (m *GnuPGPublicKeyCreateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   163  	if deterministic {
   164  		return xxx_messageInfo_GnuPGPublicKeyCreateResponse.Marshal(b, m, deterministic)
   165  	} else {
   166  		b = b[:cap(b)]
   167  		n, err := m.MarshalToSizedBuffer(b)
   168  		if err != nil {
   169  			return nil, err
   170  		}
   171  		return b[:n], nil
   172  	}
   173  }
   174  func (m *GnuPGPublicKeyCreateResponse) XXX_Merge(src proto.Message) {
   175  	xxx_messageInfo_GnuPGPublicKeyCreateResponse.Merge(m, src)
   176  }
   177  func (m *GnuPGPublicKeyCreateResponse) XXX_Size() int {
   178  	return m.Size()
   179  }
   180  func (m *GnuPGPublicKeyCreateResponse) XXX_DiscardUnknown() {
   181  	xxx_messageInfo_GnuPGPublicKeyCreateResponse.DiscardUnknown(m)
   182  }
   183  
   184  var xxx_messageInfo_GnuPGPublicKeyCreateResponse proto.InternalMessageInfo
   185  
   186  func (m *GnuPGPublicKeyCreateResponse) GetCreated() *v1alpha1.GnuPGPublicKeyList {
   187  	if m != nil {
   188  		return m.Created
   189  	}
   190  	return nil
   191  }
   192  
   193  func (m *GnuPGPublicKeyCreateResponse) GetSkipped() []string {
   194  	if m != nil {
   195  		return m.Skipped
   196  	}
   197  	return nil
   198  }
   199  
   200  // Generic (empty) response for GPG public key CRUD requests
   201  type GnuPGPublicKeyResponse struct {
   202  	XXX_NoUnkeyedLiteral struct{} `json:"-"`
   203  	XXX_unrecognized     []byte   `json:"-"`
   204  	XXX_sizecache        int32    `json:"-"`
   205  }
   206  
   207  func (m *GnuPGPublicKeyResponse) Reset()         { *m = GnuPGPublicKeyResponse{} }
   208  func (m *GnuPGPublicKeyResponse) String() string { return proto.CompactTextString(m) }
   209  func (*GnuPGPublicKeyResponse) ProtoMessage()    {}
   210  func (*GnuPGPublicKeyResponse) Descriptor() ([]byte, []int) {
   211  	return fileDescriptor_8ba55a5eb76dc6fd, []int{3}
   212  }
   213  func (m *GnuPGPublicKeyResponse) XXX_Unmarshal(b []byte) error {
   214  	return m.Unmarshal(b)
   215  }
   216  func (m *GnuPGPublicKeyResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   217  	if deterministic {
   218  		return xxx_messageInfo_GnuPGPublicKeyResponse.Marshal(b, m, deterministic)
   219  	} else {
   220  		b = b[:cap(b)]
   221  		n, err := m.MarshalToSizedBuffer(b)
   222  		if err != nil {
   223  			return nil, err
   224  		}
   225  		return b[:n], nil
   226  	}
   227  }
   228  func (m *GnuPGPublicKeyResponse) XXX_Merge(src proto.Message) {
   229  	xxx_messageInfo_GnuPGPublicKeyResponse.Merge(m, src)
   230  }
   231  func (m *GnuPGPublicKeyResponse) XXX_Size() int {
   232  	return m.Size()
   233  }
   234  func (m *GnuPGPublicKeyResponse) XXX_DiscardUnknown() {
   235  	xxx_messageInfo_GnuPGPublicKeyResponse.DiscardUnknown(m)
   236  }
   237  
   238  var xxx_messageInfo_GnuPGPublicKeyResponse proto.InternalMessageInfo
   239  
   240  func init() {
   241  	proto.RegisterType((*GnuPGPublicKeyQuery)(nil), "gpgkey.GnuPGPublicKeyQuery")
   242  	proto.RegisterType((*GnuPGPublicKeyCreateRequest)(nil), "gpgkey.GnuPGPublicKeyCreateRequest")
   243  	proto.RegisterType((*GnuPGPublicKeyCreateResponse)(nil), "gpgkey.GnuPGPublicKeyCreateResponse")
   244  	proto.RegisterType((*GnuPGPublicKeyResponse)(nil), "gpgkey.GnuPGPublicKeyResponse")
   245  }
   246  
   247  func init() { proto.RegisterFile("server/gpgkey/gpgkey.proto", fileDescriptor_8ba55a5eb76dc6fd) }
   248  
   249  var fileDescriptor_8ba55a5eb76dc6fd = []byte{
   250  	// 487 bytes of a gzipped FileDescriptorProto
   251  	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x93, 0x41, 0x8b, 0xd3, 0x40,
   252  	0x14, 0xc7, 0x99, 0xee, 0xda, 0xb5, 0x23, 0x22, 0x8e, 0xb2, 0x1b, 0xb3, 0xa5, 0x96, 0xe8, 0xa1,
   253  	0x28, 0xce, 0xd0, 0xee, 0xcd, 0x9b, 0xba, 0x10, 0x64, 0x7b, 0xa8, 0xf1, 0xe6, 0x41, 0x49, 0x93,
   254  	0x47, 0x76, 0x9a, 0x98, 0x19, 0x67, 0x26, 0x91, 0x20, 0x5e, 0xbc, 0x2b, 0x88, 0x9f, 0x40, 0xf0,
   255  	0xc3, 0x78, 0x14, 0xfc, 0x02, 0x52, 0xfc, 0x20, 0xd2, 0x49, 0xea, 0x6e, 0x4b, 0x59, 0x3d, 0xf4,
   256  	0x94, 0x79, 0x99, 0x79, 0xef, 0xff, 0x9b, 0xf7, 0xfe, 0x83, 0x5d, 0x0d, 0xaa, 0x04, 0xc5, 0x12,
   257  	0x99, 0xa4, 0x50, 0x35, 0x1f, 0x2a, 0x95, 0x30, 0x82, 0xb4, 0xeb, 0xc8, 0xed, 0x26, 0x42, 0x24,
   258  	0x19, 0xb0, 0x50, 0x72, 0x16, 0xe6, 0xb9, 0x30, 0xa1, 0xe1, 0x22, 0xd7, 0xf5, 0x29, 0x77, 0x9c,
   259  	0x70, 0x73, 0x5a, 0x4c, 0x69, 0x24, 0x5e, 0xb3, 0x50, 0x25, 0x42, 0x2a, 0x31, 0xb3, 0x8b, 0x07,
   260  	0x51, 0xcc, 0xca, 0x11, 0x93, 0x69, 0xb2, 0xc8, 0xd4, 0x2c, 0x94, 0x32, 0xe3, 0x91, 0xcd, 0x65,
   261  	0xe5, 0x30, 0xcc, 0xe4, 0x69, 0x38, 0x64, 0x09, 0xe4, 0xa0, 0x42, 0x03, 0x71, 0x5d, 0xcd, 0xbb,
   262  	0x8f, 0x6f, 0xf8, 0x79, 0x31, 0xf1, 0x27, 0xc5, 0x34, 0xe3, 0xd1, 0x09, 0x54, 0xcf, 0x0a, 0x50,
   263  	0x15, 0xb9, 0x89, 0x2f, 0xa5, 0x50, 0x3d, 0x3d, 0x76, 0x50, 0x1f, 0x0d, 0x3a, 0x41, 0x1d, 0x78,
   264  	0x5f, 0x11, 0x3e, 0x5c, 0x3d, 0xfd, 0x44, 0x41, 0x68, 0x20, 0x80, 0x37, 0x05, 0x68, 0x43, 0x66,
   265  	0xb8, 0x23, 0xed, 0x4e, 0x0a, 0x95, 0xcd, 0xbc, 0x32, 0x1a, 0xd3, 0x33, 0x5c, 0xba, 0xc4, 0xb5,
   266  	0x8b, 0x57, 0x51, 0x4c, 0xcb, 0x11, 0x95, 0x69, 0x42, 0x17, 0xb8, 0xf4, 0x1c, 0x2e, 0x5d, 0xe2,
   267  	0xd2, 0x55, 0xb5, 0xe0, 0xac, 0x3c, 0xd9, 0xc7, 0xed, 0x42, 0x6a, 0x50, 0xc6, 0x69, 0xf5, 0xd1,
   268  	0xe0, 0x72, 0xd0, 0x44, 0xde, 0x37, 0x84, 0xbb, 0x9b, 0x19, 0xb5, 0x14, 0xb9, 0x06, 0x32, 0xc3,
   269  	0x7b, 0x91, 0xfd, 0x13, 0x37, 0x88, 0x93, 0x6d, 0x22, 0x8e, 0xb9, 0x36, 0xc1, 0x52, 0x80, 0x38,
   270  	0x78, 0x4f, 0xa7, 0x5c, 0x4a, 0x88, 0x9d, 0x56, 0x7f, 0x67, 0xd0, 0x09, 0x96, 0xa1, 0xe7, 0xe0,
   271  	0xfd, 0xb5, 0xbb, 0x35, 0x7c, 0xa3, 0x8f, 0xbb, 0xf8, 0xaa, 0x3f, 0xf1, 0x4f, 0xa0, 0x7a, 0x0e,
   272  	0xaa, 0xe4, 0x11, 0x90, 0x4f, 0x08, 0xef, 0x2e, 0xea, 0x92, 0x43, 0xda, 0xf8, 0x65, 0xc3, 0xc8,
   273  	0xdc, 0xad, 0x5f, 0xc3, 0x3b, 0xf8, 0xf0, 0xf3, 0xf7, 0x97, 0xd6, 0x75, 0x72, 0xcd, 0x3a, 0xb1,
   274  	0x1c, 0x36, 0x6e, 0xd5, 0xe4, 0x33, 0xc2, 0x3b, 0x3e, 0xfc, 0x83, 0x67, 0xab, 0x93, 0xf7, 0x6e,
   275  	0x5b, 0x96, 0x5b, 0xe4, 0x60, 0x8d, 0x85, 0xbd, 0xb3, 0xd6, 0x7c, 0x4f, 0xde, 0xe2, 0x76, 0x3d,
   276  	0x68, 0x72, 0x67, 0x33, 0xd5, 0x8a, 0x55, 0xdd, 0xbb, 0x17, 0x1f, 0xaa, 0x67, 0xe1, 0x79, 0x56,
   277  	0xb5, 0xeb, 0xad, 0x77, 0xe0, 0xe1, 0x39, 0x23, 0xbe, 0xc4, 0xed, 0x63, 0xc8, 0xc0, 0xc0, 0xc5,
   278  	0xed, 0xe8, 0x6d, 0xde, 0xfc, 0x2b, 0xd5, 0x34, 0xfb, 0xde, 0xba, 0xd4, 0xe3, 0x47, 0xdf, 0xe7,
   279  	0x3d, 0xf4, 0x63, 0xde, 0x43, 0xbf, 0xe6, 0x3d, 0xf4, 0xe2, 0xe8, 0xff, 0x5e, 0x7f, 0x94, 0x71,
   280  	0xc8, 0x4d, 0x53, 0x63, 0xda, 0xb6, 0x6f, 0xfd, 0xe8, 0x4f, 0x00, 0x00, 0x00, 0xff, 0xff, 0x18,
   281  	0x72, 0x6b, 0xb1, 0x7d, 0x04, 0x00, 0x00,
   282  }
   283  
   284  // Reference imports to suppress errors if they are not otherwise used.
   285  var _ context.Context
   286  var _ grpc.ClientConn
   287  
   288  // This is a compile-time assertion to ensure that this generated file
   289  // is compatible with the grpc package it is being compiled against.
   290  const _ = grpc.SupportPackageIsVersion4
   291  
   292  // GPGKeyServiceClient is the client API for GPGKeyService service.
   293  //
   294  // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
   295  type GPGKeyServiceClient interface {
   296  	// List all available repository certificates
   297  	List(ctx context.Context, in *GnuPGPublicKeyQuery, opts ...grpc.CallOption) (*v1alpha1.GnuPGPublicKeyList, error)
   298  	// Get information about specified GPG public key from the server
   299  	Get(ctx context.Context, in *GnuPGPublicKeyQuery, opts ...grpc.CallOption) (*v1alpha1.GnuPGPublicKey, error)
   300  	// Create one or more GPG public keys in the server's configuration
   301  	Create(ctx context.Context, in *GnuPGPublicKeyCreateRequest, opts ...grpc.CallOption) (*GnuPGPublicKeyCreateResponse, error)
   302  	// Delete specified GPG public key from the server's configuration
   303  	Delete(ctx context.Context, in *GnuPGPublicKeyQuery, opts ...grpc.CallOption) (*GnuPGPublicKeyResponse, error)
   304  }
   305  
   306  type gPGKeyServiceClient struct {
   307  	cc *grpc.ClientConn
   308  }
   309  
   310  func NewGPGKeyServiceClient(cc *grpc.ClientConn) GPGKeyServiceClient {
   311  	return &gPGKeyServiceClient{cc}
   312  }
   313  
   314  func (c *gPGKeyServiceClient) List(ctx context.Context, in *GnuPGPublicKeyQuery, opts ...grpc.CallOption) (*v1alpha1.GnuPGPublicKeyList, error) {
   315  	out := new(v1alpha1.GnuPGPublicKeyList)
   316  	err := c.cc.Invoke(ctx, "/gpgkey.GPGKeyService/List", in, out, opts...)
   317  	if err != nil {
   318  		return nil, err
   319  	}
   320  	return out, nil
   321  }
   322  
   323  func (c *gPGKeyServiceClient) Get(ctx context.Context, in *GnuPGPublicKeyQuery, opts ...grpc.CallOption) (*v1alpha1.GnuPGPublicKey, error) {
   324  	out := new(v1alpha1.GnuPGPublicKey)
   325  	err := c.cc.Invoke(ctx, "/gpgkey.GPGKeyService/Get", in, out, opts...)
   326  	if err != nil {
   327  		return nil, err
   328  	}
   329  	return out, nil
   330  }
   331  
   332  func (c *gPGKeyServiceClient) Create(ctx context.Context, in *GnuPGPublicKeyCreateRequest, opts ...grpc.CallOption) (*GnuPGPublicKeyCreateResponse, error) {
   333  	out := new(GnuPGPublicKeyCreateResponse)
   334  	err := c.cc.Invoke(ctx, "/gpgkey.GPGKeyService/Create", in, out, opts...)
   335  	if err != nil {
   336  		return nil, err
   337  	}
   338  	return out, nil
   339  }
   340  
   341  func (c *gPGKeyServiceClient) Delete(ctx context.Context, in *GnuPGPublicKeyQuery, opts ...grpc.CallOption) (*GnuPGPublicKeyResponse, error) {
   342  	out := new(GnuPGPublicKeyResponse)
   343  	err := c.cc.Invoke(ctx, "/gpgkey.GPGKeyService/Delete", in, out, opts...)
   344  	if err != nil {
   345  		return nil, err
   346  	}
   347  	return out, nil
   348  }
   349  
   350  // GPGKeyServiceServer is the server API for GPGKeyService service.
   351  type GPGKeyServiceServer interface {
   352  	// List all available repository certificates
   353  	List(context.Context, *GnuPGPublicKeyQuery) (*v1alpha1.GnuPGPublicKeyList, error)
   354  	// Get information about specified GPG public key from the server
   355  	Get(context.Context, *GnuPGPublicKeyQuery) (*v1alpha1.GnuPGPublicKey, error)
   356  	// Create one or more GPG public keys in the server's configuration
   357  	Create(context.Context, *GnuPGPublicKeyCreateRequest) (*GnuPGPublicKeyCreateResponse, error)
   358  	// Delete specified GPG public key from the server's configuration
   359  	Delete(context.Context, *GnuPGPublicKeyQuery) (*GnuPGPublicKeyResponse, error)
   360  }
   361  
   362  // UnimplementedGPGKeyServiceServer can be embedded to have forward compatible implementations.
   363  type UnimplementedGPGKeyServiceServer struct {
   364  }
   365  
   366  func (*UnimplementedGPGKeyServiceServer) List(ctx context.Context, req *GnuPGPublicKeyQuery) (*v1alpha1.GnuPGPublicKeyList, error) {
   367  	return nil, status.Errorf(codes.Unimplemented, "method List not implemented")
   368  }
   369  func (*UnimplementedGPGKeyServiceServer) Get(ctx context.Context, req *GnuPGPublicKeyQuery) (*v1alpha1.GnuPGPublicKey, error) {
   370  	return nil, status.Errorf(codes.Unimplemented, "method Get not implemented")
   371  }
   372  func (*UnimplementedGPGKeyServiceServer) Create(ctx context.Context, req *GnuPGPublicKeyCreateRequest) (*GnuPGPublicKeyCreateResponse, error) {
   373  	return nil, status.Errorf(codes.Unimplemented, "method Create not implemented")
   374  }
   375  func (*UnimplementedGPGKeyServiceServer) Delete(ctx context.Context, req *GnuPGPublicKeyQuery) (*GnuPGPublicKeyResponse, error) {
   376  	return nil, status.Errorf(codes.Unimplemented, "method Delete not implemented")
   377  }
   378  
   379  func RegisterGPGKeyServiceServer(s *grpc.Server, srv GPGKeyServiceServer) {
   380  	s.RegisterService(&_GPGKeyService_serviceDesc, srv)
   381  }
   382  
   383  func _GPGKeyService_List_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
   384  	in := new(GnuPGPublicKeyQuery)
   385  	if err := dec(in); err != nil {
   386  		return nil, err
   387  	}
   388  	if interceptor == nil {
   389  		return srv.(GPGKeyServiceServer).List(ctx, in)
   390  	}
   391  	info := &grpc.UnaryServerInfo{
   392  		Server:     srv,
   393  		FullMethod: "/gpgkey.GPGKeyService/List",
   394  	}
   395  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
   396  		return srv.(GPGKeyServiceServer).List(ctx, req.(*GnuPGPublicKeyQuery))
   397  	}
   398  	return interceptor(ctx, in, info, handler)
   399  }
   400  
   401  func _GPGKeyService_Get_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
   402  	in := new(GnuPGPublicKeyQuery)
   403  	if err := dec(in); err != nil {
   404  		return nil, err
   405  	}
   406  	if interceptor == nil {
   407  		return srv.(GPGKeyServiceServer).Get(ctx, in)
   408  	}
   409  	info := &grpc.UnaryServerInfo{
   410  		Server:     srv,
   411  		FullMethod: "/gpgkey.GPGKeyService/Get",
   412  	}
   413  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
   414  		return srv.(GPGKeyServiceServer).Get(ctx, req.(*GnuPGPublicKeyQuery))
   415  	}
   416  	return interceptor(ctx, in, info, handler)
   417  }
   418  
   419  func _GPGKeyService_Create_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
   420  	in := new(GnuPGPublicKeyCreateRequest)
   421  	if err := dec(in); err != nil {
   422  		return nil, err
   423  	}
   424  	if interceptor == nil {
   425  		return srv.(GPGKeyServiceServer).Create(ctx, in)
   426  	}
   427  	info := &grpc.UnaryServerInfo{
   428  		Server:     srv,
   429  		FullMethod: "/gpgkey.GPGKeyService/Create",
   430  	}
   431  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
   432  		return srv.(GPGKeyServiceServer).Create(ctx, req.(*GnuPGPublicKeyCreateRequest))
   433  	}
   434  	return interceptor(ctx, in, info, handler)
   435  }
   436  
   437  func _GPGKeyService_Delete_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
   438  	in := new(GnuPGPublicKeyQuery)
   439  	if err := dec(in); err != nil {
   440  		return nil, err
   441  	}
   442  	if interceptor == nil {
   443  		return srv.(GPGKeyServiceServer).Delete(ctx, in)
   444  	}
   445  	info := &grpc.UnaryServerInfo{
   446  		Server:     srv,
   447  		FullMethod: "/gpgkey.GPGKeyService/Delete",
   448  	}
   449  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
   450  		return srv.(GPGKeyServiceServer).Delete(ctx, req.(*GnuPGPublicKeyQuery))
   451  	}
   452  	return interceptor(ctx, in, info, handler)
   453  }
   454  
   455  var _GPGKeyService_serviceDesc = grpc.ServiceDesc{
   456  	ServiceName: "gpgkey.GPGKeyService",
   457  	HandlerType: (*GPGKeyServiceServer)(nil),
   458  	Methods: []grpc.MethodDesc{
   459  		{
   460  			MethodName: "List",
   461  			Handler:    _GPGKeyService_List_Handler,
   462  		},
   463  		{
   464  			MethodName: "Get",
   465  			Handler:    _GPGKeyService_Get_Handler,
   466  		},
   467  		{
   468  			MethodName: "Create",
   469  			Handler:    _GPGKeyService_Create_Handler,
   470  		},
   471  		{
   472  			MethodName: "Delete",
   473  			Handler:    _GPGKeyService_Delete_Handler,
   474  		},
   475  	},
   476  	Streams:  []grpc.StreamDesc{},
   477  	Metadata: "server/gpgkey/gpgkey.proto",
   478  }
   479  
   480  func (m *GnuPGPublicKeyQuery) Marshal() (dAtA []byte, err error) {
   481  	size := m.Size()
   482  	dAtA = make([]byte, size)
   483  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
   484  	if err != nil {
   485  		return nil, err
   486  	}
   487  	return dAtA[:n], nil
   488  }
   489  
   490  func (m *GnuPGPublicKeyQuery) MarshalTo(dAtA []byte) (int, error) {
   491  	size := m.Size()
   492  	return m.MarshalToSizedBuffer(dAtA[:size])
   493  }
   494  
   495  func (m *GnuPGPublicKeyQuery) MarshalToSizedBuffer(dAtA []byte) (int, error) {
   496  	i := len(dAtA)
   497  	_ = i
   498  	var l int
   499  	_ = l
   500  	if m.XXX_unrecognized != nil {
   501  		i -= len(m.XXX_unrecognized)
   502  		copy(dAtA[i:], m.XXX_unrecognized)
   503  	}
   504  	if len(m.KeyID) > 0 {
   505  		i -= len(m.KeyID)
   506  		copy(dAtA[i:], m.KeyID)
   507  		i = encodeVarintGpgkey(dAtA, i, uint64(len(m.KeyID)))
   508  		i--
   509  		dAtA[i] = 0xa
   510  	}
   511  	return len(dAtA) - i, nil
   512  }
   513  
   514  func (m *GnuPGPublicKeyCreateRequest) Marshal() (dAtA []byte, err error) {
   515  	size := m.Size()
   516  	dAtA = make([]byte, size)
   517  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
   518  	if err != nil {
   519  		return nil, err
   520  	}
   521  	return dAtA[:n], nil
   522  }
   523  
   524  func (m *GnuPGPublicKeyCreateRequest) MarshalTo(dAtA []byte) (int, error) {
   525  	size := m.Size()
   526  	return m.MarshalToSizedBuffer(dAtA[:size])
   527  }
   528  
   529  func (m *GnuPGPublicKeyCreateRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
   530  	i := len(dAtA)
   531  	_ = i
   532  	var l int
   533  	_ = l
   534  	if m.XXX_unrecognized != nil {
   535  		i -= len(m.XXX_unrecognized)
   536  		copy(dAtA[i:], m.XXX_unrecognized)
   537  	}
   538  	if m.Upsert {
   539  		i--
   540  		if m.Upsert {
   541  			dAtA[i] = 1
   542  		} else {
   543  			dAtA[i] = 0
   544  		}
   545  		i--
   546  		dAtA[i] = 0x10
   547  	}
   548  	if m.Publickey != nil {
   549  		{
   550  			size, err := m.Publickey.MarshalToSizedBuffer(dAtA[:i])
   551  			if err != nil {
   552  				return 0, err
   553  			}
   554  			i -= size
   555  			i = encodeVarintGpgkey(dAtA, i, uint64(size))
   556  		}
   557  		i--
   558  		dAtA[i] = 0xa
   559  	}
   560  	return len(dAtA) - i, nil
   561  }
   562  
   563  func (m *GnuPGPublicKeyCreateResponse) Marshal() (dAtA []byte, err error) {
   564  	size := m.Size()
   565  	dAtA = make([]byte, size)
   566  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
   567  	if err != nil {
   568  		return nil, err
   569  	}
   570  	return dAtA[:n], nil
   571  }
   572  
   573  func (m *GnuPGPublicKeyCreateResponse) MarshalTo(dAtA []byte) (int, error) {
   574  	size := m.Size()
   575  	return m.MarshalToSizedBuffer(dAtA[:size])
   576  }
   577  
   578  func (m *GnuPGPublicKeyCreateResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
   579  	i := len(dAtA)
   580  	_ = i
   581  	var l int
   582  	_ = l
   583  	if m.XXX_unrecognized != nil {
   584  		i -= len(m.XXX_unrecognized)
   585  		copy(dAtA[i:], m.XXX_unrecognized)
   586  	}
   587  	if len(m.Skipped) > 0 {
   588  		for iNdEx := len(m.Skipped) - 1; iNdEx >= 0; iNdEx-- {
   589  			i -= len(m.Skipped[iNdEx])
   590  			copy(dAtA[i:], m.Skipped[iNdEx])
   591  			i = encodeVarintGpgkey(dAtA, i, uint64(len(m.Skipped[iNdEx])))
   592  			i--
   593  			dAtA[i] = 0x12
   594  		}
   595  	}
   596  	if m.Created != nil {
   597  		{
   598  			size, err := m.Created.MarshalToSizedBuffer(dAtA[:i])
   599  			if err != nil {
   600  				return 0, err
   601  			}
   602  			i -= size
   603  			i = encodeVarintGpgkey(dAtA, i, uint64(size))
   604  		}
   605  		i--
   606  		dAtA[i] = 0xa
   607  	}
   608  	return len(dAtA) - i, nil
   609  }
   610  
   611  func (m *GnuPGPublicKeyResponse) Marshal() (dAtA []byte, err error) {
   612  	size := m.Size()
   613  	dAtA = make([]byte, size)
   614  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
   615  	if err != nil {
   616  		return nil, err
   617  	}
   618  	return dAtA[:n], nil
   619  }
   620  
   621  func (m *GnuPGPublicKeyResponse) MarshalTo(dAtA []byte) (int, error) {
   622  	size := m.Size()
   623  	return m.MarshalToSizedBuffer(dAtA[:size])
   624  }
   625  
   626  func (m *GnuPGPublicKeyResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
   627  	i := len(dAtA)
   628  	_ = i
   629  	var l int
   630  	_ = l
   631  	if m.XXX_unrecognized != nil {
   632  		i -= len(m.XXX_unrecognized)
   633  		copy(dAtA[i:], m.XXX_unrecognized)
   634  	}
   635  	return len(dAtA) - i, nil
   636  }
   637  
   638  func encodeVarintGpgkey(dAtA []byte, offset int, v uint64) int {
   639  	offset -= sovGpgkey(v)
   640  	base := offset
   641  	for v >= 1<<7 {
   642  		dAtA[offset] = uint8(v&0x7f | 0x80)
   643  		v >>= 7
   644  		offset++
   645  	}
   646  	dAtA[offset] = uint8(v)
   647  	return base
   648  }
   649  func (m *GnuPGPublicKeyQuery) Size() (n int) {
   650  	if m == nil {
   651  		return 0
   652  	}
   653  	var l int
   654  	_ = l
   655  	l = len(m.KeyID)
   656  	if l > 0 {
   657  		n += 1 + l + sovGpgkey(uint64(l))
   658  	}
   659  	if m.XXX_unrecognized != nil {
   660  		n += len(m.XXX_unrecognized)
   661  	}
   662  	return n
   663  }
   664  
   665  func (m *GnuPGPublicKeyCreateRequest) Size() (n int) {
   666  	if m == nil {
   667  		return 0
   668  	}
   669  	var l int
   670  	_ = l
   671  	if m.Publickey != nil {
   672  		l = m.Publickey.Size()
   673  		n += 1 + l + sovGpgkey(uint64(l))
   674  	}
   675  	if m.Upsert {
   676  		n += 2
   677  	}
   678  	if m.XXX_unrecognized != nil {
   679  		n += len(m.XXX_unrecognized)
   680  	}
   681  	return n
   682  }
   683  
   684  func (m *GnuPGPublicKeyCreateResponse) Size() (n int) {
   685  	if m == nil {
   686  		return 0
   687  	}
   688  	var l int
   689  	_ = l
   690  	if m.Created != nil {
   691  		l = m.Created.Size()
   692  		n += 1 + l + sovGpgkey(uint64(l))
   693  	}
   694  	if len(m.Skipped) > 0 {
   695  		for _, s := range m.Skipped {
   696  			l = len(s)
   697  			n += 1 + l + sovGpgkey(uint64(l))
   698  		}
   699  	}
   700  	if m.XXX_unrecognized != nil {
   701  		n += len(m.XXX_unrecognized)
   702  	}
   703  	return n
   704  }
   705  
   706  func (m *GnuPGPublicKeyResponse) Size() (n int) {
   707  	if m == nil {
   708  		return 0
   709  	}
   710  	var l int
   711  	_ = l
   712  	if m.XXX_unrecognized != nil {
   713  		n += len(m.XXX_unrecognized)
   714  	}
   715  	return n
   716  }
   717  
   718  func sovGpgkey(x uint64) (n int) {
   719  	return (math_bits.Len64(x|1) + 6) / 7
   720  }
   721  func sozGpgkey(x uint64) (n int) {
   722  	return sovGpgkey(uint64((x << 1) ^ uint64((int64(x) >> 63))))
   723  }
   724  func (m *GnuPGPublicKeyQuery) Unmarshal(dAtA []byte) error {
   725  	l := len(dAtA)
   726  	iNdEx := 0
   727  	for iNdEx < l {
   728  		preIndex := iNdEx
   729  		var wire uint64
   730  		for shift := uint(0); ; shift += 7 {
   731  			if shift >= 64 {
   732  				return ErrIntOverflowGpgkey
   733  			}
   734  			if iNdEx >= l {
   735  				return io.ErrUnexpectedEOF
   736  			}
   737  			b := dAtA[iNdEx]
   738  			iNdEx++
   739  			wire |= uint64(b&0x7F) << shift
   740  			if b < 0x80 {
   741  				break
   742  			}
   743  		}
   744  		fieldNum := int32(wire >> 3)
   745  		wireType := int(wire & 0x7)
   746  		if wireType == 4 {
   747  			return fmt.Errorf("proto: GnuPGPublicKeyQuery: wiretype end group for non-group")
   748  		}
   749  		if fieldNum <= 0 {
   750  			return fmt.Errorf("proto: GnuPGPublicKeyQuery: illegal tag %d (wire type %d)", fieldNum, wire)
   751  		}
   752  		switch fieldNum {
   753  		case 1:
   754  			if wireType != 2 {
   755  				return fmt.Errorf("proto: wrong wireType = %d for field KeyID", wireType)
   756  			}
   757  			var stringLen uint64
   758  			for shift := uint(0); ; shift += 7 {
   759  				if shift >= 64 {
   760  					return ErrIntOverflowGpgkey
   761  				}
   762  				if iNdEx >= l {
   763  					return io.ErrUnexpectedEOF
   764  				}
   765  				b := dAtA[iNdEx]
   766  				iNdEx++
   767  				stringLen |= uint64(b&0x7F) << shift
   768  				if b < 0x80 {
   769  					break
   770  				}
   771  			}
   772  			intStringLen := int(stringLen)
   773  			if intStringLen < 0 {
   774  				return ErrInvalidLengthGpgkey
   775  			}
   776  			postIndex := iNdEx + intStringLen
   777  			if postIndex < 0 {
   778  				return ErrInvalidLengthGpgkey
   779  			}
   780  			if postIndex > l {
   781  				return io.ErrUnexpectedEOF
   782  			}
   783  			m.KeyID = string(dAtA[iNdEx:postIndex])
   784  			iNdEx = postIndex
   785  		default:
   786  			iNdEx = preIndex
   787  			skippy, err := skipGpgkey(dAtA[iNdEx:])
   788  			if err != nil {
   789  				return err
   790  			}
   791  			if (skippy < 0) || (iNdEx+skippy) < 0 {
   792  				return ErrInvalidLengthGpgkey
   793  			}
   794  			if (iNdEx + skippy) > l {
   795  				return io.ErrUnexpectedEOF
   796  			}
   797  			m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
   798  			iNdEx += skippy
   799  		}
   800  	}
   801  
   802  	if iNdEx > l {
   803  		return io.ErrUnexpectedEOF
   804  	}
   805  	return nil
   806  }
   807  func (m *GnuPGPublicKeyCreateRequest) Unmarshal(dAtA []byte) error {
   808  	l := len(dAtA)
   809  	iNdEx := 0
   810  	for iNdEx < l {
   811  		preIndex := iNdEx
   812  		var wire uint64
   813  		for shift := uint(0); ; shift += 7 {
   814  			if shift >= 64 {
   815  				return ErrIntOverflowGpgkey
   816  			}
   817  			if iNdEx >= l {
   818  				return io.ErrUnexpectedEOF
   819  			}
   820  			b := dAtA[iNdEx]
   821  			iNdEx++
   822  			wire |= uint64(b&0x7F) << shift
   823  			if b < 0x80 {
   824  				break
   825  			}
   826  		}
   827  		fieldNum := int32(wire >> 3)
   828  		wireType := int(wire & 0x7)
   829  		if wireType == 4 {
   830  			return fmt.Errorf("proto: GnuPGPublicKeyCreateRequest: wiretype end group for non-group")
   831  		}
   832  		if fieldNum <= 0 {
   833  			return fmt.Errorf("proto: GnuPGPublicKeyCreateRequest: illegal tag %d (wire type %d)", fieldNum, wire)
   834  		}
   835  		switch fieldNum {
   836  		case 1:
   837  			if wireType != 2 {
   838  				return fmt.Errorf("proto: wrong wireType = %d for field Publickey", wireType)
   839  			}
   840  			var msglen int
   841  			for shift := uint(0); ; shift += 7 {
   842  				if shift >= 64 {
   843  					return ErrIntOverflowGpgkey
   844  				}
   845  				if iNdEx >= l {
   846  					return io.ErrUnexpectedEOF
   847  				}
   848  				b := dAtA[iNdEx]
   849  				iNdEx++
   850  				msglen |= int(b&0x7F) << shift
   851  				if b < 0x80 {
   852  					break
   853  				}
   854  			}
   855  			if msglen < 0 {
   856  				return ErrInvalidLengthGpgkey
   857  			}
   858  			postIndex := iNdEx + msglen
   859  			if postIndex < 0 {
   860  				return ErrInvalidLengthGpgkey
   861  			}
   862  			if postIndex > l {
   863  				return io.ErrUnexpectedEOF
   864  			}
   865  			if m.Publickey == nil {
   866  				m.Publickey = &v1alpha1.GnuPGPublicKey{}
   867  			}
   868  			if err := m.Publickey.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
   869  				return err
   870  			}
   871  			iNdEx = postIndex
   872  		case 2:
   873  			if wireType != 0 {
   874  				return fmt.Errorf("proto: wrong wireType = %d for field Upsert", wireType)
   875  			}
   876  			var v int
   877  			for shift := uint(0); ; shift += 7 {
   878  				if shift >= 64 {
   879  					return ErrIntOverflowGpgkey
   880  				}
   881  				if iNdEx >= l {
   882  					return io.ErrUnexpectedEOF
   883  				}
   884  				b := dAtA[iNdEx]
   885  				iNdEx++
   886  				v |= int(b&0x7F) << shift
   887  				if b < 0x80 {
   888  					break
   889  				}
   890  			}
   891  			m.Upsert = bool(v != 0)
   892  		default:
   893  			iNdEx = preIndex
   894  			skippy, err := skipGpgkey(dAtA[iNdEx:])
   895  			if err != nil {
   896  				return err
   897  			}
   898  			if (skippy < 0) || (iNdEx+skippy) < 0 {
   899  				return ErrInvalidLengthGpgkey
   900  			}
   901  			if (iNdEx + skippy) > l {
   902  				return io.ErrUnexpectedEOF
   903  			}
   904  			m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
   905  			iNdEx += skippy
   906  		}
   907  	}
   908  
   909  	if iNdEx > l {
   910  		return io.ErrUnexpectedEOF
   911  	}
   912  	return nil
   913  }
   914  func (m *GnuPGPublicKeyCreateResponse) Unmarshal(dAtA []byte) error {
   915  	l := len(dAtA)
   916  	iNdEx := 0
   917  	for iNdEx < l {
   918  		preIndex := iNdEx
   919  		var wire uint64
   920  		for shift := uint(0); ; shift += 7 {
   921  			if shift >= 64 {
   922  				return ErrIntOverflowGpgkey
   923  			}
   924  			if iNdEx >= l {
   925  				return io.ErrUnexpectedEOF
   926  			}
   927  			b := dAtA[iNdEx]
   928  			iNdEx++
   929  			wire |= uint64(b&0x7F) << shift
   930  			if b < 0x80 {
   931  				break
   932  			}
   933  		}
   934  		fieldNum := int32(wire >> 3)
   935  		wireType := int(wire & 0x7)
   936  		if wireType == 4 {
   937  			return fmt.Errorf("proto: GnuPGPublicKeyCreateResponse: wiretype end group for non-group")
   938  		}
   939  		if fieldNum <= 0 {
   940  			return fmt.Errorf("proto: GnuPGPublicKeyCreateResponse: illegal tag %d (wire type %d)", fieldNum, wire)
   941  		}
   942  		switch fieldNum {
   943  		case 1:
   944  			if wireType != 2 {
   945  				return fmt.Errorf("proto: wrong wireType = %d for field Created", wireType)
   946  			}
   947  			var msglen int
   948  			for shift := uint(0); ; shift += 7 {
   949  				if shift >= 64 {
   950  					return ErrIntOverflowGpgkey
   951  				}
   952  				if iNdEx >= l {
   953  					return io.ErrUnexpectedEOF
   954  				}
   955  				b := dAtA[iNdEx]
   956  				iNdEx++
   957  				msglen |= int(b&0x7F) << shift
   958  				if b < 0x80 {
   959  					break
   960  				}
   961  			}
   962  			if msglen < 0 {
   963  				return ErrInvalidLengthGpgkey
   964  			}
   965  			postIndex := iNdEx + msglen
   966  			if postIndex < 0 {
   967  				return ErrInvalidLengthGpgkey
   968  			}
   969  			if postIndex > l {
   970  				return io.ErrUnexpectedEOF
   971  			}
   972  			if m.Created == nil {
   973  				m.Created = &v1alpha1.GnuPGPublicKeyList{}
   974  			}
   975  			if err := m.Created.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
   976  				return err
   977  			}
   978  			iNdEx = postIndex
   979  		case 2:
   980  			if wireType != 2 {
   981  				return fmt.Errorf("proto: wrong wireType = %d for field Skipped", wireType)
   982  			}
   983  			var stringLen uint64
   984  			for shift := uint(0); ; shift += 7 {
   985  				if shift >= 64 {
   986  					return ErrIntOverflowGpgkey
   987  				}
   988  				if iNdEx >= l {
   989  					return io.ErrUnexpectedEOF
   990  				}
   991  				b := dAtA[iNdEx]
   992  				iNdEx++
   993  				stringLen |= uint64(b&0x7F) << shift
   994  				if b < 0x80 {
   995  					break
   996  				}
   997  			}
   998  			intStringLen := int(stringLen)
   999  			if intStringLen < 0 {
  1000  				return ErrInvalidLengthGpgkey
  1001  			}
  1002  			postIndex := iNdEx + intStringLen
  1003  			if postIndex < 0 {
  1004  				return ErrInvalidLengthGpgkey
  1005  			}
  1006  			if postIndex > l {
  1007  				return io.ErrUnexpectedEOF
  1008  			}
  1009  			m.Skipped = append(m.Skipped, string(dAtA[iNdEx:postIndex]))
  1010  			iNdEx = postIndex
  1011  		default:
  1012  			iNdEx = preIndex
  1013  			skippy, err := skipGpgkey(dAtA[iNdEx:])
  1014  			if err != nil {
  1015  				return err
  1016  			}
  1017  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  1018  				return ErrInvalidLengthGpgkey
  1019  			}
  1020  			if (iNdEx + skippy) > l {
  1021  				return io.ErrUnexpectedEOF
  1022  			}
  1023  			m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  1024  			iNdEx += skippy
  1025  		}
  1026  	}
  1027  
  1028  	if iNdEx > l {
  1029  		return io.ErrUnexpectedEOF
  1030  	}
  1031  	return nil
  1032  }
  1033  func (m *GnuPGPublicKeyResponse) Unmarshal(dAtA []byte) error {
  1034  	l := len(dAtA)
  1035  	iNdEx := 0
  1036  	for iNdEx < l {
  1037  		preIndex := iNdEx
  1038  		var wire uint64
  1039  		for shift := uint(0); ; shift += 7 {
  1040  			if shift >= 64 {
  1041  				return ErrIntOverflowGpgkey
  1042  			}
  1043  			if iNdEx >= l {
  1044  				return io.ErrUnexpectedEOF
  1045  			}
  1046  			b := dAtA[iNdEx]
  1047  			iNdEx++
  1048  			wire |= uint64(b&0x7F) << shift
  1049  			if b < 0x80 {
  1050  				break
  1051  			}
  1052  		}
  1053  		fieldNum := int32(wire >> 3)
  1054  		wireType := int(wire & 0x7)
  1055  		if wireType == 4 {
  1056  			return fmt.Errorf("proto: GnuPGPublicKeyResponse: wiretype end group for non-group")
  1057  		}
  1058  		if fieldNum <= 0 {
  1059  			return fmt.Errorf("proto: GnuPGPublicKeyResponse: illegal tag %d (wire type %d)", fieldNum, wire)
  1060  		}
  1061  		switch fieldNum {
  1062  		default:
  1063  			iNdEx = preIndex
  1064  			skippy, err := skipGpgkey(dAtA[iNdEx:])
  1065  			if err != nil {
  1066  				return err
  1067  			}
  1068  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  1069  				return ErrInvalidLengthGpgkey
  1070  			}
  1071  			if (iNdEx + skippy) > l {
  1072  				return io.ErrUnexpectedEOF
  1073  			}
  1074  			m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  1075  			iNdEx += skippy
  1076  		}
  1077  	}
  1078  
  1079  	if iNdEx > l {
  1080  		return io.ErrUnexpectedEOF
  1081  	}
  1082  	return nil
  1083  }
  1084  func skipGpgkey(dAtA []byte) (n int, err error) {
  1085  	l := len(dAtA)
  1086  	iNdEx := 0
  1087  	depth := 0
  1088  	for iNdEx < l {
  1089  		var wire uint64
  1090  		for shift := uint(0); ; shift += 7 {
  1091  			if shift >= 64 {
  1092  				return 0, ErrIntOverflowGpgkey
  1093  			}
  1094  			if iNdEx >= l {
  1095  				return 0, io.ErrUnexpectedEOF
  1096  			}
  1097  			b := dAtA[iNdEx]
  1098  			iNdEx++
  1099  			wire |= (uint64(b) & 0x7F) << shift
  1100  			if b < 0x80 {
  1101  				break
  1102  			}
  1103  		}
  1104  		wireType := int(wire & 0x7)
  1105  		switch wireType {
  1106  		case 0:
  1107  			for shift := uint(0); ; shift += 7 {
  1108  				if shift >= 64 {
  1109  					return 0, ErrIntOverflowGpgkey
  1110  				}
  1111  				if iNdEx >= l {
  1112  					return 0, io.ErrUnexpectedEOF
  1113  				}
  1114  				iNdEx++
  1115  				if dAtA[iNdEx-1] < 0x80 {
  1116  					break
  1117  				}
  1118  			}
  1119  		case 1:
  1120  			iNdEx += 8
  1121  		case 2:
  1122  			var length int
  1123  			for shift := uint(0); ; shift += 7 {
  1124  				if shift >= 64 {
  1125  					return 0, ErrIntOverflowGpgkey
  1126  				}
  1127  				if iNdEx >= l {
  1128  					return 0, io.ErrUnexpectedEOF
  1129  				}
  1130  				b := dAtA[iNdEx]
  1131  				iNdEx++
  1132  				length |= (int(b) & 0x7F) << shift
  1133  				if b < 0x80 {
  1134  					break
  1135  				}
  1136  			}
  1137  			if length < 0 {
  1138  				return 0, ErrInvalidLengthGpgkey
  1139  			}
  1140  			iNdEx += length
  1141  		case 3:
  1142  			depth++
  1143  		case 4:
  1144  			if depth == 0 {
  1145  				return 0, ErrUnexpectedEndOfGroupGpgkey
  1146  			}
  1147  			depth--
  1148  		case 5:
  1149  			iNdEx += 4
  1150  		default:
  1151  			return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
  1152  		}
  1153  		if iNdEx < 0 {
  1154  			return 0, ErrInvalidLengthGpgkey
  1155  		}
  1156  		if depth == 0 {
  1157  			return iNdEx, nil
  1158  		}
  1159  	}
  1160  	return 0, io.ErrUnexpectedEOF
  1161  }
  1162  
  1163  var (
  1164  	ErrInvalidLengthGpgkey        = fmt.Errorf("proto: negative length found during unmarshaling")
  1165  	ErrIntOverflowGpgkey          = fmt.Errorf("proto: integer overflow")
  1166  	ErrUnexpectedEndOfGroupGpgkey = fmt.Errorf("proto: unexpected end of group")
  1167  )