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

     1  // Code generated by protoc-gen-gogo. DO NOT EDIT.
     2  // source: server/cluster/cluster.proto
     3  
     4  // Cluster Service
     5  //
     6  // Cluster Service API performs CRUD actions against cluster resources
     7  
     8  package cluster
     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  // ClusterID holds a cluster server URL or cluster name
    36  type ClusterID struct {
    37  	// type is the type of the specified cluster identifier ( "server" - default, "name" )
    38  	Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"`
    39  	// value holds the cluster server URL or cluster name
    40  	Value                string   `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
    41  	XXX_NoUnkeyedLiteral struct{} `json:"-"`
    42  	XXX_unrecognized     []byte   `json:"-"`
    43  	XXX_sizecache        int32    `json:"-"`
    44  }
    45  
    46  func (m *ClusterID) Reset()         { *m = ClusterID{} }
    47  func (m *ClusterID) String() string { return proto.CompactTextString(m) }
    48  func (*ClusterID) ProtoMessage()    {}
    49  func (*ClusterID) Descriptor() ([]byte, []int) {
    50  	return fileDescriptor_a6b5ba0b5aa57b32, []int{0}
    51  }
    52  func (m *ClusterID) XXX_Unmarshal(b []byte) error {
    53  	return m.Unmarshal(b)
    54  }
    55  func (m *ClusterID) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
    56  	if deterministic {
    57  		return xxx_messageInfo_ClusterID.Marshal(b, m, deterministic)
    58  	} else {
    59  		b = b[:cap(b)]
    60  		n, err := m.MarshalToSizedBuffer(b)
    61  		if err != nil {
    62  			return nil, err
    63  		}
    64  		return b[:n], nil
    65  	}
    66  }
    67  func (m *ClusterID) XXX_Merge(src proto.Message) {
    68  	xxx_messageInfo_ClusterID.Merge(m, src)
    69  }
    70  func (m *ClusterID) XXX_Size() int {
    71  	return m.Size()
    72  }
    73  func (m *ClusterID) XXX_DiscardUnknown() {
    74  	xxx_messageInfo_ClusterID.DiscardUnknown(m)
    75  }
    76  
    77  var xxx_messageInfo_ClusterID proto.InternalMessageInfo
    78  
    79  func (m *ClusterID) GetType() string {
    80  	if m != nil {
    81  		return m.Type
    82  	}
    83  	return ""
    84  }
    85  
    86  func (m *ClusterID) GetValue() string {
    87  	if m != nil {
    88  		return m.Value
    89  	}
    90  	return ""
    91  }
    92  
    93  // ClusterQuery is a query for cluster resources
    94  type ClusterQuery struct {
    95  	Server               string     `protobuf:"bytes,1,opt,name=server,proto3" json:"server,omitempty"`
    96  	Name                 string     `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
    97  	Id                   *ClusterID `protobuf:"bytes,3,opt,name=id,proto3" json:"id,omitempty"`
    98  	XXX_NoUnkeyedLiteral struct{}   `json:"-"`
    99  	XXX_unrecognized     []byte     `json:"-"`
   100  	XXX_sizecache        int32      `json:"-"`
   101  }
   102  
   103  func (m *ClusterQuery) Reset()         { *m = ClusterQuery{} }
   104  func (m *ClusterQuery) String() string { return proto.CompactTextString(m) }
   105  func (*ClusterQuery) ProtoMessage()    {}
   106  func (*ClusterQuery) Descriptor() ([]byte, []int) {
   107  	return fileDescriptor_a6b5ba0b5aa57b32, []int{1}
   108  }
   109  func (m *ClusterQuery) XXX_Unmarshal(b []byte) error {
   110  	return m.Unmarshal(b)
   111  }
   112  func (m *ClusterQuery) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   113  	if deterministic {
   114  		return xxx_messageInfo_ClusterQuery.Marshal(b, m, deterministic)
   115  	} else {
   116  		b = b[:cap(b)]
   117  		n, err := m.MarshalToSizedBuffer(b)
   118  		if err != nil {
   119  			return nil, err
   120  		}
   121  		return b[:n], nil
   122  	}
   123  }
   124  func (m *ClusterQuery) XXX_Merge(src proto.Message) {
   125  	xxx_messageInfo_ClusterQuery.Merge(m, src)
   126  }
   127  func (m *ClusterQuery) XXX_Size() int {
   128  	return m.Size()
   129  }
   130  func (m *ClusterQuery) XXX_DiscardUnknown() {
   131  	xxx_messageInfo_ClusterQuery.DiscardUnknown(m)
   132  }
   133  
   134  var xxx_messageInfo_ClusterQuery proto.InternalMessageInfo
   135  
   136  func (m *ClusterQuery) GetServer() string {
   137  	if m != nil {
   138  		return m.Server
   139  	}
   140  	return ""
   141  }
   142  
   143  func (m *ClusterQuery) GetName() string {
   144  	if m != nil {
   145  		return m.Name
   146  	}
   147  	return ""
   148  }
   149  
   150  func (m *ClusterQuery) GetId() *ClusterID {
   151  	if m != nil {
   152  		return m.Id
   153  	}
   154  	return nil
   155  }
   156  
   157  type ClusterResponse struct {
   158  	XXX_NoUnkeyedLiteral struct{} `json:"-"`
   159  	XXX_unrecognized     []byte   `json:"-"`
   160  	XXX_sizecache        int32    `json:"-"`
   161  }
   162  
   163  func (m *ClusterResponse) Reset()         { *m = ClusterResponse{} }
   164  func (m *ClusterResponse) String() string { return proto.CompactTextString(m) }
   165  func (*ClusterResponse) ProtoMessage()    {}
   166  func (*ClusterResponse) Descriptor() ([]byte, []int) {
   167  	return fileDescriptor_a6b5ba0b5aa57b32, []int{2}
   168  }
   169  func (m *ClusterResponse) XXX_Unmarshal(b []byte) error {
   170  	return m.Unmarshal(b)
   171  }
   172  func (m *ClusterResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   173  	if deterministic {
   174  		return xxx_messageInfo_ClusterResponse.Marshal(b, m, deterministic)
   175  	} else {
   176  		b = b[:cap(b)]
   177  		n, err := m.MarshalToSizedBuffer(b)
   178  		if err != nil {
   179  			return nil, err
   180  		}
   181  		return b[:n], nil
   182  	}
   183  }
   184  func (m *ClusterResponse) XXX_Merge(src proto.Message) {
   185  	xxx_messageInfo_ClusterResponse.Merge(m, src)
   186  }
   187  func (m *ClusterResponse) XXX_Size() int {
   188  	return m.Size()
   189  }
   190  func (m *ClusterResponse) XXX_DiscardUnknown() {
   191  	xxx_messageInfo_ClusterResponse.DiscardUnknown(m)
   192  }
   193  
   194  var xxx_messageInfo_ClusterResponse proto.InternalMessageInfo
   195  
   196  type ClusterCreateRequest struct {
   197  	Cluster              *v1alpha1.Cluster `protobuf:"bytes,1,opt,name=cluster,proto3" json:"cluster,omitempty"`
   198  	Upsert               bool              `protobuf:"varint,2,opt,name=upsert,proto3" json:"upsert,omitempty"`
   199  	XXX_NoUnkeyedLiteral struct{}          `json:"-"`
   200  	XXX_unrecognized     []byte            `json:"-"`
   201  	XXX_sizecache        int32             `json:"-"`
   202  }
   203  
   204  func (m *ClusterCreateRequest) Reset()         { *m = ClusterCreateRequest{} }
   205  func (m *ClusterCreateRequest) String() string { return proto.CompactTextString(m) }
   206  func (*ClusterCreateRequest) ProtoMessage()    {}
   207  func (*ClusterCreateRequest) Descriptor() ([]byte, []int) {
   208  	return fileDescriptor_a6b5ba0b5aa57b32, []int{3}
   209  }
   210  func (m *ClusterCreateRequest) XXX_Unmarshal(b []byte) error {
   211  	return m.Unmarshal(b)
   212  }
   213  func (m *ClusterCreateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   214  	if deterministic {
   215  		return xxx_messageInfo_ClusterCreateRequest.Marshal(b, m, deterministic)
   216  	} else {
   217  		b = b[:cap(b)]
   218  		n, err := m.MarshalToSizedBuffer(b)
   219  		if err != nil {
   220  			return nil, err
   221  		}
   222  		return b[:n], nil
   223  	}
   224  }
   225  func (m *ClusterCreateRequest) XXX_Merge(src proto.Message) {
   226  	xxx_messageInfo_ClusterCreateRequest.Merge(m, src)
   227  }
   228  func (m *ClusterCreateRequest) XXX_Size() int {
   229  	return m.Size()
   230  }
   231  func (m *ClusterCreateRequest) XXX_DiscardUnknown() {
   232  	xxx_messageInfo_ClusterCreateRequest.DiscardUnknown(m)
   233  }
   234  
   235  var xxx_messageInfo_ClusterCreateRequest proto.InternalMessageInfo
   236  
   237  func (m *ClusterCreateRequest) GetCluster() *v1alpha1.Cluster {
   238  	if m != nil {
   239  		return m.Cluster
   240  	}
   241  	return nil
   242  }
   243  
   244  func (m *ClusterCreateRequest) GetUpsert() bool {
   245  	if m != nil {
   246  		return m.Upsert
   247  	}
   248  	return false
   249  }
   250  
   251  type ClusterUpdateRequest struct {
   252  	Cluster              *v1alpha1.Cluster `protobuf:"bytes,1,opt,name=cluster,proto3" json:"cluster,omitempty"`
   253  	UpdatedFields        []string          `protobuf:"bytes,2,rep,name=updatedFields,proto3" json:"updatedFields,omitempty"`
   254  	Id                   *ClusterID        `protobuf:"bytes,3,opt,name=id,proto3" json:"id,omitempty"`
   255  	XXX_NoUnkeyedLiteral struct{}          `json:"-"`
   256  	XXX_unrecognized     []byte            `json:"-"`
   257  	XXX_sizecache        int32             `json:"-"`
   258  }
   259  
   260  func (m *ClusterUpdateRequest) Reset()         { *m = ClusterUpdateRequest{} }
   261  func (m *ClusterUpdateRequest) String() string { return proto.CompactTextString(m) }
   262  func (*ClusterUpdateRequest) ProtoMessage()    {}
   263  func (*ClusterUpdateRequest) Descriptor() ([]byte, []int) {
   264  	return fileDescriptor_a6b5ba0b5aa57b32, []int{4}
   265  }
   266  func (m *ClusterUpdateRequest) XXX_Unmarshal(b []byte) error {
   267  	return m.Unmarshal(b)
   268  }
   269  func (m *ClusterUpdateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   270  	if deterministic {
   271  		return xxx_messageInfo_ClusterUpdateRequest.Marshal(b, m, deterministic)
   272  	} else {
   273  		b = b[:cap(b)]
   274  		n, err := m.MarshalToSizedBuffer(b)
   275  		if err != nil {
   276  			return nil, err
   277  		}
   278  		return b[:n], nil
   279  	}
   280  }
   281  func (m *ClusterUpdateRequest) XXX_Merge(src proto.Message) {
   282  	xxx_messageInfo_ClusterUpdateRequest.Merge(m, src)
   283  }
   284  func (m *ClusterUpdateRequest) XXX_Size() int {
   285  	return m.Size()
   286  }
   287  func (m *ClusterUpdateRequest) XXX_DiscardUnknown() {
   288  	xxx_messageInfo_ClusterUpdateRequest.DiscardUnknown(m)
   289  }
   290  
   291  var xxx_messageInfo_ClusterUpdateRequest proto.InternalMessageInfo
   292  
   293  func (m *ClusterUpdateRequest) GetCluster() *v1alpha1.Cluster {
   294  	if m != nil {
   295  		return m.Cluster
   296  	}
   297  	return nil
   298  }
   299  
   300  func (m *ClusterUpdateRequest) GetUpdatedFields() []string {
   301  	if m != nil {
   302  		return m.UpdatedFields
   303  	}
   304  	return nil
   305  }
   306  
   307  func (m *ClusterUpdateRequest) GetId() *ClusterID {
   308  	if m != nil {
   309  		return m.Id
   310  	}
   311  	return nil
   312  }
   313  
   314  func init() {
   315  	proto.RegisterType((*ClusterID)(nil), "cluster.ClusterID")
   316  	proto.RegisterType((*ClusterQuery)(nil), "cluster.ClusterQuery")
   317  	proto.RegisterType((*ClusterResponse)(nil), "cluster.ClusterResponse")
   318  	proto.RegisterType((*ClusterCreateRequest)(nil), "cluster.ClusterCreateRequest")
   319  	proto.RegisterType((*ClusterUpdateRequest)(nil), "cluster.ClusterUpdateRequest")
   320  }
   321  
   322  func init() { proto.RegisterFile("server/cluster/cluster.proto", fileDescriptor_a6b5ba0b5aa57b32) }
   323  
   324  var fileDescriptor_a6b5ba0b5aa57b32 = []byte{
   325  	// 597 bytes of a gzipped FileDescriptorProto
   326  	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x95, 0xc1, 0x6f, 0xd3, 0x3e,
   327  	0x14, 0xc7, 0xe5, 0x6e, 0xbf, 0xee, 0x57, 0x0f, 0x18, 0x58, 0x03, 0x45, 0xdd, 0x56, 0x95, 0x80,
   328  	0xa0, 0xa0, 0xd5, 0x56, 0xcb, 0xb8, 0x70, 0x63, 0x1d, 0xa0, 0x4a, 0xbb, 0x10, 0xc4, 0x85, 0xc3,
   329  	0x26, 0x2f, 0x79, 0x4a, 0xcd, 0xb2, 0xc4, 0xc4, 0x4e, 0xa4, 0x09, 0x71, 0xd9, 0x89, 0x1b, 0x42,
   330  	0x5c, 0xb9, 0xf2, 0x87, 0x70, 0x43, 0xe2, 0x82, 0xc4, 0x3f, 0x80, 0x2a, 0xfe, 0x10, 0x14, 0x27,
   331  	0x69, 0x69, 0xa7, 0x55, 0x43, 0x2a, 0x9c, 0xea, 0xf7, 0xd4, 0xe7, 0xef, 0xe7, 0x7d, 0xfd, 0x1c,
   332  	0xe3, 0x75, 0x05, 0x71, 0x0a, 0x31, 0x73, 0x83, 0x44, 0xe9, 0xf1, 0x2f, 0x95, 0x71, 0xa4, 0x23,
   333  	0xb2, 0x54, 0x84, 0xf5, 0x75, 0x3f, 0x8a, 0xfc, 0x00, 0x18, 0x97, 0x82, 0xf1, 0x30, 0x8c, 0x34,
   334  	0xd7, 0x22, 0x0a, 0x55, 0xfe, 0xb7, 0xfa, 0xae, 0x2f, 0xf4, 0x20, 0x39, 0xa0, 0x6e, 0x74, 0xc4,
   335  	0x78, 0xec, 0x47, 0x32, 0x8e, 0x5e, 0x9a, 0x45, 0xdb, 0xf5, 0x58, 0xda, 0x65, 0xf2, 0xd0, 0xcf,
   336  	0x2a, 0x15, 0xe3, 0x52, 0x06, 0xc2, 0x35, 0xb5, 0x2c, 0xed, 0xf0, 0x40, 0x0e, 0x78, 0x87, 0xf9,
   337  	0x10, 0x42, 0xcc, 0x35, 0x78, 0xf9, 0x6e, 0xf6, 0x7d, 0x5c, 0xeb, 0xe5, 0xb2, 0xfd, 0x1d, 0x42,
   338  	0xf0, 0xa2, 0x3e, 0x96, 0x60, 0xa1, 0x26, 0x6a, 0xd5, 0x1c, 0xb3, 0x26, 0xab, 0xf8, 0xbf, 0x94,
   339  	0x07, 0x09, 0x58, 0x15, 0x93, 0xcc, 0x03, 0x7b, 0x0f, 0x5f, 0x28, 0xca, 0x9e, 0x26, 0x10, 0x1f,
   340  	0x93, 0x6b, 0xb8, 0x9a, 0xf7, 0x56, 0xd4, 0x16, 0x51, 0xb6, 0x63, 0xc8, 0x8f, 0xca, 0x62, 0xb3,
   341  	0x26, 0x36, 0xae, 0x08, 0xcf, 0x5a, 0x68, 0xa2, 0xd6, 0x72, 0x97, 0xd0, 0xd2, 0x83, 0x11, 0x85,
   342  	0x53, 0x11, 0x9e, 0x7d, 0x05, 0xaf, 0x14, 0x09, 0x07, 0x94, 0x8c, 0x42, 0x05, 0xf6, 0x3b, 0x84,
   343  	0x57, 0x8b, 0x5c, 0x2f, 0x06, 0xae, 0xc1, 0x81, 0x57, 0x09, 0x28, 0x4d, 0xf6, 0x71, 0xe9, 0x9c,
   344  	0x11, 0x5f, 0xee, 0x3e, 0xa2, 0x63, 0x8b, 0x68, 0x69, 0x91, 0x59, 0xec, 0xbb, 0x1e, 0x4d, 0xbb,
   345  	0x54, 0x1e, 0xfa, 0x34, 0xb3, 0x88, 0xfe, 0x66, 0x11, 0x2d, 0x2d, 0x2a, 0x49, 0x9c, 0x72, 0xd7,
   346  	0xac, 0xb9, 0x44, 0x2a, 0x88, 0xb5, 0x69, 0xe3, 0x7f, 0xa7, 0x88, 0xec, 0xcf, 0x63, 0xa2, 0xe7,
   347  	0xd2, 0xfb, 0x97, 0x44, 0x37, 0xf1, 0xc5, 0xc4, 0x28, 0x7a, 0x8f, 0x05, 0x04, 0x9e, 0xb2, 0x2a,
   348  	0xcd, 0x85, 0x56, 0xcd, 0x99, 0x4c, 0x9e, 0xc7, 0xe8, 0xee, 0xd7, 0x25, 0x7c, 0xa9, 0xc8, 0x3c,
   349  	0x83, 0x38, 0x15, 0x2e, 0x90, 0x13, 0x84, 0x17, 0x77, 0x85, 0xd2, 0xe4, 0xea, 0x74, 0x8d, 0x39,
   350  	0xeb, 0x7a, 0x7f, 0x2e, 0xcd, 0x64, 0x0a, 0xb6, 0x75, 0xf2, 0xfd, 0xe7, 0x87, 0x0a, 0x21, 0x97,
   351  	0xcd, 0xac, 0xa7, 0x9d, 0xf2, 0x46, 0x28, 0xf2, 0x1e, 0xe1, 0x6a, 0x7e, 0xcc, 0x64, 0x63, 0x1a,
   352  	0x63, 0xe2, 0xf8, 0xeb, 0xf3, 0xf1, 0xd6, 0xbe, 0x6e, 0x50, 0xd6, 0xec, 0x53, 0x28, 0x0f, 0x46,
   353  	0xae, 0xbf, 0x45, 0x78, 0xe1, 0x09, 0x9c, 0xe9, 0xcb, 0x9c, 0x40, 0x6e, 0x18, 0x90, 0x0d, 0xb2,
   354  	0x36, 0x0d, 0xc2, 0x5e, 0x0b, 0x8f, 0x9a, 0xeb, 0xf7, 0x86, 0x7c, 0x44, 0xb8, 0x9a, 0xcf, 0xdc,
   355  	0x69, 0x7b, 0x26, 0x66, 0x71, 0x5e, 0x54, 0x9b, 0x86, 0xea, 0x56, 0x7d, 0x16, 0xd5, 0xd8, 0xa9,
   356  	0x3d, 0x5c, 0xdd, 0x81, 0x00, 0x34, 0x9c, 0xe5, 0x95, 0x35, 0x9d, 0x1e, 0x5d, 0xf3, 0xa2, 0xfd,
   357  	0xbb, 0x33, 0xdb, 0x0f, 0x31, 0x76, 0xb2, 0xcf, 0x22, 0x3c, 0x4c, 0xf4, 0xe0, 0xcf, 0x35, 0x98,
   358  	0xd1, 0xb8, 0x63, 0xdf, 0x9e, 0xa1, 0xc1, 0x62, 0x23, 0xd0, 0xe6, 0x99, 0xc2, 0x27, 0x84, 0x57,
   359  	0xfa, 0x61, 0xca, 0x03, 0x91, 0x59, 0xdb, 0xe3, 0xee, 0x00, 0xfe, 0xf2, 0x14, 0x6c, 0x19, 0x44,
   360  	0x6a, 0x6f, 0xce, 0x42, 0x14, 0x23, 0xa4, 0xb6, 0x9b, 0x31, 0x6d, 0x6f, 0x7f, 0x19, 0x36, 0xd0,
   361  	0xb7, 0x61, 0x03, 0xfd, 0x18, 0x36, 0xd0, 0x8b, 0xad, 0xf3, 0xbd, 0x14, 0x6e, 0x20, 0x20, 0xd4,
   362  	0xa5, 0xc0, 0x41, 0xd5, 0x3c, 0x0c, 0xf7, 0x7e, 0x05, 0x00, 0x00, 0xff, 0xff, 0x1c, 0x77, 0xdb,
   363  	0xd9, 0xad, 0x06, 0x00, 0x00,
   364  }
   365  
   366  // Reference imports to suppress errors if they are not otherwise used.
   367  var _ context.Context
   368  var _ grpc.ClientConn
   369  
   370  // This is a compile-time assertion to ensure that this generated file
   371  // is compatible with the grpc package it is being compiled against.
   372  const _ = grpc.SupportPackageIsVersion4
   373  
   374  // ClusterServiceClient is the client API for ClusterService service.
   375  //
   376  // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
   377  type ClusterServiceClient interface {
   378  	// List returns list of clusters
   379  	List(ctx context.Context, in *ClusterQuery, opts ...grpc.CallOption) (*v1alpha1.ClusterList, error)
   380  	// Create creates a cluster
   381  	Create(ctx context.Context, in *ClusterCreateRequest, opts ...grpc.CallOption) (*v1alpha1.Cluster, error)
   382  	// Get returns a cluster by server address
   383  	Get(ctx context.Context, in *ClusterQuery, opts ...grpc.CallOption) (*v1alpha1.Cluster, error)
   384  	// Update updates a cluster
   385  	Update(ctx context.Context, in *ClusterUpdateRequest, opts ...grpc.CallOption) (*v1alpha1.Cluster, error)
   386  	// Delete deletes a cluster
   387  	Delete(ctx context.Context, in *ClusterQuery, opts ...grpc.CallOption) (*ClusterResponse, error)
   388  	// RotateAuth rotates the bearer token used for a cluster
   389  	RotateAuth(ctx context.Context, in *ClusterQuery, opts ...grpc.CallOption) (*ClusterResponse, error)
   390  	// InvalidateCache invalidates cluster cache
   391  	InvalidateCache(ctx context.Context, in *ClusterQuery, opts ...grpc.CallOption) (*v1alpha1.Cluster, error)
   392  }
   393  
   394  type clusterServiceClient struct {
   395  	cc *grpc.ClientConn
   396  }
   397  
   398  func NewClusterServiceClient(cc *grpc.ClientConn) ClusterServiceClient {
   399  	return &clusterServiceClient{cc}
   400  }
   401  
   402  func (c *clusterServiceClient) List(ctx context.Context, in *ClusterQuery, opts ...grpc.CallOption) (*v1alpha1.ClusterList, error) {
   403  	out := new(v1alpha1.ClusterList)
   404  	err := c.cc.Invoke(ctx, "/cluster.ClusterService/List", in, out, opts...)
   405  	if err != nil {
   406  		return nil, err
   407  	}
   408  	return out, nil
   409  }
   410  
   411  func (c *clusterServiceClient) Create(ctx context.Context, in *ClusterCreateRequest, opts ...grpc.CallOption) (*v1alpha1.Cluster, error) {
   412  	out := new(v1alpha1.Cluster)
   413  	err := c.cc.Invoke(ctx, "/cluster.ClusterService/Create", in, out, opts...)
   414  	if err != nil {
   415  		return nil, err
   416  	}
   417  	return out, nil
   418  }
   419  
   420  func (c *clusterServiceClient) Get(ctx context.Context, in *ClusterQuery, opts ...grpc.CallOption) (*v1alpha1.Cluster, error) {
   421  	out := new(v1alpha1.Cluster)
   422  	err := c.cc.Invoke(ctx, "/cluster.ClusterService/Get", in, out, opts...)
   423  	if err != nil {
   424  		return nil, err
   425  	}
   426  	return out, nil
   427  }
   428  
   429  func (c *clusterServiceClient) Update(ctx context.Context, in *ClusterUpdateRequest, opts ...grpc.CallOption) (*v1alpha1.Cluster, error) {
   430  	out := new(v1alpha1.Cluster)
   431  	err := c.cc.Invoke(ctx, "/cluster.ClusterService/Update", in, out, opts...)
   432  	if err != nil {
   433  		return nil, err
   434  	}
   435  	return out, nil
   436  }
   437  
   438  func (c *clusterServiceClient) Delete(ctx context.Context, in *ClusterQuery, opts ...grpc.CallOption) (*ClusterResponse, error) {
   439  	out := new(ClusterResponse)
   440  	err := c.cc.Invoke(ctx, "/cluster.ClusterService/Delete", in, out, opts...)
   441  	if err != nil {
   442  		return nil, err
   443  	}
   444  	return out, nil
   445  }
   446  
   447  func (c *clusterServiceClient) RotateAuth(ctx context.Context, in *ClusterQuery, opts ...grpc.CallOption) (*ClusterResponse, error) {
   448  	out := new(ClusterResponse)
   449  	err := c.cc.Invoke(ctx, "/cluster.ClusterService/RotateAuth", in, out, opts...)
   450  	if err != nil {
   451  		return nil, err
   452  	}
   453  	return out, nil
   454  }
   455  
   456  func (c *clusterServiceClient) InvalidateCache(ctx context.Context, in *ClusterQuery, opts ...grpc.CallOption) (*v1alpha1.Cluster, error) {
   457  	out := new(v1alpha1.Cluster)
   458  	err := c.cc.Invoke(ctx, "/cluster.ClusterService/InvalidateCache", in, out, opts...)
   459  	if err != nil {
   460  		return nil, err
   461  	}
   462  	return out, nil
   463  }
   464  
   465  // ClusterServiceServer is the server API for ClusterService service.
   466  type ClusterServiceServer interface {
   467  	// List returns list of clusters
   468  	List(context.Context, *ClusterQuery) (*v1alpha1.ClusterList, error)
   469  	// Create creates a cluster
   470  	Create(context.Context, *ClusterCreateRequest) (*v1alpha1.Cluster, error)
   471  	// Get returns a cluster by server address
   472  	Get(context.Context, *ClusterQuery) (*v1alpha1.Cluster, error)
   473  	// Update updates a cluster
   474  	Update(context.Context, *ClusterUpdateRequest) (*v1alpha1.Cluster, error)
   475  	// Delete deletes a cluster
   476  	Delete(context.Context, *ClusterQuery) (*ClusterResponse, error)
   477  	// RotateAuth rotates the bearer token used for a cluster
   478  	RotateAuth(context.Context, *ClusterQuery) (*ClusterResponse, error)
   479  	// InvalidateCache invalidates cluster cache
   480  	InvalidateCache(context.Context, *ClusterQuery) (*v1alpha1.Cluster, error)
   481  }
   482  
   483  // UnimplementedClusterServiceServer can be embedded to have forward compatible implementations.
   484  type UnimplementedClusterServiceServer struct {
   485  }
   486  
   487  func (*UnimplementedClusterServiceServer) List(ctx context.Context, req *ClusterQuery) (*v1alpha1.ClusterList, error) {
   488  	return nil, status.Errorf(codes.Unimplemented, "method List not implemented")
   489  }
   490  func (*UnimplementedClusterServiceServer) Create(ctx context.Context, req *ClusterCreateRequest) (*v1alpha1.Cluster, error) {
   491  	return nil, status.Errorf(codes.Unimplemented, "method Create not implemented")
   492  }
   493  func (*UnimplementedClusterServiceServer) Get(ctx context.Context, req *ClusterQuery) (*v1alpha1.Cluster, error) {
   494  	return nil, status.Errorf(codes.Unimplemented, "method Get not implemented")
   495  }
   496  func (*UnimplementedClusterServiceServer) Update(ctx context.Context, req *ClusterUpdateRequest) (*v1alpha1.Cluster, error) {
   497  	return nil, status.Errorf(codes.Unimplemented, "method Update not implemented")
   498  }
   499  func (*UnimplementedClusterServiceServer) Delete(ctx context.Context, req *ClusterQuery) (*ClusterResponse, error) {
   500  	return nil, status.Errorf(codes.Unimplemented, "method Delete not implemented")
   501  }
   502  func (*UnimplementedClusterServiceServer) RotateAuth(ctx context.Context, req *ClusterQuery) (*ClusterResponse, error) {
   503  	return nil, status.Errorf(codes.Unimplemented, "method RotateAuth not implemented")
   504  }
   505  func (*UnimplementedClusterServiceServer) InvalidateCache(ctx context.Context, req *ClusterQuery) (*v1alpha1.Cluster, error) {
   506  	return nil, status.Errorf(codes.Unimplemented, "method InvalidateCache not implemented")
   507  }
   508  
   509  func RegisterClusterServiceServer(s *grpc.Server, srv ClusterServiceServer) {
   510  	s.RegisterService(&_ClusterService_serviceDesc, srv)
   511  }
   512  
   513  func _ClusterService_List_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
   514  	in := new(ClusterQuery)
   515  	if err := dec(in); err != nil {
   516  		return nil, err
   517  	}
   518  	if interceptor == nil {
   519  		return srv.(ClusterServiceServer).List(ctx, in)
   520  	}
   521  	info := &grpc.UnaryServerInfo{
   522  		Server:     srv,
   523  		FullMethod: "/cluster.ClusterService/List",
   524  	}
   525  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
   526  		return srv.(ClusterServiceServer).List(ctx, req.(*ClusterQuery))
   527  	}
   528  	return interceptor(ctx, in, info, handler)
   529  }
   530  
   531  func _ClusterService_Create_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
   532  	in := new(ClusterCreateRequest)
   533  	if err := dec(in); err != nil {
   534  		return nil, err
   535  	}
   536  	if interceptor == nil {
   537  		return srv.(ClusterServiceServer).Create(ctx, in)
   538  	}
   539  	info := &grpc.UnaryServerInfo{
   540  		Server:     srv,
   541  		FullMethod: "/cluster.ClusterService/Create",
   542  	}
   543  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
   544  		return srv.(ClusterServiceServer).Create(ctx, req.(*ClusterCreateRequest))
   545  	}
   546  	return interceptor(ctx, in, info, handler)
   547  }
   548  
   549  func _ClusterService_Get_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
   550  	in := new(ClusterQuery)
   551  	if err := dec(in); err != nil {
   552  		return nil, err
   553  	}
   554  	if interceptor == nil {
   555  		return srv.(ClusterServiceServer).Get(ctx, in)
   556  	}
   557  	info := &grpc.UnaryServerInfo{
   558  		Server:     srv,
   559  		FullMethod: "/cluster.ClusterService/Get",
   560  	}
   561  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
   562  		return srv.(ClusterServiceServer).Get(ctx, req.(*ClusterQuery))
   563  	}
   564  	return interceptor(ctx, in, info, handler)
   565  }
   566  
   567  func _ClusterService_Update_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
   568  	in := new(ClusterUpdateRequest)
   569  	if err := dec(in); err != nil {
   570  		return nil, err
   571  	}
   572  	if interceptor == nil {
   573  		return srv.(ClusterServiceServer).Update(ctx, in)
   574  	}
   575  	info := &grpc.UnaryServerInfo{
   576  		Server:     srv,
   577  		FullMethod: "/cluster.ClusterService/Update",
   578  	}
   579  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
   580  		return srv.(ClusterServiceServer).Update(ctx, req.(*ClusterUpdateRequest))
   581  	}
   582  	return interceptor(ctx, in, info, handler)
   583  }
   584  
   585  func _ClusterService_Delete_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
   586  	in := new(ClusterQuery)
   587  	if err := dec(in); err != nil {
   588  		return nil, err
   589  	}
   590  	if interceptor == nil {
   591  		return srv.(ClusterServiceServer).Delete(ctx, in)
   592  	}
   593  	info := &grpc.UnaryServerInfo{
   594  		Server:     srv,
   595  		FullMethod: "/cluster.ClusterService/Delete",
   596  	}
   597  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
   598  		return srv.(ClusterServiceServer).Delete(ctx, req.(*ClusterQuery))
   599  	}
   600  	return interceptor(ctx, in, info, handler)
   601  }
   602  
   603  func _ClusterService_RotateAuth_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
   604  	in := new(ClusterQuery)
   605  	if err := dec(in); err != nil {
   606  		return nil, err
   607  	}
   608  	if interceptor == nil {
   609  		return srv.(ClusterServiceServer).RotateAuth(ctx, in)
   610  	}
   611  	info := &grpc.UnaryServerInfo{
   612  		Server:     srv,
   613  		FullMethod: "/cluster.ClusterService/RotateAuth",
   614  	}
   615  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
   616  		return srv.(ClusterServiceServer).RotateAuth(ctx, req.(*ClusterQuery))
   617  	}
   618  	return interceptor(ctx, in, info, handler)
   619  }
   620  
   621  func _ClusterService_InvalidateCache_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
   622  	in := new(ClusterQuery)
   623  	if err := dec(in); err != nil {
   624  		return nil, err
   625  	}
   626  	if interceptor == nil {
   627  		return srv.(ClusterServiceServer).InvalidateCache(ctx, in)
   628  	}
   629  	info := &grpc.UnaryServerInfo{
   630  		Server:     srv,
   631  		FullMethod: "/cluster.ClusterService/InvalidateCache",
   632  	}
   633  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
   634  		return srv.(ClusterServiceServer).InvalidateCache(ctx, req.(*ClusterQuery))
   635  	}
   636  	return interceptor(ctx, in, info, handler)
   637  }
   638  
   639  var _ClusterService_serviceDesc = grpc.ServiceDesc{
   640  	ServiceName: "cluster.ClusterService",
   641  	HandlerType: (*ClusterServiceServer)(nil),
   642  	Methods: []grpc.MethodDesc{
   643  		{
   644  			MethodName: "List",
   645  			Handler:    _ClusterService_List_Handler,
   646  		},
   647  		{
   648  			MethodName: "Create",
   649  			Handler:    _ClusterService_Create_Handler,
   650  		},
   651  		{
   652  			MethodName: "Get",
   653  			Handler:    _ClusterService_Get_Handler,
   654  		},
   655  		{
   656  			MethodName: "Update",
   657  			Handler:    _ClusterService_Update_Handler,
   658  		},
   659  		{
   660  			MethodName: "Delete",
   661  			Handler:    _ClusterService_Delete_Handler,
   662  		},
   663  		{
   664  			MethodName: "RotateAuth",
   665  			Handler:    _ClusterService_RotateAuth_Handler,
   666  		},
   667  		{
   668  			MethodName: "InvalidateCache",
   669  			Handler:    _ClusterService_InvalidateCache_Handler,
   670  		},
   671  	},
   672  	Streams:  []grpc.StreamDesc{},
   673  	Metadata: "server/cluster/cluster.proto",
   674  }
   675  
   676  func (m *ClusterID) Marshal() (dAtA []byte, err error) {
   677  	size := m.Size()
   678  	dAtA = make([]byte, size)
   679  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
   680  	if err != nil {
   681  		return nil, err
   682  	}
   683  	return dAtA[:n], nil
   684  }
   685  
   686  func (m *ClusterID) MarshalTo(dAtA []byte) (int, error) {
   687  	size := m.Size()
   688  	return m.MarshalToSizedBuffer(dAtA[:size])
   689  }
   690  
   691  func (m *ClusterID) MarshalToSizedBuffer(dAtA []byte) (int, error) {
   692  	i := len(dAtA)
   693  	_ = i
   694  	var l int
   695  	_ = l
   696  	if m.XXX_unrecognized != nil {
   697  		i -= len(m.XXX_unrecognized)
   698  		copy(dAtA[i:], m.XXX_unrecognized)
   699  	}
   700  	if len(m.Value) > 0 {
   701  		i -= len(m.Value)
   702  		copy(dAtA[i:], m.Value)
   703  		i = encodeVarintCluster(dAtA, i, uint64(len(m.Value)))
   704  		i--
   705  		dAtA[i] = 0x12
   706  	}
   707  	if len(m.Type) > 0 {
   708  		i -= len(m.Type)
   709  		copy(dAtA[i:], m.Type)
   710  		i = encodeVarintCluster(dAtA, i, uint64(len(m.Type)))
   711  		i--
   712  		dAtA[i] = 0xa
   713  	}
   714  	return len(dAtA) - i, nil
   715  }
   716  
   717  func (m *ClusterQuery) Marshal() (dAtA []byte, err error) {
   718  	size := m.Size()
   719  	dAtA = make([]byte, size)
   720  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
   721  	if err != nil {
   722  		return nil, err
   723  	}
   724  	return dAtA[:n], nil
   725  }
   726  
   727  func (m *ClusterQuery) MarshalTo(dAtA []byte) (int, error) {
   728  	size := m.Size()
   729  	return m.MarshalToSizedBuffer(dAtA[:size])
   730  }
   731  
   732  func (m *ClusterQuery) MarshalToSizedBuffer(dAtA []byte) (int, error) {
   733  	i := len(dAtA)
   734  	_ = i
   735  	var l int
   736  	_ = l
   737  	if m.XXX_unrecognized != nil {
   738  		i -= len(m.XXX_unrecognized)
   739  		copy(dAtA[i:], m.XXX_unrecognized)
   740  	}
   741  	if m.Id != nil {
   742  		{
   743  			size, err := m.Id.MarshalToSizedBuffer(dAtA[:i])
   744  			if err != nil {
   745  				return 0, err
   746  			}
   747  			i -= size
   748  			i = encodeVarintCluster(dAtA, i, uint64(size))
   749  		}
   750  		i--
   751  		dAtA[i] = 0x1a
   752  	}
   753  	if len(m.Name) > 0 {
   754  		i -= len(m.Name)
   755  		copy(dAtA[i:], m.Name)
   756  		i = encodeVarintCluster(dAtA, i, uint64(len(m.Name)))
   757  		i--
   758  		dAtA[i] = 0x12
   759  	}
   760  	if len(m.Server) > 0 {
   761  		i -= len(m.Server)
   762  		copy(dAtA[i:], m.Server)
   763  		i = encodeVarintCluster(dAtA, i, uint64(len(m.Server)))
   764  		i--
   765  		dAtA[i] = 0xa
   766  	}
   767  	return len(dAtA) - i, nil
   768  }
   769  
   770  func (m *ClusterResponse) Marshal() (dAtA []byte, err error) {
   771  	size := m.Size()
   772  	dAtA = make([]byte, size)
   773  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
   774  	if err != nil {
   775  		return nil, err
   776  	}
   777  	return dAtA[:n], nil
   778  }
   779  
   780  func (m *ClusterResponse) MarshalTo(dAtA []byte) (int, error) {
   781  	size := m.Size()
   782  	return m.MarshalToSizedBuffer(dAtA[:size])
   783  }
   784  
   785  func (m *ClusterResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
   786  	i := len(dAtA)
   787  	_ = i
   788  	var l int
   789  	_ = l
   790  	if m.XXX_unrecognized != nil {
   791  		i -= len(m.XXX_unrecognized)
   792  		copy(dAtA[i:], m.XXX_unrecognized)
   793  	}
   794  	return len(dAtA) - i, nil
   795  }
   796  
   797  func (m *ClusterCreateRequest) Marshal() (dAtA []byte, err error) {
   798  	size := m.Size()
   799  	dAtA = make([]byte, size)
   800  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
   801  	if err != nil {
   802  		return nil, err
   803  	}
   804  	return dAtA[:n], nil
   805  }
   806  
   807  func (m *ClusterCreateRequest) MarshalTo(dAtA []byte) (int, error) {
   808  	size := m.Size()
   809  	return m.MarshalToSizedBuffer(dAtA[:size])
   810  }
   811  
   812  func (m *ClusterCreateRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
   813  	i := len(dAtA)
   814  	_ = i
   815  	var l int
   816  	_ = l
   817  	if m.XXX_unrecognized != nil {
   818  		i -= len(m.XXX_unrecognized)
   819  		copy(dAtA[i:], m.XXX_unrecognized)
   820  	}
   821  	if m.Upsert {
   822  		i--
   823  		if m.Upsert {
   824  			dAtA[i] = 1
   825  		} else {
   826  			dAtA[i] = 0
   827  		}
   828  		i--
   829  		dAtA[i] = 0x10
   830  	}
   831  	if m.Cluster != nil {
   832  		{
   833  			size, err := m.Cluster.MarshalToSizedBuffer(dAtA[:i])
   834  			if err != nil {
   835  				return 0, err
   836  			}
   837  			i -= size
   838  			i = encodeVarintCluster(dAtA, i, uint64(size))
   839  		}
   840  		i--
   841  		dAtA[i] = 0xa
   842  	}
   843  	return len(dAtA) - i, nil
   844  }
   845  
   846  func (m *ClusterUpdateRequest) Marshal() (dAtA []byte, err error) {
   847  	size := m.Size()
   848  	dAtA = make([]byte, size)
   849  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
   850  	if err != nil {
   851  		return nil, err
   852  	}
   853  	return dAtA[:n], nil
   854  }
   855  
   856  func (m *ClusterUpdateRequest) MarshalTo(dAtA []byte) (int, error) {
   857  	size := m.Size()
   858  	return m.MarshalToSizedBuffer(dAtA[:size])
   859  }
   860  
   861  func (m *ClusterUpdateRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
   862  	i := len(dAtA)
   863  	_ = i
   864  	var l int
   865  	_ = l
   866  	if m.XXX_unrecognized != nil {
   867  		i -= len(m.XXX_unrecognized)
   868  		copy(dAtA[i:], m.XXX_unrecognized)
   869  	}
   870  	if m.Id != nil {
   871  		{
   872  			size, err := m.Id.MarshalToSizedBuffer(dAtA[:i])
   873  			if err != nil {
   874  				return 0, err
   875  			}
   876  			i -= size
   877  			i = encodeVarintCluster(dAtA, i, uint64(size))
   878  		}
   879  		i--
   880  		dAtA[i] = 0x1a
   881  	}
   882  	if len(m.UpdatedFields) > 0 {
   883  		for iNdEx := len(m.UpdatedFields) - 1; iNdEx >= 0; iNdEx-- {
   884  			i -= len(m.UpdatedFields[iNdEx])
   885  			copy(dAtA[i:], m.UpdatedFields[iNdEx])
   886  			i = encodeVarintCluster(dAtA, i, uint64(len(m.UpdatedFields[iNdEx])))
   887  			i--
   888  			dAtA[i] = 0x12
   889  		}
   890  	}
   891  	if m.Cluster != nil {
   892  		{
   893  			size, err := m.Cluster.MarshalToSizedBuffer(dAtA[:i])
   894  			if err != nil {
   895  				return 0, err
   896  			}
   897  			i -= size
   898  			i = encodeVarintCluster(dAtA, i, uint64(size))
   899  		}
   900  		i--
   901  		dAtA[i] = 0xa
   902  	}
   903  	return len(dAtA) - i, nil
   904  }
   905  
   906  func encodeVarintCluster(dAtA []byte, offset int, v uint64) int {
   907  	offset -= sovCluster(v)
   908  	base := offset
   909  	for v >= 1<<7 {
   910  		dAtA[offset] = uint8(v&0x7f | 0x80)
   911  		v >>= 7
   912  		offset++
   913  	}
   914  	dAtA[offset] = uint8(v)
   915  	return base
   916  }
   917  func (m *ClusterID) Size() (n int) {
   918  	if m == nil {
   919  		return 0
   920  	}
   921  	var l int
   922  	_ = l
   923  	l = len(m.Type)
   924  	if l > 0 {
   925  		n += 1 + l + sovCluster(uint64(l))
   926  	}
   927  	l = len(m.Value)
   928  	if l > 0 {
   929  		n += 1 + l + sovCluster(uint64(l))
   930  	}
   931  	if m.XXX_unrecognized != nil {
   932  		n += len(m.XXX_unrecognized)
   933  	}
   934  	return n
   935  }
   936  
   937  func (m *ClusterQuery) Size() (n int) {
   938  	if m == nil {
   939  		return 0
   940  	}
   941  	var l int
   942  	_ = l
   943  	l = len(m.Server)
   944  	if l > 0 {
   945  		n += 1 + l + sovCluster(uint64(l))
   946  	}
   947  	l = len(m.Name)
   948  	if l > 0 {
   949  		n += 1 + l + sovCluster(uint64(l))
   950  	}
   951  	if m.Id != nil {
   952  		l = m.Id.Size()
   953  		n += 1 + l + sovCluster(uint64(l))
   954  	}
   955  	if m.XXX_unrecognized != nil {
   956  		n += len(m.XXX_unrecognized)
   957  	}
   958  	return n
   959  }
   960  
   961  func (m *ClusterResponse) Size() (n int) {
   962  	if m == nil {
   963  		return 0
   964  	}
   965  	var l int
   966  	_ = l
   967  	if m.XXX_unrecognized != nil {
   968  		n += len(m.XXX_unrecognized)
   969  	}
   970  	return n
   971  }
   972  
   973  func (m *ClusterCreateRequest) Size() (n int) {
   974  	if m == nil {
   975  		return 0
   976  	}
   977  	var l int
   978  	_ = l
   979  	if m.Cluster != nil {
   980  		l = m.Cluster.Size()
   981  		n += 1 + l + sovCluster(uint64(l))
   982  	}
   983  	if m.Upsert {
   984  		n += 2
   985  	}
   986  	if m.XXX_unrecognized != nil {
   987  		n += len(m.XXX_unrecognized)
   988  	}
   989  	return n
   990  }
   991  
   992  func (m *ClusterUpdateRequest) Size() (n int) {
   993  	if m == nil {
   994  		return 0
   995  	}
   996  	var l int
   997  	_ = l
   998  	if m.Cluster != nil {
   999  		l = m.Cluster.Size()
  1000  		n += 1 + l + sovCluster(uint64(l))
  1001  	}
  1002  	if len(m.UpdatedFields) > 0 {
  1003  		for _, s := range m.UpdatedFields {
  1004  			l = len(s)
  1005  			n += 1 + l + sovCluster(uint64(l))
  1006  		}
  1007  	}
  1008  	if m.Id != nil {
  1009  		l = m.Id.Size()
  1010  		n += 1 + l + sovCluster(uint64(l))
  1011  	}
  1012  	if m.XXX_unrecognized != nil {
  1013  		n += len(m.XXX_unrecognized)
  1014  	}
  1015  	return n
  1016  }
  1017  
  1018  func sovCluster(x uint64) (n int) {
  1019  	return (math_bits.Len64(x|1) + 6) / 7
  1020  }
  1021  func sozCluster(x uint64) (n int) {
  1022  	return sovCluster(uint64((x << 1) ^ uint64((int64(x) >> 63))))
  1023  }
  1024  func (m *ClusterID) Unmarshal(dAtA []byte) error {
  1025  	l := len(dAtA)
  1026  	iNdEx := 0
  1027  	for iNdEx < l {
  1028  		preIndex := iNdEx
  1029  		var wire uint64
  1030  		for shift := uint(0); ; shift += 7 {
  1031  			if shift >= 64 {
  1032  				return ErrIntOverflowCluster
  1033  			}
  1034  			if iNdEx >= l {
  1035  				return io.ErrUnexpectedEOF
  1036  			}
  1037  			b := dAtA[iNdEx]
  1038  			iNdEx++
  1039  			wire |= uint64(b&0x7F) << shift
  1040  			if b < 0x80 {
  1041  				break
  1042  			}
  1043  		}
  1044  		fieldNum := int32(wire >> 3)
  1045  		wireType := int(wire & 0x7)
  1046  		if wireType == 4 {
  1047  			return fmt.Errorf("proto: ClusterID: wiretype end group for non-group")
  1048  		}
  1049  		if fieldNum <= 0 {
  1050  			return fmt.Errorf("proto: ClusterID: illegal tag %d (wire type %d)", fieldNum, wire)
  1051  		}
  1052  		switch fieldNum {
  1053  		case 1:
  1054  			if wireType != 2 {
  1055  				return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType)
  1056  			}
  1057  			var stringLen uint64
  1058  			for shift := uint(0); ; shift += 7 {
  1059  				if shift >= 64 {
  1060  					return ErrIntOverflowCluster
  1061  				}
  1062  				if iNdEx >= l {
  1063  					return io.ErrUnexpectedEOF
  1064  				}
  1065  				b := dAtA[iNdEx]
  1066  				iNdEx++
  1067  				stringLen |= uint64(b&0x7F) << shift
  1068  				if b < 0x80 {
  1069  					break
  1070  				}
  1071  			}
  1072  			intStringLen := int(stringLen)
  1073  			if intStringLen < 0 {
  1074  				return ErrInvalidLengthCluster
  1075  			}
  1076  			postIndex := iNdEx + intStringLen
  1077  			if postIndex < 0 {
  1078  				return ErrInvalidLengthCluster
  1079  			}
  1080  			if postIndex > l {
  1081  				return io.ErrUnexpectedEOF
  1082  			}
  1083  			m.Type = string(dAtA[iNdEx:postIndex])
  1084  			iNdEx = postIndex
  1085  		case 2:
  1086  			if wireType != 2 {
  1087  				return fmt.Errorf("proto: wrong wireType = %d for field Value", wireType)
  1088  			}
  1089  			var stringLen uint64
  1090  			for shift := uint(0); ; shift += 7 {
  1091  				if shift >= 64 {
  1092  					return ErrIntOverflowCluster
  1093  				}
  1094  				if iNdEx >= l {
  1095  					return io.ErrUnexpectedEOF
  1096  				}
  1097  				b := dAtA[iNdEx]
  1098  				iNdEx++
  1099  				stringLen |= uint64(b&0x7F) << shift
  1100  				if b < 0x80 {
  1101  					break
  1102  				}
  1103  			}
  1104  			intStringLen := int(stringLen)
  1105  			if intStringLen < 0 {
  1106  				return ErrInvalidLengthCluster
  1107  			}
  1108  			postIndex := iNdEx + intStringLen
  1109  			if postIndex < 0 {
  1110  				return ErrInvalidLengthCluster
  1111  			}
  1112  			if postIndex > l {
  1113  				return io.ErrUnexpectedEOF
  1114  			}
  1115  			m.Value = string(dAtA[iNdEx:postIndex])
  1116  			iNdEx = postIndex
  1117  		default:
  1118  			iNdEx = preIndex
  1119  			skippy, err := skipCluster(dAtA[iNdEx:])
  1120  			if err != nil {
  1121  				return err
  1122  			}
  1123  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  1124  				return ErrInvalidLengthCluster
  1125  			}
  1126  			if (iNdEx + skippy) > l {
  1127  				return io.ErrUnexpectedEOF
  1128  			}
  1129  			m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  1130  			iNdEx += skippy
  1131  		}
  1132  	}
  1133  
  1134  	if iNdEx > l {
  1135  		return io.ErrUnexpectedEOF
  1136  	}
  1137  	return nil
  1138  }
  1139  func (m *ClusterQuery) Unmarshal(dAtA []byte) error {
  1140  	l := len(dAtA)
  1141  	iNdEx := 0
  1142  	for iNdEx < l {
  1143  		preIndex := iNdEx
  1144  		var wire uint64
  1145  		for shift := uint(0); ; shift += 7 {
  1146  			if shift >= 64 {
  1147  				return ErrIntOverflowCluster
  1148  			}
  1149  			if iNdEx >= l {
  1150  				return io.ErrUnexpectedEOF
  1151  			}
  1152  			b := dAtA[iNdEx]
  1153  			iNdEx++
  1154  			wire |= uint64(b&0x7F) << shift
  1155  			if b < 0x80 {
  1156  				break
  1157  			}
  1158  		}
  1159  		fieldNum := int32(wire >> 3)
  1160  		wireType := int(wire & 0x7)
  1161  		if wireType == 4 {
  1162  			return fmt.Errorf("proto: ClusterQuery: wiretype end group for non-group")
  1163  		}
  1164  		if fieldNum <= 0 {
  1165  			return fmt.Errorf("proto: ClusterQuery: illegal tag %d (wire type %d)", fieldNum, wire)
  1166  		}
  1167  		switch fieldNum {
  1168  		case 1:
  1169  			if wireType != 2 {
  1170  				return fmt.Errorf("proto: wrong wireType = %d for field Server", wireType)
  1171  			}
  1172  			var stringLen uint64
  1173  			for shift := uint(0); ; shift += 7 {
  1174  				if shift >= 64 {
  1175  					return ErrIntOverflowCluster
  1176  				}
  1177  				if iNdEx >= l {
  1178  					return io.ErrUnexpectedEOF
  1179  				}
  1180  				b := dAtA[iNdEx]
  1181  				iNdEx++
  1182  				stringLen |= uint64(b&0x7F) << shift
  1183  				if b < 0x80 {
  1184  					break
  1185  				}
  1186  			}
  1187  			intStringLen := int(stringLen)
  1188  			if intStringLen < 0 {
  1189  				return ErrInvalidLengthCluster
  1190  			}
  1191  			postIndex := iNdEx + intStringLen
  1192  			if postIndex < 0 {
  1193  				return ErrInvalidLengthCluster
  1194  			}
  1195  			if postIndex > l {
  1196  				return io.ErrUnexpectedEOF
  1197  			}
  1198  			m.Server = string(dAtA[iNdEx:postIndex])
  1199  			iNdEx = postIndex
  1200  		case 2:
  1201  			if wireType != 2 {
  1202  				return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType)
  1203  			}
  1204  			var stringLen uint64
  1205  			for shift := uint(0); ; shift += 7 {
  1206  				if shift >= 64 {
  1207  					return ErrIntOverflowCluster
  1208  				}
  1209  				if iNdEx >= l {
  1210  					return io.ErrUnexpectedEOF
  1211  				}
  1212  				b := dAtA[iNdEx]
  1213  				iNdEx++
  1214  				stringLen |= uint64(b&0x7F) << shift
  1215  				if b < 0x80 {
  1216  					break
  1217  				}
  1218  			}
  1219  			intStringLen := int(stringLen)
  1220  			if intStringLen < 0 {
  1221  				return ErrInvalidLengthCluster
  1222  			}
  1223  			postIndex := iNdEx + intStringLen
  1224  			if postIndex < 0 {
  1225  				return ErrInvalidLengthCluster
  1226  			}
  1227  			if postIndex > l {
  1228  				return io.ErrUnexpectedEOF
  1229  			}
  1230  			m.Name = string(dAtA[iNdEx:postIndex])
  1231  			iNdEx = postIndex
  1232  		case 3:
  1233  			if wireType != 2 {
  1234  				return fmt.Errorf("proto: wrong wireType = %d for field Id", wireType)
  1235  			}
  1236  			var msglen int
  1237  			for shift := uint(0); ; shift += 7 {
  1238  				if shift >= 64 {
  1239  					return ErrIntOverflowCluster
  1240  				}
  1241  				if iNdEx >= l {
  1242  					return io.ErrUnexpectedEOF
  1243  				}
  1244  				b := dAtA[iNdEx]
  1245  				iNdEx++
  1246  				msglen |= int(b&0x7F) << shift
  1247  				if b < 0x80 {
  1248  					break
  1249  				}
  1250  			}
  1251  			if msglen < 0 {
  1252  				return ErrInvalidLengthCluster
  1253  			}
  1254  			postIndex := iNdEx + msglen
  1255  			if postIndex < 0 {
  1256  				return ErrInvalidLengthCluster
  1257  			}
  1258  			if postIndex > l {
  1259  				return io.ErrUnexpectedEOF
  1260  			}
  1261  			if m.Id == nil {
  1262  				m.Id = &ClusterID{}
  1263  			}
  1264  			if err := m.Id.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  1265  				return err
  1266  			}
  1267  			iNdEx = postIndex
  1268  		default:
  1269  			iNdEx = preIndex
  1270  			skippy, err := skipCluster(dAtA[iNdEx:])
  1271  			if err != nil {
  1272  				return err
  1273  			}
  1274  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  1275  				return ErrInvalidLengthCluster
  1276  			}
  1277  			if (iNdEx + skippy) > l {
  1278  				return io.ErrUnexpectedEOF
  1279  			}
  1280  			m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  1281  			iNdEx += skippy
  1282  		}
  1283  	}
  1284  
  1285  	if iNdEx > l {
  1286  		return io.ErrUnexpectedEOF
  1287  	}
  1288  	return nil
  1289  }
  1290  func (m *ClusterResponse) Unmarshal(dAtA []byte) error {
  1291  	l := len(dAtA)
  1292  	iNdEx := 0
  1293  	for iNdEx < l {
  1294  		preIndex := iNdEx
  1295  		var wire uint64
  1296  		for shift := uint(0); ; shift += 7 {
  1297  			if shift >= 64 {
  1298  				return ErrIntOverflowCluster
  1299  			}
  1300  			if iNdEx >= l {
  1301  				return io.ErrUnexpectedEOF
  1302  			}
  1303  			b := dAtA[iNdEx]
  1304  			iNdEx++
  1305  			wire |= uint64(b&0x7F) << shift
  1306  			if b < 0x80 {
  1307  				break
  1308  			}
  1309  		}
  1310  		fieldNum := int32(wire >> 3)
  1311  		wireType := int(wire & 0x7)
  1312  		if wireType == 4 {
  1313  			return fmt.Errorf("proto: ClusterResponse: wiretype end group for non-group")
  1314  		}
  1315  		if fieldNum <= 0 {
  1316  			return fmt.Errorf("proto: ClusterResponse: illegal tag %d (wire type %d)", fieldNum, wire)
  1317  		}
  1318  		switch fieldNum {
  1319  		default:
  1320  			iNdEx = preIndex
  1321  			skippy, err := skipCluster(dAtA[iNdEx:])
  1322  			if err != nil {
  1323  				return err
  1324  			}
  1325  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  1326  				return ErrInvalidLengthCluster
  1327  			}
  1328  			if (iNdEx + skippy) > l {
  1329  				return io.ErrUnexpectedEOF
  1330  			}
  1331  			m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  1332  			iNdEx += skippy
  1333  		}
  1334  	}
  1335  
  1336  	if iNdEx > l {
  1337  		return io.ErrUnexpectedEOF
  1338  	}
  1339  	return nil
  1340  }
  1341  func (m *ClusterCreateRequest) Unmarshal(dAtA []byte) error {
  1342  	l := len(dAtA)
  1343  	iNdEx := 0
  1344  	for iNdEx < l {
  1345  		preIndex := iNdEx
  1346  		var wire uint64
  1347  		for shift := uint(0); ; shift += 7 {
  1348  			if shift >= 64 {
  1349  				return ErrIntOverflowCluster
  1350  			}
  1351  			if iNdEx >= l {
  1352  				return io.ErrUnexpectedEOF
  1353  			}
  1354  			b := dAtA[iNdEx]
  1355  			iNdEx++
  1356  			wire |= uint64(b&0x7F) << shift
  1357  			if b < 0x80 {
  1358  				break
  1359  			}
  1360  		}
  1361  		fieldNum := int32(wire >> 3)
  1362  		wireType := int(wire & 0x7)
  1363  		if wireType == 4 {
  1364  			return fmt.Errorf("proto: ClusterCreateRequest: wiretype end group for non-group")
  1365  		}
  1366  		if fieldNum <= 0 {
  1367  			return fmt.Errorf("proto: ClusterCreateRequest: illegal tag %d (wire type %d)", fieldNum, wire)
  1368  		}
  1369  		switch fieldNum {
  1370  		case 1:
  1371  			if wireType != 2 {
  1372  				return fmt.Errorf("proto: wrong wireType = %d for field Cluster", wireType)
  1373  			}
  1374  			var msglen int
  1375  			for shift := uint(0); ; shift += 7 {
  1376  				if shift >= 64 {
  1377  					return ErrIntOverflowCluster
  1378  				}
  1379  				if iNdEx >= l {
  1380  					return io.ErrUnexpectedEOF
  1381  				}
  1382  				b := dAtA[iNdEx]
  1383  				iNdEx++
  1384  				msglen |= int(b&0x7F) << shift
  1385  				if b < 0x80 {
  1386  					break
  1387  				}
  1388  			}
  1389  			if msglen < 0 {
  1390  				return ErrInvalidLengthCluster
  1391  			}
  1392  			postIndex := iNdEx + msglen
  1393  			if postIndex < 0 {
  1394  				return ErrInvalidLengthCluster
  1395  			}
  1396  			if postIndex > l {
  1397  				return io.ErrUnexpectedEOF
  1398  			}
  1399  			if m.Cluster == nil {
  1400  				m.Cluster = &v1alpha1.Cluster{}
  1401  			}
  1402  			if err := m.Cluster.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  1403  				return err
  1404  			}
  1405  			iNdEx = postIndex
  1406  		case 2:
  1407  			if wireType != 0 {
  1408  				return fmt.Errorf("proto: wrong wireType = %d for field Upsert", wireType)
  1409  			}
  1410  			var v int
  1411  			for shift := uint(0); ; shift += 7 {
  1412  				if shift >= 64 {
  1413  					return ErrIntOverflowCluster
  1414  				}
  1415  				if iNdEx >= l {
  1416  					return io.ErrUnexpectedEOF
  1417  				}
  1418  				b := dAtA[iNdEx]
  1419  				iNdEx++
  1420  				v |= int(b&0x7F) << shift
  1421  				if b < 0x80 {
  1422  					break
  1423  				}
  1424  			}
  1425  			m.Upsert = bool(v != 0)
  1426  		default:
  1427  			iNdEx = preIndex
  1428  			skippy, err := skipCluster(dAtA[iNdEx:])
  1429  			if err != nil {
  1430  				return err
  1431  			}
  1432  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  1433  				return ErrInvalidLengthCluster
  1434  			}
  1435  			if (iNdEx + skippy) > l {
  1436  				return io.ErrUnexpectedEOF
  1437  			}
  1438  			m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  1439  			iNdEx += skippy
  1440  		}
  1441  	}
  1442  
  1443  	if iNdEx > l {
  1444  		return io.ErrUnexpectedEOF
  1445  	}
  1446  	return nil
  1447  }
  1448  func (m *ClusterUpdateRequest) Unmarshal(dAtA []byte) error {
  1449  	l := len(dAtA)
  1450  	iNdEx := 0
  1451  	for iNdEx < l {
  1452  		preIndex := iNdEx
  1453  		var wire uint64
  1454  		for shift := uint(0); ; shift += 7 {
  1455  			if shift >= 64 {
  1456  				return ErrIntOverflowCluster
  1457  			}
  1458  			if iNdEx >= l {
  1459  				return io.ErrUnexpectedEOF
  1460  			}
  1461  			b := dAtA[iNdEx]
  1462  			iNdEx++
  1463  			wire |= uint64(b&0x7F) << shift
  1464  			if b < 0x80 {
  1465  				break
  1466  			}
  1467  		}
  1468  		fieldNum := int32(wire >> 3)
  1469  		wireType := int(wire & 0x7)
  1470  		if wireType == 4 {
  1471  			return fmt.Errorf("proto: ClusterUpdateRequest: wiretype end group for non-group")
  1472  		}
  1473  		if fieldNum <= 0 {
  1474  			return fmt.Errorf("proto: ClusterUpdateRequest: illegal tag %d (wire type %d)", fieldNum, wire)
  1475  		}
  1476  		switch fieldNum {
  1477  		case 1:
  1478  			if wireType != 2 {
  1479  				return fmt.Errorf("proto: wrong wireType = %d for field Cluster", wireType)
  1480  			}
  1481  			var msglen int
  1482  			for shift := uint(0); ; shift += 7 {
  1483  				if shift >= 64 {
  1484  					return ErrIntOverflowCluster
  1485  				}
  1486  				if iNdEx >= l {
  1487  					return io.ErrUnexpectedEOF
  1488  				}
  1489  				b := dAtA[iNdEx]
  1490  				iNdEx++
  1491  				msglen |= int(b&0x7F) << shift
  1492  				if b < 0x80 {
  1493  					break
  1494  				}
  1495  			}
  1496  			if msglen < 0 {
  1497  				return ErrInvalidLengthCluster
  1498  			}
  1499  			postIndex := iNdEx + msglen
  1500  			if postIndex < 0 {
  1501  				return ErrInvalidLengthCluster
  1502  			}
  1503  			if postIndex > l {
  1504  				return io.ErrUnexpectedEOF
  1505  			}
  1506  			if m.Cluster == nil {
  1507  				m.Cluster = &v1alpha1.Cluster{}
  1508  			}
  1509  			if err := m.Cluster.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  1510  				return err
  1511  			}
  1512  			iNdEx = postIndex
  1513  		case 2:
  1514  			if wireType != 2 {
  1515  				return fmt.Errorf("proto: wrong wireType = %d for field UpdatedFields", wireType)
  1516  			}
  1517  			var stringLen uint64
  1518  			for shift := uint(0); ; shift += 7 {
  1519  				if shift >= 64 {
  1520  					return ErrIntOverflowCluster
  1521  				}
  1522  				if iNdEx >= l {
  1523  					return io.ErrUnexpectedEOF
  1524  				}
  1525  				b := dAtA[iNdEx]
  1526  				iNdEx++
  1527  				stringLen |= uint64(b&0x7F) << shift
  1528  				if b < 0x80 {
  1529  					break
  1530  				}
  1531  			}
  1532  			intStringLen := int(stringLen)
  1533  			if intStringLen < 0 {
  1534  				return ErrInvalidLengthCluster
  1535  			}
  1536  			postIndex := iNdEx + intStringLen
  1537  			if postIndex < 0 {
  1538  				return ErrInvalidLengthCluster
  1539  			}
  1540  			if postIndex > l {
  1541  				return io.ErrUnexpectedEOF
  1542  			}
  1543  			m.UpdatedFields = append(m.UpdatedFields, string(dAtA[iNdEx:postIndex]))
  1544  			iNdEx = postIndex
  1545  		case 3:
  1546  			if wireType != 2 {
  1547  				return fmt.Errorf("proto: wrong wireType = %d for field Id", wireType)
  1548  			}
  1549  			var msglen int
  1550  			for shift := uint(0); ; shift += 7 {
  1551  				if shift >= 64 {
  1552  					return ErrIntOverflowCluster
  1553  				}
  1554  				if iNdEx >= l {
  1555  					return io.ErrUnexpectedEOF
  1556  				}
  1557  				b := dAtA[iNdEx]
  1558  				iNdEx++
  1559  				msglen |= int(b&0x7F) << shift
  1560  				if b < 0x80 {
  1561  					break
  1562  				}
  1563  			}
  1564  			if msglen < 0 {
  1565  				return ErrInvalidLengthCluster
  1566  			}
  1567  			postIndex := iNdEx + msglen
  1568  			if postIndex < 0 {
  1569  				return ErrInvalidLengthCluster
  1570  			}
  1571  			if postIndex > l {
  1572  				return io.ErrUnexpectedEOF
  1573  			}
  1574  			if m.Id == nil {
  1575  				m.Id = &ClusterID{}
  1576  			}
  1577  			if err := m.Id.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  1578  				return err
  1579  			}
  1580  			iNdEx = postIndex
  1581  		default:
  1582  			iNdEx = preIndex
  1583  			skippy, err := skipCluster(dAtA[iNdEx:])
  1584  			if err != nil {
  1585  				return err
  1586  			}
  1587  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  1588  				return ErrInvalidLengthCluster
  1589  			}
  1590  			if (iNdEx + skippy) > l {
  1591  				return io.ErrUnexpectedEOF
  1592  			}
  1593  			m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  1594  			iNdEx += skippy
  1595  		}
  1596  	}
  1597  
  1598  	if iNdEx > l {
  1599  		return io.ErrUnexpectedEOF
  1600  	}
  1601  	return nil
  1602  }
  1603  func skipCluster(dAtA []byte) (n int, err error) {
  1604  	l := len(dAtA)
  1605  	iNdEx := 0
  1606  	depth := 0
  1607  	for iNdEx < l {
  1608  		var wire uint64
  1609  		for shift := uint(0); ; shift += 7 {
  1610  			if shift >= 64 {
  1611  				return 0, ErrIntOverflowCluster
  1612  			}
  1613  			if iNdEx >= l {
  1614  				return 0, io.ErrUnexpectedEOF
  1615  			}
  1616  			b := dAtA[iNdEx]
  1617  			iNdEx++
  1618  			wire |= (uint64(b) & 0x7F) << shift
  1619  			if b < 0x80 {
  1620  				break
  1621  			}
  1622  		}
  1623  		wireType := int(wire & 0x7)
  1624  		switch wireType {
  1625  		case 0:
  1626  			for shift := uint(0); ; shift += 7 {
  1627  				if shift >= 64 {
  1628  					return 0, ErrIntOverflowCluster
  1629  				}
  1630  				if iNdEx >= l {
  1631  					return 0, io.ErrUnexpectedEOF
  1632  				}
  1633  				iNdEx++
  1634  				if dAtA[iNdEx-1] < 0x80 {
  1635  					break
  1636  				}
  1637  			}
  1638  		case 1:
  1639  			iNdEx += 8
  1640  		case 2:
  1641  			var length int
  1642  			for shift := uint(0); ; shift += 7 {
  1643  				if shift >= 64 {
  1644  					return 0, ErrIntOverflowCluster
  1645  				}
  1646  				if iNdEx >= l {
  1647  					return 0, io.ErrUnexpectedEOF
  1648  				}
  1649  				b := dAtA[iNdEx]
  1650  				iNdEx++
  1651  				length |= (int(b) & 0x7F) << shift
  1652  				if b < 0x80 {
  1653  					break
  1654  				}
  1655  			}
  1656  			if length < 0 {
  1657  				return 0, ErrInvalidLengthCluster
  1658  			}
  1659  			iNdEx += length
  1660  		case 3:
  1661  			depth++
  1662  		case 4:
  1663  			if depth == 0 {
  1664  				return 0, ErrUnexpectedEndOfGroupCluster
  1665  			}
  1666  			depth--
  1667  		case 5:
  1668  			iNdEx += 4
  1669  		default:
  1670  			return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
  1671  		}
  1672  		if iNdEx < 0 {
  1673  			return 0, ErrInvalidLengthCluster
  1674  		}
  1675  		if depth == 0 {
  1676  			return iNdEx, nil
  1677  		}
  1678  	}
  1679  	return 0, io.ErrUnexpectedEOF
  1680  }
  1681  
  1682  var (
  1683  	ErrInvalidLengthCluster        = fmt.Errorf("proto: negative length found during unmarshaling")
  1684  	ErrIntOverflowCluster          = fmt.Errorf("proto: integer overflow")
  1685  	ErrUnexpectedEndOfGroupCluster = fmt.Errorf("proto: unexpected end of group")
  1686  )