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

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