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