// Copyright (c) 2021 Gitpod GmbH. All rights reserved. // Licensed under the GNU Affero General Public License (AGPL). // See License-AGPL.txt in the project root for license information. // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.25.0 // protoc v3.15.5 // source: initializer.proto package api import ( proto "github.com/golang/protobuf/proto" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "reflect" sync "sync" ) const ( // Verify that this generated code is sufficiently up-to-date. _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) // Verify that runtime/protoimpl is sufficiently up-to-date. _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) ) // This is a compile-time assertion that a sufficiently up-to-date version // of the legacy proto package is being used. const _ = proto.ProtoPackageIsVersion4 // CloneTargetMode is the target state in which we want to leave a GitWorkspace type CloneTargetMode int32 const ( // REMOTE_HEAD has the local WS point at the remote branch head CloneTargetMode_REMOTE_HEAD CloneTargetMode = 0 // REMOTE_COMMIT has the local WS point at a specific commit CloneTargetMode_REMOTE_COMMIT CloneTargetMode = 1 // REMOTE_BRANCH has the local WS point at a remote branch CloneTargetMode_REMOTE_BRANCH CloneTargetMode = 2 // LOCAL_BRANCH creates a local branch in the workspace CloneTargetMode_LOCAL_BRANCH CloneTargetMode = 3 ) // Enum value maps for CloneTargetMode. var ( CloneTargetMode_name = map[int32]string{ 0: "REMOTE_HEAD", 1: "REMOTE_COMMIT", 2: "REMOTE_BRANCH", 3: "LOCAL_BRANCH", } CloneTargetMode_value = map[string]int32{ "REMOTE_HEAD": 0, "REMOTE_COMMIT": 1, "REMOTE_BRANCH": 2, "LOCAL_BRANCH": 3, } ) func (x CloneTargetMode) Enum() *CloneTargetMode { p := new(CloneTargetMode) *p = x return p } func (x CloneTargetMode) String() string { return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) } func (CloneTargetMode) Descriptor() protoreflect.EnumDescriptor { return file_initializer_proto_enumTypes[0].Descriptor() } func (CloneTargetMode) Type() protoreflect.EnumType { return &file_initializer_proto_enumTypes[0] } func (x CloneTargetMode) Number() protoreflect.EnumNumber { return protoreflect.EnumNumber(x) } // Deprecated: Use CloneTargetMode.Descriptor instead. func (CloneTargetMode) EnumDescriptor() ([]byte, []int) { return file_initializer_proto_rawDescGZIP(), []int{0} } // GitAuthMethod is the means of authentication used during clone type GitAuthMethod int32 const ( // NO_AUTH disables authentication during clone GitAuthMethod_NO_AUTH GitAuthMethod = 0 // BASIC_AUTH uses HTTP basic auth during clone (fails if repo is not cloned through http) GitAuthMethod_BASIC_AUTH GitAuthMethod = 1 // BASIC_AUTH_OTS uses HTTP basic auth during the clone with the secrets coming from the OTS URL. // Fails if either the OTS download or the clone fail. GitAuthMethod_BASIC_AUTH_OTS GitAuthMethod = 2 ) // Enum value maps for GitAuthMethod. var ( GitAuthMethod_name = map[int32]string{ 0: "NO_AUTH", 1: "BASIC_AUTH", 2: "BASIC_AUTH_OTS", } GitAuthMethod_value = map[string]int32{ "NO_AUTH": 0, "BASIC_AUTH": 1, "BASIC_AUTH_OTS": 2, } ) func (x GitAuthMethod) Enum() *GitAuthMethod { p := new(GitAuthMethod) *p = x return p } func (x GitAuthMethod) String() string { return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) } func (GitAuthMethod) Descriptor() protoreflect.EnumDescriptor { return file_initializer_proto_enumTypes[1].Descriptor() } func (GitAuthMethod) Type() protoreflect.EnumType { return &file_initializer_proto_enumTypes[1] } func (x GitAuthMethod) Number() protoreflect.EnumNumber { return protoreflect.EnumNumber(x) } // Deprecated: Use GitAuthMethod.Descriptor instead. func (GitAuthMethod) EnumDescriptor() ([]byte, []int) { return file_initializer_proto_rawDescGZIP(), []int{1} } // WorkspaceInitializer specifies how a workspace is to be initialized type WorkspaceInitializer struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields // Types that are assignable to Spec: // *WorkspaceInitializer_Empty // *WorkspaceInitializer_Git // *WorkspaceInitializer_Snapshot // *WorkspaceInitializer_Prebuild Spec isWorkspaceInitializer_Spec `protobuf_oneof:"spec"` } func (x *WorkspaceInitializer) Reset() { *x = WorkspaceInitializer{} if protoimpl.UnsafeEnabled { mi := &file_initializer_proto_msgTypes[0] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *WorkspaceInitializer) String() string { return protoimpl.X.MessageStringOf(x) } func (*WorkspaceInitializer) ProtoMessage() {} func (x *WorkspaceInitializer) ProtoReflect() protoreflect.Message { mi := &file_initializer_proto_msgTypes[0] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use WorkspaceInitializer.ProtoReflect.Descriptor instead. func (*WorkspaceInitializer) Descriptor() ([]byte, []int) { return file_initializer_proto_rawDescGZIP(), []int{0} } func (m *WorkspaceInitializer) GetSpec() isWorkspaceInitializer_Spec { if m != nil { return m.Spec } return nil } func (x *WorkspaceInitializer) GetEmpty() *EmptyInitializer { if x, ok := x.GetSpec().(*WorkspaceInitializer_Empty); ok { return x.Empty } return nil } func (x *WorkspaceInitializer) GetGit() *GitInitializer { if x, ok := x.GetSpec().(*WorkspaceInitializer_Git); ok { return x.Git } return nil } func (x *WorkspaceInitializer) GetSnapshot() *SnapshotInitializer { if x, ok := x.GetSpec().(*WorkspaceInitializer_Snapshot); ok { return x.Snapshot } return nil } func (x *WorkspaceInitializer) GetPrebuild() *PrebuildInitializer { if x, ok := x.GetSpec().(*WorkspaceInitializer_Prebuild); ok { return x.Prebuild } return nil } type isWorkspaceInitializer_Spec interface { isWorkspaceInitializer_Spec() } type WorkspaceInitializer_Empty struct { Empty *EmptyInitializer `protobuf:"bytes,1,opt,name=empty,proto3,oneof"` } type WorkspaceInitializer_Git struct { Git *GitInitializer `protobuf:"bytes,2,opt,name=git,proto3,oneof"` } type WorkspaceInitializer_Snapshot struct { Snapshot *SnapshotInitializer `protobuf:"bytes,3,opt,name=snapshot,proto3,oneof"` } type WorkspaceInitializer_Prebuild struct { Prebuild *PrebuildInitializer `protobuf:"bytes,4,opt,name=prebuild,proto3,oneof"` } func (*WorkspaceInitializer_Empty) isWorkspaceInitializer_Spec() {} func (*WorkspaceInitializer_Git) isWorkspaceInitializer_Spec() {} func (*WorkspaceInitializer_Snapshot) isWorkspaceInitializer_Spec() {} func (*WorkspaceInitializer_Prebuild) isWorkspaceInitializer_Spec() {} type EmptyInitializer struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields } func (x *EmptyInitializer) Reset() { *x = EmptyInitializer{} if protoimpl.UnsafeEnabled { mi := &file_initializer_proto_msgTypes[1] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *EmptyInitializer) String() string { return protoimpl.X.MessageStringOf(x) } func (*EmptyInitializer) ProtoMessage() {} func (x *EmptyInitializer) ProtoReflect() protoreflect.Message { mi := &file_initializer_proto_msgTypes[1] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use EmptyInitializer.ProtoReflect.Descriptor instead. func (*EmptyInitializer) Descriptor() ([]byte, []int) { return file_initializer_proto_rawDescGZIP(), []int{1} } type GitInitializer struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields // remote_uri is the Git remote origin RemoteUri string `protobuf:"bytes,1,opt,name=remote_uri,json=remoteUri,proto3" json:"remote_uri,omitempty"` // upstream_Remote_uri is the fork upstream of a repository Upstream_RemoteUri string `protobuf:"bytes,2,opt,name=upstream_Remote_uri,json=upstreamRemoteUri,proto3" json:"upstream_Remote_uri,omitempty"` // the target mode determines what gets checked out TargetMode CloneTargetMode `protobuf:"varint,3,opt,name=target_mode,json=targetMode,proto3,enum=contentservice.CloneTargetMode" json:"target_mode,omitempty"` // the value for the clone target mode - use depends on the target mode CloneTaget string `protobuf:"bytes,4,opt,name=clone_taget,json=cloneTaget,proto3" json:"clone_taget,omitempty"` // a path relative to the workspace root in which the code will be checked out to CheckoutLocation string `protobuf:"bytes,5,opt,name=checkout_location,json=checkoutLocation,proto3" json:"checkout_location,omitempty"` // config specifies the Git configuration for this workspace Config *GitConfig `protobuf:"bytes,6,opt,name=config,proto3" json:"config,omitempty"` } func (x *GitInitializer) Reset() { *x = GitInitializer{} if protoimpl.UnsafeEnabled { mi := &file_initializer_proto_msgTypes[2] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *GitInitializer) String() string { return protoimpl.X.MessageStringOf(x) } func (*GitInitializer) ProtoMessage() {} func (x *GitInitializer) ProtoReflect() protoreflect.Message { mi := &file_initializer_proto_msgTypes[2] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use GitInitializer.ProtoReflect.Descriptor instead. func (*GitInitializer) Descriptor() ([]byte, []int) { return file_initializer_proto_rawDescGZIP(), []int{2} } func (x *GitInitializer) GetRemoteUri() string { if x != nil { return x.RemoteUri } return "" } func (x *GitInitializer) GetUpstream_RemoteUri() string { if x != nil { return x.Upstream_RemoteUri } return "" } func (x *GitInitializer) GetTargetMode() CloneTargetMode { if x != nil { return x.TargetMode } return CloneTargetMode_REMOTE_HEAD } func (x *GitInitializer) GetCloneTaget() string { if x != nil { return x.CloneTaget } return "" } func (x *GitInitializer) GetCheckoutLocation() string { if x != nil { return x.CheckoutLocation } return "" } func (x *GitInitializer) GetConfig() *GitConfig { if x != nil { return x.Config } return nil } type GitConfig struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields // custom config values to be set on clone provided through `.gitpod.yml` CustomConfig map[string]string `protobuf:"bytes,1,rep,name=custom_config,json=customConfig,proto3" json:"custom_config,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` // authentication method Authentication GitAuthMethod `protobuf:"varint,2,opt,name=authentication,proto3,enum=contentservice.GitAuthMethod" json:"authentication,omitempty"` // auth_user is the username used to authenticate the clone AuthUser string `protobuf:"bytes,3,opt,name=auth_user,json=authUser,proto3" json:"auth_user,omitempty"` // auth_password is the password used to authenticate the clone (can also be an API token) AuthPassword string `protobuf:"bytes,4,opt,name=auth_password,json=authPassword,proto3" json:"auth_password,omitempty"` // auth_ots is a URL where one can download the authentication secret (:) // using a GET request. AuthOts string `protobuf:"bytes,5,opt,name=auth_ots,json=authOts,proto3" json:"auth_ots,omitempty"` } func (x *GitConfig) Reset() { *x = GitConfig{} if protoimpl.UnsafeEnabled { mi := &file_initializer_proto_msgTypes[3] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *GitConfig) String() string { return protoimpl.X.MessageStringOf(x) } func (*GitConfig) ProtoMessage() {} func (x *GitConfig) ProtoReflect() protoreflect.Message { mi := &file_initializer_proto_msgTypes[3] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use GitConfig.ProtoReflect.Descriptor instead. func (*GitConfig) Descriptor() ([]byte, []int) { return file_initializer_proto_rawDescGZIP(), []int{3} } func (x *GitConfig) GetCustomConfig() map[string]string { if x != nil { return x.CustomConfig } return nil } func (x *GitConfig) GetAuthentication() GitAuthMethod { if x != nil { return x.Authentication } return GitAuthMethod_NO_AUTH } func (x *GitConfig) GetAuthUser() string { if x != nil { return x.AuthUser } return "" } func (x *GitConfig) GetAuthPassword() string { if x != nil { return x.AuthPassword } return "" } func (x *GitConfig) GetAuthOts() string { if x != nil { return x.AuthOts } return "" } type SnapshotInitializer struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields // name of the snapshot to restore Snapshot string `protobuf:"bytes,1,opt,name=snapshot,proto3" json:"snapshot,omitempty"` } func (x *SnapshotInitializer) Reset() { *x = SnapshotInitializer{} if protoimpl.UnsafeEnabled { mi := &file_initializer_proto_msgTypes[4] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *SnapshotInitializer) String() string { return protoimpl.X.MessageStringOf(x) } func (*SnapshotInitializer) ProtoMessage() {} func (x *SnapshotInitializer) ProtoReflect() protoreflect.Message { mi := &file_initializer_proto_msgTypes[4] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use SnapshotInitializer.ProtoReflect.Descriptor instead. func (*SnapshotInitializer) Descriptor() ([]byte, []int) { return file_initializer_proto_rawDescGZIP(), []int{4} } func (x *SnapshotInitializer) GetSnapshot() string { if x != nil { return x.Snapshot } return "" } // A prebuild initializer combines snapshots with Git: first we try the snapshot, then apply the Git clone target. // If restoring the snapshot fails, we fall back to a regular Git initializer. type PrebuildInitializer struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields Prebuild *SnapshotInitializer `protobuf:"bytes,1,opt,name=prebuild,proto3" json:"prebuild,omitempty"` Git *GitInitializer `protobuf:"bytes,2,opt,name=git,proto3" json:"git,omitempty"` } func (x *PrebuildInitializer) Reset() { *x = PrebuildInitializer{} if protoimpl.UnsafeEnabled { mi := &file_initializer_proto_msgTypes[5] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *PrebuildInitializer) String() string { return protoimpl.X.MessageStringOf(x) } func (*PrebuildInitializer) ProtoMessage() {} func (x *PrebuildInitializer) ProtoReflect() protoreflect.Message { mi := &file_initializer_proto_msgTypes[5] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use PrebuildInitializer.ProtoReflect.Descriptor instead. func (*PrebuildInitializer) Descriptor() ([]byte, []int) { return file_initializer_proto_rawDescGZIP(), []int{5} } func (x *PrebuildInitializer) GetPrebuild() *SnapshotInitializer { if x != nil { return x.Prebuild } return nil } func (x *PrebuildInitializer) GetGit() *GitInitializer { if x != nil { return x.Git } return nil } // GitStatus describes the current Git working copy status, akin to a combination of "git status" and "git branch" type GitStatus struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields // branch is branch we're currently on Branch string `protobuf:"bytes,1,opt,name=branch,proto3" json:"branch,omitempty"` // latest_commit is the most recent commit on the current branch LatestCommit string `protobuf:"bytes,2,opt,name=latest_commit,json=latestCommit,proto3" json:"latest_commit,omitempty"` // uncommited_files is the number of uncommitted files, possibly truncated UncommitedFiles []string `protobuf:"bytes,3,rep,name=uncommited_files,json=uncommitedFiles,proto3" json:"uncommited_files,omitempty"` // the total number of uncommited files TotalUncommitedFiles int64 `protobuf:"varint,6,opt,name=total_uncommited_files,json=totalUncommitedFiles,proto3" json:"total_uncommited_files,omitempty"` // untracked_files is the number of untracked files in the workspace, possibly truncated UntrackedFiles []string `protobuf:"bytes,4,rep,name=untracked_files,json=untrackedFiles,proto3" json:"untracked_files,omitempty"` // the total number of untracked files TotalUntrackedFiles int64 `protobuf:"varint,7,opt,name=total_untracked_files,json=totalUntrackedFiles,proto3" json:"total_untracked_files,omitempty"` // unpushed_commits is the number of unpushed changes in the workspace, possibly truncated UnpushedCommits []string `protobuf:"bytes,5,rep,name=unpushed_commits,json=unpushedCommits,proto3" json:"unpushed_commits,omitempty"` // the total number of unpushed changes TotalUnpushedCommits int64 `protobuf:"varint,8,opt,name=total_unpushed_commits,json=totalUnpushedCommits,proto3" json:"total_unpushed_commits,omitempty"` } func (x *GitStatus) Reset() { *x = GitStatus{} if protoimpl.UnsafeEnabled { mi := &file_initializer_proto_msgTypes[6] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *GitStatus) String() string { return protoimpl.X.MessageStringOf(x) } func (*GitStatus) ProtoMessage() {} func (x *GitStatus) ProtoReflect() protoreflect.Message { mi := &file_initializer_proto_msgTypes[6] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use GitStatus.ProtoReflect.Descriptor instead. func (*GitStatus) Descriptor() ([]byte, []int) { return file_initializer_proto_rawDescGZIP(), []int{6} } func (x *GitStatus) GetBranch() string { if x != nil { return x.Branch } return "" } func (x *GitStatus) GetLatestCommit() string { if x != nil { return x.LatestCommit } return "" } func (x *GitStatus) GetUncommitedFiles() []string { if x != nil { return x.UncommitedFiles } return nil } func (x *GitStatus) GetTotalUncommitedFiles() int64 { if x != nil { return x.TotalUncommitedFiles } return 0 } func (x *GitStatus) GetUntrackedFiles() []string { if x != nil { return x.UntrackedFiles } return nil } func (x *GitStatus) GetTotalUntrackedFiles() int64 { if x != nil { return x.TotalUntrackedFiles } return 0 } func (x *GitStatus) GetUnpushedCommits() []string { if x != nil { return x.UnpushedCommits } return nil } func (x *GitStatus) GetTotalUnpushedCommits() int64 { if x != nil { return x.TotalUnpushedCommits } return 0 } var File_initializer_proto protoreflect.FileDescriptor var file_initializer_proto_rawDesc = []byte{ 0x0a, 0x11, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x6c, 0x69, 0x7a, 0x65, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0e, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x22, 0x92, 0x02, 0x0a, 0x14, 0x57, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x49, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x6c, 0x69, 0x7a, 0x65, 0x72, 0x12, 0x38, 0x0a, 0x05, 0x65, 0x6d, 0x70, 0x74, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x49, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x6c, 0x69, 0x7a, 0x65, 0x72, 0x48, 0x00, 0x52, 0x05, 0x65, 0x6d, 0x70, 0x74, 0x79, 0x12, 0x32, 0x0a, 0x03, 0x67, 0x69, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x47, 0x69, 0x74, 0x49, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x6c, 0x69, 0x7a, 0x65, 0x72, 0x48, 0x00, 0x52, 0x03, 0x67, 0x69, 0x74, 0x12, 0x41, 0x0a, 0x08, 0x73, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x23, 0x2e, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x53, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x49, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x6c, 0x69, 0x7a, 0x65, 0x72, 0x48, 0x00, 0x52, 0x08, 0x73, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x12, 0x41, 0x0a, 0x08, 0x70, 0x72, 0x65, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x23, 0x2e, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x50, 0x72, 0x65, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x49, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x6c, 0x69, 0x7a, 0x65, 0x72, 0x48, 0x00, 0x52, 0x08, 0x70, 0x72, 0x65, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x42, 0x06, 0x0a, 0x04, 0x73, 0x70, 0x65, 0x63, 0x22, 0x12, 0x0a, 0x10, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x49, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x6c, 0x69, 0x7a, 0x65, 0x72, 0x22, 0xa2, 0x02, 0x0a, 0x0e, 0x47, 0x69, 0x74, 0x49, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x6c, 0x69, 0x7a, 0x65, 0x72, 0x12, 0x1d, 0x0a, 0x0a, 0x72, 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x5f, 0x75, 0x72, 0x69, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x72, 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x55, 0x72, 0x69, 0x12, 0x2e, 0x0a, 0x13, 0x75, 0x70, 0x73, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x5f, 0x52, 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x5f, 0x75, 0x72, 0x69, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x11, 0x75, 0x70, 0x73, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x52, 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x55, 0x72, 0x69, 0x12, 0x40, 0x0a, 0x0b, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x5f, 0x6d, 0x6f, 0x64, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1f, 0x2e, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x43, 0x6c, 0x6f, 0x6e, 0x65, 0x54, 0x61, 0x72, 0x67, 0x65, 0x74, 0x4d, 0x6f, 0x64, 0x65, 0x52, 0x0a, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x4d, 0x6f, 0x64, 0x65, 0x12, 0x1f, 0x0a, 0x0b, 0x63, 0x6c, 0x6f, 0x6e, 0x65, 0x5f, 0x74, 0x61, 0x67, 0x65, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x63, 0x6c, 0x6f, 0x6e, 0x65, 0x54, 0x61, 0x67, 0x65, 0x74, 0x12, 0x2b, 0x0a, 0x11, 0x63, 0x68, 0x65, 0x63, 0x6b, 0x6f, 0x75, 0x74, 0x5f, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x10, 0x63, 0x68, 0x65, 0x63, 0x6b, 0x6f, 0x75, 0x74, 0x4c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x31, 0x0a, 0x06, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x47, 0x69, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x06, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x22, 0xc2, 0x02, 0x0a, 0x09, 0x47, 0x69, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x50, 0x0a, 0x0d, 0x63, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2b, 0x2e, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x47, 0x69, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x43, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0c, 0x63, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x45, 0x0a, 0x0e, 0x61, 0x75, 0x74, 0x68, 0x65, 0x6e, 0x74, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1d, 0x2e, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x47, 0x69, 0x74, 0x41, 0x75, 0x74, 0x68, 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x52, 0x0e, 0x61, 0x75, 0x74, 0x68, 0x65, 0x6e, 0x74, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x1b, 0x0a, 0x09, 0x61, 0x75, 0x74, 0x68, 0x5f, 0x75, 0x73, 0x65, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x61, 0x75, 0x74, 0x68, 0x55, 0x73, 0x65, 0x72, 0x12, 0x23, 0x0a, 0x0d, 0x61, 0x75, 0x74, 0x68, 0x5f, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x61, 0x75, 0x74, 0x68, 0x50, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x12, 0x19, 0x0a, 0x08, 0x61, 0x75, 0x74, 0x68, 0x5f, 0x6f, 0x74, 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x61, 0x75, 0x74, 0x68, 0x4f, 0x74, 0x73, 0x1a, 0x3f, 0x0a, 0x11, 0x43, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0x31, 0x0a, 0x13, 0x53, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x49, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x6c, 0x69, 0x7a, 0x65, 0x72, 0x12, 0x1a, 0x0a, 0x08, 0x73, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x73, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x22, 0x88, 0x01, 0x0a, 0x13, 0x50, 0x72, 0x65, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x49, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x6c, 0x69, 0x7a, 0x65, 0x72, 0x12, 0x3f, 0x0a, 0x08, 0x70, 0x72, 0x65, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x23, 0x2e, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x53, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x49, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x6c, 0x69, 0x7a, 0x65, 0x72, 0x52, 0x08, 0x70, 0x72, 0x65, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x12, 0x30, 0x0a, 0x03, 0x67, 0x69, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x47, 0x69, 0x74, 0x49, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x6c, 0x69, 0x7a, 0x65, 0x72, 0x52, 0x03, 0x67, 0x69, 0x74, 0x22, 0xe7, 0x02, 0x0a, 0x09, 0x47, 0x69, 0x74, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x16, 0x0a, 0x06, 0x62, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x62, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x12, 0x23, 0x0a, 0x0d, 0x6c, 0x61, 0x74, 0x65, 0x73, 0x74, 0x5f, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x6c, 0x61, 0x74, 0x65, 0x73, 0x74, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x12, 0x29, 0x0a, 0x10, 0x75, 0x6e, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x65, 0x64, 0x5f, 0x66, 0x69, 0x6c, 0x65, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0f, 0x75, 0x6e, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x65, 0x64, 0x46, 0x69, 0x6c, 0x65, 0x73, 0x12, 0x34, 0x0a, 0x16, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x5f, 0x75, 0x6e, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x65, 0x64, 0x5f, 0x66, 0x69, 0x6c, 0x65, 0x73, 0x18, 0x06, 0x20, 0x01, 0x28, 0x03, 0x52, 0x14, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x55, 0x6e, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x65, 0x64, 0x46, 0x69, 0x6c, 0x65, 0x73, 0x12, 0x27, 0x0a, 0x0f, 0x75, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x6b, 0x65, 0x64, 0x5f, 0x66, 0x69, 0x6c, 0x65, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0e, 0x75, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x6b, 0x65, 0x64, 0x46, 0x69, 0x6c, 0x65, 0x73, 0x12, 0x32, 0x0a, 0x15, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x5f, 0x75, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x6b, 0x65, 0x64, 0x5f, 0x66, 0x69, 0x6c, 0x65, 0x73, 0x18, 0x07, 0x20, 0x01, 0x28, 0x03, 0x52, 0x13, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x55, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x6b, 0x65, 0x64, 0x46, 0x69, 0x6c, 0x65, 0x73, 0x12, 0x29, 0x0a, 0x10, 0x75, 0x6e, 0x70, 0x75, 0x73, 0x68, 0x65, 0x64, 0x5f, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0f, 0x75, 0x6e, 0x70, 0x75, 0x73, 0x68, 0x65, 0x64, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x73, 0x12, 0x34, 0x0a, 0x16, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x5f, 0x75, 0x6e, 0x70, 0x75, 0x73, 0x68, 0x65, 0x64, 0x5f, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x73, 0x18, 0x08, 0x20, 0x01, 0x28, 0x03, 0x52, 0x14, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x55, 0x6e, 0x70, 0x75, 0x73, 0x68, 0x65, 0x64, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x73, 0x2a, 0x5a, 0x0a, 0x0f, 0x43, 0x6c, 0x6f, 0x6e, 0x65, 0x54, 0x61, 0x72, 0x67, 0x65, 0x74, 0x4d, 0x6f, 0x64, 0x65, 0x12, 0x0f, 0x0a, 0x0b, 0x52, 0x45, 0x4d, 0x4f, 0x54, 0x45, 0x5f, 0x48, 0x45, 0x41, 0x44, 0x10, 0x00, 0x12, 0x11, 0x0a, 0x0d, 0x52, 0x45, 0x4d, 0x4f, 0x54, 0x45, 0x5f, 0x43, 0x4f, 0x4d, 0x4d, 0x49, 0x54, 0x10, 0x01, 0x12, 0x11, 0x0a, 0x0d, 0x52, 0x45, 0x4d, 0x4f, 0x54, 0x45, 0x5f, 0x42, 0x52, 0x41, 0x4e, 0x43, 0x48, 0x10, 0x02, 0x12, 0x10, 0x0a, 0x0c, 0x4c, 0x4f, 0x43, 0x41, 0x4c, 0x5f, 0x42, 0x52, 0x41, 0x4e, 0x43, 0x48, 0x10, 0x03, 0x2a, 0x40, 0x0a, 0x0d, 0x47, 0x69, 0x74, 0x41, 0x75, 0x74, 0x68, 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x12, 0x0b, 0x0a, 0x07, 0x4e, 0x4f, 0x5f, 0x41, 0x55, 0x54, 0x48, 0x10, 0x00, 0x12, 0x0e, 0x0a, 0x0a, 0x42, 0x41, 0x53, 0x49, 0x43, 0x5f, 0x41, 0x55, 0x54, 0x48, 0x10, 0x01, 0x12, 0x12, 0x0a, 0x0e, 0x42, 0x41, 0x53, 0x49, 0x43, 0x5f, 0x41, 0x55, 0x54, 0x48, 0x5f, 0x4f, 0x54, 0x53, 0x10, 0x02, 0x42, 0x31, 0x5a, 0x2f, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x69, 0x74, 0x70, 0x6f, 0x64, 0x2d, 0x69, 0x6f, 0x2f, 0x67, 0x69, 0x74, 0x70, 0x6f, 0x64, 0x2f, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x2d, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( file_initializer_proto_rawDescOnce sync.Once file_initializer_proto_rawDescData = file_initializer_proto_rawDesc ) func file_initializer_proto_rawDescGZIP() []byte { file_initializer_proto_rawDescOnce.Do(func() { file_initializer_proto_rawDescData = protoimpl.X.CompressGZIP(file_initializer_proto_rawDescData) }) return file_initializer_proto_rawDescData } var file_initializer_proto_enumTypes = make([]protoimpl.EnumInfo, 2) var file_initializer_proto_msgTypes = make([]protoimpl.MessageInfo, 8) var file_initializer_proto_goTypes = []interface{}{ (CloneTargetMode)(0), // 0: contentservice.CloneTargetMode (GitAuthMethod)(0), // 1: contentservice.GitAuthMethod (*WorkspaceInitializer)(nil), // 2: contentservice.WorkspaceInitializer (*EmptyInitializer)(nil), // 3: contentservice.EmptyInitializer (*GitInitializer)(nil), // 4: contentservice.GitInitializer (*GitConfig)(nil), // 5: contentservice.GitConfig (*SnapshotInitializer)(nil), // 6: contentservice.SnapshotInitializer (*PrebuildInitializer)(nil), // 7: contentservice.PrebuildInitializer (*GitStatus)(nil), // 8: contentservice.GitStatus nil, // 9: contentservice.GitConfig.CustomConfigEntry } var file_initializer_proto_depIdxs = []int32{ 3, // 0: contentservice.WorkspaceInitializer.empty:type_name -> contentservice.EmptyInitializer 4, // 1: contentservice.WorkspaceInitializer.git:type_name -> contentservice.GitInitializer 6, // 2: contentservice.WorkspaceInitializer.snapshot:type_name -> contentservice.SnapshotInitializer 7, // 3: contentservice.WorkspaceInitializer.prebuild:type_name -> contentservice.PrebuildInitializer 0, // 4: contentservice.GitInitializer.target_mode:type_name -> contentservice.CloneTargetMode 5, // 5: contentservice.GitInitializer.config:type_name -> contentservice.GitConfig 9, // 6: contentservice.GitConfig.custom_config:type_name -> contentservice.GitConfig.CustomConfigEntry 1, // 7: contentservice.GitConfig.authentication:type_name -> contentservice.GitAuthMethod 6, // 8: contentservice.PrebuildInitializer.prebuild:type_name -> contentservice.SnapshotInitializer 4, // 9: contentservice.PrebuildInitializer.git:type_name -> contentservice.GitInitializer 10, // [10:10] is the sub-list for method output_type 10, // [10:10] is the sub-list for method input_type 10, // [10:10] is the sub-list for extension type_name 10, // [10:10] is the sub-list for extension extendee 0, // [0:10] is the sub-list for field type_name } func init() { file_initializer_proto_init() } func file_initializer_proto_init() { if File_initializer_proto != nil { return } if !protoimpl.UnsafeEnabled { file_initializer_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*WorkspaceInitializer); i { case 0: return &v.state case 1: return &v.sizeCache case 2: return &v.unknownFields default: return nil } } file_initializer_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*EmptyInitializer); i { case 0: return &v.state case 1: return &v.sizeCache case 2: return &v.unknownFields default: return nil } } file_initializer_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*GitInitializer); i { case 0: return &v.state case 1: return &v.sizeCache case 2: return &v.unknownFields default: return nil } } file_initializer_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*GitConfig); i { case 0: return &v.state case 1: return &v.sizeCache case 2: return &v.unknownFields default: return nil } } file_initializer_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*SnapshotInitializer); i { case 0: return &v.state case 1: return &v.sizeCache case 2: return &v.unknownFields default: return nil } } file_initializer_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*PrebuildInitializer); i { case 0: return &v.state case 1: return &v.sizeCache case 2: return &v.unknownFields default: return nil } } file_initializer_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*GitStatus); i { case 0: return &v.state case 1: return &v.sizeCache case 2: return &v.unknownFields default: return nil } } } file_initializer_proto_msgTypes[0].OneofWrappers = []interface{}{ (*WorkspaceInitializer_Empty)(nil), (*WorkspaceInitializer_Git)(nil), (*WorkspaceInitializer_Snapshot)(nil), (*WorkspaceInitializer_Prebuild)(nil), } type x struct{} out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: file_initializer_proto_rawDesc, NumEnums: 2, NumMessages: 8, NumExtensions: 0, NumServices: 0, }, GoTypes: file_initializer_proto_goTypes, DependencyIndexes: file_initializer_proto_depIdxs, EnumInfos: file_initializer_proto_enumTypes, MessageInfos: file_initializer_proto_msgTypes, }.Build() File_initializer_proto = out.File file_initializer_proto_rawDesc = nil file_initializer_proto_goTypes = nil file_initializer_proto_depIdxs = nil }