mirror of
https://github.com/hanzoai/cd.git
synced 2026-10-30 14:56:45 +00:00
repository.proto and 11 sibling hand-written .proto files referenced generated.proto's application/v1alpha1 types under the pre-fork package path (github.com.argoproj.argo_cd.v3...); protoc silently kept compiling because generated.proto still carried that same stale package too. Point both at the real, mechanically-derived path (github.com.hanzoai.cd.pkg.apis.application.v1alpha1, no v3 segment) and regenerate everything protoc/go-to-protobuf own: generated.proto/pb.go, every pkg/apiclient and reposerver/cmpserver/commitserver *.pb.go, assets/swagger.json, and the CRD manifests. That regeneration surfaced a second, unrelated bug: hack/gen-crd-spec stamped app.kubernetes.io/part-of: cd on the CRDs, but util/settings.isSettingsObject (and the ConfigMap informer built on it) only ever recognizes part-of=hanzocd. The same wrong "cd" value was baked into cmd/cd/commands/admin/settings.go's setSettingsMeta and the shared test/testdata.go fixtures ~30 files import — util/settings' own test suite was panicking on an empty slice because its fixture was invisible to the informer it was supposedly seeding. Fixed the label everywhere it's produced or asserted in the settings path; left the ~90 unrelated part-of:"cd" literals in other packages' local test fixtures alone since they never touch this selector. Also dropped 25 "TODO: Remove deprecated <dead upstream issue link>" comments that duplicated the real explanation already sitting one line away (a proper `Deprecated:` godoc, a cobra Deprecated field, or a nolint:staticcheck marker) — kept the explanation, dropped the link, per the standing rule for these citations. And repointed the two Grafana dashboards' job selector from argocd-server-metrics, a Service the manifests never create, to hanzocd-server-metrics, the one they do.
2850 lines
80 KiB
Go
Generated
2850 lines
80 KiB
Go
Generated
// Code generated by protoc-gen-gogo. DO NOT EDIT.
|
|
// source: server/applicationset/applicationset.proto
|
|
|
|
// ApplicationSet Service
|
|
//
|
|
// ApplicationSet Service API performs CRUD actions against applicationset resources
|
|
|
|
package applicationset
|
|
|
|
import (
|
|
context "context"
|
|
fmt "fmt"
|
|
proto "github.com/gogo/protobuf/proto"
|
|
events "github.com/hanzoai/cd/pkg/apiclient/events"
|
|
v1alpha1 "github.com/hanzoai/cd/pkg/apis/application/v1alpha1"
|
|
_ "google.golang.org/genproto/googleapis/api/annotations"
|
|
grpc "google.golang.org/grpc"
|
|
codes "google.golang.org/grpc/codes"
|
|
status "google.golang.org/grpc/status"
|
|
io "io"
|
|
math "math"
|
|
math_bits "math/bits"
|
|
)
|
|
|
|
// Reference imports to suppress errors if they are not otherwise used.
|
|
var _ = proto.Marshal
|
|
var _ = fmt.Errorf
|
|
var _ = math.Inf
|
|
|
|
// This is a compile-time assertion to ensure that this generated file
|
|
// is compatible with the proto package it is being compiled against.
|
|
// A compilation error at this line likely means your copy of the
|
|
// proto package needs to be updated.
|
|
const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package
|
|
|
|
// ApplicationSetGetQuery is a query for applicationset resources
|
|
type ApplicationSetGetQuery struct {
|
|
// the applicationsets's name
|
|
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
|
|
// The application set namespace. Default empty is the CD control plane namespace
|
|
AppsetNamespace string `protobuf:"bytes,2,opt,name=appsetNamespace,proto3" json:"appsetNamespace,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *ApplicationSetGetQuery) Reset() { *m = ApplicationSetGetQuery{} }
|
|
func (m *ApplicationSetGetQuery) String() string { return proto.CompactTextString(m) }
|
|
func (*ApplicationSetGetQuery) ProtoMessage() {}
|
|
func (*ApplicationSetGetQuery) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_eacb9df0ce5738fa, []int{0}
|
|
}
|
|
func (m *ApplicationSetGetQuery) XXX_Unmarshal(b []byte) error {
|
|
return m.Unmarshal(b)
|
|
}
|
|
func (m *ApplicationSetGetQuery) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
if deterministic {
|
|
return xxx_messageInfo_ApplicationSetGetQuery.Marshal(b, m, deterministic)
|
|
} else {
|
|
b = b[:cap(b)]
|
|
n, err := m.MarshalToSizedBuffer(b)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return b[:n], nil
|
|
}
|
|
}
|
|
func (m *ApplicationSetGetQuery) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_ApplicationSetGetQuery.Merge(m, src)
|
|
}
|
|
func (m *ApplicationSetGetQuery) XXX_Size() int {
|
|
return m.Size()
|
|
}
|
|
func (m *ApplicationSetGetQuery) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_ApplicationSetGetQuery.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_ApplicationSetGetQuery proto.InternalMessageInfo
|
|
|
|
func (m *ApplicationSetGetQuery) GetName() string {
|
|
if m != nil {
|
|
return m.Name
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *ApplicationSetGetQuery) GetAppsetNamespace() string {
|
|
if m != nil {
|
|
return m.AppsetNamespace
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type ApplicationSetListQuery struct {
|
|
// the project names to restrict returned list applicationsets
|
|
Projects []string `protobuf:"bytes,1,rep,name=projects,proto3" json:"projects,omitempty"`
|
|
// the selector to restrict returned list to applications only with matched labels
|
|
Selector string `protobuf:"bytes,2,opt,name=selector,proto3" json:"selector,omitempty"`
|
|
// The application set namespace. Default empty is the CD control plane namespace
|
|
AppsetNamespace string `protobuf:"bytes,3,opt,name=appsetNamespace,proto3" json:"appsetNamespace,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *ApplicationSetListQuery) Reset() { *m = ApplicationSetListQuery{} }
|
|
func (m *ApplicationSetListQuery) String() string { return proto.CompactTextString(m) }
|
|
func (*ApplicationSetListQuery) ProtoMessage() {}
|
|
func (*ApplicationSetListQuery) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_eacb9df0ce5738fa, []int{1}
|
|
}
|
|
func (m *ApplicationSetListQuery) XXX_Unmarshal(b []byte) error {
|
|
return m.Unmarshal(b)
|
|
}
|
|
func (m *ApplicationSetListQuery) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
if deterministic {
|
|
return xxx_messageInfo_ApplicationSetListQuery.Marshal(b, m, deterministic)
|
|
} else {
|
|
b = b[:cap(b)]
|
|
n, err := m.MarshalToSizedBuffer(b)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return b[:n], nil
|
|
}
|
|
}
|
|
func (m *ApplicationSetListQuery) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_ApplicationSetListQuery.Merge(m, src)
|
|
}
|
|
func (m *ApplicationSetListQuery) XXX_Size() int {
|
|
return m.Size()
|
|
}
|
|
func (m *ApplicationSetListQuery) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_ApplicationSetListQuery.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_ApplicationSetListQuery proto.InternalMessageInfo
|
|
|
|
func (m *ApplicationSetListQuery) GetProjects() []string {
|
|
if m != nil {
|
|
return m.Projects
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *ApplicationSetListQuery) GetSelector() string {
|
|
if m != nil {
|
|
return m.Selector
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *ApplicationSetListQuery) GetAppsetNamespace() string {
|
|
if m != nil {
|
|
return m.AppsetNamespace
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type ApplicationSetWatchQuery struct {
|
|
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
|
|
Projects []string `protobuf:"bytes,2,rep,name=projects,proto3" json:"projects,omitempty"`
|
|
Selector string `protobuf:"bytes,3,opt,name=selector,proto3" json:"selector,omitempty"`
|
|
AppSetNamespace string `protobuf:"bytes,4,opt,name=appSetNamespace,proto3" json:"appSetNamespace,omitempty"`
|
|
// when specified with a watch call, shows changes that occur after that particular version of a resource.
|
|
ResourceVersion string `protobuf:"bytes,5,opt,name=resourceVersion,proto3" json:"resourceVersion,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *ApplicationSetWatchQuery) Reset() { *m = ApplicationSetWatchQuery{} }
|
|
func (m *ApplicationSetWatchQuery) String() string { return proto.CompactTextString(m) }
|
|
func (*ApplicationSetWatchQuery) ProtoMessage() {}
|
|
func (*ApplicationSetWatchQuery) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_eacb9df0ce5738fa, []int{2}
|
|
}
|
|
func (m *ApplicationSetWatchQuery) XXX_Unmarshal(b []byte) error {
|
|
return m.Unmarshal(b)
|
|
}
|
|
func (m *ApplicationSetWatchQuery) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
if deterministic {
|
|
return xxx_messageInfo_ApplicationSetWatchQuery.Marshal(b, m, deterministic)
|
|
} else {
|
|
b = b[:cap(b)]
|
|
n, err := m.MarshalToSizedBuffer(b)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return b[:n], nil
|
|
}
|
|
}
|
|
func (m *ApplicationSetWatchQuery) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_ApplicationSetWatchQuery.Merge(m, src)
|
|
}
|
|
func (m *ApplicationSetWatchQuery) XXX_Size() int {
|
|
return m.Size()
|
|
}
|
|
func (m *ApplicationSetWatchQuery) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_ApplicationSetWatchQuery.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_ApplicationSetWatchQuery proto.InternalMessageInfo
|
|
|
|
func (m *ApplicationSetWatchQuery) GetName() string {
|
|
if m != nil {
|
|
return m.Name
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *ApplicationSetWatchQuery) GetProjects() []string {
|
|
if m != nil {
|
|
return m.Projects
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *ApplicationSetWatchQuery) GetSelector() string {
|
|
if m != nil {
|
|
return m.Selector
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *ApplicationSetWatchQuery) GetAppSetNamespace() string {
|
|
if m != nil {
|
|
return m.AppSetNamespace
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *ApplicationSetWatchQuery) GetResourceVersion() string {
|
|
if m != nil {
|
|
return m.ResourceVersion
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type ApplicationSetResponse struct {
|
|
Project string `protobuf:"bytes,1,opt,name=project,proto3" json:"project,omitempty"`
|
|
Applicationset *v1alpha1.ApplicationSet `protobuf:"bytes,2,opt,name=applicationset,proto3" json:"applicationset,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *ApplicationSetResponse) Reset() { *m = ApplicationSetResponse{} }
|
|
func (m *ApplicationSetResponse) String() string { return proto.CompactTextString(m) }
|
|
func (*ApplicationSetResponse) ProtoMessage() {}
|
|
func (*ApplicationSetResponse) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_eacb9df0ce5738fa, []int{3}
|
|
}
|
|
func (m *ApplicationSetResponse) XXX_Unmarshal(b []byte) error {
|
|
return m.Unmarshal(b)
|
|
}
|
|
func (m *ApplicationSetResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
if deterministic {
|
|
return xxx_messageInfo_ApplicationSetResponse.Marshal(b, m, deterministic)
|
|
} else {
|
|
b = b[:cap(b)]
|
|
n, err := m.MarshalToSizedBuffer(b)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return b[:n], nil
|
|
}
|
|
}
|
|
func (m *ApplicationSetResponse) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_ApplicationSetResponse.Merge(m, src)
|
|
}
|
|
func (m *ApplicationSetResponse) XXX_Size() int {
|
|
return m.Size()
|
|
}
|
|
func (m *ApplicationSetResponse) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_ApplicationSetResponse.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_ApplicationSetResponse proto.InternalMessageInfo
|
|
|
|
func (m *ApplicationSetResponse) GetProject() string {
|
|
if m != nil {
|
|
return m.Project
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *ApplicationSetResponse) GetApplicationset() *v1alpha1.ApplicationSet {
|
|
if m != nil {
|
|
return m.Applicationset
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type ApplicationSetCreateRequest struct {
|
|
Applicationset *v1alpha1.ApplicationSet `protobuf:"bytes,1,opt,name=applicationset,proto3" json:"applicationset,omitempty"`
|
|
Upsert bool `protobuf:"varint,2,opt,name=upsert,proto3" json:"upsert,omitempty"`
|
|
DryRun bool `protobuf:"varint,3,opt,name=dryRun,proto3" json:"dryRun,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *ApplicationSetCreateRequest) Reset() { *m = ApplicationSetCreateRequest{} }
|
|
func (m *ApplicationSetCreateRequest) String() string { return proto.CompactTextString(m) }
|
|
func (*ApplicationSetCreateRequest) ProtoMessage() {}
|
|
func (*ApplicationSetCreateRequest) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_eacb9df0ce5738fa, []int{4}
|
|
}
|
|
func (m *ApplicationSetCreateRequest) XXX_Unmarshal(b []byte) error {
|
|
return m.Unmarshal(b)
|
|
}
|
|
func (m *ApplicationSetCreateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
if deterministic {
|
|
return xxx_messageInfo_ApplicationSetCreateRequest.Marshal(b, m, deterministic)
|
|
} else {
|
|
b = b[:cap(b)]
|
|
n, err := m.MarshalToSizedBuffer(b)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return b[:n], nil
|
|
}
|
|
}
|
|
func (m *ApplicationSetCreateRequest) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_ApplicationSetCreateRequest.Merge(m, src)
|
|
}
|
|
func (m *ApplicationSetCreateRequest) XXX_Size() int {
|
|
return m.Size()
|
|
}
|
|
func (m *ApplicationSetCreateRequest) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_ApplicationSetCreateRequest.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_ApplicationSetCreateRequest proto.InternalMessageInfo
|
|
|
|
func (m *ApplicationSetCreateRequest) GetApplicationset() *v1alpha1.ApplicationSet {
|
|
if m != nil {
|
|
return m.Applicationset
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *ApplicationSetCreateRequest) GetUpsert() bool {
|
|
if m != nil {
|
|
return m.Upsert
|
|
}
|
|
return false
|
|
}
|
|
|
|
func (m *ApplicationSetCreateRequest) GetDryRun() bool {
|
|
if m != nil {
|
|
return m.DryRun
|
|
}
|
|
return false
|
|
}
|
|
|
|
type ApplicationSetDeleteRequest struct {
|
|
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
|
|
// The application set namespace. Default empty is the CD control plane namespace
|
|
AppsetNamespace string `protobuf:"bytes,2,opt,name=appsetNamespace,proto3" json:"appsetNamespace,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *ApplicationSetDeleteRequest) Reset() { *m = ApplicationSetDeleteRequest{} }
|
|
func (m *ApplicationSetDeleteRequest) String() string { return proto.CompactTextString(m) }
|
|
func (*ApplicationSetDeleteRequest) ProtoMessage() {}
|
|
func (*ApplicationSetDeleteRequest) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_eacb9df0ce5738fa, []int{5}
|
|
}
|
|
func (m *ApplicationSetDeleteRequest) XXX_Unmarshal(b []byte) error {
|
|
return m.Unmarshal(b)
|
|
}
|
|
func (m *ApplicationSetDeleteRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
if deterministic {
|
|
return xxx_messageInfo_ApplicationSetDeleteRequest.Marshal(b, m, deterministic)
|
|
} else {
|
|
b = b[:cap(b)]
|
|
n, err := m.MarshalToSizedBuffer(b)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return b[:n], nil
|
|
}
|
|
}
|
|
func (m *ApplicationSetDeleteRequest) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_ApplicationSetDeleteRequest.Merge(m, src)
|
|
}
|
|
func (m *ApplicationSetDeleteRequest) XXX_Size() int {
|
|
return m.Size()
|
|
}
|
|
func (m *ApplicationSetDeleteRequest) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_ApplicationSetDeleteRequest.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_ApplicationSetDeleteRequest proto.InternalMessageInfo
|
|
|
|
func (m *ApplicationSetDeleteRequest) GetName() string {
|
|
if m != nil {
|
|
return m.Name
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *ApplicationSetDeleteRequest) GetAppsetNamespace() string {
|
|
if m != nil {
|
|
return m.AppsetNamespace
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type ApplicationSetTreeQuery struct {
|
|
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
|
|
// The application set namespace. Default empty is the CD control plane namespace
|
|
AppsetNamespace string `protobuf:"bytes,2,opt,name=appsetNamespace,proto3" json:"appsetNamespace,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *ApplicationSetTreeQuery) Reset() { *m = ApplicationSetTreeQuery{} }
|
|
func (m *ApplicationSetTreeQuery) String() string { return proto.CompactTextString(m) }
|
|
func (*ApplicationSetTreeQuery) ProtoMessage() {}
|
|
func (*ApplicationSetTreeQuery) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_eacb9df0ce5738fa, []int{6}
|
|
}
|
|
func (m *ApplicationSetTreeQuery) XXX_Unmarshal(b []byte) error {
|
|
return m.Unmarshal(b)
|
|
}
|
|
func (m *ApplicationSetTreeQuery) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
if deterministic {
|
|
return xxx_messageInfo_ApplicationSetTreeQuery.Marshal(b, m, deterministic)
|
|
} else {
|
|
b = b[:cap(b)]
|
|
n, err := m.MarshalToSizedBuffer(b)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return b[:n], nil
|
|
}
|
|
}
|
|
func (m *ApplicationSetTreeQuery) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_ApplicationSetTreeQuery.Merge(m, src)
|
|
}
|
|
func (m *ApplicationSetTreeQuery) XXX_Size() int {
|
|
return m.Size()
|
|
}
|
|
func (m *ApplicationSetTreeQuery) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_ApplicationSetTreeQuery.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_ApplicationSetTreeQuery proto.InternalMessageInfo
|
|
|
|
func (m *ApplicationSetTreeQuery) GetName() string {
|
|
if m != nil {
|
|
return m.Name
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *ApplicationSetTreeQuery) GetAppsetNamespace() string {
|
|
if m != nil {
|
|
return m.AppsetNamespace
|
|
}
|
|
return ""
|
|
}
|
|
|
|
// ApplicationSetGetQuery is a query for applicationset resources
|
|
type ApplicationSetGenerateRequest struct {
|
|
// the applicationsets
|
|
ApplicationSet *v1alpha1.ApplicationSet `protobuf:"bytes,1,opt,name=applicationSet,proto3" json:"applicationSet,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *ApplicationSetGenerateRequest) Reset() { *m = ApplicationSetGenerateRequest{} }
|
|
func (m *ApplicationSetGenerateRequest) String() string { return proto.CompactTextString(m) }
|
|
func (*ApplicationSetGenerateRequest) ProtoMessage() {}
|
|
func (*ApplicationSetGenerateRequest) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_eacb9df0ce5738fa, []int{7}
|
|
}
|
|
func (m *ApplicationSetGenerateRequest) XXX_Unmarshal(b []byte) error {
|
|
return m.Unmarshal(b)
|
|
}
|
|
func (m *ApplicationSetGenerateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
if deterministic {
|
|
return xxx_messageInfo_ApplicationSetGenerateRequest.Marshal(b, m, deterministic)
|
|
} else {
|
|
b = b[:cap(b)]
|
|
n, err := m.MarshalToSizedBuffer(b)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return b[:n], nil
|
|
}
|
|
}
|
|
func (m *ApplicationSetGenerateRequest) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_ApplicationSetGenerateRequest.Merge(m, src)
|
|
}
|
|
func (m *ApplicationSetGenerateRequest) XXX_Size() int {
|
|
return m.Size()
|
|
}
|
|
func (m *ApplicationSetGenerateRequest) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_ApplicationSetGenerateRequest.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_ApplicationSetGenerateRequest proto.InternalMessageInfo
|
|
|
|
func (m *ApplicationSetGenerateRequest) GetApplicationSet() *v1alpha1.ApplicationSet {
|
|
if m != nil {
|
|
return m.ApplicationSet
|
|
}
|
|
return nil
|
|
}
|
|
|
|
// ApplicationSetGenerateResponse is a response for applicationset generate request
|
|
type ApplicationSetGenerateResponse struct {
|
|
Applications []*v1alpha1.Application `protobuf:"bytes,1,rep,name=applications,proto3" json:"applications,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *ApplicationSetGenerateResponse) Reset() { *m = ApplicationSetGenerateResponse{} }
|
|
func (m *ApplicationSetGenerateResponse) String() string { return proto.CompactTextString(m) }
|
|
func (*ApplicationSetGenerateResponse) ProtoMessage() {}
|
|
func (*ApplicationSetGenerateResponse) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_eacb9df0ce5738fa, []int{8}
|
|
}
|
|
func (m *ApplicationSetGenerateResponse) XXX_Unmarshal(b []byte) error {
|
|
return m.Unmarshal(b)
|
|
}
|
|
func (m *ApplicationSetGenerateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
if deterministic {
|
|
return xxx_messageInfo_ApplicationSetGenerateResponse.Marshal(b, m, deterministic)
|
|
} else {
|
|
b = b[:cap(b)]
|
|
n, err := m.MarshalToSizedBuffer(b)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return b[:n], nil
|
|
}
|
|
}
|
|
func (m *ApplicationSetGenerateResponse) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_ApplicationSetGenerateResponse.Merge(m, src)
|
|
}
|
|
func (m *ApplicationSetGenerateResponse) XXX_Size() int {
|
|
return m.Size()
|
|
}
|
|
func (m *ApplicationSetGenerateResponse) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_ApplicationSetGenerateResponse.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_ApplicationSetGenerateResponse proto.InternalMessageInfo
|
|
|
|
func (m *ApplicationSetGenerateResponse) GetApplications() []*v1alpha1.Application {
|
|
if m != nil {
|
|
return m.Applications
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func init() {
|
|
proto.RegisterType((*ApplicationSetGetQuery)(nil), "applicationset.ApplicationSetGetQuery")
|
|
proto.RegisterType((*ApplicationSetListQuery)(nil), "applicationset.ApplicationSetListQuery")
|
|
proto.RegisterType((*ApplicationSetWatchQuery)(nil), "applicationset.ApplicationSetWatchQuery")
|
|
proto.RegisterType((*ApplicationSetResponse)(nil), "applicationset.ApplicationSetResponse")
|
|
proto.RegisterType((*ApplicationSetCreateRequest)(nil), "applicationset.ApplicationSetCreateRequest")
|
|
proto.RegisterType((*ApplicationSetDeleteRequest)(nil), "applicationset.ApplicationSetDeleteRequest")
|
|
proto.RegisterType((*ApplicationSetTreeQuery)(nil), "applicationset.ApplicationSetTreeQuery")
|
|
proto.RegisterType((*ApplicationSetGenerateRequest)(nil), "applicationset.ApplicationSetGenerateRequest")
|
|
proto.RegisterType((*ApplicationSetGenerateResponse)(nil), "applicationset.ApplicationSetGenerateResponse")
|
|
}
|
|
|
|
func init() {
|
|
proto.RegisterFile("server/applicationset/applicationset.proto", fileDescriptor_eacb9df0ce5738fa)
|
|
}
|
|
|
|
var fileDescriptor_eacb9df0ce5738fa = []byte{
|
|
// 769 bytes of a gzipped FileDescriptorProto
|
|
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x96, 0xcf, 0x4f, 0x13, 0x41,
|
|
0x14, 0xc7, 0x33, 0x14, 0x6a, 0x19, 0x88, 0xc6, 0x31, 0x60, 0xb3, 0x60, 0x03, 0x6b, 0x94, 0x5a,
|
|
0xc2, 0x2e, 0xd4, 0x1b, 0x27, 0x14, 0x0d, 0x17, 0x35, 0x71, 0x6b, 0x20, 0xd1, 0xd3, 0xb0, 0x7d,
|
|
0x69, 0x57, 0xda, 0xdd, 0x75, 0x66, 0xda, 0x04, 0x88, 0x07, 0x3d, 0x78, 0xf2, 0xa4, 0xd1, 0xab,
|
|
0x37, 0xbd, 0x7b, 0xf4, 0x2f, 0xf0, 0x68, 0xe2, 0x3f, 0x60, 0x88, 0xfe, 0x1f, 0x66, 0x67, 0xa7,
|
|
0x3f, 0x76, 0xb2, 0x6c, 0x49, 0x28, 0xa7, 0x76, 0x7e, 0xbd, 0xf7, 0xd9, 0xf7, 0xbe, 0xf3, 0xe6,
|
|
0xe1, 0x0a, 0x07, 0xd6, 0x05, 0x66, 0xd3, 0x30, 0x6c, 0x79, 0x2e, 0x15, 0x5e, 0xe0, 0x73, 0x10,
|
|
0xda, 0xd0, 0x0a, 0x59, 0x20, 0x02, 0x72, 0x39, 0x39, 0x6b, 0x2c, 0x36, 0x82, 0xa0, 0xd1, 0x02,
|
|
0x9b, 0x86, 0x9e, 0x4d, 0x7d, 0x3f, 0x10, 0xf1, 0x4a, 0xbc, 0xdb, 0xd8, 0x6e, 0x78, 0xa2, 0xd9,
|
|
0xd9, 0xb7, 0xdc, 0xa0, 0x6d, 0x37, 0xa9, 0x7f, 0x14, 0x50, 0xcf, 0x76, 0xeb, 0x76, 0x78, 0xd0,
|
|
0x88, 0x0e, 0xf0, 0x61, 0x17, 0x76, 0x77, 0x83, 0xb6, 0xc2, 0x26, 0xdd, 0xb0, 0x1b, 0xe0, 0x03,
|
|
0xa3, 0x02, 0xea, 0xca, 0xc8, 0x7a, 0xba, 0x11, 0x05, 0x0d, 0x5d, 0xf0, 0x05, 0x57, 0x3f, 0xf1,
|
|
0x09, 0x73, 0x17, 0xcf, 0xdf, 0x1b, 0x58, 0xae, 0x81, 0xd8, 0x01, 0xf1, 0xb4, 0x03, 0xec, 0x90,
|
|
0x10, 0x3c, 0xe9, 0xd3, 0x36, 0x14, 0xd1, 0x12, 0x2a, 0x4f, 0x3b, 0xf2, 0x3f, 0x29, 0xe3, 0x2b,
|
|
0x34, 0x0c, 0x39, 0x88, 0x27, 0xb4, 0x0d, 0x3c, 0xa4, 0x2e, 0x14, 0x27, 0xe4, 0xb2, 0x3e, 0x6d,
|
|
0x1e, 0xe3, 0xeb, 0x49, 0xbb, 0x8f, 0x3c, 0xae, 0x0c, 0x1b, 0xb8, 0x10, 0xb2, 0xe0, 0x25, 0xb8,
|
|
0x82, 0x17, 0xd1, 0x52, 0xae, 0x3c, 0xed, 0xf4, 0xc7, 0xd1, 0x1a, 0x87, 0x16, 0xb8, 0x22, 0x60,
|
|
0xca, 0x72, 0x7f, 0x9c, 0xe6, 0x3c, 0x97, 0xee, 0xfc, 0x07, 0xc2, 0xc5, 0xa4, 0xf7, 0x3d, 0x2a,
|
|
0xdc, 0xe6, 0xe9, 0xdf, 0x35, 0x8c, 0x34, 0x91, 0x81, 0x94, 0x4b, 0x45, 0xaa, 0x0d, 0x23, 0x4d,
|
|
0xf6, 0x91, 0x86, 0xa7, 0xa3, 0x9d, 0x0c, 0x78, 0xd0, 0x61, 0x2e, 0xec, 0x02, 0xe3, 0x5e, 0xe0,
|
|
0x17, 0xa7, 0xe2, 0x9d, 0xda, 0xb4, 0xf9, 0x05, 0xe9, 0x29, 0x71, 0x80, 0x87, 0x91, 0x84, 0x48,
|
|
0x11, 0x5f, 0x52, 0x58, 0x8a, 0xbe, 0x37, 0x24, 0x07, 0x58, 0x53, 0x9b, 0x8c, 0xde, 0x4c, 0x75,
|
|
0xdb, 0x1a, 0x28, 0xc2, 0x52, 0x8a, 0xb0, 0xdc, 0xba, 0x15, 0x1e, 0x34, 0xac, 0x48, 0x56, 0xd6,
|
|
0xd0, 0x29, 0xab, 0x27, 0x2b, 0x4b, 0x73, 0xaf, 0x99, 0x8e, 0xc2, 0xbb, 0x90, 0xdc, 0xb2, 0xcd,
|
|
0x80, 0x0a, 0x70, 0xe0, 0x55, 0x07, 0x78, 0x1a, 0x0c, 0xba, 0x30, 0x18, 0x32, 0x8f, 0xf3, 0x9d,
|
|
0x90, 0x03, 0x8b, 0xbf, 0xb8, 0xe0, 0xa8, 0x51, 0x34, 0x5f, 0x67, 0x87, 0x4e, 0xc7, 0x97, 0x49,
|
|
0x2b, 0x38, 0x6a, 0x64, 0xbe, 0xd0, 0xd9, 0x1f, 0x40, 0x0b, 0x06, 0xec, 0xe7, 0x53, 0xfd, 0x9e,
|
|
0xae, 0xfa, 0x67, 0x0c, 0x60, 0x1c, 0xd7, 0xe9, 0x3d, 0xc2, 0x37, 0xf4, 0x7b, 0x1a, 0x5f, 0xfd,
|
|
0xf4, 0xa0, 0xd7, 0x2e, 0x2e, 0xe8, 0x35, 0x10, 0xe6, 0x3b, 0x84, 0x4b, 0xa7, 0xe1, 0x28, 0xad,
|
|
0xd6, 0xf1, 0xec, 0x70, 0xa6, 0xe4, 0x4d, 0x9f, 0xa9, 0x6e, 0x9d, 0x97, 0xc6, 0x49, 0x58, 0xad,
|
|
0xfe, 0x9b, 0xc6, 0x73, 0x49, 0x90, 0x1a, 0xb0, 0xae, 0xe7, 0x02, 0xf9, 0x8c, 0x70, 0x6e, 0x07,
|
|
0x04, 0xb9, 0x6d, 0x69, 0xc5, 0x39, 0xbd, 0xdc, 0x19, 0xe3, 0x88, 0x93, 0x69, 0xbe, 0xfd, 0xfd,
|
|
0xf7, 0xe3, 0xc4, 0x22, 0x31, 0xec, 0xee, 0x86, 0xf6, 0x28, 0x70, 0xfb, 0x38, 0xca, 0xf9, 0x6b,
|
|
0xf2, 0x01, 0xe1, 0x42, 0x2f, 0x5a, 0x64, 0x6d, 0x14, 0x5d, 0x22, 0xc9, 0x86, 0x75, 0xd6, 0xed,
|
|
0x71, 0x12, 0xcc, 0x15, 0xc9, 0xb3, 0x6c, 0x2e, 0xa6, 0xf1, 0xf4, 0x1e, 0x8f, 0x4d, 0x54, 0x21,
|
|
0x9f, 0x10, 0x9e, 0x8c, 0x2a, 0x34, 0x59, 0xc9, 0xf6, 0xd0, 0xaf, 0xe2, 0xc6, 0xce, 0x18, 0xe2,
|
|
0x15, 0x59, 0x33, 0x17, 0x24, 0xe3, 0x1c, 0xb9, 0x96, 0xc2, 0x48, 0xbe, 0x21, 0x9c, 0x8f, 0x8b,
|
|
0x0b, 0x59, 0xcd, 0x26, 0x4b, 0x94, 0xa0, 0xf1, 0x64, 0x73, 0x55, 0x92, 0xdd, 0x32, 0xd3, 0xc8,
|
|
0x36, 0xf5, 0x3a, 0xf4, 0x06, 0xe1, 0x7c, 0x5c, 0x4a, 0x46, 0x91, 0x26, 0x0a, 0x8e, 0x31, 0x42,
|
|
0x9f, 0xfd, 0x54, 0x2a, 0x69, 0x55, 0xb2, 0xa4, 0xf5, 0x1d, 0xe1, 0x59, 0x47, 0x3d, 0x27, 0x51,
|
|
0xe5, 0x19, 0x95, 0xcd, 0x7e, 0x75, 0x1a, 0x4b, 0x36, 0x23, 0x6b, 0xe6, 0xba, 0xc4, 0xac, 0x90,
|
|
0xf2, 0xe9, 0x98, 0x76, 0xef, 0xc5, 0x5b, 0x13, 0x11, 0xe3, 0x11, 0x26, 0x91, 0x0e, 0x7a, 0xdc,
|
|
0x0f, 0x65, 0x77, 0x72, 0xe6, 0x6b, 0x7b, 0xd5, 0x52, 0xed, 0x8c, 0x3c, 0x27, 0x05, 0x75, 0x47,
|
|
0x22, 0xdc, 0x24, 0xcb, 0x19, 0x08, 0xf1, 0x21, 0xf2, 0x15, 0xe1, 0x29, 0xd9, 0x1a, 0x90, 0x72,
|
|
0xb6, 0xbf, 0x41, 0xff, 0x60, 0x3c, 0x1e, 0x43, 0xa8, 0xa4, 0x39, 0x49, 0x9c, 0x2c, 0x19, 0x5c,
|
|
0x30, 0xa0, 0x6d, 0x1d, 0x7a, 0x1d, 0xdd, 0xdf, 0xfa, 0x79, 0x52, 0x42, 0xbf, 0x4e, 0x4a, 0xe8,
|
|
0xcf, 0x49, 0x09, 0x3d, 0xaf, 0x66, 0xf6, 0x8a, 0x6e, 0xcb, 0x03, 0x5f, 0xef, 0x49, 0xf7, 0xf3,
|
|
0xb2, 0xdf, 0xbb, 0xfb, 0x3f, 0x00, 0x00, 0xff, 0xff, 0xca, 0x53, 0x2e, 0x25, 0xc2, 0x0a, 0x00,
|
|
0x00,
|
|
}
|
|
|
|
// Reference imports to suppress errors if they are not otherwise used.
|
|
var _ context.Context
|
|
var _ grpc.ClientConn
|
|
|
|
// This is a compile-time assertion to ensure that this generated file
|
|
// is compatible with the grpc package it is being compiled against.
|
|
const _ = grpc.SupportPackageIsVersion4
|
|
|
|
// ApplicationSetServiceClient is the client API for ApplicationSetService service.
|
|
//
|
|
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
|
|
type ApplicationSetServiceClient interface {
|
|
// Get returns an applicationset by name
|
|
Get(ctx context.Context, in *ApplicationSetGetQuery, opts ...grpc.CallOption) (*v1alpha1.ApplicationSet, error)
|
|
// Generate generates
|
|
Generate(ctx context.Context, in *ApplicationSetGenerateRequest, opts ...grpc.CallOption) (*ApplicationSetGenerateResponse, error)
|
|
//List returns list of applicationset
|
|
List(ctx context.Context, in *ApplicationSetListQuery, opts ...grpc.CallOption) (*v1alpha1.ApplicationSetList, error)
|
|
//Create creates an applicationset
|
|
Create(ctx context.Context, in *ApplicationSetCreateRequest, opts ...grpc.CallOption) (*v1alpha1.ApplicationSet, error)
|
|
// Delete deletes an application set
|
|
Delete(ctx context.Context, in *ApplicationSetDeleteRequest, opts ...grpc.CallOption) (*ApplicationSetResponse, error)
|
|
// ResourceTree returns resource tree
|
|
ResourceTree(ctx context.Context, in *ApplicationSetTreeQuery, opts ...grpc.CallOption) (*v1alpha1.ApplicationSetTree, error)
|
|
// ListResourceEvents returns a list of event resources
|
|
ListResourceEvents(ctx context.Context, in *ApplicationSetGetQuery, opts ...grpc.CallOption) (*events.EventList, error)
|
|
Watch(ctx context.Context, in *ApplicationSetWatchQuery, opts ...grpc.CallOption) (ApplicationSetService_WatchClient, error)
|
|
}
|
|
|
|
type applicationSetServiceClient struct {
|
|
cc *grpc.ClientConn
|
|
}
|
|
|
|
func NewApplicationSetServiceClient(cc *grpc.ClientConn) ApplicationSetServiceClient {
|
|
return &applicationSetServiceClient{cc}
|
|
}
|
|
|
|
func (c *applicationSetServiceClient) Get(ctx context.Context, in *ApplicationSetGetQuery, opts ...grpc.CallOption) (*v1alpha1.ApplicationSet, error) {
|
|
out := new(v1alpha1.ApplicationSet)
|
|
err := c.cc.Invoke(ctx, "/applicationset.ApplicationSetService/Get", in, out, opts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
func (c *applicationSetServiceClient) Generate(ctx context.Context, in *ApplicationSetGenerateRequest, opts ...grpc.CallOption) (*ApplicationSetGenerateResponse, error) {
|
|
out := new(ApplicationSetGenerateResponse)
|
|
err := c.cc.Invoke(ctx, "/applicationset.ApplicationSetService/Generate", in, out, opts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
func (c *applicationSetServiceClient) List(ctx context.Context, in *ApplicationSetListQuery, opts ...grpc.CallOption) (*v1alpha1.ApplicationSetList, error) {
|
|
out := new(v1alpha1.ApplicationSetList)
|
|
err := c.cc.Invoke(ctx, "/applicationset.ApplicationSetService/List", in, out, opts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
func (c *applicationSetServiceClient) Create(ctx context.Context, in *ApplicationSetCreateRequest, opts ...grpc.CallOption) (*v1alpha1.ApplicationSet, error) {
|
|
out := new(v1alpha1.ApplicationSet)
|
|
err := c.cc.Invoke(ctx, "/applicationset.ApplicationSetService/Create", in, out, opts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
func (c *applicationSetServiceClient) Delete(ctx context.Context, in *ApplicationSetDeleteRequest, opts ...grpc.CallOption) (*ApplicationSetResponse, error) {
|
|
out := new(ApplicationSetResponse)
|
|
err := c.cc.Invoke(ctx, "/applicationset.ApplicationSetService/Delete", in, out, opts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
func (c *applicationSetServiceClient) ResourceTree(ctx context.Context, in *ApplicationSetTreeQuery, opts ...grpc.CallOption) (*v1alpha1.ApplicationSetTree, error) {
|
|
out := new(v1alpha1.ApplicationSetTree)
|
|
err := c.cc.Invoke(ctx, "/applicationset.ApplicationSetService/ResourceTree", in, out, opts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
func (c *applicationSetServiceClient) ListResourceEvents(ctx context.Context, in *ApplicationSetGetQuery, opts ...grpc.CallOption) (*events.EventList, error) {
|
|
out := new(events.EventList)
|
|
err := c.cc.Invoke(ctx, "/applicationset.ApplicationSetService/ListResourceEvents", in, out, opts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
func (c *applicationSetServiceClient) Watch(ctx context.Context, in *ApplicationSetWatchQuery, opts ...grpc.CallOption) (ApplicationSetService_WatchClient, error) {
|
|
stream, err := c.cc.NewStream(ctx, &_ApplicationSetService_serviceDesc.Streams[0], "/applicationset.ApplicationSetService/Watch", opts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
x := &applicationSetServiceWatchClient{stream}
|
|
if err := x.ClientStream.SendMsg(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if err := x.ClientStream.CloseSend(); err != nil {
|
|
return nil, err
|
|
}
|
|
return x, nil
|
|
}
|
|
|
|
type ApplicationSetService_WatchClient interface {
|
|
Recv() (*v1alpha1.ApplicationSetWatchEvent, error)
|
|
grpc.ClientStream
|
|
}
|
|
|
|
type applicationSetServiceWatchClient struct {
|
|
grpc.ClientStream
|
|
}
|
|
|
|
func (x *applicationSetServiceWatchClient) Recv() (*v1alpha1.ApplicationSetWatchEvent, error) {
|
|
m := new(v1alpha1.ApplicationSetWatchEvent)
|
|
if err := x.ClientStream.RecvMsg(m); err != nil {
|
|
return nil, err
|
|
}
|
|
return m, nil
|
|
}
|
|
|
|
// ApplicationSetServiceServer is the server API for ApplicationSetService service.
|
|
type ApplicationSetServiceServer interface {
|
|
// Get returns an applicationset by name
|
|
Get(context.Context, *ApplicationSetGetQuery) (*v1alpha1.ApplicationSet, error)
|
|
// Generate generates
|
|
Generate(context.Context, *ApplicationSetGenerateRequest) (*ApplicationSetGenerateResponse, error)
|
|
//List returns list of applicationset
|
|
List(context.Context, *ApplicationSetListQuery) (*v1alpha1.ApplicationSetList, error)
|
|
//Create creates an applicationset
|
|
Create(context.Context, *ApplicationSetCreateRequest) (*v1alpha1.ApplicationSet, error)
|
|
// Delete deletes an application set
|
|
Delete(context.Context, *ApplicationSetDeleteRequest) (*ApplicationSetResponse, error)
|
|
// ResourceTree returns resource tree
|
|
ResourceTree(context.Context, *ApplicationSetTreeQuery) (*v1alpha1.ApplicationSetTree, error)
|
|
// ListResourceEvents returns a list of event resources
|
|
ListResourceEvents(context.Context, *ApplicationSetGetQuery) (*events.EventList, error)
|
|
Watch(*ApplicationSetWatchQuery, ApplicationSetService_WatchServer) error
|
|
}
|
|
|
|
// UnimplementedApplicationSetServiceServer can be embedded to have forward compatible implementations.
|
|
type UnimplementedApplicationSetServiceServer struct {
|
|
}
|
|
|
|
func (*UnimplementedApplicationSetServiceServer) Get(ctx context.Context, req *ApplicationSetGetQuery) (*v1alpha1.ApplicationSet, error) {
|
|
return nil, status.Errorf(codes.Unimplemented, "method Get not implemented")
|
|
}
|
|
func (*UnimplementedApplicationSetServiceServer) Generate(ctx context.Context, req *ApplicationSetGenerateRequest) (*ApplicationSetGenerateResponse, error) {
|
|
return nil, status.Errorf(codes.Unimplemented, "method Generate not implemented")
|
|
}
|
|
func (*UnimplementedApplicationSetServiceServer) List(ctx context.Context, req *ApplicationSetListQuery) (*v1alpha1.ApplicationSetList, error) {
|
|
return nil, status.Errorf(codes.Unimplemented, "method List not implemented")
|
|
}
|
|
func (*UnimplementedApplicationSetServiceServer) Create(ctx context.Context, req *ApplicationSetCreateRequest) (*v1alpha1.ApplicationSet, error) {
|
|
return nil, status.Errorf(codes.Unimplemented, "method Create not implemented")
|
|
}
|
|
func (*UnimplementedApplicationSetServiceServer) Delete(ctx context.Context, req *ApplicationSetDeleteRequest) (*ApplicationSetResponse, error) {
|
|
return nil, status.Errorf(codes.Unimplemented, "method Delete not implemented")
|
|
}
|
|
func (*UnimplementedApplicationSetServiceServer) ResourceTree(ctx context.Context, req *ApplicationSetTreeQuery) (*v1alpha1.ApplicationSetTree, error) {
|
|
return nil, status.Errorf(codes.Unimplemented, "method ResourceTree not implemented")
|
|
}
|
|
func (*UnimplementedApplicationSetServiceServer) ListResourceEvents(ctx context.Context, req *ApplicationSetGetQuery) (*events.EventList, error) {
|
|
return nil, status.Errorf(codes.Unimplemented, "method ListResourceEvents not implemented")
|
|
}
|
|
func (*UnimplementedApplicationSetServiceServer) Watch(req *ApplicationSetWatchQuery, srv ApplicationSetService_WatchServer) error {
|
|
return status.Errorf(codes.Unimplemented, "method Watch not implemented")
|
|
}
|
|
|
|
func RegisterApplicationSetServiceServer(s *grpc.Server, srv ApplicationSetServiceServer) {
|
|
s.RegisterService(&_ApplicationSetService_serviceDesc, srv)
|
|
}
|
|
|
|
func _ApplicationSetService_Get_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(ApplicationSetGetQuery)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(ApplicationSetServiceServer).Get(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: "/applicationset.ApplicationSetService/Get",
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(ApplicationSetServiceServer).Get(ctx, req.(*ApplicationSetGetQuery))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
func _ApplicationSetService_Generate_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(ApplicationSetGenerateRequest)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(ApplicationSetServiceServer).Generate(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: "/applicationset.ApplicationSetService/Generate",
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(ApplicationSetServiceServer).Generate(ctx, req.(*ApplicationSetGenerateRequest))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
func _ApplicationSetService_List_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(ApplicationSetListQuery)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(ApplicationSetServiceServer).List(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: "/applicationset.ApplicationSetService/List",
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(ApplicationSetServiceServer).List(ctx, req.(*ApplicationSetListQuery))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
func _ApplicationSetService_Create_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(ApplicationSetCreateRequest)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(ApplicationSetServiceServer).Create(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: "/applicationset.ApplicationSetService/Create",
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(ApplicationSetServiceServer).Create(ctx, req.(*ApplicationSetCreateRequest))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
func _ApplicationSetService_Delete_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(ApplicationSetDeleteRequest)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(ApplicationSetServiceServer).Delete(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: "/applicationset.ApplicationSetService/Delete",
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(ApplicationSetServiceServer).Delete(ctx, req.(*ApplicationSetDeleteRequest))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
func _ApplicationSetService_ResourceTree_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(ApplicationSetTreeQuery)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(ApplicationSetServiceServer).ResourceTree(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: "/applicationset.ApplicationSetService/ResourceTree",
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(ApplicationSetServiceServer).ResourceTree(ctx, req.(*ApplicationSetTreeQuery))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
func _ApplicationSetService_ListResourceEvents_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(ApplicationSetGetQuery)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(ApplicationSetServiceServer).ListResourceEvents(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: "/applicationset.ApplicationSetService/ListResourceEvents",
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(ApplicationSetServiceServer).ListResourceEvents(ctx, req.(*ApplicationSetGetQuery))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
func _ApplicationSetService_Watch_Handler(srv interface{}, stream grpc.ServerStream) error {
|
|
m := new(ApplicationSetWatchQuery)
|
|
if err := stream.RecvMsg(m); err != nil {
|
|
return err
|
|
}
|
|
return srv.(ApplicationSetServiceServer).Watch(m, &applicationSetServiceWatchServer{stream})
|
|
}
|
|
|
|
type ApplicationSetService_WatchServer interface {
|
|
Send(*v1alpha1.ApplicationSetWatchEvent) error
|
|
grpc.ServerStream
|
|
}
|
|
|
|
type applicationSetServiceWatchServer struct {
|
|
grpc.ServerStream
|
|
}
|
|
|
|
func (x *applicationSetServiceWatchServer) Send(m *v1alpha1.ApplicationSetWatchEvent) error {
|
|
return x.ServerStream.SendMsg(m)
|
|
}
|
|
|
|
var _ApplicationSetService_serviceDesc = grpc.ServiceDesc{
|
|
ServiceName: "applicationset.ApplicationSetService",
|
|
HandlerType: (*ApplicationSetServiceServer)(nil),
|
|
Methods: []grpc.MethodDesc{
|
|
{
|
|
MethodName: "Get",
|
|
Handler: _ApplicationSetService_Get_Handler,
|
|
},
|
|
{
|
|
MethodName: "Generate",
|
|
Handler: _ApplicationSetService_Generate_Handler,
|
|
},
|
|
{
|
|
MethodName: "List",
|
|
Handler: _ApplicationSetService_List_Handler,
|
|
},
|
|
{
|
|
MethodName: "Create",
|
|
Handler: _ApplicationSetService_Create_Handler,
|
|
},
|
|
{
|
|
MethodName: "Delete",
|
|
Handler: _ApplicationSetService_Delete_Handler,
|
|
},
|
|
{
|
|
MethodName: "ResourceTree",
|
|
Handler: _ApplicationSetService_ResourceTree_Handler,
|
|
},
|
|
{
|
|
MethodName: "ListResourceEvents",
|
|
Handler: _ApplicationSetService_ListResourceEvents_Handler,
|
|
},
|
|
},
|
|
Streams: []grpc.StreamDesc{
|
|
{
|
|
StreamName: "Watch",
|
|
Handler: _ApplicationSetService_Watch_Handler,
|
|
ServerStreams: true,
|
|
},
|
|
},
|
|
Metadata: "server/applicationset/applicationset.proto",
|
|
}
|
|
|
|
func (m *ApplicationSetGetQuery) Marshal() (dAtA []byte, err error) {
|
|
size := m.Size()
|
|
dAtA = make([]byte, size)
|
|
n, err := m.MarshalToSizedBuffer(dAtA[:size])
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return dAtA[:n], nil
|
|
}
|
|
|
|
func (m *ApplicationSetGetQuery) MarshalTo(dAtA []byte) (int, error) {
|
|
size := m.Size()
|
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
}
|
|
|
|
func (m *ApplicationSetGetQuery) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|
i := len(dAtA)
|
|
_ = i
|
|
var l int
|
|
_ = l
|
|
if m.XXX_unrecognized != nil {
|
|
i -= len(m.XXX_unrecognized)
|
|
copy(dAtA[i:], m.XXX_unrecognized)
|
|
}
|
|
if len(m.AppsetNamespace) > 0 {
|
|
i -= len(m.AppsetNamespace)
|
|
copy(dAtA[i:], m.AppsetNamespace)
|
|
i = encodeVarintApplicationset(dAtA, i, uint64(len(m.AppsetNamespace)))
|
|
i--
|
|
dAtA[i] = 0x12
|
|
}
|
|
if len(m.Name) > 0 {
|
|
i -= len(m.Name)
|
|
copy(dAtA[i:], m.Name)
|
|
i = encodeVarintApplicationset(dAtA, i, uint64(len(m.Name)))
|
|
i--
|
|
dAtA[i] = 0xa
|
|
}
|
|
return len(dAtA) - i, nil
|
|
}
|
|
|
|
func (m *ApplicationSetListQuery) Marshal() (dAtA []byte, err error) {
|
|
size := m.Size()
|
|
dAtA = make([]byte, size)
|
|
n, err := m.MarshalToSizedBuffer(dAtA[:size])
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return dAtA[:n], nil
|
|
}
|
|
|
|
func (m *ApplicationSetListQuery) MarshalTo(dAtA []byte) (int, error) {
|
|
size := m.Size()
|
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
}
|
|
|
|
func (m *ApplicationSetListQuery) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|
i := len(dAtA)
|
|
_ = i
|
|
var l int
|
|
_ = l
|
|
if m.XXX_unrecognized != nil {
|
|
i -= len(m.XXX_unrecognized)
|
|
copy(dAtA[i:], m.XXX_unrecognized)
|
|
}
|
|
if len(m.AppsetNamespace) > 0 {
|
|
i -= len(m.AppsetNamespace)
|
|
copy(dAtA[i:], m.AppsetNamespace)
|
|
i = encodeVarintApplicationset(dAtA, i, uint64(len(m.AppsetNamespace)))
|
|
i--
|
|
dAtA[i] = 0x1a
|
|
}
|
|
if len(m.Selector) > 0 {
|
|
i -= len(m.Selector)
|
|
copy(dAtA[i:], m.Selector)
|
|
i = encodeVarintApplicationset(dAtA, i, uint64(len(m.Selector)))
|
|
i--
|
|
dAtA[i] = 0x12
|
|
}
|
|
if len(m.Projects) > 0 {
|
|
for iNdEx := len(m.Projects) - 1; iNdEx >= 0; iNdEx-- {
|
|
i -= len(m.Projects[iNdEx])
|
|
copy(dAtA[i:], m.Projects[iNdEx])
|
|
i = encodeVarintApplicationset(dAtA, i, uint64(len(m.Projects[iNdEx])))
|
|
i--
|
|
dAtA[i] = 0xa
|
|
}
|
|
}
|
|
return len(dAtA) - i, nil
|
|
}
|
|
|
|
func (m *ApplicationSetWatchQuery) Marshal() (dAtA []byte, err error) {
|
|
size := m.Size()
|
|
dAtA = make([]byte, size)
|
|
n, err := m.MarshalToSizedBuffer(dAtA[:size])
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return dAtA[:n], nil
|
|
}
|
|
|
|
func (m *ApplicationSetWatchQuery) MarshalTo(dAtA []byte) (int, error) {
|
|
size := m.Size()
|
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
}
|
|
|
|
func (m *ApplicationSetWatchQuery) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|
i := len(dAtA)
|
|
_ = i
|
|
var l int
|
|
_ = l
|
|
if m.XXX_unrecognized != nil {
|
|
i -= len(m.XXX_unrecognized)
|
|
copy(dAtA[i:], m.XXX_unrecognized)
|
|
}
|
|
if len(m.ResourceVersion) > 0 {
|
|
i -= len(m.ResourceVersion)
|
|
copy(dAtA[i:], m.ResourceVersion)
|
|
i = encodeVarintApplicationset(dAtA, i, uint64(len(m.ResourceVersion)))
|
|
i--
|
|
dAtA[i] = 0x2a
|
|
}
|
|
if len(m.AppSetNamespace) > 0 {
|
|
i -= len(m.AppSetNamespace)
|
|
copy(dAtA[i:], m.AppSetNamespace)
|
|
i = encodeVarintApplicationset(dAtA, i, uint64(len(m.AppSetNamespace)))
|
|
i--
|
|
dAtA[i] = 0x22
|
|
}
|
|
if len(m.Selector) > 0 {
|
|
i -= len(m.Selector)
|
|
copy(dAtA[i:], m.Selector)
|
|
i = encodeVarintApplicationset(dAtA, i, uint64(len(m.Selector)))
|
|
i--
|
|
dAtA[i] = 0x1a
|
|
}
|
|
if len(m.Projects) > 0 {
|
|
for iNdEx := len(m.Projects) - 1; iNdEx >= 0; iNdEx-- {
|
|
i -= len(m.Projects[iNdEx])
|
|
copy(dAtA[i:], m.Projects[iNdEx])
|
|
i = encodeVarintApplicationset(dAtA, i, uint64(len(m.Projects[iNdEx])))
|
|
i--
|
|
dAtA[i] = 0x12
|
|
}
|
|
}
|
|
if len(m.Name) > 0 {
|
|
i -= len(m.Name)
|
|
copy(dAtA[i:], m.Name)
|
|
i = encodeVarintApplicationset(dAtA, i, uint64(len(m.Name)))
|
|
i--
|
|
dAtA[i] = 0xa
|
|
}
|
|
return len(dAtA) - i, nil
|
|
}
|
|
|
|
func (m *ApplicationSetResponse) Marshal() (dAtA []byte, err error) {
|
|
size := m.Size()
|
|
dAtA = make([]byte, size)
|
|
n, err := m.MarshalToSizedBuffer(dAtA[:size])
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return dAtA[:n], nil
|
|
}
|
|
|
|
func (m *ApplicationSetResponse) MarshalTo(dAtA []byte) (int, error) {
|
|
size := m.Size()
|
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
}
|
|
|
|
func (m *ApplicationSetResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|
i := len(dAtA)
|
|
_ = i
|
|
var l int
|
|
_ = l
|
|
if m.XXX_unrecognized != nil {
|
|
i -= len(m.XXX_unrecognized)
|
|
copy(dAtA[i:], m.XXX_unrecognized)
|
|
}
|
|
if m.Applicationset != nil {
|
|
{
|
|
size, err := m.Applicationset.MarshalToSizedBuffer(dAtA[:i])
|
|
if err != nil {
|
|
return 0, err
|
|
}
|
|
i -= size
|
|
i = encodeVarintApplicationset(dAtA, i, uint64(size))
|
|
}
|
|
i--
|
|
dAtA[i] = 0x12
|
|
}
|
|
if len(m.Project) > 0 {
|
|
i -= len(m.Project)
|
|
copy(dAtA[i:], m.Project)
|
|
i = encodeVarintApplicationset(dAtA, i, uint64(len(m.Project)))
|
|
i--
|
|
dAtA[i] = 0xa
|
|
}
|
|
return len(dAtA) - i, nil
|
|
}
|
|
|
|
func (m *ApplicationSetCreateRequest) Marshal() (dAtA []byte, err error) {
|
|
size := m.Size()
|
|
dAtA = make([]byte, size)
|
|
n, err := m.MarshalToSizedBuffer(dAtA[:size])
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return dAtA[:n], nil
|
|
}
|
|
|
|
func (m *ApplicationSetCreateRequest) MarshalTo(dAtA []byte) (int, error) {
|
|
size := m.Size()
|
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
}
|
|
|
|
func (m *ApplicationSetCreateRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|
i := len(dAtA)
|
|
_ = i
|
|
var l int
|
|
_ = l
|
|
if m.XXX_unrecognized != nil {
|
|
i -= len(m.XXX_unrecognized)
|
|
copy(dAtA[i:], m.XXX_unrecognized)
|
|
}
|
|
if m.DryRun {
|
|
i--
|
|
if m.DryRun {
|
|
dAtA[i] = 1
|
|
} else {
|
|
dAtA[i] = 0
|
|
}
|
|
i--
|
|
dAtA[i] = 0x18
|
|
}
|
|
if m.Upsert {
|
|
i--
|
|
if m.Upsert {
|
|
dAtA[i] = 1
|
|
} else {
|
|
dAtA[i] = 0
|
|
}
|
|
i--
|
|
dAtA[i] = 0x10
|
|
}
|
|
if m.Applicationset != nil {
|
|
{
|
|
size, err := m.Applicationset.MarshalToSizedBuffer(dAtA[:i])
|
|
if err != nil {
|
|
return 0, err
|
|
}
|
|
i -= size
|
|
i = encodeVarintApplicationset(dAtA, i, uint64(size))
|
|
}
|
|
i--
|
|
dAtA[i] = 0xa
|
|
}
|
|
return len(dAtA) - i, nil
|
|
}
|
|
|
|
func (m *ApplicationSetDeleteRequest) Marshal() (dAtA []byte, err error) {
|
|
size := m.Size()
|
|
dAtA = make([]byte, size)
|
|
n, err := m.MarshalToSizedBuffer(dAtA[:size])
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return dAtA[:n], nil
|
|
}
|
|
|
|
func (m *ApplicationSetDeleteRequest) MarshalTo(dAtA []byte) (int, error) {
|
|
size := m.Size()
|
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
}
|
|
|
|
func (m *ApplicationSetDeleteRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|
i := len(dAtA)
|
|
_ = i
|
|
var l int
|
|
_ = l
|
|
if m.XXX_unrecognized != nil {
|
|
i -= len(m.XXX_unrecognized)
|
|
copy(dAtA[i:], m.XXX_unrecognized)
|
|
}
|
|
if len(m.AppsetNamespace) > 0 {
|
|
i -= len(m.AppsetNamespace)
|
|
copy(dAtA[i:], m.AppsetNamespace)
|
|
i = encodeVarintApplicationset(dAtA, i, uint64(len(m.AppsetNamespace)))
|
|
i--
|
|
dAtA[i] = 0x12
|
|
}
|
|
if len(m.Name) > 0 {
|
|
i -= len(m.Name)
|
|
copy(dAtA[i:], m.Name)
|
|
i = encodeVarintApplicationset(dAtA, i, uint64(len(m.Name)))
|
|
i--
|
|
dAtA[i] = 0xa
|
|
}
|
|
return len(dAtA) - i, nil
|
|
}
|
|
|
|
func (m *ApplicationSetTreeQuery) Marshal() (dAtA []byte, err error) {
|
|
size := m.Size()
|
|
dAtA = make([]byte, size)
|
|
n, err := m.MarshalToSizedBuffer(dAtA[:size])
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return dAtA[:n], nil
|
|
}
|
|
|
|
func (m *ApplicationSetTreeQuery) MarshalTo(dAtA []byte) (int, error) {
|
|
size := m.Size()
|
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
}
|
|
|
|
func (m *ApplicationSetTreeQuery) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|
i := len(dAtA)
|
|
_ = i
|
|
var l int
|
|
_ = l
|
|
if m.XXX_unrecognized != nil {
|
|
i -= len(m.XXX_unrecognized)
|
|
copy(dAtA[i:], m.XXX_unrecognized)
|
|
}
|
|
if len(m.AppsetNamespace) > 0 {
|
|
i -= len(m.AppsetNamespace)
|
|
copy(dAtA[i:], m.AppsetNamespace)
|
|
i = encodeVarintApplicationset(dAtA, i, uint64(len(m.AppsetNamespace)))
|
|
i--
|
|
dAtA[i] = 0x12
|
|
}
|
|
if len(m.Name) > 0 {
|
|
i -= len(m.Name)
|
|
copy(dAtA[i:], m.Name)
|
|
i = encodeVarintApplicationset(dAtA, i, uint64(len(m.Name)))
|
|
i--
|
|
dAtA[i] = 0xa
|
|
}
|
|
return len(dAtA) - i, nil
|
|
}
|
|
|
|
func (m *ApplicationSetGenerateRequest) Marshal() (dAtA []byte, err error) {
|
|
size := m.Size()
|
|
dAtA = make([]byte, size)
|
|
n, err := m.MarshalToSizedBuffer(dAtA[:size])
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return dAtA[:n], nil
|
|
}
|
|
|
|
func (m *ApplicationSetGenerateRequest) MarshalTo(dAtA []byte) (int, error) {
|
|
size := m.Size()
|
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
}
|
|
|
|
func (m *ApplicationSetGenerateRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|
i := len(dAtA)
|
|
_ = i
|
|
var l int
|
|
_ = l
|
|
if m.XXX_unrecognized != nil {
|
|
i -= len(m.XXX_unrecognized)
|
|
copy(dAtA[i:], m.XXX_unrecognized)
|
|
}
|
|
if m.ApplicationSet != nil {
|
|
{
|
|
size, err := m.ApplicationSet.MarshalToSizedBuffer(dAtA[:i])
|
|
if err != nil {
|
|
return 0, err
|
|
}
|
|
i -= size
|
|
i = encodeVarintApplicationset(dAtA, i, uint64(size))
|
|
}
|
|
i--
|
|
dAtA[i] = 0xa
|
|
}
|
|
return len(dAtA) - i, nil
|
|
}
|
|
|
|
func (m *ApplicationSetGenerateResponse) Marshal() (dAtA []byte, err error) {
|
|
size := m.Size()
|
|
dAtA = make([]byte, size)
|
|
n, err := m.MarshalToSizedBuffer(dAtA[:size])
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return dAtA[:n], nil
|
|
}
|
|
|
|
func (m *ApplicationSetGenerateResponse) MarshalTo(dAtA []byte) (int, error) {
|
|
size := m.Size()
|
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
}
|
|
|
|
func (m *ApplicationSetGenerateResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|
i := len(dAtA)
|
|
_ = i
|
|
var l int
|
|
_ = l
|
|
if m.XXX_unrecognized != nil {
|
|
i -= len(m.XXX_unrecognized)
|
|
copy(dAtA[i:], m.XXX_unrecognized)
|
|
}
|
|
if len(m.Applications) > 0 {
|
|
for iNdEx := len(m.Applications) - 1; iNdEx >= 0; iNdEx-- {
|
|
{
|
|
size, err := m.Applications[iNdEx].MarshalToSizedBuffer(dAtA[:i])
|
|
if err != nil {
|
|
return 0, err
|
|
}
|
|
i -= size
|
|
i = encodeVarintApplicationset(dAtA, i, uint64(size))
|
|
}
|
|
i--
|
|
dAtA[i] = 0xa
|
|
}
|
|
}
|
|
return len(dAtA) - i, nil
|
|
}
|
|
|
|
func encodeVarintApplicationset(dAtA []byte, offset int, v uint64) int {
|
|
offset -= sovApplicationset(v)
|
|
base := offset
|
|
for v >= 1<<7 {
|
|
dAtA[offset] = uint8(v&0x7f | 0x80)
|
|
v >>= 7
|
|
offset++
|
|
}
|
|
dAtA[offset] = uint8(v)
|
|
return base
|
|
}
|
|
func (m *ApplicationSetGetQuery) Size() (n int) {
|
|
if m == nil {
|
|
return 0
|
|
}
|
|
var l int
|
|
_ = l
|
|
l = len(m.Name)
|
|
if l > 0 {
|
|
n += 1 + l + sovApplicationset(uint64(l))
|
|
}
|
|
l = len(m.AppsetNamespace)
|
|
if l > 0 {
|
|
n += 1 + l + sovApplicationset(uint64(l))
|
|
}
|
|
if m.XXX_unrecognized != nil {
|
|
n += len(m.XXX_unrecognized)
|
|
}
|
|
return n
|
|
}
|
|
|
|
func (m *ApplicationSetListQuery) Size() (n int) {
|
|
if m == nil {
|
|
return 0
|
|
}
|
|
var l int
|
|
_ = l
|
|
if len(m.Projects) > 0 {
|
|
for _, s := range m.Projects {
|
|
l = len(s)
|
|
n += 1 + l + sovApplicationset(uint64(l))
|
|
}
|
|
}
|
|
l = len(m.Selector)
|
|
if l > 0 {
|
|
n += 1 + l + sovApplicationset(uint64(l))
|
|
}
|
|
l = len(m.AppsetNamespace)
|
|
if l > 0 {
|
|
n += 1 + l + sovApplicationset(uint64(l))
|
|
}
|
|
if m.XXX_unrecognized != nil {
|
|
n += len(m.XXX_unrecognized)
|
|
}
|
|
return n
|
|
}
|
|
|
|
func (m *ApplicationSetWatchQuery) Size() (n int) {
|
|
if m == nil {
|
|
return 0
|
|
}
|
|
var l int
|
|
_ = l
|
|
l = len(m.Name)
|
|
if l > 0 {
|
|
n += 1 + l + sovApplicationset(uint64(l))
|
|
}
|
|
if len(m.Projects) > 0 {
|
|
for _, s := range m.Projects {
|
|
l = len(s)
|
|
n += 1 + l + sovApplicationset(uint64(l))
|
|
}
|
|
}
|
|
l = len(m.Selector)
|
|
if l > 0 {
|
|
n += 1 + l + sovApplicationset(uint64(l))
|
|
}
|
|
l = len(m.AppSetNamespace)
|
|
if l > 0 {
|
|
n += 1 + l + sovApplicationset(uint64(l))
|
|
}
|
|
l = len(m.ResourceVersion)
|
|
if l > 0 {
|
|
n += 1 + l + sovApplicationset(uint64(l))
|
|
}
|
|
if m.XXX_unrecognized != nil {
|
|
n += len(m.XXX_unrecognized)
|
|
}
|
|
return n
|
|
}
|
|
|
|
func (m *ApplicationSetResponse) Size() (n int) {
|
|
if m == nil {
|
|
return 0
|
|
}
|
|
var l int
|
|
_ = l
|
|
l = len(m.Project)
|
|
if l > 0 {
|
|
n += 1 + l + sovApplicationset(uint64(l))
|
|
}
|
|
if m.Applicationset != nil {
|
|
l = m.Applicationset.Size()
|
|
n += 1 + l + sovApplicationset(uint64(l))
|
|
}
|
|
if m.XXX_unrecognized != nil {
|
|
n += len(m.XXX_unrecognized)
|
|
}
|
|
return n
|
|
}
|
|
|
|
func (m *ApplicationSetCreateRequest) Size() (n int) {
|
|
if m == nil {
|
|
return 0
|
|
}
|
|
var l int
|
|
_ = l
|
|
if m.Applicationset != nil {
|
|
l = m.Applicationset.Size()
|
|
n += 1 + l + sovApplicationset(uint64(l))
|
|
}
|
|
if m.Upsert {
|
|
n += 2
|
|
}
|
|
if m.DryRun {
|
|
n += 2
|
|
}
|
|
if m.XXX_unrecognized != nil {
|
|
n += len(m.XXX_unrecognized)
|
|
}
|
|
return n
|
|
}
|
|
|
|
func (m *ApplicationSetDeleteRequest) Size() (n int) {
|
|
if m == nil {
|
|
return 0
|
|
}
|
|
var l int
|
|
_ = l
|
|
l = len(m.Name)
|
|
if l > 0 {
|
|
n += 1 + l + sovApplicationset(uint64(l))
|
|
}
|
|
l = len(m.AppsetNamespace)
|
|
if l > 0 {
|
|
n += 1 + l + sovApplicationset(uint64(l))
|
|
}
|
|
if m.XXX_unrecognized != nil {
|
|
n += len(m.XXX_unrecognized)
|
|
}
|
|
return n
|
|
}
|
|
|
|
func (m *ApplicationSetTreeQuery) Size() (n int) {
|
|
if m == nil {
|
|
return 0
|
|
}
|
|
var l int
|
|
_ = l
|
|
l = len(m.Name)
|
|
if l > 0 {
|
|
n += 1 + l + sovApplicationset(uint64(l))
|
|
}
|
|
l = len(m.AppsetNamespace)
|
|
if l > 0 {
|
|
n += 1 + l + sovApplicationset(uint64(l))
|
|
}
|
|
if m.XXX_unrecognized != nil {
|
|
n += len(m.XXX_unrecognized)
|
|
}
|
|
return n
|
|
}
|
|
|
|
func (m *ApplicationSetGenerateRequest) Size() (n int) {
|
|
if m == nil {
|
|
return 0
|
|
}
|
|
var l int
|
|
_ = l
|
|
if m.ApplicationSet != nil {
|
|
l = m.ApplicationSet.Size()
|
|
n += 1 + l + sovApplicationset(uint64(l))
|
|
}
|
|
if m.XXX_unrecognized != nil {
|
|
n += len(m.XXX_unrecognized)
|
|
}
|
|
return n
|
|
}
|
|
|
|
func (m *ApplicationSetGenerateResponse) Size() (n int) {
|
|
if m == nil {
|
|
return 0
|
|
}
|
|
var l int
|
|
_ = l
|
|
if len(m.Applications) > 0 {
|
|
for _, e := range m.Applications {
|
|
l = e.Size()
|
|
n += 1 + l + sovApplicationset(uint64(l))
|
|
}
|
|
}
|
|
if m.XXX_unrecognized != nil {
|
|
n += len(m.XXX_unrecognized)
|
|
}
|
|
return n
|
|
}
|
|
|
|
func sovApplicationset(x uint64) (n int) {
|
|
return (math_bits.Len64(x|1) + 6) / 7
|
|
}
|
|
func sozApplicationset(x uint64) (n int) {
|
|
return sovApplicationset(uint64((x << 1) ^ uint64((int64(x) >> 63))))
|
|
}
|
|
func (m *ApplicationSetGetQuery) Unmarshal(dAtA []byte) error {
|
|
l := len(dAtA)
|
|
iNdEx := 0
|
|
for iNdEx < l {
|
|
preIndex := iNdEx
|
|
var wire uint64
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowApplicationset
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
wire |= uint64(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
fieldNum := int32(wire >> 3)
|
|
wireType := int(wire & 0x7)
|
|
if wireType == 4 {
|
|
return fmt.Errorf("proto: ApplicationSetGetQuery: wiretype end group for non-group")
|
|
}
|
|
if fieldNum <= 0 {
|
|
return fmt.Errorf("proto: ApplicationSetGetQuery: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
}
|
|
switch fieldNum {
|
|
case 1:
|
|
if wireType != 2 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType)
|
|
}
|
|
var stringLen uint64
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowApplicationset
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
stringLen |= uint64(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
intStringLen := int(stringLen)
|
|
if intStringLen < 0 {
|
|
return ErrInvalidLengthApplicationset
|
|
}
|
|
postIndex := iNdEx + intStringLen
|
|
if postIndex < 0 {
|
|
return ErrInvalidLengthApplicationset
|
|
}
|
|
if postIndex > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
m.Name = string(dAtA[iNdEx:postIndex])
|
|
iNdEx = postIndex
|
|
case 2:
|
|
if wireType != 2 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field AppsetNamespace", wireType)
|
|
}
|
|
var stringLen uint64
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowApplicationset
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
stringLen |= uint64(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
intStringLen := int(stringLen)
|
|
if intStringLen < 0 {
|
|
return ErrInvalidLengthApplicationset
|
|
}
|
|
postIndex := iNdEx + intStringLen
|
|
if postIndex < 0 {
|
|
return ErrInvalidLengthApplicationset
|
|
}
|
|
if postIndex > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
m.AppsetNamespace = string(dAtA[iNdEx:postIndex])
|
|
iNdEx = postIndex
|
|
default:
|
|
iNdEx = preIndex
|
|
skippy, err := skipApplicationset(dAtA[iNdEx:])
|
|
if err != nil {
|
|
return err
|
|
}
|
|
if (skippy < 0) || (iNdEx+skippy) < 0 {
|
|
return ErrInvalidLengthApplicationset
|
|
}
|
|
if (iNdEx + skippy) > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
|
|
iNdEx += skippy
|
|
}
|
|
}
|
|
|
|
if iNdEx > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
return nil
|
|
}
|
|
func (m *ApplicationSetListQuery) Unmarshal(dAtA []byte) error {
|
|
l := len(dAtA)
|
|
iNdEx := 0
|
|
for iNdEx < l {
|
|
preIndex := iNdEx
|
|
var wire uint64
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowApplicationset
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
wire |= uint64(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
fieldNum := int32(wire >> 3)
|
|
wireType := int(wire & 0x7)
|
|
if wireType == 4 {
|
|
return fmt.Errorf("proto: ApplicationSetListQuery: wiretype end group for non-group")
|
|
}
|
|
if fieldNum <= 0 {
|
|
return fmt.Errorf("proto: ApplicationSetListQuery: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
}
|
|
switch fieldNum {
|
|
case 1:
|
|
if wireType != 2 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Projects", wireType)
|
|
}
|
|
var stringLen uint64
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowApplicationset
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
stringLen |= uint64(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
intStringLen := int(stringLen)
|
|
if intStringLen < 0 {
|
|
return ErrInvalidLengthApplicationset
|
|
}
|
|
postIndex := iNdEx + intStringLen
|
|
if postIndex < 0 {
|
|
return ErrInvalidLengthApplicationset
|
|
}
|
|
if postIndex > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
m.Projects = append(m.Projects, string(dAtA[iNdEx:postIndex]))
|
|
iNdEx = postIndex
|
|
case 2:
|
|
if wireType != 2 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Selector", wireType)
|
|
}
|
|
var stringLen uint64
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowApplicationset
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
stringLen |= uint64(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
intStringLen := int(stringLen)
|
|
if intStringLen < 0 {
|
|
return ErrInvalidLengthApplicationset
|
|
}
|
|
postIndex := iNdEx + intStringLen
|
|
if postIndex < 0 {
|
|
return ErrInvalidLengthApplicationset
|
|
}
|
|
if postIndex > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
m.Selector = string(dAtA[iNdEx:postIndex])
|
|
iNdEx = postIndex
|
|
case 3:
|
|
if wireType != 2 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field AppsetNamespace", wireType)
|
|
}
|
|
var stringLen uint64
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowApplicationset
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
stringLen |= uint64(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
intStringLen := int(stringLen)
|
|
if intStringLen < 0 {
|
|
return ErrInvalidLengthApplicationset
|
|
}
|
|
postIndex := iNdEx + intStringLen
|
|
if postIndex < 0 {
|
|
return ErrInvalidLengthApplicationset
|
|
}
|
|
if postIndex > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
m.AppsetNamespace = string(dAtA[iNdEx:postIndex])
|
|
iNdEx = postIndex
|
|
default:
|
|
iNdEx = preIndex
|
|
skippy, err := skipApplicationset(dAtA[iNdEx:])
|
|
if err != nil {
|
|
return err
|
|
}
|
|
if (skippy < 0) || (iNdEx+skippy) < 0 {
|
|
return ErrInvalidLengthApplicationset
|
|
}
|
|
if (iNdEx + skippy) > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
|
|
iNdEx += skippy
|
|
}
|
|
}
|
|
|
|
if iNdEx > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
return nil
|
|
}
|
|
func (m *ApplicationSetWatchQuery) Unmarshal(dAtA []byte) error {
|
|
l := len(dAtA)
|
|
iNdEx := 0
|
|
for iNdEx < l {
|
|
preIndex := iNdEx
|
|
var wire uint64
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowApplicationset
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
wire |= uint64(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
fieldNum := int32(wire >> 3)
|
|
wireType := int(wire & 0x7)
|
|
if wireType == 4 {
|
|
return fmt.Errorf("proto: ApplicationSetWatchQuery: wiretype end group for non-group")
|
|
}
|
|
if fieldNum <= 0 {
|
|
return fmt.Errorf("proto: ApplicationSetWatchQuery: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
}
|
|
switch fieldNum {
|
|
case 1:
|
|
if wireType != 2 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType)
|
|
}
|
|
var stringLen uint64
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowApplicationset
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
stringLen |= uint64(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
intStringLen := int(stringLen)
|
|
if intStringLen < 0 {
|
|
return ErrInvalidLengthApplicationset
|
|
}
|
|
postIndex := iNdEx + intStringLen
|
|
if postIndex < 0 {
|
|
return ErrInvalidLengthApplicationset
|
|
}
|
|
if postIndex > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
m.Name = string(dAtA[iNdEx:postIndex])
|
|
iNdEx = postIndex
|
|
case 2:
|
|
if wireType != 2 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Projects", wireType)
|
|
}
|
|
var stringLen uint64
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowApplicationset
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
stringLen |= uint64(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
intStringLen := int(stringLen)
|
|
if intStringLen < 0 {
|
|
return ErrInvalidLengthApplicationset
|
|
}
|
|
postIndex := iNdEx + intStringLen
|
|
if postIndex < 0 {
|
|
return ErrInvalidLengthApplicationset
|
|
}
|
|
if postIndex > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
m.Projects = append(m.Projects, string(dAtA[iNdEx:postIndex]))
|
|
iNdEx = postIndex
|
|
case 3:
|
|
if wireType != 2 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Selector", wireType)
|
|
}
|
|
var stringLen uint64
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowApplicationset
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
stringLen |= uint64(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
intStringLen := int(stringLen)
|
|
if intStringLen < 0 {
|
|
return ErrInvalidLengthApplicationset
|
|
}
|
|
postIndex := iNdEx + intStringLen
|
|
if postIndex < 0 {
|
|
return ErrInvalidLengthApplicationset
|
|
}
|
|
if postIndex > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
m.Selector = string(dAtA[iNdEx:postIndex])
|
|
iNdEx = postIndex
|
|
case 4:
|
|
if wireType != 2 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field AppSetNamespace", wireType)
|
|
}
|
|
var stringLen uint64
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowApplicationset
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
stringLen |= uint64(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
intStringLen := int(stringLen)
|
|
if intStringLen < 0 {
|
|
return ErrInvalidLengthApplicationset
|
|
}
|
|
postIndex := iNdEx + intStringLen
|
|
if postIndex < 0 {
|
|
return ErrInvalidLengthApplicationset
|
|
}
|
|
if postIndex > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
m.AppSetNamespace = string(dAtA[iNdEx:postIndex])
|
|
iNdEx = postIndex
|
|
case 5:
|
|
if wireType != 2 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field ResourceVersion", wireType)
|
|
}
|
|
var stringLen uint64
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowApplicationset
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
stringLen |= uint64(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
intStringLen := int(stringLen)
|
|
if intStringLen < 0 {
|
|
return ErrInvalidLengthApplicationset
|
|
}
|
|
postIndex := iNdEx + intStringLen
|
|
if postIndex < 0 {
|
|
return ErrInvalidLengthApplicationset
|
|
}
|
|
if postIndex > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
m.ResourceVersion = string(dAtA[iNdEx:postIndex])
|
|
iNdEx = postIndex
|
|
default:
|
|
iNdEx = preIndex
|
|
skippy, err := skipApplicationset(dAtA[iNdEx:])
|
|
if err != nil {
|
|
return err
|
|
}
|
|
if (skippy < 0) || (iNdEx+skippy) < 0 {
|
|
return ErrInvalidLengthApplicationset
|
|
}
|
|
if (iNdEx + skippy) > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
|
|
iNdEx += skippy
|
|
}
|
|
}
|
|
|
|
if iNdEx > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
return nil
|
|
}
|
|
func (m *ApplicationSetResponse) Unmarshal(dAtA []byte) error {
|
|
l := len(dAtA)
|
|
iNdEx := 0
|
|
for iNdEx < l {
|
|
preIndex := iNdEx
|
|
var wire uint64
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowApplicationset
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
wire |= uint64(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
fieldNum := int32(wire >> 3)
|
|
wireType := int(wire & 0x7)
|
|
if wireType == 4 {
|
|
return fmt.Errorf("proto: ApplicationSetResponse: wiretype end group for non-group")
|
|
}
|
|
if fieldNum <= 0 {
|
|
return fmt.Errorf("proto: ApplicationSetResponse: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
}
|
|
switch fieldNum {
|
|
case 1:
|
|
if wireType != 2 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Project", wireType)
|
|
}
|
|
var stringLen uint64
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowApplicationset
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
stringLen |= uint64(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
intStringLen := int(stringLen)
|
|
if intStringLen < 0 {
|
|
return ErrInvalidLengthApplicationset
|
|
}
|
|
postIndex := iNdEx + intStringLen
|
|
if postIndex < 0 {
|
|
return ErrInvalidLengthApplicationset
|
|
}
|
|
if postIndex > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
m.Project = string(dAtA[iNdEx:postIndex])
|
|
iNdEx = postIndex
|
|
case 2:
|
|
if wireType != 2 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Applicationset", wireType)
|
|
}
|
|
var msglen int
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowApplicationset
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
msglen |= int(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
if msglen < 0 {
|
|
return ErrInvalidLengthApplicationset
|
|
}
|
|
postIndex := iNdEx + msglen
|
|
if postIndex < 0 {
|
|
return ErrInvalidLengthApplicationset
|
|
}
|
|
if postIndex > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
if m.Applicationset == nil {
|
|
m.Applicationset = &v1alpha1.ApplicationSet{}
|
|
}
|
|
if err := m.Applicationset.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
return err
|
|
}
|
|
iNdEx = postIndex
|
|
default:
|
|
iNdEx = preIndex
|
|
skippy, err := skipApplicationset(dAtA[iNdEx:])
|
|
if err != nil {
|
|
return err
|
|
}
|
|
if (skippy < 0) || (iNdEx+skippy) < 0 {
|
|
return ErrInvalidLengthApplicationset
|
|
}
|
|
if (iNdEx + skippy) > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
|
|
iNdEx += skippy
|
|
}
|
|
}
|
|
|
|
if iNdEx > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
return nil
|
|
}
|
|
func (m *ApplicationSetCreateRequest) Unmarshal(dAtA []byte) error {
|
|
l := len(dAtA)
|
|
iNdEx := 0
|
|
for iNdEx < l {
|
|
preIndex := iNdEx
|
|
var wire uint64
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowApplicationset
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
wire |= uint64(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
fieldNum := int32(wire >> 3)
|
|
wireType := int(wire & 0x7)
|
|
if wireType == 4 {
|
|
return fmt.Errorf("proto: ApplicationSetCreateRequest: wiretype end group for non-group")
|
|
}
|
|
if fieldNum <= 0 {
|
|
return fmt.Errorf("proto: ApplicationSetCreateRequest: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
}
|
|
switch fieldNum {
|
|
case 1:
|
|
if wireType != 2 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Applicationset", wireType)
|
|
}
|
|
var msglen int
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowApplicationset
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
msglen |= int(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
if msglen < 0 {
|
|
return ErrInvalidLengthApplicationset
|
|
}
|
|
postIndex := iNdEx + msglen
|
|
if postIndex < 0 {
|
|
return ErrInvalidLengthApplicationset
|
|
}
|
|
if postIndex > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
if m.Applicationset == nil {
|
|
m.Applicationset = &v1alpha1.ApplicationSet{}
|
|
}
|
|
if err := m.Applicationset.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
return err
|
|
}
|
|
iNdEx = postIndex
|
|
case 2:
|
|
if wireType != 0 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Upsert", wireType)
|
|
}
|
|
var v int
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowApplicationset
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
v |= int(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
m.Upsert = bool(v != 0)
|
|
case 3:
|
|
if wireType != 0 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field DryRun", wireType)
|
|
}
|
|
var v int
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowApplicationset
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
v |= int(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
m.DryRun = bool(v != 0)
|
|
default:
|
|
iNdEx = preIndex
|
|
skippy, err := skipApplicationset(dAtA[iNdEx:])
|
|
if err != nil {
|
|
return err
|
|
}
|
|
if (skippy < 0) || (iNdEx+skippy) < 0 {
|
|
return ErrInvalidLengthApplicationset
|
|
}
|
|
if (iNdEx + skippy) > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
|
|
iNdEx += skippy
|
|
}
|
|
}
|
|
|
|
if iNdEx > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
return nil
|
|
}
|
|
func (m *ApplicationSetDeleteRequest) Unmarshal(dAtA []byte) error {
|
|
l := len(dAtA)
|
|
iNdEx := 0
|
|
for iNdEx < l {
|
|
preIndex := iNdEx
|
|
var wire uint64
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowApplicationset
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
wire |= uint64(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
fieldNum := int32(wire >> 3)
|
|
wireType := int(wire & 0x7)
|
|
if wireType == 4 {
|
|
return fmt.Errorf("proto: ApplicationSetDeleteRequest: wiretype end group for non-group")
|
|
}
|
|
if fieldNum <= 0 {
|
|
return fmt.Errorf("proto: ApplicationSetDeleteRequest: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
}
|
|
switch fieldNum {
|
|
case 1:
|
|
if wireType != 2 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType)
|
|
}
|
|
var stringLen uint64
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowApplicationset
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
stringLen |= uint64(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
intStringLen := int(stringLen)
|
|
if intStringLen < 0 {
|
|
return ErrInvalidLengthApplicationset
|
|
}
|
|
postIndex := iNdEx + intStringLen
|
|
if postIndex < 0 {
|
|
return ErrInvalidLengthApplicationset
|
|
}
|
|
if postIndex > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
m.Name = string(dAtA[iNdEx:postIndex])
|
|
iNdEx = postIndex
|
|
case 2:
|
|
if wireType != 2 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field AppsetNamespace", wireType)
|
|
}
|
|
var stringLen uint64
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowApplicationset
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
stringLen |= uint64(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
intStringLen := int(stringLen)
|
|
if intStringLen < 0 {
|
|
return ErrInvalidLengthApplicationset
|
|
}
|
|
postIndex := iNdEx + intStringLen
|
|
if postIndex < 0 {
|
|
return ErrInvalidLengthApplicationset
|
|
}
|
|
if postIndex > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
m.AppsetNamespace = string(dAtA[iNdEx:postIndex])
|
|
iNdEx = postIndex
|
|
default:
|
|
iNdEx = preIndex
|
|
skippy, err := skipApplicationset(dAtA[iNdEx:])
|
|
if err != nil {
|
|
return err
|
|
}
|
|
if (skippy < 0) || (iNdEx+skippy) < 0 {
|
|
return ErrInvalidLengthApplicationset
|
|
}
|
|
if (iNdEx + skippy) > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
|
|
iNdEx += skippy
|
|
}
|
|
}
|
|
|
|
if iNdEx > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
return nil
|
|
}
|
|
func (m *ApplicationSetTreeQuery) Unmarshal(dAtA []byte) error {
|
|
l := len(dAtA)
|
|
iNdEx := 0
|
|
for iNdEx < l {
|
|
preIndex := iNdEx
|
|
var wire uint64
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowApplicationset
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
wire |= uint64(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
fieldNum := int32(wire >> 3)
|
|
wireType := int(wire & 0x7)
|
|
if wireType == 4 {
|
|
return fmt.Errorf("proto: ApplicationSetTreeQuery: wiretype end group for non-group")
|
|
}
|
|
if fieldNum <= 0 {
|
|
return fmt.Errorf("proto: ApplicationSetTreeQuery: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
}
|
|
switch fieldNum {
|
|
case 1:
|
|
if wireType != 2 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType)
|
|
}
|
|
var stringLen uint64
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowApplicationset
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
stringLen |= uint64(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
intStringLen := int(stringLen)
|
|
if intStringLen < 0 {
|
|
return ErrInvalidLengthApplicationset
|
|
}
|
|
postIndex := iNdEx + intStringLen
|
|
if postIndex < 0 {
|
|
return ErrInvalidLengthApplicationset
|
|
}
|
|
if postIndex > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
m.Name = string(dAtA[iNdEx:postIndex])
|
|
iNdEx = postIndex
|
|
case 2:
|
|
if wireType != 2 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field AppsetNamespace", wireType)
|
|
}
|
|
var stringLen uint64
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowApplicationset
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
stringLen |= uint64(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
intStringLen := int(stringLen)
|
|
if intStringLen < 0 {
|
|
return ErrInvalidLengthApplicationset
|
|
}
|
|
postIndex := iNdEx + intStringLen
|
|
if postIndex < 0 {
|
|
return ErrInvalidLengthApplicationset
|
|
}
|
|
if postIndex > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
m.AppsetNamespace = string(dAtA[iNdEx:postIndex])
|
|
iNdEx = postIndex
|
|
default:
|
|
iNdEx = preIndex
|
|
skippy, err := skipApplicationset(dAtA[iNdEx:])
|
|
if err != nil {
|
|
return err
|
|
}
|
|
if (skippy < 0) || (iNdEx+skippy) < 0 {
|
|
return ErrInvalidLengthApplicationset
|
|
}
|
|
if (iNdEx + skippy) > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
|
|
iNdEx += skippy
|
|
}
|
|
}
|
|
|
|
if iNdEx > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
return nil
|
|
}
|
|
func (m *ApplicationSetGenerateRequest) Unmarshal(dAtA []byte) error {
|
|
l := len(dAtA)
|
|
iNdEx := 0
|
|
for iNdEx < l {
|
|
preIndex := iNdEx
|
|
var wire uint64
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowApplicationset
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
wire |= uint64(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
fieldNum := int32(wire >> 3)
|
|
wireType := int(wire & 0x7)
|
|
if wireType == 4 {
|
|
return fmt.Errorf("proto: ApplicationSetGenerateRequest: wiretype end group for non-group")
|
|
}
|
|
if fieldNum <= 0 {
|
|
return fmt.Errorf("proto: ApplicationSetGenerateRequest: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
}
|
|
switch fieldNum {
|
|
case 1:
|
|
if wireType != 2 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field ApplicationSet", wireType)
|
|
}
|
|
var msglen int
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowApplicationset
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
msglen |= int(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
if msglen < 0 {
|
|
return ErrInvalidLengthApplicationset
|
|
}
|
|
postIndex := iNdEx + msglen
|
|
if postIndex < 0 {
|
|
return ErrInvalidLengthApplicationset
|
|
}
|
|
if postIndex > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
if m.ApplicationSet == nil {
|
|
m.ApplicationSet = &v1alpha1.ApplicationSet{}
|
|
}
|
|
if err := m.ApplicationSet.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
return err
|
|
}
|
|
iNdEx = postIndex
|
|
default:
|
|
iNdEx = preIndex
|
|
skippy, err := skipApplicationset(dAtA[iNdEx:])
|
|
if err != nil {
|
|
return err
|
|
}
|
|
if (skippy < 0) || (iNdEx+skippy) < 0 {
|
|
return ErrInvalidLengthApplicationset
|
|
}
|
|
if (iNdEx + skippy) > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
|
|
iNdEx += skippy
|
|
}
|
|
}
|
|
|
|
if iNdEx > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
return nil
|
|
}
|
|
func (m *ApplicationSetGenerateResponse) Unmarshal(dAtA []byte) error {
|
|
l := len(dAtA)
|
|
iNdEx := 0
|
|
for iNdEx < l {
|
|
preIndex := iNdEx
|
|
var wire uint64
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowApplicationset
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
wire |= uint64(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
fieldNum := int32(wire >> 3)
|
|
wireType := int(wire & 0x7)
|
|
if wireType == 4 {
|
|
return fmt.Errorf("proto: ApplicationSetGenerateResponse: wiretype end group for non-group")
|
|
}
|
|
if fieldNum <= 0 {
|
|
return fmt.Errorf("proto: ApplicationSetGenerateResponse: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
}
|
|
switch fieldNum {
|
|
case 1:
|
|
if wireType != 2 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Applications", wireType)
|
|
}
|
|
var msglen int
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowApplicationset
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
msglen |= int(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
if msglen < 0 {
|
|
return ErrInvalidLengthApplicationset
|
|
}
|
|
postIndex := iNdEx + msglen
|
|
if postIndex < 0 {
|
|
return ErrInvalidLengthApplicationset
|
|
}
|
|
if postIndex > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
m.Applications = append(m.Applications, &v1alpha1.Application{})
|
|
if err := m.Applications[len(m.Applications)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
return err
|
|
}
|
|
iNdEx = postIndex
|
|
default:
|
|
iNdEx = preIndex
|
|
skippy, err := skipApplicationset(dAtA[iNdEx:])
|
|
if err != nil {
|
|
return err
|
|
}
|
|
if (skippy < 0) || (iNdEx+skippy) < 0 {
|
|
return ErrInvalidLengthApplicationset
|
|
}
|
|
if (iNdEx + skippy) > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
|
|
iNdEx += skippy
|
|
}
|
|
}
|
|
|
|
if iNdEx > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
return nil
|
|
}
|
|
func skipApplicationset(dAtA []byte) (n int, err error) {
|
|
l := len(dAtA)
|
|
iNdEx := 0
|
|
depth := 0
|
|
for iNdEx < l {
|
|
var wire uint64
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return 0, ErrIntOverflowApplicationset
|
|
}
|
|
if iNdEx >= l {
|
|
return 0, io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
wire |= (uint64(b) & 0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
wireType := int(wire & 0x7)
|
|
switch wireType {
|
|
case 0:
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return 0, ErrIntOverflowApplicationset
|
|
}
|
|
if iNdEx >= l {
|
|
return 0, io.ErrUnexpectedEOF
|
|
}
|
|
iNdEx++
|
|
if dAtA[iNdEx-1] < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
case 1:
|
|
iNdEx += 8
|
|
case 2:
|
|
var length int
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return 0, ErrIntOverflowApplicationset
|
|
}
|
|
if iNdEx >= l {
|
|
return 0, io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
length |= (int(b) & 0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
if length < 0 {
|
|
return 0, ErrInvalidLengthApplicationset
|
|
}
|
|
iNdEx += length
|
|
case 3:
|
|
depth++
|
|
case 4:
|
|
if depth == 0 {
|
|
return 0, ErrUnexpectedEndOfGroupApplicationset
|
|
}
|
|
depth--
|
|
case 5:
|
|
iNdEx += 4
|
|
default:
|
|
return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
|
|
}
|
|
if iNdEx < 0 {
|
|
return 0, ErrInvalidLengthApplicationset
|
|
}
|
|
if depth == 0 {
|
|
return iNdEx, nil
|
|
}
|
|
}
|
|
return 0, io.ErrUnexpectedEOF
|
|
}
|
|
|
|
var (
|
|
ErrInvalidLengthApplicationset = fmt.Errorf("proto: negative length found during unmarshaling")
|
|
ErrIntOverflowApplicationset = fmt.Errorf("proto: integer overflow")
|
|
ErrUnexpectedEndOfGroupApplicationset = fmt.Errorf("proto: unexpected end of group")
|
|
)
|