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.
3437 lines
93 KiB
Go
Generated
3437 lines
93 KiB
Go
Generated
// Code generated by protoc-gen-gogo. DO NOT EDIT.
|
|
// source: server/project/project.proto
|
|
|
|
// Project Service
|
|
//
|
|
// Project Service API performs CRUD actions against project resources
|
|
|
|
package project
|
|
|
|
import (
|
|
context "context"
|
|
fmt "fmt"
|
|
proto "github.com/gogo/protobuf/proto"
|
|
application "github.com/hanzoai/cd/pkg/apiclient/application"
|
|
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
|
|
|
|
// ProjectCreateRequest defines project creation parameters.
|
|
type ProjectCreateRequest struct {
|
|
Project *v1alpha1.AppProject `protobuf:"bytes,1,opt,name=project,proto3" json:"project,omitempty"`
|
|
Upsert bool `protobuf:"varint,2,opt,name=upsert,proto3" json:"upsert,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *ProjectCreateRequest) Reset() { *m = ProjectCreateRequest{} }
|
|
func (m *ProjectCreateRequest) String() string { return proto.CompactTextString(m) }
|
|
func (*ProjectCreateRequest) ProtoMessage() {}
|
|
func (*ProjectCreateRequest) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_5f0a51496972c9e2, []int{0}
|
|
}
|
|
func (m *ProjectCreateRequest) XXX_Unmarshal(b []byte) error {
|
|
return m.Unmarshal(b)
|
|
}
|
|
func (m *ProjectCreateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
if deterministic {
|
|
return xxx_messageInfo_ProjectCreateRequest.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 *ProjectCreateRequest) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_ProjectCreateRequest.Merge(m, src)
|
|
}
|
|
func (m *ProjectCreateRequest) XXX_Size() int {
|
|
return m.Size()
|
|
}
|
|
func (m *ProjectCreateRequest) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_ProjectCreateRequest.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_ProjectCreateRequest proto.InternalMessageInfo
|
|
|
|
func (m *ProjectCreateRequest) GetProject() *v1alpha1.AppProject {
|
|
if m != nil {
|
|
return m.Project
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *ProjectCreateRequest) GetUpsert() bool {
|
|
if m != nil {
|
|
return m.Upsert
|
|
}
|
|
return false
|
|
}
|
|
|
|
// ProjectTokenCreateRequest defines project token deletion parameters.
|
|
type ProjectTokenDeleteRequest struct {
|
|
Project string `protobuf:"bytes,1,opt,name=project,proto3" json:"project,omitempty"`
|
|
Role string `protobuf:"bytes,2,opt,name=role,proto3" json:"role,omitempty"`
|
|
Iat int64 `protobuf:"varint,3,opt,name=iat,proto3" json:"iat,omitempty"`
|
|
Id string `protobuf:"bytes,4,opt,name=id,proto3" json:"id,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *ProjectTokenDeleteRequest) Reset() { *m = ProjectTokenDeleteRequest{} }
|
|
func (m *ProjectTokenDeleteRequest) String() string { return proto.CompactTextString(m) }
|
|
func (*ProjectTokenDeleteRequest) ProtoMessage() {}
|
|
func (*ProjectTokenDeleteRequest) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_5f0a51496972c9e2, []int{1}
|
|
}
|
|
func (m *ProjectTokenDeleteRequest) XXX_Unmarshal(b []byte) error {
|
|
return m.Unmarshal(b)
|
|
}
|
|
func (m *ProjectTokenDeleteRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
if deterministic {
|
|
return xxx_messageInfo_ProjectTokenDeleteRequest.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 *ProjectTokenDeleteRequest) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_ProjectTokenDeleteRequest.Merge(m, src)
|
|
}
|
|
func (m *ProjectTokenDeleteRequest) XXX_Size() int {
|
|
return m.Size()
|
|
}
|
|
func (m *ProjectTokenDeleteRequest) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_ProjectTokenDeleteRequest.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_ProjectTokenDeleteRequest proto.InternalMessageInfo
|
|
|
|
func (m *ProjectTokenDeleteRequest) GetProject() string {
|
|
if m != nil {
|
|
return m.Project
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *ProjectTokenDeleteRequest) GetRole() string {
|
|
if m != nil {
|
|
return m.Role
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *ProjectTokenDeleteRequest) GetIat() int64 {
|
|
if m != nil {
|
|
return m.Iat
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (m *ProjectTokenDeleteRequest) GetId() string {
|
|
if m != nil {
|
|
return m.Id
|
|
}
|
|
return ""
|
|
}
|
|
|
|
// ProjectTokenCreateRequest defines project token creation parameters.
|
|
type ProjectTokenCreateRequest struct {
|
|
Project string `protobuf:"bytes,1,opt,name=project,proto3" json:"project,omitempty"`
|
|
Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
|
|
Role string `protobuf:"bytes,3,opt,name=role,proto3" json:"role,omitempty"`
|
|
// expiresIn represents a duration in seconds
|
|
ExpiresIn int64 `protobuf:"varint,4,opt,name=expiresIn,proto3" json:"expiresIn,omitempty"`
|
|
Id string `protobuf:"bytes,5,opt,name=id,proto3" json:"id,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *ProjectTokenCreateRequest) Reset() { *m = ProjectTokenCreateRequest{} }
|
|
func (m *ProjectTokenCreateRequest) String() string { return proto.CompactTextString(m) }
|
|
func (*ProjectTokenCreateRequest) ProtoMessage() {}
|
|
func (*ProjectTokenCreateRequest) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_5f0a51496972c9e2, []int{2}
|
|
}
|
|
func (m *ProjectTokenCreateRequest) XXX_Unmarshal(b []byte) error {
|
|
return m.Unmarshal(b)
|
|
}
|
|
func (m *ProjectTokenCreateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
if deterministic {
|
|
return xxx_messageInfo_ProjectTokenCreateRequest.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 *ProjectTokenCreateRequest) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_ProjectTokenCreateRequest.Merge(m, src)
|
|
}
|
|
func (m *ProjectTokenCreateRequest) XXX_Size() int {
|
|
return m.Size()
|
|
}
|
|
func (m *ProjectTokenCreateRequest) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_ProjectTokenCreateRequest.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_ProjectTokenCreateRequest proto.InternalMessageInfo
|
|
|
|
func (m *ProjectTokenCreateRequest) GetProject() string {
|
|
if m != nil {
|
|
return m.Project
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *ProjectTokenCreateRequest) GetDescription() string {
|
|
if m != nil {
|
|
return m.Description
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *ProjectTokenCreateRequest) GetRole() string {
|
|
if m != nil {
|
|
return m.Role
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *ProjectTokenCreateRequest) GetExpiresIn() int64 {
|
|
if m != nil {
|
|
return m.ExpiresIn
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (m *ProjectTokenCreateRequest) GetId() string {
|
|
if m != nil {
|
|
return m.Id
|
|
}
|
|
return ""
|
|
}
|
|
|
|
// ProjectTokenResponse wraps the created token or returns an empty string if deleted.
|
|
type ProjectTokenResponse struct {
|
|
Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *ProjectTokenResponse) Reset() { *m = ProjectTokenResponse{} }
|
|
func (m *ProjectTokenResponse) String() string { return proto.CompactTextString(m) }
|
|
func (*ProjectTokenResponse) ProtoMessage() {}
|
|
func (*ProjectTokenResponse) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_5f0a51496972c9e2, []int{3}
|
|
}
|
|
func (m *ProjectTokenResponse) XXX_Unmarshal(b []byte) error {
|
|
return m.Unmarshal(b)
|
|
}
|
|
func (m *ProjectTokenResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
if deterministic {
|
|
return xxx_messageInfo_ProjectTokenResponse.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 *ProjectTokenResponse) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_ProjectTokenResponse.Merge(m, src)
|
|
}
|
|
func (m *ProjectTokenResponse) XXX_Size() int {
|
|
return m.Size()
|
|
}
|
|
func (m *ProjectTokenResponse) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_ProjectTokenResponse.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_ProjectTokenResponse proto.InternalMessageInfo
|
|
|
|
func (m *ProjectTokenResponse) GetToken() string {
|
|
if m != nil {
|
|
return m.Token
|
|
}
|
|
return ""
|
|
}
|
|
|
|
// ProjectQuery is a query for Project resources
|
|
type ProjectQuery struct {
|
|
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *ProjectQuery) Reset() { *m = ProjectQuery{} }
|
|
func (m *ProjectQuery) String() string { return proto.CompactTextString(m) }
|
|
func (*ProjectQuery) ProtoMessage() {}
|
|
func (*ProjectQuery) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_5f0a51496972c9e2, []int{4}
|
|
}
|
|
func (m *ProjectQuery) XXX_Unmarshal(b []byte) error {
|
|
return m.Unmarshal(b)
|
|
}
|
|
func (m *ProjectQuery) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
if deterministic {
|
|
return xxx_messageInfo_ProjectQuery.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 *ProjectQuery) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_ProjectQuery.Merge(m, src)
|
|
}
|
|
func (m *ProjectQuery) XXX_Size() int {
|
|
return m.Size()
|
|
}
|
|
func (m *ProjectQuery) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_ProjectQuery.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_ProjectQuery proto.InternalMessageInfo
|
|
|
|
func (m *ProjectQuery) GetName() string {
|
|
if m != nil {
|
|
return m.Name
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type ProjectUpdateRequest struct {
|
|
Project *v1alpha1.AppProject `protobuf:"bytes,1,opt,name=project,proto3" json:"project,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *ProjectUpdateRequest) Reset() { *m = ProjectUpdateRequest{} }
|
|
func (m *ProjectUpdateRequest) String() string { return proto.CompactTextString(m) }
|
|
func (*ProjectUpdateRequest) ProtoMessage() {}
|
|
func (*ProjectUpdateRequest) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_5f0a51496972c9e2, []int{5}
|
|
}
|
|
func (m *ProjectUpdateRequest) XXX_Unmarshal(b []byte) error {
|
|
return m.Unmarshal(b)
|
|
}
|
|
func (m *ProjectUpdateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
if deterministic {
|
|
return xxx_messageInfo_ProjectUpdateRequest.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 *ProjectUpdateRequest) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_ProjectUpdateRequest.Merge(m, src)
|
|
}
|
|
func (m *ProjectUpdateRequest) XXX_Size() int {
|
|
return m.Size()
|
|
}
|
|
func (m *ProjectUpdateRequest) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_ProjectUpdateRequest.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_ProjectUpdateRequest proto.InternalMessageInfo
|
|
|
|
func (m *ProjectUpdateRequest) GetProject() *v1alpha1.AppProject {
|
|
if m != nil {
|
|
return m.Project
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type EmptyResponse struct {
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *EmptyResponse) Reset() { *m = EmptyResponse{} }
|
|
func (m *EmptyResponse) String() string { return proto.CompactTextString(m) }
|
|
func (*EmptyResponse) ProtoMessage() {}
|
|
func (*EmptyResponse) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_5f0a51496972c9e2, []int{6}
|
|
}
|
|
func (m *EmptyResponse) XXX_Unmarshal(b []byte) error {
|
|
return m.Unmarshal(b)
|
|
}
|
|
func (m *EmptyResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
if deterministic {
|
|
return xxx_messageInfo_EmptyResponse.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 *EmptyResponse) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_EmptyResponse.Merge(m, src)
|
|
}
|
|
func (m *EmptyResponse) XXX_Size() int {
|
|
return m.Size()
|
|
}
|
|
func (m *EmptyResponse) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_EmptyResponse.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_EmptyResponse proto.InternalMessageInfo
|
|
|
|
type SyncWindowsQuery struct {
|
|
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *SyncWindowsQuery) Reset() { *m = SyncWindowsQuery{} }
|
|
func (m *SyncWindowsQuery) String() string { return proto.CompactTextString(m) }
|
|
func (*SyncWindowsQuery) ProtoMessage() {}
|
|
func (*SyncWindowsQuery) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_5f0a51496972c9e2, []int{7}
|
|
}
|
|
func (m *SyncWindowsQuery) XXX_Unmarshal(b []byte) error {
|
|
return m.Unmarshal(b)
|
|
}
|
|
func (m *SyncWindowsQuery) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
if deterministic {
|
|
return xxx_messageInfo_SyncWindowsQuery.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 *SyncWindowsQuery) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_SyncWindowsQuery.Merge(m, src)
|
|
}
|
|
func (m *SyncWindowsQuery) XXX_Size() int {
|
|
return m.Size()
|
|
}
|
|
func (m *SyncWindowsQuery) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_SyncWindowsQuery.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_SyncWindowsQuery proto.InternalMessageInfo
|
|
|
|
func (m *SyncWindowsQuery) GetName() string {
|
|
if m != nil {
|
|
return m.Name
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type SyncWindowsResponse struct {
|
|
Windows []*v1alpha1.SyncWindow `protobuf:"bytes,1,rep,name=windows,proto3" json:"windows,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *SyncWindowsResponse) Reset() { *m = SyncWindowsResponse{} }
|
|
func (m *SyncWindowsResponse) String() string { return proto.CompactTextString(m) }
|
|
func (*SyncWindowsResponse) ProtoMessage() {}
|
|
func (*SyncWindowsResponse) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_5f0a51496972c9e2, []int{8}
|
|
}
|
|
func (m *SyncWindowsResponse) XXX_Unmarshal(b []byte) error {
|
|
return m.Unmarshal(b)
|
|
}
|
|
func (m *SyncWindowsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
if deterministic {
|
|
return xxx_messageInfo_SyncWindowsResponse.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 *SyncWindowsResponse) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_SyncWindowsResponse.Merge(m, src)
|
|
}
|
|
func (m *SyncWindowsResponse) XXX_Size() int {
|
|
return m.Size()
|
|
}
|
|
func (m *SyncWindowsResponse) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_SyncWindowsResponse.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_SyncWindowsResponse proto.InternalMessageInfo
|
|
|
|
func (m *SyncWindowsResponse) GetWindows() []*v1alpha1.SyncWindow {
|
|
if m != nil {
|
|
return m.Windows
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type GlobalProjectsResponse struct {
|
|
Items []*v1alpha1.AppProject `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *GlobalProjectsResponse) Reset() { *m = GlobalProjectsResponse{} }
|
|
func (m *GlobalProjectsResponse) String() string { return proto.CompactTextString(m) }
|
|
func (*GlobalProjectsResponse) ProtoMessage() {}
|
|
func (*GlobalProjectsResponse) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_5f0a51496972c9e2, []int{9}
|
|
}
|
|
func (m *GlobalProjectsResponse) XXX_Unmarshal(b []byte) error {
|
|
return m.Unmarshal(b)
|
|
}
|
|
func (m *GlobalProjectsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
if deterministic {
|
|
return xxx_messageInfo_GlobalProjectsResponse.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 *GlobalProjectsResponse) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_GlobalProjectsResponse.Merge(m, src)
|
|
}
|
|
func (m *GlobalProjectsResponse) XXX_Size() int {
|
|
return m.Size()
|
|
}
|
|
func (m *GlobalProjectsResponse) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_GlobalProjectsResponse.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_GlobalProjectsResponse proto.InternalMessageInfo
|
|
|
|
func (m *GlobalProjectsResponse) GetItems() []*v1alpha1.AppProject {
|
|
if m != nil {
|
|
return m.Items
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type DetailedProjectsResponse struct {
|
|
GlobalProjects []*v1alpha1.AppProject `protobuf:"bytes,1,rep,name=globalProjects,proto3" json:"globalProjects,omitempty"`
|
|
Project *v1alpha1.AppProject `protobuf:"bytes,2,opt,name=project,proto3" json:"project,omitempty"`
|
|
Repositories []*v1alpha1.Repository `protobuf:"bytes,3,rep,name=repositories,proto3" json:"repositories,omitempty"`
|
|
Clusters []*v1alpha1.Cluster `protobuf:"bytes,4,rep,name=clusters,proto3" json:"clusters,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *DetailedProjectsResponse) Reset() { *m = DetailedProjectsResponse{} }
|
|
func (m *DetailedProjectsResponse) String() string { return proto.CompactTextString(m) }
|
|
func (*DetailedProjectsResponse) ProtoMessage() {}
|
|
func (*DetailedProjectsResponse) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_5f0a51496972c9e2, []int{10}
|
|
}
|
|
func (m *DetailedProjectsResponse) XXX_Unmarshal(b []byte) error {
|
|
return m.Unmarshal(b)
|
|
}
|
|
func (m *DetailedProjectsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
if deterministic {
|
|
return xxx_messageInfo_DetailedProjectsResponse.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 *DetailedProjectsResponse) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_DetailedProjectsResponse.Merge(m, src)
|
|
}
|
|
func (m *DetailedProjectsResponse) XXX_Size() int {
|
|
return m.Size()
|
|
}
|
|
func (m *DetailedProjectsResponse) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_DetailedProjectsResponse.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_DetailedProjectsResponse proto.InternalMessageInfo
|
|
|
|
func (m *DetailedProjectsResponse) GetGlobalProjects() []*v1alpha1.AppProject {
|
|
if m != nil {
|
|
return m.GlobalProjects
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *DetailedProjectsResponse) GetProject() *v1alpha1.AppProject {
|
|
if m != nil {
|
|
return m.Project
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *DetailedProjectsResponse) GetRepositories() []*v1alpha1.Repository {
|
|
if m != nil {
|
|
return m.Repositories
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *DetailedProjectsResponse) GetClusters() []*v1alpha1.Cluster {
|
|
if m != nil {
|
|
return m.Clusters
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type ListProjectLinksRequest struct {
|
|
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *ListProjectLinksRequest) Reset() { *m = ListProjectLinksRequest{} }
|
|
func (m *ListProjectLinksRequest) String() string { return proto.CompactTextString(m) }
|
|
func (*ListProjectLinksRequest) ProtoMessage() {}
|
|
func (*ListProjectLinksRequest) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_5f0a51496972c9e2, []int{11}
|
|
}
|
|
func (m *ListProjectLinksRequest) XXX_Unmarshal(b []byte) error {
|
|
return m.Unmarshal(b)
|
|
}
|
|
func (m *ListProjectLinksRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
if deterministic {
|
|
return xxx_messageInfo_ListProjectLinksRequest.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 *ListProjectLinksRequest) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_ListProjectLinksRequest.Merge(m, src)
|
|
}
|
|
func (m *ListProjectLinksRequest) XXX_Size() int {
|
|
return m.Size()
|
|
}
|
|
func (m *ListProjectLinksRequest) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_ListProjectLinksRequest.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_ListProjectLinksRequest proto.InternalMessageInfo
|
|
|
|
func (m *ListProjectLinksRequest) GetName() string {
|
|
if m != nil {
|
|
return m.Name
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func init() {
|
|
proto.RegisterType((*ProjectCreateRequest)(nil), "project.ProjectCreateRequest")
|
|
proto.RegisterType((*ProjectTokenDeleteRequest)(nil), "project.ProjectTokenDeleteRequest")
|
|
proto.RegisterType((*ProjectTokenCreateRequest)(nil), "project.ProjectTokenCreateRequest")
|
|
proto.RegisterType((*ProjectTokenResponse)(nil), "project.ProjectTokenResponse")
|
|
proto.RegisterType((*ProjectQuery)(nil), "project.ProjectQuery")
|
|
proto.RegisterType((*ProjectUpdateRequest)(nil), "project.ProjectUpdateRequest")
|
|
proto.RegisterType((*EmptyResponse)(nil), "project.EmptyResponse")
|
|
proto.RegisterType((*SyncWindowsQuery)(nil), "project.SyncWindowsQuery")
|
|
proto.RegisterType((*SyncWindowsResponse)(nil), "project.SyncWindowsResponse")
|
|
proto.RegisterType((*GlobalProjectsResponse)(nil), "project.GlobalProjectsResponse")
|
|
proto.RegisterType((*DetailedProjectsResponse)(nil), "project.DetailedProjectsResponse")
|
|
proto.RegisterType((*ListProjectLinksRequest)(nil), "project.ListProjectLinksRequest")
|
|
}
|
|
|
|
func init() { proto.RegisterFile("server/project/project.proto", fileDescriptor_5f0a51496972c9e2) }
|
|
|
|
var fileDescriptor_5f0a51496972c9e2 = []byte{
|
|
// 981 bytes of a gzipped FileDescriptorProto
|
|
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x57, 0xdf, 0x6e, 0xdc, 0x44,
|
|
0x17, 0x97, 0x77, 0x93, 0x6d, 0x73, 0x36, 0x5f, 0xbe, 0x66, 0x92, 0xa6, 0x1b, 0x77, 0x49, 0x37,
|
|
0xa3, 0x08, 0xd2, 0x00, 0x36, 0x29, 0x48, 0x88, 0x0a, 0x09, 0x41, 0x5a, 0xad, 0x90, 0x7a, 0x01,
|
|
0x4e, 0x2b, 0x68, 0xef, 0x1c, 0xfb, 0x68, 0x33, 0xac, 0xd7, 0x9e, 0x7a, 0x66, 0x37, 0xdd, 0x46,
|
|
0xb9, 0xa0, 0x17, 0x48, 0x5c, 0x73, 0xd5, 0x0b, 0xde, 0x84, 0x07, 0xe0, 0x12, 0x89, 0x17, 0x40,
|
|
0x11, 0x0f, 0x82, 0x3c, 0x1e, 0x7b, 0xed, 0xc4, 0x8e, 0x50, 0xb7, 0xe2, 0xca, 0xe3, 0xd9, 0x33,
|
|
0xbf, 0x3f, 0x67, 0xe6, 0x9c, 0xf1, 0x42, 0x57, 0x60, 0x3c, 0xc1, 0xd8, 0xe6, 0x71, 0xf4, 0x03,
|
|
0x7a, 0x32, 0x7b, 0x5a, 0x3c, 0x8e, 0x64, 0x44, 0xae, 0xe9, 0x57, 0xb3, 0x3b, 0x88, 0xa2, 0x41,
|
|
0x80, 0xb6, 0xcb, 0x99, 0xed, 0x86, 0x61, 0x24, 0x5d, 0xc9, 0xa2, 0x50, 0xa4, 0x61, 0xe6, 0xc1,
|
|
0x80, 0xc9, 0xe3, 0xf1, 0x91, 0xe5, 0x45, 0x23, 0xfb, 0xd8, 0x0d, 0x5f, 0x46, 0x2e, 0xb3, 0x3d,
|
|
0xdf, 0xe6, 0xc3, 0x41, 0xb2, 0x40, 0xd8, 0x2e, 0xe7, 0x01, 0xf3, 0xd4, 0x12, 0x7b, 0xb2, 0xef,
|
|
0x06, 0xfc, 0xd8, 0xdd, 0xb7, 0x07, 0x18, 0x62, 0xec, 0x4a, 0xf4, 0x35, 0xc8, 0xfd, 0x6a, 0x10,
|
|
0xad, 0xaf, 0x08, 0x51, 0x18, 0xeb, 0xb5, 0x1f, 0x5d, 0xb9, 0x16, 0x27, 0x18, 0x4a, 0xa1, 0x1f,
|
|
0xe9, 0x0a, 0xfa, 0xb3, 0x01, 0xeb, 0xdf, 0xa4, 0xe6, 0x0e, 0x62, 0x74, 0x25, 0x3a, 0xf8, 0x7c,
|
|
0x8c, 0x42, 0x92, 0xa7, 0x90, 0x99, 0xee, 0x18, 0x3d, 0x63, 0xb7, 0x7d, 0xef, 0x0b, 0x6b, 0x06,
|
|
0x6e, 0x69, 0x70, 0xcb, 0xf3, 0x2d, 0x3e, 0x1c, 0x58, 0x89, 0x3b, 0xab, 0x28, 0x27, 0x73, 0x67,
|
|
0x7d, 0xc9, 0xb9, 0x86, 0x77, 0x32, 0x3c, 0xb2, 0x01, 0xad, 0x31, 0x17, 0x18, 0xcb, 0x4e, 0xa3,
|
|
0x67, 0xec, 0x5e, 0x77, 0xf4, 0x1b, 0x1d, 0xc2, 0xa6, 0x8e, 0x7d, 0x1c, 0x0d, 0x31, 0x7c, 0x80,
|
|
0x01, 0xce, 0xf4, 0x74, 0xca, 0x7a, 0x96, 0x66, 0x70, 0x04, 0x16, 0xe2, 0x28, 0x40, 0x05, 0xb6,
|
|
0xe4, 0xa8, 0x31, 0xb9, 0x01, 0x4d, 0xe6, 0xca, 0x4e, 0xb3, 0x67, 0xec, 0x36, 0x9d, 0x64, 0x48,
|
|
0x56, 0xa0, 0xc1, 0xfc, 0xce, 0x82, 0x8a, 0x69, 0x30, 0x9f, 0xbe, 0x36, 0xca, 0x6c, 0x65, 0xf7,
|
|
0xf5, 0x6c, 0x3d, 0x68, 0xfb, 0x28, 0xbc, 0x98, 0xf1, 0xc4, 0xa8, 0x26, 0x2d, 0x4e, 0xe5, 0x7a,
|
|
0x9a, 0x05, 0x3d, 0x5d, 0x58, 0xc2, 0x17, 0x9c, 0xc5, 0x28, 0xbe, 0x0e, 0x95, 0x88, 0xa6, 0x33,
|
|
0x9b, 0xd0, 0xda, 0x16, 0x73, 0x6d, 0x1f, 0xe4, 0x7b, 0xa2, 0xa4, 0x39, 0x28, 0x78, 0x14, 0x0a,
|
|
0x24, 0xeb, 0xb0, 0x28, 0x93, 0x09, 0xad, 0x29, 0x7d, 0xa1, 0x14, 0x96, 0x75, 0xf4, 0xb7, 0x63,
|
|
0x8c, 0xa7, 0x09, 0x7f, 0xe8, 0x8e, 0x50, 0x07, 0xa9, 0x31, 0x7d, 0x9e, 0x23, 0x3e, 0xe1, 0xfe,
|
|
0x7f, 0xb2, 0xcb, 0xf4, 0xff, 0xf0, 0xbf, 0x87, 0x23, 0x2e, 0xa7, 0x99, 0x7a, 0xfa, 0x2e, 0xdc,
|
|
0x38, 0x9c, 0x86, 0xde, 0x77, 0x2c, 0xf4, 0xa3, 0x13, 0x51, 0xaf, 0x95, 0xc3, 0x5a, 0x21, 0x2e,
|
|
0x37, 0xff, 0x14, 0xae, 0x9d, 0xa4, 0x53, 0x1d, 0xa3, 0xd7, 0x7c, 0x63, 0xa9, 0x33, 0x68, 0x27,
|
|
0xc3, 0xa3, 0x11, 0x6c, 0xf4, 0x83, 0xe8, 0xc8, 0x0d, 0xb4, 0x89, 0x19, 0xe9, 0x13, 0x58, 0x64,
|
|
0x12, 0x47, 0xf3, 0x51, 0x16, 0xb2, 0x93, 0xa2, 0xd1, 0x5f, 0x9b, 0xd0, 0x79, 0x80, 0xd2, 0x65,
|
|
0x01, 0xfa, 0x97, 0x38, 0x07, 0xb0, 0x32, 0x28, 0xa9, 0x79, 0x5b, 0xe4, 0x17, 0x60, 0x8b, 0x9b,
|
|
0xdf, 0x78, 0xcb, 0x25, 0xee, 0xc1, 0x72, 0x8c, 0x3c, 0x12, 0x4c, 0x46, 0x31, 0x43, 0xd1, 0x69,
|
|
0xce, 0xe1, 0xc0, 0xc9, 0x80, 0xa6, 0x4e, 0x09, 0x94, 0x7c, 0x0f, 0xd7, 0xbd, 0x60, 0x2c, 0x24,
|
|
0xc6, 0xa2, 0xb3, 0xa0, 0x08, 0x3e, 0x7f, 0x23, 0x82, 0x83, 0x14, 0xc4, 0xc9, 0xd1, 0xe8, 0x87,
|
|
0x70, 0xeb, 0x11, 0x13, 0x52, 0xdb, 0x7a, 0xc4, 0xc2, 0xa1, 0xc8, 0x2a, 0xa6, 0xe2, 0xc4, 0xde,
|
|
0xfb, 0xad, 0x0d, 0x2b, 0x3a, 0xf6, 0x10, 0xe3, 0x09, 0xf3, 0x90, 0xfc, 0x64, 0x40, 0x3b, 0x6d,
|
|
0x29, 0xaa, 0x84, 0x09, 0xb5, 0xb2, 0x1b, 0xa5, 0xb6, 0xe9, 0x98, 0xef, 0x54, 0xc6, 0xe4, 0xf5,
|
|
0xf3, 0xc9, 0xab, 0x3f, 0xff, 0xfe, 0xa5, 0x61, 0xd1, 0xbb, 0xf6, 0x64, 0x3f, 0xbb, 0x9f, 0x84,
|
|
0x7d, 0xaa, 0x47, 0x67, 0x76, 0xd2, 0x68, 0x84, 0x7d, 0x9a, 0x3c, 0xce, 0x6c, 0xd5, 0x1a, 0xee,
|
|
0x1b, 0x7b, 0xe4, 0x95, 0x01, 0xed, 0xb4, 0x93, 0x5e, 0x25, 0xa4, 0xd4, 0x6b, 0xcd, 0x8d, 0x3c,
|
|
0xa6, 0x5c, 0xc1, 0x9f, 0x2a, 0x05, 0xfb, 0x7b, 0xf6, 0xbf, 0x56, 0x60, 0x9f, 0x32, 0x57, 0x9e,
|
|
0x91, 0x1f, 0x0d, 0x68, 0xa5, 0x5e, 0xc9, 0x25, 0x93, 0xe5, 0x1c, 0xcc, 0x7b, 0x04, 0xe9, 0x2d,
|
|
0xa5, 0x71, 0x95, 0x2e, 0x17, 0x35, 0x26, 0x89, 0x78, 0x01, 0x0b, 0xc9, 0x9e, 0x92, 0x9b, 0x17,
|
|
0x05, 0xa8, 0x4e, 0x64, 0x1e, 0xcc, 0x49, 0x9c, 0x60, 0xd3, 0x75, 0x45, 0xbe, 0x42, 0x4a, 0xe4,
|
|
0x44, 0x02, 0xe9, 0xa3, 0xbc, 0x50, 0xef, 0x75, 0x3a, 0xb6, 0xf3, 0xe9, 0xba, 0x06, 0x41, 0x77,
|
|
0x14, 0xcb, 0x16, 0xe9, 0x96, 0xb7, 0x21, 0x39, 0x8a, 0x67, 0xb6, 0xaf, 0x57, 0x91, 0x97, 0xd0,
|
|
0xec, 0x63, 0x2d, 0xcd, 0xdc, 0x79, 0xbe, 0xad, 0x44, 0xdc, 0x24, 0x6b, 0x15, 0x22, 0xc8, 0x09,
|
|
0xac, 0xf6, 0x51, 0x96, 0x7b, 0x6a, 0x9d, 0x92, 0x3b, 0xf9, 0x74, 0x75, 0x0f, 0xa6, 0x7b, 0x8a,
|
|
0x69, 0x87, 0xd0, 0x2a, 0xbb, 0x69, 0x4b, 0xcb, 0x53, 0xfd, 0xda, 0x80, 0x56, 0x7a, 0xc3, 0x5d,
|
|
0x3e, 0x68, 0xa5, 0x9b, 0x6f, 0xfe, 0x04, 0xd8, 0x4a, 0xd6, 0x5d, 0x73, 0xa7, 0xb2, 0x18, 0xac,
|
|
0x11, 0x4a, 0xd7, 0x77, 0xa5, 0x6b, 0x29, 0x9d, 0xc9, 0x01, 0x7c, 0x0c, 0xad, 0xb4, 0xcc, 0xea,
|
|
0x32, 0x51, 0x57, 0x76, 0x3a, 0xd5, 0x7b, 0x95, 0xa9, 0x7e, 0x06, 0x90, 0x1c, 0xbd, 0x87, 0xea,
|
|
0xa3, 0xae, 0x0e, 0x79, 0xd5, 0xd2, 0x1f, 0x7d, 0x2a, 0x4c, 0x1d, 0x55, 0xaa, 0x40, 0xbb, 0xc4,
|
|
0xac, 0xca, 0x6a, 0x1a, 0x4d, 0x4e, 0x60, 0xad, 0x8f, 0xb2, 0x70, 0x19, 0x1f, 0xca, 0x24, 0xb3,
|
|
0x9b, 0x39, 0xc9, 0xc5, 0xfb, 0xdc, 0xec, 0x56, 0xfd, 0x94, 0x1b, 0x79, 0x4f, 0x71, 0x6e, 0x93,
|
|
0x3b, 0x55, 0x9c, 0x62, 0x1a, 0x7a, 0xfa, 0x42, 0x26, 0x01, 0x2c, 0x25, 0x22, 0x55, 0xe3, 0x25,
|
|
0xbd, 0x1c, 0xb3, 0xa6, 0x27, 0x9b, 0x66, 0x69, 0xb3, 0xf4, 0x4f, 0x9a, 0x73, 0x5b, 0x71, 0xde,
|
|
0x26, 0x9b, 0x55, 0x9c, 0x41, 0x12, 0xfa, 0xd5, 0x67, 0xbf, 0x9f, 0x6f, 0x19, 0x7f, 0x9c, 0x6f,
|
|
0x19, 0x7f, 0x9d, 0x6f, 0x19, 0xcf, 0xde, 0xbf, 0xf2, 0x23, 0xde, 0x0b, 0x18, 0x86, 0xf9, 0xdf,
|
|
0x83, 0xa3, 0x96, 0xfa, 0x8a, 0xfe, 0xf8, 0x9f, 0x00, 0x00, 0x00, 0xff, 0xff, 0x64, 0xbf, 0xad,
|
|
0xc4, 0x3f, 0x0c, 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
|
|
|
|
// ProjectServiceClient is the client API for ProjectService service.
|
|
//
|
|
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
|
|
type ProjectServiceClient interface {
|
|
// Create a new project token
|
|
CreateToken(ctx context.Context, in *ProjectTokenCreateRequest, opts ...grpc.CallOption) (*ProjectTokenResponse, error)
|
|
// Delete a new project token
|
|
DeleteToken(ctx context.Context, in *ProjectTokenDeleteRequest, opts ...grpc.CallOption) (*EmptyResponse, error)
|
|
// Create a new project
|
|
Create(ctx context.Context, in *ProjectCreateRequest, opts ...grpc.CallOption) (*v1alpha1.AppProject, error)
|
|
// List returns list of projects
|
|
List(ctx context.Context, in *ProjectQuery, opts ...grpc.CallOption) (*v1alpha1.AppProjectList, error)
|
|
// GetDetailedProject returns a project that include project, global project and scoped resources by name
|
|
GetDetailedProject(ctx context.Context, in *ProjectQuery, opts ...grpc.CallOption) (*DetailedProjectsResponse, error)
|
|
// Get returns a project by name
|
|
Get(ctx context.Context, in *ProjectQuery, opts ...grpc.CallOption) (*v1alpha1.AppProject, error)
|
|
// Get returns a virtual project by name
|
|
GetGlobalProjects(ctx context.Context, in *ProjectQuery, opts ...grpc.CallOption) (*GlobalProjectsResponse, error)
|
|
// Update updates a project
|
|
Update(ctx context.Context, in *ProjectUpdateRequest, opts ...grpc.CallOption) (*v1alpha1.AppProject, error)
|
|
// Delete deletes a project
|
|
Delete(ctx context.Context, in *ProjectQuery, opts ...grpc.CallOption) (*EmptyResponse, error)
|
|
// ListEvents returns a list of project events
|
|
ListEvents(ctx context.Context, in *ProjectQuery, opts ...grpc.CallOption) (*events.EventList, error)
|
|
// GetSchedulesState returns true if there are any active sync syncWindows
|
|
GetSyncWindowsState(ctx context.Context, in *SyncWindowsQuery, opts ...grpc.CallOption) (*SyncWindowsResponse, error)
|
|
// ListLinks returns all deep links for the particular project
|
|
ListLinks(ctx context.Context, in *ListProjectLinksRequest, opts ...grpc.CallOption) (*application.LinksResponse, error)
|
|
}
|
|
|
|
type projectServiceClient struct {
|
|
cc *grpc.ClientConn
|
|
}
|
|
|
|
func NewProjectServiceClient(cc *grpc.ClientConn) ProjectServiceClient {
|
|
return &projectServiceClient{cc}
|
|
}
|
|
|
|
func (c *projectServiceClient) CreateToken(ctx context.Context, in *ProjectTokenCreateRequest, opts ...grpc.CallOption) (*ProjectTokenResponse, error) {
|
|
out := new(ProjectTokenResponse)
|
|
err := c.cc.Invoke(ctx, "/project.ProjectService/CreateToken", in, out, opts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
func (c *projectServiceClient) DeleteToken(ctx context.Context, in *ProjectTokenDeleteRequest, opts ...grpc.CallOption) (*EmptyResponse, error) {
|
|
out := new(EmptyResponse)
|
|
err := c.cc.Invoke(ctx, "/project.ProjectService/DeleteToken", in, out, opts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
func (c *projectServiceClient) Create(ctx context.Context, in *ProjectCreateRequest, opts ...grpc.CallOption) (*v1alpha1.AppProject, error) {
|
|
out := new(v1alpha1.AppProject)
|
|
err := c.cc.Invoke(ctx, "/project.ProjectService/Create", in, out, opts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
func (c *projectServiceClient) List(ctx context.Context, in *ProjectQuery, opts ...grpc.CallOption) (*v1alpha1.AppProjectList, error) {
|
|
out := new(v1alpha1.AppProjectList)
|
|
err := c.cc.Invoke(ctx, "/project.ProjectService/List", in, out, opts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
func (c *projectServiceClient) GetDetailedProject(ctx context.Context, in *ProjectQuery, opts ...grpc.CallOption) (*DetailedProjectsResponse, error) {
|
|
out := new(DetailedProjectsResponse)
|
|
err := c.cc.Invoke(ctx, "/project.ProjectService/GetDetailedProject", in, out, opts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
func (c *projectServiceClient) Get(ctx context.Context, in *ProjectQuery, opts ...grpc.CallOption) (*v1alpha1.AppProject, error) {
|
|
out := new(v1alpha1.AppProject)
|
|
err := c.cc.Invoke(ctx, "/project.ProjectService/Get", in, out, opts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
func (c *projectServiceClient) GetGlobalProjects(ctx context.Context, in *ProjectQuery, opts ...grpc.CallOption) (*GlobalProjectsResponse, error) {
|
|
out := new(GlobalProjectsResponse)
|
|
err := c.cc.Invoke(ctx, "/project.ProjectService/GetGlobalProjects", in, out, opts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
func (c *projectServiceClient) Update(ctx context.Context, in *ProjectUpdateRequest, opts ...grpc.CallOption) (*v1alpha1.AppProject, error) {
|
|
out := new(v1alpha1.AppProject)
|
|
err := c.cc.Invoke(ctx, "/project.ProjectService/Update", in, out, opts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
func (c *projectServiceClient) Delete(ctx context.Context, in *ProjectQuery, opts ...grpc.CallOption) (*EmptyResponse, error) {
|
|
out := new(EmptyResponse)
|
|
err := c.cc.Invoke(ctx, "/project.ProjectService/Delete", in, out, opts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
func (c *projectServiceClient) ListEvents(ctx context.Context, in *ProjectQuery, opts ...grpc.CallOption) (*events.EventList, error) {
|
|
out := new(events.EventList)
|
|
err := c.cc.Invoke(ctx, "/project.ProjectService/ListEvents", in, out, opts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
func (c *projectServiceClient) GetSyncWindowsState(ctx context.Context, in *SyncWindowsQuery, opts ...grpc.CallOption) (*SyncWindowsResponse, error) {
|
|
out := new(SyncWindowsResponse)
|
|
err := c.cc.Invoke(ctx, "/project.ProjectService/GetSyncWindowsState", in, out, opts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
func (c *projectServiceClient) ListLinks(ctx context.Context, in *ListProjectLinksRequest, opts ...grpc.CallOption) (*application.LinksResponse, error) {
|
|
out := new(application.LinksResponse)
|
|
err := c.cc.Invoke(ctx, "/project.ProjectService/ListLinks", in, out, opts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
// ProjectServiceServer is the server API for ProjectService service.
|
|
type ProjectServiceServer interface {
|
|
// Create a new project token
|
|
CreateToken(context.Context, *ProjectTokenCreateRequest) (*ProjectTokenResponse, error)
|
|
// Delete a new project token
|
|
DeleteToken(context.Context, *ProjectTokenDeleteRequest) (*EmptyResponse, error)
|
|
// Create a new project
|
|
Create(context.Context, *ProjectCreateRequest) (*v1alpha1.AppProject, error)
|
|
// List returns list of projects
|
|
List(context.Context, *ProjectQuery) (*v1alpha1.AppProjectList, error)
|
|
// GetDetailedProject returns a project that include project, global project and scoped resources by name
|
|
GetDetailedProject(context.Context, *ProjectQuery) (*DetailedProjectsResponse, error)
|
|
// Get returns a project by name
|
|
Get(context.Context, *ProjectQuery) (*v1alpha1.AppProject, error)
|
|
// Get returns a virtual project by name
|
|
GetGlobalProjects(context.Context, *ProjectQuery) (*GlobalProjectsResponse, error)
|
|
// Update updates a project
|
|
Update(context.Context, *ProjectUpdateRequest) (*v1alpha1.AppProject, error)
|
|
// Delete deletes a project
|
|
Delete(context.Context, *ProjectQuery) (*EmptyResponse, error)
|
|
// ListEvents returns a list of project events
|
|
ListEvents(context.Context, *ProjectQuery) (*events.EventList, error)
|
|
// GetSchedulesState returns true if there are any active sync syncWindows
|
|
GetSyncWindowsState(context.Context, *SyncWindowsQuery) (*SyncWindowsResponse, error)
|
|
// ListLinks returns all deep links for the particular project
|
|
ListLinks(context.Context, *ListProjectLinksRequest) (*application.LinksResponse, error)
|
|
}
|
|
|
|
// UnimplementedProjectServiceServer can be embedded to have forward compatible implementations.
|
|
type UnimplementedProjectServiceServer struct {
|
|
}
|
|
|
|
func (*UnimplementedProjectServiceServer) CreateToken(ctx context.Context, req *ProjectTokenCreateRequest) (*ProjectTokenResponse, error) {
|
|
return nil, status.Errorf(codes.Unimplemented, "method CreateToken not implemented")
|
|
}
|
|
func (*UnimplementedProjectServiceServer) DeleteToken(ctx context.Context, req *ProjectTokenDeleteRequest) (*EmptyResponse, error) {
|
|
return nil, status.Errorf(codes.Unimplemented, "method DeleteToken not implemented")
|
|
}
|
|
func (*UnimplementedProjectServiceServer) Create(ctx context.Context, req *ProjectCreateRequest) (*v1alpha1.AppProject, error) {
|
|
return nil, status.Errorf(codes.Unimplemented, "method Create not implemented")
|
|
}
|
|
func (*UnimplementedProjectServiceServer) List(ctx context.Context, req *ProjectQuery) (*v1alpha1.AppProjectList, error) {
|
|
return nil, status.Errorf(codes.Unimplemented, "method List not implemented")
|
|
}
|
|
func (*UnimplementedProjectServiceServer) GetDetailedProject(ctx context.Context, req *ProjectQuery) (*DetailedProjectsResponse, error) {
|
|
return nil, status.Errorf(codes.Unimplemented, "method GetDetailedProject not implemented")
|
|
}
|
|
func (*UnimplementedProjectServiceServer) Get(ctx context.Context, req *ProjectQuery) (*v1alpha1.AppProject, error) {
|
|
return nil, status.Errorf(codes.Unimplemented, "method Get not implemented")
|
|
}
|
|
func (*UnimplementedProjectServiceServer) GetGlobalProjects(ctx context.Context, req *ProjectQuery) (*GlobalProjectsResponse, error) {
|
|
return nil, status.Errorf(codes.Unimplemented, "method GetGlobalProjects not implemented")
|
|
}
|
|
func (*UnimplementedProjectServiceServer) Update(ctx context.Context, req *ProjectUpdateRequest) (*v1alpha1.AppProject, error) {
|
|
return nil, status.Errorf(codes.Unimplemented, "method Update not implemented")
|
|
}
|
|
func (*UnimplementedProjectServiceServer) Delete(ctx context.Context, req *ProjectQuery) (*EmptyResponse, error) {
|
|
return nil, status.Errorf(codes.Unimplemented, "method Delete not implemented")
|
|
}
|
|
func (*UnimplementedProjectServiceServer) ListEvents(ctx context.Context, req *ProjectQuery) (*events.EventList, error) {
|
|
return nil, status.Errorf(codes.Unimplemented, "method ListEvents not implemented")
|
|
}
|
|
func (*UnimplementedProjectServiceServer) GetSyncWindowsState(ctx context.Context, req *SyncWindowsQuery) (*SyncWindowsResponse, error) {
|
|
return nil, status.Errorf(codes.Unimplemented, "method GetSyncWindowsState not implemented")
|
|
}
|
|
func (*UnimplementedProjectServiceServer) ListLinks(ctx context.Context, req *ListProjectLinksRequest) (*application.LinksResponse, error) {
|
|
return nil, status.Errorf(codes.Unimplemented, "method ListLinks not implemented")
|
|
}
|
|
|
|
func RegisterProjectServiceServer(s *grpc.Server, srv ProjectServiceServer) {
|
|
s.RegisterService(&_ProjectService_serviceDesc, srv)
|
|
}
|
|
|
|
func _ProjectService_CreateToken_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(ProjectTokenCreateRequest)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(ProjectServiceServer).CreateToken(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: "/project.ProjectService/CreateToken",
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(ProjectServiceServer).CreateToken(ctx, req.(*ProjectTokenCreateRequest))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
func _ProjectService_DeleteToken_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(ProjectTokenDeleteRequest)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(ProjectServiceServer).DeleteToken(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: "/project.ProjectService/DeleteToken",
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(ProjectServiceServer).DeleteToken(ctx, req.(*ProjectTokenDeleteRequest))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
func _ProjectService_Create_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(ProjectCreateRequest)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(ProjectServiceServer).Create(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: "/project.ProjectService/Create",
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(ProjectServiceServer).Create(ctx, req.(*ProjectCreateRequest))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
func _ProjectService_List_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(ProjectQuery)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(ProjectServiceServer).List(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: "/project.ProjectService/List",
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(ProjectServiceServer).List(ctx, req.(*ProjectQuery))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
func _ProjectService_GetDetailedProject_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(ProjectQuery)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(ProjectServiceServer).GetDetailedProject(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: "/project.ProjectService/GetDetailedProject",
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(ProjectServiceServer).GetDetailedProject(ctx, req.(*ProjectQuery))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
func _ProjectService_Get_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(ProjectQuery)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(ProjectServiceServer).Get(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: "/project.ProjectService/Get",
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(ProjectServiceServer).Get(ctx, req.(*ProjectQuery))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
func _ProjectService_GetGlobalProjects_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(ProjectQuery)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(ProjectServiceServer).GetGlobalProjects(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: "/project.ProjectService/GetGlobalProjects",
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(ProjectServiceServer).GetGlobalProjects(ctx, req.(*ProjectQuery))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
func _ProjectService_Update_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(ProjectUpdateRequest)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(ProjectServiceServer).Update(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: "/project.ProjectService/Update",
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(ProjectServiceServer).Update(ctx, req.(*ProjectUpdateRequest))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
func _ProjectService_Delete_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(ProjectQuery)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(ProjectServiceServer).Delete(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: "/project.ProjectService/Delete",
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(ProjectServiceServer).Delete(ctx, req.(*ProjectQuery))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
func _ProjectService_ListEvents_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(ProjectQuery)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(ProjectServiceServer).ListEvents(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: "/project.ProjectService/ListEvents",
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(ProjectServiceServer).ListEvents(ctx, req.(*ProjectQuery))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
func _ProjectService_GetSyncWindowsState_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(SyncWindowsQuery)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(ProjectServiceServer).GetSyncWindowsState(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: "/project.ProjectService/GetSyncWindowsState",
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(ProjectServiceServer).GetSyncWindowsState(ctx, req.(*SyncWindowsQuery))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
func _ProjectService_ListLinks_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(ListProjectLinksRequest)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(ProjectServiceServer).ListLinks(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: "/project.ProjectService/ListLinks",
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(ProjectServiceServer).ListLinks(ctx, req.(*ListProjectLinksRequest))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
var _ProjectService_serviceDesc = grpc.ServiceDesc{
|
|
ServiceName: "project.ProjectService",
|
|
HandlerType: (*ProjectServiceServer)(nil),
|
|
Methods: []grpc.MethodDesc{
|
|
{
|
|
MethodName: "CreateToken",
|
|
Handler: _ProjectService_CreateToken_Handler,
|
|
},
|
|
{
|
|
MethodName: "DeleteToken",
|
|
Handler: _ProjectService_DeleteToken_Handler,
|
|
},
|
|
{
|
|
MethodName: "Create",
|
|
Handler: _ProjectService_Create_Handler,
|
|
},
|
|
{
|
|
MethodName: "List",
|
|
Handler: _ProjectService_List_Handler,
|
|
},
|
|
{
|
|
MethodName: "GetDetailedProject",
|
|
Handler: _ProjectService_GetDetailedProject_Handler,
|
|
},
|
|
{
|
|
MethodName: "Get",
|
|
Handler: _ProjectService_Get_Handler,
|
|
},
|
|
{
|
|
MethodName: "GetGlobalProjects",
|
|
Handler: _ProjectService_GetGlobalProjects_Handler,
|
|
},
|
|
{
|
|
MethodName: "Update",
|
|
Handler: _ProjectService_Update_Handler,
|
|
},
|
|
{
|
|
MethodName: "Delete",
|
|
Handler: _ProjectService_Delete_Handler,
|
|
},
|
|
{
|
|
MethodName: "ListEvents",
|
|
Handler: _ProjectService_ListEvents_Handler,
|
|
},
|
|
{
|
|
MethodName: "GetSyncWindowsState",
|
|
Handler: _ProjectService_GetSyncWindowsState_Handler,
|
|
},
|
|
{
|
|
MethodName: "ListLinks",
|
|
Handler: _ProjectService_ListLinks_Handler,
|
|
},
|
|
},
|
|
Streams: []grpc.StreamDesc{},
|
|
Metadata: "server/project/project.proto",
|
|
}
|
|
|
|
func (m *ProjectCreateRequest) 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 *ProjectCreateRequest) MarshalTo(dAtA []byte) (int, error) {
|
|
size := m.Size()
|
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
}
|
|
|
|
func (m *ProjectCreateRequest) 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.Upsert {
|
|
i--
|
|
if m.Upsert {
|
|
dAtA[i] = 1
|
|
} else {
|
|
dAtA[i] = 0
|
|
}
|
|
i--
|
|
dAtA[i] = 0x10
|
|
}
|
|
if m.Project != nil {
|
|
{
|
|
size, err := m.Project.MarshalToSizedBuffer(dAtA[:i])
|
|
if err != nil {
|
|
return 0, err
|
|
}
|
|
i -= size
|
|
i = encodeVarintProject(dAtA, i, uint64(size))
|
|
}
|
|
i--
|
|
dAtA[i] = 0xa
|
|
}
|
|
return len(dAtA) - i, nil
|
|
}
|
|
|
|
func (m *ProjectTokenDeleteRequest) 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 *ProjectTokenDeleteRequest) MarshalTo(dAtA []byte) (int, error) {
|
|
size := m.Size()
|
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
}
|
|
|
|
func (m *ProjectTokenDeleteRequest) 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.Id) > 0 {
|
|
i -= len(m.Id)
|
|
copy(dAtA[i:], m.Id)
|
|
i = encodeVarintProject(dAtA, i, uint64(len(m.Id)))
|
|
i--
|
|
dAtA[i] = 0x22
|
|
}
|
|
if m.Iat != 0 {
|
|
i = encodeVarintProject(dAtA, i, uint64(m.Iat))
|
|
i--
|
|
dAtA[i] = 0x18
|
|
}
|
|
if len(m.Role) > 0 {
|
|
i -= len(m.Role)
|
|
copy(dAtA[i:], m.Role)
|
|
i = encodeVarintProject(dAtA, i, uint64(len(m.Role)))
|
|
i--
|
|
dAtA[i] = 0x12
|
|
}
|
|
if len(m.Project) > 0 {
|
|
i -= len(m.Project)
|
|
copy(dAtA[i:], m.Project)
|
|
i = encodeVarintProject(dAtA, i, uint64(len(m.Project)))
|
|
i--
|
|
dAtA[i] = 0xa
|
|
}
|
|
return len(dAtA) - i, nil
|
|
}
|
|
|
|
func (m *ProjectTokenCreateRequest) 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 *ProjectTokenCreateRequest) MarshalTo(dAtA []byte) (int, error) {
|
|
size := m.Size()
|
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
}
|
|
|
|
func (m *ProjectTokenCreateRequest) 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.Id) > 0 {
|
|
i -= len(m.Id)
|
|
copy(dAtA[i:], m.Id)
|
|
i = encodeVarintProject(dAtA, i, uint64(len(m.Id)))
|
|
i--
|
|
dAtA[i] = 0x2a
|
|
}
|
|
if m.ExpiresIn != 0 {
|
|
i = encodeVarintProject(dAtA, i, uint64(m.ExpiresIn))
|
|
i--
|
|
dAtA[i] = 0x20
|
|
}
|
|
if len(m.Role) > 0 {
|
|
i -= len(m.Role)
|
|
copy(dAtA[i:], m.Role)
|
|
i = encodeVarintProject(dAtA, i, uint64(len(m.Role)))
|
|
i--
|
|
dAtA[i] = 0x1a
|
|
}
|
|
if len(m.Description) > 0 {
|
|
i -= len(m.Description)
|
|
copy(dAtA[i:], m.Description)
|
|
i = encodeVarintProject(dAtA, i, uint64(len(m.Description)))
|
|
i--
|
|
dAtA[i] = 0x12
|
|
}
|
|
if len(m.Project) > 0 {
|
|
i -= len(m.Project)
|
|
copy(dAtA[i:], m.Project)
|
|
i = encodeVarintProject(dAtA, i, uint64(len(m.Project)))
|
|
i--
|
|
dAtA[i] = 0xa
|
|
}
|
|
return len(dAtA) - i, nil
|
|
}
|
|
|
|
func (m *ProjectTokenResponse) 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 *ProjectTokenResponse) MarshalTo(dAtA []byte) (int, error) {
|
|
size := m.Size()
|
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
}
|
|
|
|
func (m *ProjectTokenResponse) 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.Token) > 0 {
|
|
i -= len(m.Token)
|
|
copy(dAtA[i:], m.Token)
|
|
i = encodeVarintProject(dAtA, i, uint64(len(m.Token)))
|
|
i--
|
|
dAtA[i] = 0xa
|
|
}
|
|
return len(dAtA) - i, nil
|
|
}
|
|
|
|
func (m *ProjectQuery) 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 *ProjectQuery) MarshalTo(dAtA []byte) (int, error) {
|
|
size := m.Size()
|
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
}
|
|
|
|
func (m *ProjectQuery) 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.Name) > 0 {
|
|
i -= len(m.Name)
|
|
copy(dAtA[i:], m.Name)
|
|
i = encodeVarintProject(dAtA, i, uint64(len(m.Name)))
|
|
i--
|
|
dAtA[i] = 0xa
|
|
}
|
|
return len(dAtA) - i, nil
|
|
}
|
|
|
|
func (m *ProjectUpdateRequest) 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 *ProjectUpdateRequest) MarshalTo(dAtA []byte) (int, error) {
|
|
size := m.Size()
|
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
}
|
|
|
|
func (m *ProjectUpdateRequest) 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.Project != nil {
|
|
{
|
|
size, err := m.Project.MarshalToSizedBuffer(dAtA[:i])
|
|
if err != nil {
|
|
return 0, err
|
|
}
|
|
i -= size
|
|
i = encodeVarintProject(dAtA, i, uint64(size))
|
|
}
|
|
i--
|
|
dAtA[i] = 0xa
|
|
}
|
|
return len(dAtA) - i, nil
|
|
}
|
|
|
|
func (m *EmptyResponse) 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 *EmptyResponse) MarshalTo(dAtA []byte) (int, error) {
|
|
size := m.Size()
|
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
}
|
|
|
|
func (m *EmptyResponse) 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)
|
|
}
|
|
return len(dAtA) - i, nil
|
|
}
|
|
|
|
func (m *SyncWindowsQuery) 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 *SyncWindowsQuery) MarshalTo(dAtA []byte) (int, error) {
|
|
size := m.Size()
|
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
}
|
|
|
|
func (m *SyncWindowsQuery) 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.Name) > 0 {
|
|
i -= len(m.Name)
|
|
copy(dAtA[i:], m.Name)
|
|
i = encodeVarintProject(dAtA, i, uint64(len(m.Name)))
|
|
i--
|
|
dAtA[i] = 0xa
|
|
}
|
|
return len(dAtA) - i, nil
|
|
}
|
|
|
|
func (m *SyncWindowsResponse) 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 *SyncWindowsResponse) MarshalTo(dAtA []byte) (int, error) {
|
|
size := m.Size()
|
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
}
|
|
|
|
func (m *SyncWindowsResponse) 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.Windows) > 0 {
|
|
for iNdEx := len(m.Windows) - 1; iNdEx >= 0; iNdEx-- {
|
|
{
|
|
size, err := m.Windows[iNdEx].MarshalToSizedBuffer(dAtA[:i])
|
|
if err != nil {
|
|
return 0, err
|
|
}
|
|
i -= size
|
|
i = encodeVarintProject(dAtA, i, uint64(size))
|
|
}
|
|
i--
|
|
dAtA[i] = 0xa
|
|
}
|
|
}
|
|
return len(dAtA) - i, nil
|
|
}
|
|
|
|
func (m *GlobalProjectsResponse) 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 *GlobalProjectsResponse) MarshalTo(dAtA []byte) (int, error) {
|
|
size := m.Size()
|
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
}
|
|
|
|
func (m *GlobalProjectsResponse) 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.Items) > 0 {
|
|
for iNdEx := len(m.Items) - 1; iNdEx >= 0; iNdEx-- {
|
|
{
|
|
size, err := m.Items[iNdEx].MarshalToSizedBuffer(dAtA[:i])
|
|
if err != nil {
|
|
return 0, err
|
|
}
|
|
i -= size
|
|
i = encodeVarintProject(dAtA, i, uint64(size))
|
|
}
|
|
i--
|
|
dAtA[i] = 0xa
|
|
}
|
|
}
|
|
return len(dAtA) - i, nil
|
|
}
|
|
|
|
func (m *DetailedProjectsResponse) 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 *DetailedProjectsResponse) MarshalTo(dAtA []byte) (int, error) {
|
|
size := m.Size()
|
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
}
|
|
|
|
func (m *DetailedProjectsResponse) 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.Clusters) > 0 {
|
|
for iNdEx := len(m.Clusters) - 1; iNdEx >= 0; iNdEx-- {
|
|
{
|
|
size, err := m.Clusters[iNdEx].MarshalToSizedBuffer(dAtA[:i])
|
|
if err != nil {
|
|
return 0, err
|
|
}
|
|
i -= size
|
|
i = encodeVarintProject(dAtA, i, uint64(size))
|
|
}
|
|
i--
|
|
dAtA[i] = 0x22
|
|
}
|
|
}
|
|
if len(m.Repositories) > 0 {
|
|
for iNdEx := len(m.Repositories) - 1; iNdEx >= 0; iNdEx-- {
|
|
{
|
|
size, err := m.Repositories[iNdEx].MarshalToSizedBuffer(dAtA[:i])
|
|
if err != nil {
|
|
return 0, err
|
|
}
|
|
i -= size
|
|
i = encodeVarintProject(dAtA, i, uint64(size))
|
|
}
|
|
i--
|
|
dAtA[i] = 0x1a
|
|
}
|
|
}
|
|
if m.Project != nil {
|
|
{
|
|
size, err := m.Project.MarshalToSizedBuffer(dAtA[:i])
|
|
if err != nil {
|
|
return 0, err
|
|
}
|
|
i -= size
|
|
i = encodeVarintProject(dAtA, i, uint64(size))
|
|
}
|
|
i--
|
|
dAtA[i] = 0x12
|
|
}
|
|
if len(m.GlobalProjects) > 0 {
|
|
for iNdEx := len(m.GlobalProjects) - 1; iNdEx >= 0; iNdEx-- {
|
|
{
|
|
size, err := m.GlobalProjects[iNdEx].MarshalToSizedBuffer(dAtA[:i])
|
|
if err != nil {
|
|
return 0, err
|
|
}
|
|
i -= size
|
|
i = encodeVarintProject(dAtA, i, uint64(size))
|
|
}
|
|
i--
|
|
dAtA[i] = 0xa
|
|
}
|
|
}
|
|
return len(dAtA) - i, nil
|
|
}
|
|
|
|
func (m *ListProjectLinksRequest) 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 *ListProjectLinksRequest) MarshalTo(dAtA []byte) (int, error) {
|
|
size := m.Size()
|
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
}
|
|
|
|
func (m *ListProjectLinksRequest) 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.Name) > 0 {
|
|
i -= len(m.Name)
|
|
copy(dAtA[i:], m.Name)
|
|
i = encodeVarintProject(dAtA, i, uint64(len(m.Name)))
|
|
i--
|
|
dAtA[i] = 0xa
|
|
}
|
|
return len(dAtA) - i, nil
|
|
}
|
|
|
|
func encodeVarintProject(dAtA []byte, offset int, v uint64) int {
|
|
offset -= sovProject(v)
|
|
base := offset
|
|
for v >= 1<<7 {
|
|
dAtA[offset] = uint8(v&0x7f | 0x80)
|
|
v >>= 7
|
|
offset++
|
|
}
|
|
dAtA[offset] = uint8(v)
|
|
return base
|
|
}
|
|
func (m *ProjectCreateRequest) Size() (n int) {
|
|
if m == nil {
|
|
return 0
|
|
}
|
|
var l int
|
|
_ = l
|
|
if m.Project != nil {
|
|
l = m.Project.Size()
|
|
n += 1 + l + sovProject(uint64(l))
|
|
}
|
|
if m.Upsert {
|
|
n += 2
|
|
}
|
|
if m.XXX_unrecognized != nil {
|
|
n += len(m.XXX_unrecognized)
|
|
}
|
|
return n
|
|
}
|
|
|
|
func (m *ProjectTokenDeleteRequest) Size() (n int) {
|
|
if m == nil {
|
|
return 0
|
|
}
|
|
var l int
|
|
_ = l
|
|
l = len(m.Project)
|
|
if l > 0 {
|
|
n += 1 + l + sovProject(uint64(l))
|
|
}
|
|
l = len(m.Role)
|
|
if l > 0 {
|
|
n += 1 + l + sovProject(uint64(l))
|
|
}
|
|
if m.Iat != 0 {
|
|
n += 1 + sovProject(uint64(m.Iat))
|
|
}
|
|
l = len(m.Id)
|
|
if l > 0 {
|
|
n += 1 + l + sovProject(uint64(l))
|
|
}
|
|
if m.XXX_unrecognized != nil {
|
|
n += len(m.XXX_unrecognized)
|
|
}
|
|
return n
|
|
}
|
|
|
|
func (m *ProjectTokenCreateRequest) Size() (n int) {
|
|
if m == nil {
|
|
return 0
|
|
}
|
|
var l int
|
|
_ = l
|
|
l = len(m.Project)
|
|
if l > 0 {
|
|
n += 1 + l + sovProject(uint64(l))
|
|
}
|
|
l = len(m.Description)
|
|
if l > 0 {
|
|
n += 1 + l + sovProject(uint64(l))
|
|
}
|
|
l = len(m.Role)
|
|
if l > 0 {
|
|
n += 1 + l + sovProject(uint64(l))
|
|
}
|
|
if m.ExpiresIn != 0 {
|
|
n += 1 + sovProject(uint64(m.ExpiresIn))
|
|
}
|
|
l = len(m.Id)
|
|
if l > 0 {
|
|
n += 1 + l + sovProject(uint64(l))
|
|
}
|
|
if m.XXX_unrecognized != nil {
|
|
n += len(m.XXX_unrecognized)
|
|
}
|
|
return n
|
|
}
|
|
|
|
func (m *ProjectTokenResponse) Size() (n int) {
|
|
if m == nil {
|
|
return 0
|
|
}
|
|
var l int
|
|
_ = l
|
|
l = len(m.Token)
|
|
if l > 0 {
|
|
n += 1 + l + sovProject(uint64(l))
|
|
}
|
|
if m.XXX_unrecognized != nil {
|
|
n += len(m.XXX_unrecognized)
|
|
}
|
|
return n
|
|
}
|
|
|
|
func (m *ProjectQuery) Size() (n int) {
|
|
if m == nil {
|
|
return 0
|
|
}
|
|
var l int
|
|
_ = l
|
|
l = len(m.Name)
|
|
if l > 0 {
|
|
n += 1 + l + sovProject(uint64(l))
|
|
}
|
|
if m.XXX_unrecognized != nil {
|
|
n += len(m.XXX_unrecognized)
|
|
}
|
|
return n
|
|
}
|
|
|
|
func (m *ProjectUpdateRequest) Size() (n int) {
|
|
if m == nil {
|
|
return 0
|
|
}
|
|
var l int
|
|
_ = l
|
|
if m.Project != nil {
|
|
l = m.Project.Size()
|
|
n += 1 + l + sovProject(uint64(l))
|
|
}
|
|
if m.XXX_unrecognized != nil {
|
|
n += len(m.XXX_unrecognized)
|
|
}
|
|
return n
|
|
}
|
|
|
|
func (m *EmptyResponse) Size() (n int) {
|
|
if m == nil {
|
|
return 0
|
|
}
|
|
var l int
|
|
_ = l
|
|
if m.XXX_unrecognized != nil {
|
|
n += len(m.XXX_unrecognized)
|
|
}
|
|
return n
|
|
}
|
|
|
|
func (m *SyncWindowsQuery) Size() (n int) {
|
|
if m == nil {
|
|
return 0
|
|
}
|
|
var l int
|
|
_ = l
|
|
l = len(m.Name)
|
|
if l > 0 {
|
|
n += 1 + l + sovProject(uint64(l))
|
|
}
|
|
if m.XXX_unrecognized != nil {
|
|
n += len(m.XXX_unrecognized)
|
|
}
|
|
return n
|
|
}
|
|
|
|
func (m *SyncWindowsResponse) Size() (n int) {
|
|
if m == nil {
|
|
return 0
|
|
}
|
|
var l int
|
|
_ = l
|
|
if len(m.Windows) > 0 {
|
|
for _, e := range m.Windows {
|
|
l = e.Size()
|
|
n += 1 + l + sovProject(uint64(l))
|
|
}
|
|
}
|
|
if m.XXX_unrecognized != nil {
|
|
n += len(m.XXX_unrecognized)
|
|
}
|
|
return n
|
|
}
|
|
|
|
func (m *GlobalProjectsResponse) Size() (n int) {
|
|
if m == nil {
|
|
return 0
|
|
}
|
|
var l int
|
|
_ = l
|
|
if len(m.Items) > 0 {
|
|
for _, e := range m.Items {
|
|
l = e.Size()
|
|
n += 1 + l + sovProject(uint64(l))
|
|
}
|
|
}
|
|
if m.XXX_unrecognized != nil {
|
|
n += len(m.XXX_unrecognized)
|
|
}
|
|
return n
|
|
}
|
|
|
|
func (m *DetailedProjectsResponse) Size() (n int) {
|
|
if m == nil {
|
|
return 0
|
|
}
|
|
var l int
|
|
_ = l
|
|
if len(m.GlobalProjects) > 0 {
|
|
for _, e := range m.GlobalProjects {
|
|
l = e.Size()
|
|
n += 1 + l + sovProject(uint64(l))
|
|
}
|
|
}
|
|
if m.Project != nil {
|
|
l = m.Project.Size()
|
|
n += 1 + l + sovProject(uint64(l))
|
|
}
|
|
if len(m.Repositories) > 0 {
|
|
for _, e := range m.Repositories {
|
|
l = e.Size()
|
|
n += 1 + l + sovProject(uint64(l))
|
|
}
|
|
}
|
|
if len(m.Clusters) > 0 {
|
|
for _, e := range m.Clusters {
|
|
l = e.Size()
|
|
n += 1 + l + sovProject(uint64(l))
|
|
}
|
|
}
|
|
if m.XXX_unrecognized != nil {
|
|
n += len(m.XXX_unrecognized)
|
|
}
|
|
return n
|
|
}
|
|
|
|
func (m *ListProjectLinksRequest) Size() (n int) {
|
|
if m == nil {
|
|
return 0
|
|
}
|
|
var l int
|
|
_ = l
|
|
l = len(m.Name)
|
|
if l > 0 {
|
|
n += 1 + l + sovProject(uint64(l))
|
|
}
|
|
if m.XXX_unrecognized != nil {
|
|
n += len(m.XXX_unrecognized)
|
|
}
|
|
return n
|
|
}
|
|
|
|
func sovProject(x uint64) (n int) {
|
|
return (math_bits.Len64(x|1) + 6) / 7
|
|
}
|
|
func sozProject(x uint64) (n int) {
|
|
return sovProject(uint64((x << 1) ^ uint64((int64(x) >> 63))))
|
|
}
|
|
func (m *ProjectCreateRequest) 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 ErrIntOverflowProject
|
|
}
|
|
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: ProjectCreateRequest: wiretype end group for non-group")
|
|
}
|
|
if fieldNum <= 0 {
|
|
return fmt.Errorf("proto: ProjectCreateRequest: 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 msglen int
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowProject
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
msglen |= int(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
if msglen < 0 {
|
|
return ErrInvalidLengthProject
|
|
}
|
|
postIndex := iNdEx + msglen
|
|
if postIndex < 0 {
|
|
return ErrInvalidLengthProject
|
|
}
|
|
if postIndex > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
if m.Project == nil {
|
|
m.Project = &v1alpha1.AppProject{}
|
|
}
|
|
if err := m.Project.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 ErrIntOverflowProject
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
v |= int(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
m.Upsert = bool(v != 0)
|
|
default:
|
|
iNdEx = preIndex
|
|
skippy, err := skipProject(dAtA[iNdEx:])
|
|
if err != nil {
|
|
return err
|
|
}
|
|
if (skippy < 0) || (iNdEx+skippy) < 0 {
|
|
return ErrInvalidLengthProject
|
|
}
|
|
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 *ProjectTokenDeleteRequest) 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 ErrIntOverflowProject
|
|
}
|
|
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: ProjectTokenDeleteRequest: wiretype end group for non-group")
|
|
}
|
|
if fieldNum <= 0 {
|
|
return fmt.Errorf("proto: ProjectTokenDeleteRequest: 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 ErrIntOverflowProject
|
|
}
|
|
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 ErrInvalidLengthProject
|
|
}
|
|
postIndex := iNdEx + intStringLen
|
|
if postIndex < 0 {
|
|
return ErrInvalidLengthProject
|
|
}
|
|
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 Role", wireType)
|
|
}
|
|
var stringLen uint64
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowProject
|
|
}
|
|
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 ErrInvalidLengthProject
|
|
}
|
|
postIndex := iNdEx + intStringLen
|
|
if postIndex < 0 {
|
|
return ErrInvalidLengthProject
|
|
}
|
|
if postIndex > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
m.Role = string(dAtA[iNdEx:postIndex])
|
|
iNdEx = postIndex
|
|
case 3:
|
|
if wireType != 0 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Iat", wireType)
|
|
}
|
|
m.Iat = 0
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowProject
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
m.Iat |= int64(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
case 4:
|
|
if wireType != 2 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Id", wireType)
|
|
}
|
|
var stringLen uint64
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowProject
|
|
}
|
|
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 ErrInvalidLengthProject
|
|
}
|
|
postIndex := iNdEx + intStringLen
|
|
if postIndex < 0 {
|
|
return ErrInvalidLengthProject
|
|
}
|
|
if postIndex > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
m.Id = string(dAtA[iNdEx:postIndex])
|
|
iNdEx = postIndex
|
|
default:
|
|
iNdEx = preIndex
|
|
skippy, err := skipProject(dAtA[iNdEx:])
|
|
if err != nil {
|
|
return err
|
|
}
|
|
if (skippy < 0) || (iNdEx+skippy) < 0 {
|
|
return ErrInvalidLengthProject
|
|
}
|
|
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 *ProjectTokenCreateRequest) 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 ErrIntOverflowProject
|
|
}
|
|
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: ProjectTokenCreateRequest: wiretype end group for non-group")
|
|
}
|
|
if fieldNum <= 0 {
|
|
return fmt.Errorf("proto: ProjectTokenCreateRequest: 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 ErrIntOverflowProject
|
|
}
|
|
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 ErrInvalidLengthProject
|
|
}
|
|
postIndex := iNdEx + intStringLen
|
|
if postIndex < 0 {
|
|
return ErrInvalidLengthProject
|
|
}
|
|
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 Description", wireType)
|
|
}
|
|
var stringLen uint64
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowProject
|
|
}
|
|
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 ErrInvalidLengthProject
|
|
}
|
|
postIndex := iNdEx + intStringLen
|
|
if postIndex < 0 {
|
|
return ErrInvalidLengthProject
|
|
}
|
|
if postIndex > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
m.Description = string(dAtA[iNdEx:postIndex])
|
|
iNdEx = postIndex
|
|
case 3:
|
|
if wireType != 2 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Role", wireType)
|
|
}
|
|
var stringLen uint64
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowProject
|
|
}
|
|
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 ErrInvalidLengthProject
|
|
}
|
|
postIndex := iNdEx + intStringLen
|
|
if postIndex < 0 {
|
|
return ErrInvalidLengthProject
|
|
}
|
|
if postIndex > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
m.Role = string(dAtA[iNdEx:postIndex])
|
|
iNdEx = postIndex
|
|
case 4:
|
|
if wireType != 0 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field ExpiresIn", wireType)
|
|
}
|
|
m.ExpiresIn = 0
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowProject
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
m.ExpiresIn |= int64(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
case 5:
|
|
if wireType != 2 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Id", wireType)
|
|
}
|
|
var stringLen uint64
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowProject
|
|
}
|
|
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 ErrInvalidLengthProject
|
|
}
|
|
postIndex := iNdEx + intStringLen
|
|
if postIndex < 0 {
|
|
return ErrInvalidLengthProject
|
|
}
|
|
if postIndex > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
m.Id = string(dAtA[iNdEx:postIndex])
|
|
iNdEx = postIndex
|
|
default:
|
|
iNdEx = preIndex
|
|
skippy, err := skipProject(dAtA[iNdEx:])
|
|
if err != nil {
|
|
return err
|
|
}
|
|
if (skippy < 0) || (iNdEx+skippy) < 0 {
|
|
return ErrInvalidLengthProject
|
|
}
|
|
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 *ProjectTokenResponse) 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 ErrIntOverflowProject
|
|
}
|
|
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: ProjectTokenResponse: wiretype end group for non-group")
|
|
}
|
|
if fieldNum <= 0 {
|
|
return fmt.Errorf("proto: ProjectTokenResponse: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
}
|
|
switch fieldNum {
|
|
case 1:
|
|
if wireType != 2 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Token", wireType)
|
|
}
|
|
var stringLen uint64
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowProject
|
|
}
|
|
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 ErrInvalidLengthProject
|
|
}
|
|
postIndex := iNdEx + intStringLen
|
|
if postIndex < 0 {
|
|
return ErrInvalidLengthProject
|
|
}
|
|
if postIndex > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
m.Token = string(dAtA[iNdEx:postIndex])
|
|
iNdEx = postIndex
|
|
default:
|
|
iNdEx = preIndex
|
|
skippy, err := skipProject(dAtA[iNdEx:])
|
|
if err != nil {
|
|
return err
|
|
}
|
|
if (skippy < 0) || (iNdEx+skippy) < 0 {
|
|
return ErrInvalidLengthProject
|
|
}
|
|
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 *ProjectQuery) 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 ErrIntOverflowProject
|
|
}
|
|
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: ProjectQuery: wiretype end group for non-group")
|
|
}
|
|
if fieldNum <= 0 {
|
|
return fmt.Errorf("proto: ProjectQuery: 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 ErrIntOverflowProject
|
|
}
|
|
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 ErrInvalidLengthProject
|
|
}
|
|
postIndex := iNdEx + intStringLen
|
|
if postIndex < 0 {
|
|
return ErrInvalidLengthProject
|
|
}
|
|
if postIndex > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
m.Name = string(dAtA[iNdEx:postIndex])
|
|
iNdEx = postIndex
|
|
default:
|
|
iNdEx = preIndex
|
|
skippy, err := skipProject(dAtA[iNdEx:])
|
|
if err != nil {
|
|
return err
|
|
}
|
|
if (skippy < 0) || (iNdEx+skippy) < 0 {
|
|
return ErrInvalidLengthProject
|
|
}
|
|
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 *ProjectUpdateRequest) 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 ErrIntOverflowProject
|
|
}
|
|
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: ProjectUpdateRequest: wiretype end group for non-group")
|
|
}
|
|
if fieldNum <= 0 {
|
|
return fmt.Errorf("proto: ProjectUpdateRequest: 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 msglen int
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowProject
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
msglen |= int(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
if msglen < 0 {
|
|
return ErrInvalidLengthProject
|
|
}
|
|
postIndex := iNdEx + msglen
|
|
if postIndex < 0 {
|
|
return ErrInvalidLengthProject
|
|
}
|
|
if postIndex > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
if m.Project == nil {
|
|
m.Project = &v1alpha1.AppProject{}
|
|
}
|
|
if err := m.Project.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
return err
|
|
}
|
|
iNdEx = postIndex
|
|
default:
|
|
iNdEx = preIndex
|
|
skippy, err := skipProject(dAtA[iNdEx:])
|
|
if err != nil {
|
|
return err
|
|
}
|
|
if (skippy < 0) || (iNdEx+skippy) < 0 {
|
|
return ErrInvalidLengthProject
|
|
}
|
|
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 *EmptyResponse) 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 ErrIntOverflowProject
|
|
}
|
|
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: EmptyResponse: wiretype end group for non-group")
|
|
}
|
|
if fieldNum <= 0 {
|
|
return fmt.Errorf("proto: EmptyResponse: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
}
|
|
switch fieldNum {
|
|
default:
|
|
iNdEx = preIndex
|
|
skippy, err := skipProject(dAtA[iNdEx:])
|
|
if err != nil {
|
|
return err
|
|
}
|
|
if (skippy < 0) || (iNdEx+skippy) < 0 {
|
|
return ErrInvalidLengthProject
|
|
}
|
|
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 *SyncWindowsQuery) 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 ErrIntOverflowProject
|
|
}
|
|
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: SyncWindowsQuery: wiretype end group for non-group")
|
|
}
|
|
if fieldNum <= 0 {
|
|
return fmt.Errorf("proto: SyncWindowsQuery: 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 ErrIntOverflowProject
|
|
}
|
|
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 ErrInvalidLengthProject
|
|
}
|
|
postIndex := iNdEx + intStringLen
|
|
if postIndex < 0 {
|
|
return ErrInvalidLengthProject
|
|
}
|
|
if postIndex > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
m.Name = string(dAtA[iNdEx:postIndex])
|
|
iNdEx = postIndex
|
|
default:
|
|
iNdEx = preIndex
|
|
skippy, err := skipProject(dAtA[iNdEx:])
|
|
if err != nil {
|
|
return err
|
|
}
|
|
if (skippy < 0) || (iNdEx+skippy) < 0 {
|
|
return ErrInvalidLengthProject
|
|
}
|
|
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 *SyncWindowsResponse) 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 ErrIntOverflowProject
|
|
}
|
|
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: SyncWindowsResponse: wiretype end group for non-group")
|
|
}
|
|
if fieldNum <= 0 {
|
|
return fmt.Errorf("proto: SyncWindowsResponse: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
}
|
|
switch fieldNum {
|
|
case 1:
|
|
if wireType != 2 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Windows", wireType)
|
|
}
|
|
var msglen int
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowProject
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
msglen |= int(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
if msglen < 0 {
|
|
return ErrInvalidLengthProject
|
|
}
|
|
postIndex := iNdEx + msglen
|
|
if postIndex < 0 {
|
|
return ErrInvalidLengthProject
|
|
}
|
|
if postIndex > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
m.Windows = append(m.Windows, &v1alpha1.SyncWindow{})
|
|
if err := m.Windows[len(m.Windows)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
return err
|
|
}
|
|
iNdEx = postIndex
|
|
default:
|
|
iNdEx = preIndex
|
|
skippy, err := skipProject(dAtA[iNdEx:])
|
|
if err != nil {
|
|
return err
|
|
}
|
|
if (skippy < 0) || (iNdEx+skippy) < 0 {
|
|
return ErrInvalidLengthProject
|
|
}
|
|
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 *GlobalProjectsResponse) 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 ErrIntOverflowProject
|
|
}
|
|
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: GlobalProjectsResponse: wiretype end group for non-group")
|
|
}
|
|
if fieldNum <= 0 {
|
|
return fmt.Errorf("proto: GlobalProjectsResponse: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
}
|
|
switch fieldNum {
|
|
case 1:
|
|
if wireType != 2 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Items", wireType)
|
|
}
|
|
var msglen int
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowProject
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
msglen |= int(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
if msglen < 0 {
|
|
return ErrInvalidLengthProject
|
|
}
|
|
postIndex := iNdEx + msglen
|
|
if postIndex < 0 {
|
|
return ErrInvalidLengthProject
|
|
}
|
|
if postIndex > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
m.Items = append(m.Items, &v1alpha1.AppProject{})
|
|
if err := m.Items[len(m.Items)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
return err
|
|
}
|
|
iNdEx = postIndex
|
|
default:
|
|
iNdEx = preIndex
|
|
skippy, err := skipProject(dAtA[iNdEx:])
|
|
if err != nil {
|
|
return err
|
|
}
|
|
if (skippy < 0) || (iNdEx+skippy) < 0 {
|
|
return ErrInvalidLengthProject
|
|
}
|
|
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 *DetailedProjectsResponse) 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 ErrIntOverflowProject
|
|
}
|
|
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: DetailedProjectsResponse: wiretype end group for non-group")
|
|
}
|
|
if fieldNum <= 0 {
|
|
return fmt.Errorf("proto: DetailedProjectsResponse: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
}
|
|
switch fieldNum {
|
|
case 1:
|
|
if wireType != 2 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field GlobalProjects", wireType)
|
|
}
|
|
var msglen int
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowProject
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
msglen |= int(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
if msglen < 0 {
|
|
return ErrInvalidLengthProject
|
|
}
|
|
postIndex := iNdEx + msglen
|
|
if postIndex < 0 {
|
|
return ErrInvalidLengthProject
|
|
}
|
|
if postIndex > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
m.GlobalProjects = append(m.GlobalProjects, &v1alpha1.AppProject{})
|
|
if err := m.GlobalProjects[len(m.GlobalProjects)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
return err
|
|
}
|
|
iNdEx = postIndex
|
|
case 2:
|
|
if wireType != 2 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Project", wireType)
|
|
}
|
|
var msglen int
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowProject
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
msglen |= int(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
if msglen < 0 {
|
|
return ErrInvalidLengthProject
|
|
}
|
|
postIndex := iNdEx + msglen
|
|
if postIndex < 0 {
|
|
return ErrInvalidLengthProject
|
|
}
|
|
if postIndex > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
if m.Project == nil {
|
|
m.Project = &v1alpha1.AppProject{}
|
|
}
|
|
if err := m.Project.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
return err
|
|
}
|
|
iNdEx = postIndex
|
|
case 3:
|
|
if wireType != 2 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Repositories", wireType)
|
|
}
|
|
var msglen int
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowProject
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
msglen |= int(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
if msglen < 0 {
|
|
return ErrInvalidLengthProject
|
|
}
|
|
postIndex := iNdEx + msglen
|
|
if postIndex < 0 {
|
|
return ErrInvalidLengthProject
|
|
}
|
|
if postIndex > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
m.Repositories = append(m.Repositories, &v1alpha1.Repository{})
|
|
if err := m.Repositories[len(m.Repositories)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
return err
|
|
}
|
|
iNdEx = postIndex
|
|
case 4:
|
|
if wireType != 2 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Clusters", wireType)
|
|
}
|
|
var msglen int
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowProject
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
msglen |= int(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
if msglen < 0 {
|
|
return ErrInvalidLengthProject
|
|
}
|
|
postIndex := iNdEx + msglen
|
|
if postIndex < 0 {
|
|
return ErrInvalidLengthProject
|
|
}
|
|
if postIndex > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
m.Clusters = append(m.Clusters, &v1alpha1.Cluster{})
|
|
if err := m.Clusters[len(m.Clusters)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
return err
|
|
}
|
|
iNdEx = postIndex
|
|
default:
|
|
iNdEx = preIndex
|
|
skippy, err := skipProject(dAtA[iNdEx:])
|
|
if err != nil {
|
|
return err
|
|
}
|
|
if (skippy < 0) || (iNdEx+skippy) < 0 {
|
|
return ErrInvalidLengthProject
|
|
}
|
|
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 *ListProjectLinksRequest) 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 ErrIntOverflowProject
|
|
}
|
|
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: ListProjectLinksRequest: wiretype end group for non-group")
|
|
}
|
|
if fieldNum <= 0 {
|
|
return fmt.Errorf("proto: ListProjectLinksRequest: 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 ErrIntOverflowProject
|
|
}
|
|
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 ErrInvalidLengthProject
|
|
}
|
|
postIndex := iNdEx + intStringLen
|
|
if postIndex < 0 {
|
|
return ErrInvalidLengthProject
|
|
}
|
|
if postIndex > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
m.Name = string(dAtA[iNdEx:postIndex])
|
|
iNdEx = postIndex
|
|
default:
|
|
iNdEx = preIndex
|
|
skippy, err := skipProject(dAtA[iNdEx:])
|
|
if err != nil {
|
|
return err
|
|
}
|
|
if (skippy < 0) || (iNdEx+skippy) < 0 {
|
|
return ErrInvalidLengthProject
|
|
}
|
|
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 skipProject(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, ErrIntOverflowProject
|
|
}
|
|
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, ErrIntOverflowProject
|
|
}
|
|
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, ErrIntOverflowProject
|
|
}
|
|
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, ErrInvalidLengthProject
|
|
}
|
|
iNdEx += length
|
|
case 3:
|
|
depth++
|
|
case 4:
|
|
if depth == 0 {
|
|
return 0, ErrUnexpectedEndOfGroupProject
|
|
}
|
|
depth--
|
|
case 5:
|
|
iNdEx += 4
|
|
default:
|
|
return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
|
|
}
|
|
if iNdEx < 0 {
|
|
return 0, ErrInvalidLengthProject
|
|
}
|
|
if depth == 0 {
|
|
return iNdEx, nil
|
|
}
|
|
}
|
|
return 0, io.ErrUnexpectedEOF
|
|
}
|
|
|
|
var (
|
|
ErrInvalidLengthProject = fmt.Errorf("proto: negative length found during unmarshaling")
|
|
ErrIntOverflowProject = fmt.Errorf("proto: integer overflow")
|
|
ErrUnexpectedEndOfGroupProject = fmt.Errorf("proto: unexpected end of group")
|
|
)
|