| // Copyright 2019 Google LLC. |
| // |
| // Licensed under the Apache License, Version 2.0 (the "License"); |
| // you may not use this file except in compliance with the License. |
| // You may obtain a copy of the License at |
| // |
| // http://www.apache.org/licenses/LICENSE-2.0 |
| // |
| // Unless required by applicable law or agreed to in writing, software |
| // distributed under the License is distributed on an "AS IS" BASIS, |
| // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| // See the License for the specific language governing permissions and |
| // limitations under the License. |
| // |
| |
| // Code generated by protoc-gen-go. DO NOT EDIT. |
| // versions: |
| // protoc-gen-go v1.22.0 |
| // protoc v3.12.2 |
| // source: google/devtools/source/v1/source_context.proto |
| |
| package source |
| |
| import ( |
| reflect "reflect" |
| sync "sync" |
| |
| proto "github.com/golang/protobuf/proto" |
| _ "google.golang.org/genproto/googleapis/api/annotations" |
| protoreflect "google.golang.org/protobuf/reflect/protoreflect" |
| protoimpl "google.golang.org/protobuf/runtime/protoimpl" |
| ) |
| |
| 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 |
| |
| // The type of an Alias. |
| type AliasContext_Kind int32 |
| |
| const ( |
| // Do not use. |
| AliasContext_ANY AliasContext_Kind = 0 |
| // Git tag |
| AliasContext_FIXED AliasContext_Kind = 1 |
| // Git branch |
| AliasContext_MOVABLE AliasContext_Kind = 2 |
| // OTHER is used to specify non-standard aliases, those not of the kinds |
| // above. For example, if a Git repo has a ref named "refs/foo/bar", it |
| // is considered to be of kind OTHER. |
| AliasContext_OTHER AliasContext_Kind = 4 |
| ) |
| |
| // Enum value maps for AliasContext_Kind. |
| var ( |
| AliasContext_Kind_name = map[int32]string{ |
| 0: "ANY", |
| 1: "FIXED", |
| 2: "MOVABLE", |
| 4: "OTHER", |
| } |
| AliasContext_Kind_value = map[string]int32{ |
| "ANY": 0, |
| "FIXED": 1, |
| "MOVABLE": 2, |
| "OTHER": 4, |
| } |
| ) |
| |
| func (x AliasContext_Kind) Enum() *AliasContext_Kind { |
| p := new(AliasContext_Kind) |
| *p = x |
| return p |
| } |
| |
| func (x AliasContext_Kind) String() string { |
| return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) |
| } |
| |
| func (AliasContext_Kind) Descriptor() protoreflect.EnumDescriptor { |
| return file_google_devtools_source_v1_source_context_proto_enumTypes[0].Descriptor() |
| } |
| |
| func (AliasContext_Kind) Type() protoreflect.EnumType { |
| return &file_google_devtools_source_v1_source_context_proto_enumTypes[0] |
| } |
| |
| func (x AliasContext_Kind) Number() protoreflect.EnumNumber { |
| return protoreflect.EnumNumber(x) |
| } |
| |
| // Deprecated: Use AliasContext_Kind.Descriptor instead. |
| func (AliasContext_Kind) EnumDescriptor() ([]byte, []int) { |
| return file_google_devtools_source_v1_source_context_proto_rawDescGZIP(), []int{2, 0} |
| } |
| |
| // A SourceContext is a reference to a tree of files. A SourceContext together |
| // with a path point to a unique revision of a single file or directory. |
| type SourceContext struct { |
| state protoimpl.MessageState |
| sizeCache protoimpl.SizeCache |
| unknownFields protoimpl.UnknownFields |
| |
| // A SourceContext can refer any one of the following types of repositories. |
| // |
| // Types that are assignable to Context: |
| // *SourceContext_CloudRepo |
| // *SourceContext_CloudWorkspace |
| // *SourceContext_Gerrit |
| // *SourceContext_Git |
| Context isSourceContext_Context `protobuf_oneof:"context"` |
| } |
| |
| func (x *SourceContext) Reset() { |
| *x = SourceContext{} |
| if protoimpl.UnsafeEnabled { |
| mi := &file_google_devtools_source_v1_source_context_proto_msgTypes[0] |
| ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| ms.StoreMessageInfo(mi) |
| } |
| } |
| |
| func (x *SourceContext) String() string { |
| return protoimpl.X.MessageStringOf(x) |
| } |
| |
| func (*SourceContext) ProtoMessage() {} |
| |
| func (x *SourceContext) ProtoReflect() protoreflect.Message { |
| mi := &file_google_devtools_source_v1_source_context_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 SourceContext.ProtoReflect.Descriptor instead. |
| func (*SourceContext) Descriptor() ([]byte, []int) { |
| return file_google_devtools_source_v1_source_context_proto_rawDescGZIP(), []int{0} |
| } |
| |
| func (m *SourceContext) GetContext() isSourceContext_Context { |
| if m != nil { |
| return m.Context |
| } |
| return nil |
| } |
| |
| func (x *SourceContext) GetCloudRepo() *CloudRepoSourceContext { |
| if x, ok := x.GetContext().(*SourceContext_CloudRepo); ok { |
| return x.CloudRepo |
| } |
| return nil |
| } |
| |
| func (x *SourceContext) GetCloudWorkspace() *CloudWorkspaceSourceContext { |
| if x, ok := x.GetContext().(*SourceContext_CloudWorkspace); ok { |
| return x.CloudWorkspace |
| } |
| return nil |
| } |
| |
| func (x *SourceContext) GetGerrit() *GerritSourceContext { |
| if x, ok := x.GetContext().(*SourceContext_Gerrit); ok { |
| return x.Gerrit |
| } |
| return nil |
| } |
| |
| func (x *SourceContext) GetGit() *GitSourceContext { |
| if x, ok := x.GetContext().(*SourceContext_Git); ok { |
| return x.Git |
| } |
| return nil |
| } |
| |
| type isSourceContext_Context interface { |
| isSourceContext_Context() |
| } |
| |
| type SourceContext_CloudRepo struct { |
| // A SourceContext referring to a revision in a cloud repo. |
| CloudRepo *CloudRepoSourceContext `protobuf:"bytes,1,opt,name=cloud_repo,json=cloudRepo,proto3,oneof"` |
| } |
| |
| type SourceContext_CloudWorkspace struct { |
| // A SourceContext referring to a snapshot in a cloud workspace. |
| CloudWorkspace *CloudWorkspaceSourceContext `protobuf:"bytes,2,opt,name=cloud_workspace,json=cloudWorkspace,proto3,oneof"` |
| } |
| |
| type SourceContext_Gerrit struct { |
| // A SourceContext referring to a Gerrit project. |
| Gerrit *GerritSourceContext `protobuf:"bytes,3,opt,name=gerrit,proto3,oneof"` |
| } |
| |
| type SourceContext_Git struct { |
| // A SourceContext referring to any third party Git repo (e.g. GitHub). |
| Git *GitSourceContext `protobuf:"bytes,6,opt,name=git,proto3,oneof"` |
| } |
| |
| func (*SourceContext_CloudRepo) isSourceContext_Context() {} |
| |
| func (*SourceContext_CloudWorkspace) isSourceContext_Context() {} |
| |
| func (*SourceContext_Gerrit) isSourceContext_Context() {} |
| |
| func (*SourceContext_Git) isSourceContext_Context() {} |
| |
| // An ExtendedSourceContext is a SourceContext combined with additional |
| // details describing the context. |
| type ExtendedSourceContext struct { |
| state protoimpl.MessageState |
| sizeCache protoimpl.SizeCache |
| unknownFields protoimpl.UnknownFields |
| |
| // Any source context. |
| Context *SourceContext `protobuf:"bytes,1,opt,name=context,proto3" json:"context,omitempty"` |
| // Labels with user defined metadata. |
| Labels map[string]string `protobuf:"bytes,2,rep,name=labels,proto3" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` |
| } |
| |
| func (x *ExtendedSourceContext) Reset() { |
| *x = ExtendedSourceContext{} |
| if protoimpl.UnsafeEnabled { |
| mi := &file_google_devtools_source_v1_source_context_proto_msgTypes[1] |
| ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| ms.StoreMessageInfo(mi) |
| } |
| } |
| |
| func (x *ExtendedSourceContext) String() string { |
| return protoimpl.X.MessageStringOf(x) |
| } |
| |
| func (*ExtendedSourceContext) ProtoMessage() {} |
| |
| func (x *ExtendedSourceContext) ProtoReflect() protoreflect.Message { |
| mi := &file_google_devtools_source_v1_source_context_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 ExtendedSourceContext.ProtoReflect.Descriptor instead. |
| func (*ExtendedSourceContext) Descriptor() ([]byte, []int) { |
| return file_google_devtools_source_v1_source_context_proto_rawDescGZIP(), []int{1} |
| } |
| |
| func (x *ExtendedSourceContext) GetContext() *SourceContext { |
| if x != nil { |
| return x.Context |
| } |
| return nil |
| } |
| |
| func (x *ExtendedSourceContext) GetLabels() map[string]string { |
| if x != nil { |
| return x.Labels |
| } |
| return nil |
| } |
| |
| // An alias to a repo revision. |
| type AliasContext struct { |
| state protoimpl.MessageState |
| sizeCache protoimpl.SizeCache |
| unknownFields protoimpl.UnknownFields |
| |
| // The alias kind. |
| Kind AliasContext_Kind `protobuf:"varint,1,opt,name=kind,proto3,enum=google.devtools.source.v1.AliasContext_Kind" json:"kind,omitempty"` |
| // The alias name. |
| Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` |
| } |
| |
| func (x *AliasContext) Reset() { |
| *x = AliasContext{} |
| if protoimpl.UnsafeEnabled { |
| mi := &file_google_devtools_source_v1_source_context_proto_msgTypes[2] |
| ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| ms.StoreMessageInfo(mi) |
| } |
| } |
| |
| func (x *AliasContext) String() string { |
| return protoimpl.X.MessageStringOf(x) |
| } |
| |
| func (*AliasContext) ProtoMessage() {} |
| |
| func (x *AliasContext) ProtoReflect() protoreflect.Message { |
| mi := &file_google_devtools_source_v1_source_context_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 AliasContext.ProtoReflect.Descriptor instead. |
| func (*AliasContext) Descriptor() ([]byte, []int) { |
| return file_google_devtools_source_v1_source_context_proto_rawDescGZIP(), []int{2} |
| } |
| |
| func (x *AliasContext) GetKind() AliasContext_Kind { |
| if x != nil { |
| return x.Kind |
| } |
| return AliasContext_ANY |
| } |
| |
| func (x *AliasContext) GetName() string { |
| if x != nil { |
| return x.Name |
| } |
| return "" |
| } |
| |
| // A CloudRepoSourceContext denotes a particular revision in a cloud |
| // repo (a repo hosted by the Google Cloud Platform). |
| type CloudRepoSourceContext struct { |
| state protoimpl.MessageState |
| sizeCache protoimpl.SizeCache |
| unknownFields protoimpl.UnknownFields |
| |
| // The ID of the repo. |
| RepoId *RepoId `protobuf:"bytes,1,opt,name=repo_id,json=repoId,proto3" json:"repo_id,omitempty"` |
| // A revision in a cloud repository can be identified by either its revision |
| // ID or its Alias. |
| // |
| // Types that are assignable to Revision: |
| // *CloudRepoSourceContext_RevisionId |
| // *CloudRepoSourceContext_AliasName |
| // *CloudRepoSourceContext_AliasContext |
| Revision isCloudRepoSourceContext_Revision `protobuf_oneof:"revision"` |
| } |
| |
| func (x *CloudRepoSourceContext) Reset() { |
| *x = CloudRepoSourceContext{} |
| if protoimpl.UnsafeEnabled { |
| mi := &file_google_devtools_source_v1_source_context_proto_msgTypes[3] |
| ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| ms.StoreMessageInfo(mi) |
| } |
| } |
| |
| func (x *CloudRepoSourceContext) String() string { |
| return protoimpl.X.MessageStringOf(x) |
| } |
| |
| func (*CloudRepoSourceContext) ProtoMessage() {} |
| |
| func (x *CloudRepoSourceContext) ProtoReflect() protoreflect.Message { |
| mi := &file_google_devtools_source_v1_source_context_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 CloudRepoSourceContext.ProtoReflect.Descriptor instead. |
| func (*CloudRepoSourceContext) Descriptor() ([]byte, []int) { |
| return file_google_devtools_source_v1_source_context_proto_rawDescGZIP(), []int{3} |
| } |
| |
| func (x *CloudRepoSourceContext) GetRepoId() *RepoId { |
| if x != nil { |
| return x.RepoId |
| } |
| return nil |
| } |
| |
| func (m *CloudRepoSourceContext) GetRevision() isCloudRepoSourceContext_Revision { |
| if m != nil { |
| return m.Revision |
| } |
| return nil |
| } |
| |
| func (x *CloudRepoSourceContext) GetRevisionId() string { |
| if x, ok := x.GetRevision().(*CloudRepoSourceContext_RevisionId); ok { |
| return x.RevisionId |
| } |
| return "" |
| } |
| |
| // Deprecated: Do not use. |
| func (x *CloudRepoSourceContext) GetAliasName() string { |
| if x, ok := x.GetRevision().(*CloudRepoSourceContext_AliasName); ok { |
| return x.AliasName |
| } |
| return "" |
| } |
| |
| func (x *CloudRepoSourceContext) GetAliasContext() *AliasContext { |
| if x, ok := x.GetRevision().(*CloudRepoSourceContext_AliasContext); ok { |
| return x.AliasContext |
| } |
| return nil |
| } |
| |
| type isCloudRepoSourceContext_Revision interface { |
| isCloudRepoSourceContext_Revision() |
| } |
| |
| type CloudRepoSourceContext_RevisionId struct { |
| // A revision ID. |
| RevisionId string `protobuf:"bytes,2,opt,name=revision_id,json=revisionId,proto3,oneof"` |
| } |
| |
| type CloudRepoSourceContext_AliasName struct { |
| // The name of an alias (branch, tag, etc.). |
| // |
| // Deprecated: Do not use. |
| AliasName string `protobuf:"bytes,3,opt,name=alias_name,json=aliasName,proto3,oneof"` |
| } |
| |
| type CloudRepoSourceContext_AliasContext struct { |
| // An alias, which may be a branch or tag. |
| AliasContext *AliasContext `protobuf:"bytes,4,opt,name=alias_context,json=aliasContext,proto3,oneof"` |
| } |
| |
| func (*CloudRepoSourceContext_RevisionId) isCloudRepoSourceContext_Revision() {} |
| |
| func (*CloudRepoSourceContext_AliasName) isCloudRepoSourceContext_Revision() {} |
| |
| func (*CloudRepoSourceContext_AliasContext) isCloudRepoSourceContext_Revision() {} |
| |
| // A CloudWorkspaceSourceContext denotes a workspace at a particular snapshot. |
| type CloudWorkspaceSourceContext struct { |
| state protoimpl.MessageState |
| sizeCache protoimpl.SizeCache |
| unknownFields protoimpl.UnknownFields |
| |
| // The ID of the workspace. |
| WorkspaceId *CloudWorkspaceId `protobuf:"bytes,1,opt,name=workspace_id,json=workspaceId,proto3" json:"workspace_id,omitempty"` |
| // The ID of the snapshot. |
| // An empty snapshot_id refers to the most recent snapshot. |
| SnapshotId string `protobuf:"bytes,2,opt,name=snapshot_id,json=snapshotId,proto3" json:"snapshot_id,omitempty"` |
| } |
| |
| func (x *CloudWorkspaceSourceContext) Reset() { |
| *x = CloudWorkspaceSourceContext{} |
| if protoimpl.UnsafeEnabled { |
| mi := &file_google_devtools_source_v1_source_context_proto_msgTypes[4] |
| ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| ms.StoreMessageInfo(mi) |
| } |
| } |
| |
| func (x *CloudWorkspaceSourceContext) String() string { |
| return protoimpl.X.MessageStringOf(x) |
| } |
| |
| func (*CloudWorkspaceSourceContext) ProtoMessage() {} |
| |
| func (x *CloudWorkspaceSourceContext) ProtoReflect() protoreflect.Message { |
| mi := &file_google_devtools_source_v1_source_context_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 CloudWorkspaceSourceContext.ProtoReflect.Descriptor instead. |
| func (*CloudWorkspaceSourceContext) Descriptor() ([]byte, []int) { |
| return file_google_devtools_source_v1_source_context_proto_rawDescGZIP(), []int{4} |
| } |
| |
| func (x *CloudWorkspaceSourceContext) GetWorkspaceId() *CloudWorkspaceId { |
| if x != nil { |
| return x.WorkspaceId |
| } |
| return nil |
| } |
| |
| func (x *CloudWorkspaceSourceContext) GetSnapshotId() string { |
| if x != nil { |
| return x.SnapshotId |
| } |
| return "" |
| } |
| |
| // A SourceContext referring to a Gerrit project. |
| type GerritSourceContext struct { |
| state protoimpl.MessageState |
| sizeCache protoimpl.SizeCache |
| unknownFields protoimpl.UnknownFields |
| |
| // The URI of a running Gerrit instance. |
| HostUri string `protobuf:"bytes,1,opt,name=host_uri,json=hostUri,proto3" json:"host_uri,omitempty"` |
| // The full project name within the host. Projects may be nested, so |
| // "project/subproject" is a valid project name. |
| // The "repo name" is hostURI/project. |
| GerritProject string `protobuf:"bytes,2,opt,name=gerrit_project,json=gerritProject,proto3" json:"gerrit_project,omitempty"` |
| // A revision in a Gerrit project can be identified by either its revision ID |
| // or its alias. |
| // |
| // Types that are assignable to Revision: |
| // *GerritSourceContext_RevisionId |
| // *GerritSourceContext_AliasName |
| // *GerritSourceContext_AliasContext |
| Revision isGerritSourceContext_Revision `protobuf_oneof:"revision"` |
| } |
| |
| func (x *GerritSourceContext) Reset() { |
| *x = GerritSourceContext{} |
| if protoimpl.UnsafeEnabled { |
| mi := &file_google_devtools_source_v1_source_context_proto_msgTypes[5] |
| ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| ms.StoreMessageInfo(mi) |
| } |
| } |
| |
| func (x *GerritSourceContext) String() string { |
| return protoimpl.X.MessageStringOf(x) |
| } |
| |
| func (*GerritSourceContext) ProtoMessage() {} |
| |
| func (x *GerritSourceContext) ProtoReflect() protoreflect.Message { |
| mi := &file_google_devtools_source_v1_source_context_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 GerritSourceContext.ProtoReflect.Descriptor instead. |
| func (*GerritSourceContext) Descriptor() ([]byte, []int) { |
| return file_google_devtools_source_v1_source_context_proto_rawDescGZIP(), []int{5} |
| } |
| |
| func (x *GerritSourceContext) GetHostUri() string { |
| if x != nil { |
| return x.HostUri |
| } |
| return "" |
| } |
| |
| func (x *GerritSourceContext) GetGerritProject() string { |
| if x != nil { |
| return x.GerritProject |
| } |
| return "" |
| } |
| |
| func (m *GerritSourceContext) GetRevision() isGerritSourceContext_Revision { |
| if m != nil { |
| return m.Revision |
| } |
| return nil |
| } |
| |
| func (x *GerritSourceContext) GetRevisionId() string { |
| if x, ok := x.GetRevision().(*GerritSourceContext_RevisionId); ok { |
| return x.RevisionId |
| } |
| return "" |
| } |
| |
| // Deprecated: Do not use. |
| func (x *GerritSourceContext) GetAliasName() string { |
| if x, ok := x.GetRevision().(*GerritSourceContext_AliasName); ok { |
| return x.AliasName |
| } |
| return "" |
| } |
| |
| func (x *GerritSourceContext) GetAliasContext() *AliasContext { |
| if x, ok := x.GetRevision().(*GerritSourceContext_AliasContext); ok { |
| return x.AliasContext |
| } |
| return nil |
| } |
| |
| type isGerritSourceContext_Revision interface { |
| isGerritSourceContext_Revision() |
| } |
| |
| type GerritSourceContext_RevisionId struct { |
| // A revision (commit) ID. |
| RevisionId string `protobuf:"bytes,3,opt,name=revision_id,json=revisionId,proto3,oneof"` |
| } |
| |
| type GerritSourceContext_AliasName struct { |
| // The name of an alias (branch, tag, etc.). |
| // |
| // Deprecated: Do not use. |
| AliasName string `protobuf:"bytes,4,opt,name=alias_name,json=aliasName,proto3,oneof"` |
| } |
| |
| type GerritSourceContext_AliasContext struct { |
| // An alias, which may be a branch or tag. |
| AliasContext *AliasContext `protobuf:"bytes,5,opt,name=alias_context,json=aliasContext,proto3,oneof"` |
| } |
| |
| func (*GerritSourceContext_RevisionId) isGerritSourceContext_Revision() {} |
| |
| func (*GerritSourceContext_AliasName) isGerritSourceContext_Revision() {} |
| |
| func (*GerritSourceContext_AliasContext) isGerritSourceContext_Revision() {} |
| |
| // A GitSourceContext denotes a particular revision in a third party Git |
| // repository (e.g. GitHub). |
| type GitSourceContext struct { |
| state protoimpl.MessageState |
| sizeCache protoimpl.SizeCache |
| unknownFields protoimpl.UnknownFields |
| |
| // Git repository URL. |
| Url string `protobuf:"bytes,1,opt,name=url,proto3" json:"url,omitempty"` |
| // Git commit hash. |
| // required. |
| RevisionId string `protobuf:"bytes,2,opt,name=revision_id,json=revisionId,proto3" json:"revision_id,omitempty"` |
| } |
| |
| func (x *GitSourceContext) Reset() { |
| *x = GitSourceContext{} |
| if protoimpl.UnsafeEnabled { |
| mi := &file_google_devtools_source_v1_source_context_proto_msgTypes[6] |
| ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| ms.StoreMessageInfo(mi) |
| } |
| } |
| |
| func (x *GitSourceContext) String() string { |
| return protoimpl.X.MessageStringOf(x) |
| } |
| |
| func (*GitSourceContext) ProtoMessage() {} |
| |
| func (x *GitSourceContext) ProtoReflect() protoreflect.Message { |
| mi := &file_google_devtools_source_v1_source_context_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 GitSourceContext.ProtoReflect.Descriptor instead. |
| func (*GitSourceContext) Descriptor() ([]byte, []int) { |
| return file_google_devtools_source_v1_source_context_proto_rawDescGZIP(), []int{6} |
| } |
| |
| func (x *GitSourceContext) GetUrl() string { |
| if x != nil { |
| return x.Url |
| } |
| return "" |
| } |
| |
| func (x *GitSourceContext) GetRevisionId() string { |
| if x != nil { |
| return x.RevisionId |
| } |
| return "" |
| } |
| |
| // A unique identifier for a cloud repo. |
| type RepoId struct { |
| state protoimpl.MessageState |
| sizeCache protoimpl.SizeCache |
| unknownFields protoimpl.UnknownFields |
| |
| // A cloud repository can be identified by either its project ID and |
| // repository name combination, or its globally unique identifier. |
| // |
| // Types that are assignable to Id: |
| // *RepoId_ProjectRepoId |
| // *RepoId_Uid |
| Id isRepoId_Id `protobuf_oneof:"id"` |
| } |
| |
| func (x *RepoId) Reset() { |
| *x = RepoId{} |
| if protoimpl.UnsafeEnabled { |
| mi := &file_google_devtools_source_v1_source_context_proto_msgTypes[7] |
| ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| ms.StoreMessageInfo(mi) |
| } |
| } |
| |
| func (x *RepoId) String() string { |
| return protoimpl.X.MessageStringOf(x) |
| } |
| |
| func (*RepoId) ProtoMessage() {} |
| |
| func (x *RepoId) ProtoReflect() protoreflect.Message { |
| mi := &file_google_devtools_source_v1_source_context_proto_msgTypes[7] |
| 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 RepoId.ProtoReflect.Descriptor instead. |
| func (*RepoId) Descriptor() ([]byte, []int) { |
| return file_google_devtools_source_v1_source_context_proto_rawDescGZIP(), []int{7} |
| } |
| |
| func (m *RepoId) GetId() isRepoId_Id { |
| if m != nil { |
| return m.Id |
| } |
| return nil |
| } |
| |
| func (x *RepoId) GetProjectRepoId() *ProjectRepoId { |
| if x, ok := x.GetId().(*RepoId_ProjectRepoId); ok { |
| return x.ProjectRepoId |
| } |
| return nil |
| } |
| |
| func (x *RepoId) GetUid() string { |
| if x, ok := x.GetId().(*RepoId_Uid); ok { |
| return x.Uid |
| } |
| return "" |
| } |
| |
| type isRepoId_Id interface { |
| isRepoId_Id() |
| } |
| |
| type RepoId_ProjectRepoId struct { |
| // A combination of a project ID and a repo name. |
| ProjectRepoId *ProjectRepoId `protobuf:"bytes,1,opt,name=project_repo_id,json=projectRepoId,proto3,oneof"` |
| } |
| |
| type RepoId_Uid struct { |
| // A server-assigned, globally unique identifier. |
| Uid string `protobuf:"bytes,2,opt,name=uid,proto3,oneof"` |
| } |
| |
| func (*RepoId_ProjectRepoId) isRepoId_Id() {} |
| |
| func (*RepoId_Uid) isRepoId_Id() {} |
| |
| // Selects a repo using a Google Cloud Platform project ID |
| // (e.g. winged-cargo-31) and a repo name within that project. |
| type ProjectRepoId struct { |
| state protoimpl.MessageState |
| sizeCache protoimpl.SizeCache |
| unknownFields protoimpl.UnknownFields |
| |
| // The ID of the project. |
| ProjectId string `protobuf:"bytes,1,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"` |
| // The name of the repo. Leave empty for the default repo. |
| RepoName string `protobuf:"bytes,2,opt,name=repo_name,json=repoName,proto3" json:"repo_name,omitempty"` |
| } |
| |
| func (x *ProjectRepoId) Reset() { |
| *x = ProjectRepoId{} |
| if protoimpl.UnsafeEnabled { |
| mi := &file_google_devtools_source_v1_source_context_proto_msgTypes[8] |
| ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| ms.StoreMessageInfo(mi) |
| } |
| } |
| |
| func (x *ProjectRepoId) String() string { |
| return protoimpl.X.MessageStringOf(x) |
| } |
| |
| func (*ProjectRepoId) ProtoMessage() {} |
| |
| func (x *ProjectRepoId) ProtoReflect() protoreflect.Message { |
| mi := &file_google_devtools_source_v1_source_context_proto_msgTypes[8] |
| 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 ProjectRepoId.ProtoReflect.Descriptor instead. |
| func (*ProjectRepoId) Descriptor() ([]byte, []int) { |
| return file_google_devtools_source_v1_source_context_proto_rawDescGZIP(), []int{8} |
| } |
| |
| func (x *ProjectRepoId) GetProjectId() string { |
| if x != nil { |
| return x.ProjectId |
| } |
| return "" |
| } |
| |
| func (x *ProjectRepoId) GetRepoName() string { |
| if x != nil { |
| return x.RepoName |
| } |
| return "" |
| } |
| |
| // A CloudWorkspaceId is a unique identifier for a cloud workspace. |
| // A cloud workspace is a place associated with a repo where modified files |
| // can be stored before they are committed. |
| type CloudWorkspaceId struct { |
| state protoimpl.MessageState |
| sizeCache protoimpl.SizeCache |
| unknownFields protoimpl.UnknownFields |
| |
| // The ID of the repo containing the workspace. |
| RepoId *RepoId `protobuf:"bytes,1,opt,name=repo_id,json=repoId,proto3" json:"repo_id,omitempty"` |
| // The unique name of the workspace within the repo. This is the name |
| // chosen by the client in the Source API's CreateWorkspace method. |
| Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` |
| } |
| |
| func (x *CloudWorkspaceId) Reset() { |
| *x = CloudWorkspaceId{} |
| if protoimpl.UnsafeEnabled { |
| mi := &file_google_devtools_source_v1_source_context_proto_msgTypes[9] |
| ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| ms.StoreMessageInfo(mi) |
| } |
| } |
| |
| func (x *CloudWorkspaceId) String() string { |
| return protoimpl.X.MessageStringOf(x) |
| } |
| |
| func (*CloudWorkspaceId) ProtoMessage() {} |
| |
| func (x *CloudWorkspaceId) ProtoReflect() protoreflect.Message { |
| mi := &file_google_devtools_source_v1_source_context_proto_msgTypes[9] |
| 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 CloudWorkspaceId.ProtoReflect.Descriptor instead. |
| func (*CloudWorkspaceId) Descriptor() ([]byte, []int) { |
| return file_google_devtools_source_v1_source_context_proto_rawDescGZIP(), []int{9} |
| } |
| |
| func (x *CloudWorkspaceId) GetRepoId() *RepoId { |
| if x != nil { |
| return x.RepoId |
| } |
| return nil |
| } |
| |
| func (x *CloudWorkspaceId) GetName() string { |
| if x != nil { |
| return x.Name |
| } |
| return "" |
| } |
| |
| var File_google_devtools_source_v1_source_context_proto protoreflect.FileDescriptor |
| |
| var file_google_devtools_source_v1_source_context_proto_rawDesc = []byte{ |
| 0x0a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x64, 0x65, 0x76, 0x74, 0x6f, 0x6f, 0x6c, |
| 0x73, 0x2f, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2f, 0x76, 0x31, 0x2f, 0x73, 0x6f, 0x75, 0x72, |
| 0x63, 0x65, 0x5f, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, |
| 0x12, 0x19, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x64, 0x65, 0x76, 0x74, 0x6f, 0x6f, 0x6c, |
| 0x73, 0x2e, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2e, 0x76, 0x31, 0x1a, 0x1c, 0x67, 0x6f, 0x6f, |
| 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, |
| 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xdc, 0x02, 0x0a, 0x0d, 0x53, 0x6f, |
| 0x75, 0x72, 0x63, 0x65, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x12, 0x52, 0x0a, 0x0a, 0x63, |
| 0x6c, 0x6f, 0x75, 0x64, 0x5f, 0x72, 0x65, 0x70, 0x6f, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, |
| 0x31, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x64, 0x65, 0x76, 0x74, 0x6f, 0x6f, 0x6c, |
| 0x73, 0x2e, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6c, 0x6f, 0x75, |
| 0x64, 0x52, 0x65, 0x70, 0x6f, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x43, 0x6f, 0x6e, 0x74, 0x65, |
| 0x78, 0x74, 0x48, 0x00, 0x52, 0x09, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x52, 0x65, 0x70, 0x6f, 0x12, |
| 0x61, 0x0a, 0x0f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x5f, 0x77, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, |
| 0x63, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x36, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, |
| 0x65, 0x2e, 0x64, 0x65, 0x76, 0x74, 0x6f, 0x6f, 0x6c, 0x73, 0x2e, 0x73, 0x6f, 0x75, 0x72, 0x63, |
| 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x57, 0x6f, 0x72, 0x6b, 0x73, 0x70, |
| 0x61, 0x63, 0x65, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, |
| 0x48, 0x00, 0x52, 0x0e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x57, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, |
| 0x63, 0x65, 0x12, 0x48, 0x0a, 0x06, 0x67, 0x65, 0x72, 0x72, 0x69, 0x74, 0x18, 0x03, 0x20, 0x01, |
| 0x28, 0x0b, 0x32, 0x2e, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x64, 0x65, 0x76, 0x74, |
| 0x6f, 0x6f, 0x6c, 0x73, 0x2e, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x47, |
| 0x65, 0x72, 0x72, 0x69, 0x74, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x43, 0x6f, 0x6e, 0x74, 0x65, |
| 0x78, 0x74, 0x48, 0x00, 0x52, 0x06, 0x67, 0x65, 0x72, 0x72, 0x69, 0x74, 0x12, 0x3f, 0x0a, 0x03, |
| 0x67, 0x69, 0x74, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2b, 0x2e, 0x67, 0x6f, 0x6f, 0x67, |
| 0x6c, 0x65, 0x2e, 0x64, 0x65, 0x76, 0x74, 0x6f, 0x6f, 0x6c, 0x73, 0x2e, 0x73, 0x6f, 0x75, 0x72, |
| 0x63, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x69, 0x74, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x43, |
| 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x48, 0x00, 0x52, 0x03, 0x67, 0x69, 0x74, 0x42, 0x09, 0x0a, |
| 0x07, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x22, 0xec, 0x01, 0x0a, 0x15, 0x45, 0x78, 0x74, |
| 0x65, 0x6e, 0x64, 0x65, 0x64, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x43, 0x6f, 0x6e, 0x74, 0x65, |
| 0x78, 0x74, 0x12, 0x42, 0x0a, 0x07, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x18, 0x01, 0x20, |
| 0x01, 0x28, 0x0b, 0x32, 0x28, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x64, 0x65, 0x76, |
| 0x74, 0x6f, 0x6f, 0x6c, 0x73, 0x2e, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2e, 0x76, 0x31, 0x2e, |
| 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x52, 0x07, 0x63, |
| 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x12, 0x54, 0x0a, 0x06, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, |
| 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x3c, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, |
| 0x64, 0x65, 0x76, 0x74, 0x6f, 0x6f, 0x6c, 0x73, 0x2e, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2e, |
| 0x76, 0x31, 0x2e, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x64, 0x65, 0x64, 0x53, 0x6f, 0x75, 0x72, 0x63, |
| 0x65, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x2e, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x45, |
| 0x6e, 0x74, 0x72, 0x79, 0x52, 0x06, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x1a, 0x39, 0x0a, 0x0b, |
| 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x73, 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, 0x98, 0x01, 0x0a, 0x0c, 0x41, 0x6c, 0x69, 0x61, |
| 0x73, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x12, 0x40, 0x0a, 0x04, 0x6b, 0x69, 0x6e, 0x64, |
| 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x2c, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, |
| 0x64, 0x65, 0x76, 0x74, 0x6f, 0x6f, 0x6c, 0x73, 0x2e, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2e, |
| 0x76, 0x31, 0x2e, 0x41, 0x6c, 0x69, 0x61, 0x73, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x2e, |
| 0x4b, 0x69, 0x6e, 0x64, 0x52, 0x04, 0x6b, 0x69, 0x6e, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, |
| 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x32, |
| 0x0a, 0x04, 0x4b, 0x69, 0x6e, 0x64, 0x12, 0x07, 0x0a, 0x03, 0x41, 0x4e, 0x59, 0x10, 0x00, 0x12, |
| 0x09, 0x0a, 0x05, 0x46, 0x49, 0x58, 0x45, 0x44, 0x10, 0x01, 0x12, 0x0b, 0x0a, 0x07, 0x4d, 0x4f, |
| 0x56, 0x41, 0x42, 0x4c, 0x45, 0x10, 0x02, 0x12, 0x09, 0x0a, 0x05, 0x4f, 0x54, 0x48, 0x45, 0x52, |
| 0x10, 0x04, 0x22, 0xf8, 0x01, 0x0a, 0x16, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x52, 0x65, 0x70, 0x6f, |
| 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x12, 0x3a, 0x0a, |
| 0x07, 0x72, 0x65, 0x70, 0x6f, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, |
| 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x64, 0x65, 0x76, 0x74, 0x6f, 0x6f, 0x6c, 0x73, |
| 0x2e, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x70, 0x6f, 0x49, |
| 0x64, 0x52, 0x06, 0x72, 0x65, 0x70, 0x6f, 0x49, 0x64, 0x12, 0x21, 0x0a, 0x0b, 0x72, 0x65, 0x76, |
| 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, |
| 0x52, 0x0a, 0x72, 0x65, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x12, 0x23, 0x0a, 0x0a, |
| 0x61, 0x6c, 0x69, 0x61, 0x73, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, |
| 0x42, 0x02, 0x18, 0x01, 0x48, 0x00, 0x52, 0x09, 0x61, 0x6c, 0x69, 0x61, 0x73, 0x4e, 0x61, 0x6d, |
| 0x65, 0x12, 0x4e, 0x0a, 0x0d, 0x61, 0x6c, 0x69, 0x61, 0x73, 0x5f, 0x63, 0x6f, 0x6e, 0x74, 0x65, |
| 0x78, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, |
| 0x65, 0x2e, 0x64, 0x65, 0x76, 0x74, 0x6f, 0x6f, 0x6c, 0x73, 0x2e, 0x73, 0x6f, 0x75, 0x72, 0x63, |
| 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x6c, 0x69, 0x61, 0x73, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x78, |
| 0x74, 0x48, 0x00, 0x52, 0x0c, 0x61, 0x6c, 0x69, 0x61, 0x73, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x78, |
| 0x74, 0x42, 0x0a, 0x0a, 0x08, 0x72, 0x65, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x22, 0x8e, 0x01, |
| 0x0a, 0x1b, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x57, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, |
| 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x12, 0x4e, 0x0a, |
| 0x0c, 0x77, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, |
| 0x01, 0x28, 0x0b, 0x32, 0x2b, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x64, 0x65, 0x76, |
| 0x74, 0x6f, 0x6f, 0x6c, 0x73, 0x2e, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2e, 0x76, 0x31, 0x2e, |
| 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x57, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x49, 0x64, |
| 0x52, 0x0b, 0x77, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x49, 0x64, 0x12, 0x1f, 0x0a, |
| 0x0b, 0x73, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, |
| 0x28, 0x09, 0x52, 0x0a, 0x73, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x49, 0x64, 0x22, 0xfb, |
| 0x01, 0x0a, 0x13, 0x47, 0x65, 0x72, 0x72, 0x69, 0x74, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x43, |
| 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x12, 0x19, 0x0a, 0x08, 0x68, 0x6f, 0x73, 0x74, 0x5f, 0x75, |
| 0x72, 0x69, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x68, 0x6f, 0x73, 0x74, 0x55, 0x72, |
| 0x69, 0x12, 0x25, 0x0a, 0x0e, 0x67, 0x65, 0x72, 0x72, 0x69, 0x74, 0x5f, 0x70, 0x72, 0x6f, 0x6a, |
| 0x65, 0x63, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x67, 0x65, 0x72, 0x72, 0x69, |
| 0x74, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x12, 0x21, 0x0a, 0x0b, 0x72, 0x65, 0x76, 0x69, |
| 0x73, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, |
| 0x0a, 0x72, 0x65, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x12, 0x23, 0x0a, 0x0a, 0x61, |
| 0x6c, 0x69, 0x61, 0x73, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x42, |
| 0x02, 0x18, 0x01, 0x48, 0x00, 0x52, 0x09, 0x61, 0x6c, 0x69, 0x61, 0x73, 0x4e, 0x61, 0x6d, 0x65, |
| 0x12, 0x4e, 0x0a, 0x0d, 0x61, 0x6c, 0x69, 0x61, 0x73, 0x5f, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x78, |
| 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, |
| 0x2e, 0x64, 0x65, 0x76, 0x74, 0x6f, 0x6f, 0x6c, 0x73, 0x2e, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, |
| 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x6c, 0x69, 0x61, 0x73, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, |
| 0x48, 0x00, 0x52, 0x0c, 0x61, 0x6c, 0x69, 0x61, 0x73, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, |
| 0x42, 0x0a, 0x0a, 0x08, 0x72, 0x65, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x22, 0x45, 0x0a, 0x10, |
| 0x47, 0x69, 0x74, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, |
| 0x12, 0x10, 0x0a, 0x03, 0x75, 0x72, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x75, |
| 0x72, 0x6c, 0x12, 0x1f, 0x0a, 0x0b, 0x72, 0x65, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x5f, 0x69, |
| 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x72, 0x65, 0x76, 0x69, 0x73, 0x69, 0x6f, |
| 0x6e, 0x49, 0x64, 0x22, 0x76, 0x0a, 0x06, 0x52, 0x65, 0x70, 0x6f, 0x49, 0x64, 0x12, 0x52, 0x0a, |
| 0x0f, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x5f, 0x72, 0x65, 0x70, 0x6f, 0x5f, 0x69, 0x64, |
| 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x28, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, |
| 0x64, 0x65, 0x76, 0x74, 0x6f, 0x6f, 0x6c, 0x73, 0x2e, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2e, |
| 0x76, 0x31, 0x2e, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x52, 0x65, 0x70, 0x6f, 0x49, 0x64, |
| 0x48, 0x00, 0x52, 0x0d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x52, 0x65, 0x70, 0x6f, 0x49, |
| 0x64, 0x12, 0x12, 0x0a, 0x03, 0x75, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, |
| 0x52, 0x03, 0x75, 0x69, 0x64, 0x42, 0x04, 0x0a, 0x02, 0x69, 0x64, 0x22, 0x4b, 0x0a, 0x0d, 0x50, |
| 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x52, 0x65, 0x70, 0x6f, 0x49, 0x64, 0x12, 0x1d, 0x0a, 0x0a, |
| 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, |
| 0x52, 0x09, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x49, 0x64, 0x12, 0x1b, 0x0a, 0x09, 0x72, |
| 0x65, 0x70, 0x6f, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, |
| 0x72, 0x65, 0x70, 0x6f, 0x4e, 0x61, 0x6d, 0x65, 0x22, 0x62, 0x0a, 0x10, 0x43, 0x6c, 0x6f, 0x75, |
| 0x64, 0x57, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x49, 0x64, 0x12, 0x3a, 0x0a, 0x07, |
| 0x72, 0x65, 0x70, 0x6f, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, |
| 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x64, 0x65, 0x76, 0x74, 0x6f, 0x6f, 0x6c, 0x73, 0x2e, |
| 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x70, 0x6f, 0x49, 0x64, |
| 0x52, 0x06, 0x72, 0x65, 0x70, 0x6f, 0x49, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, |
| 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x42, 0xbd, 0x01, 0x0a, |
| 0x1d, 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x64, 0x65, 0x76, 0x74, |
| 0x6f, 0x6f, 0x6c, 0x73, 0x2e, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2e, 0x76, 0x31, 0x42, 0x12, |
| 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x50, 0x72, 0x6f, |
| 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x3f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x67, 0x6f, 0x6c, |
| 0x61, 0x6e, 0x67, 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x67, 0x65, 0x6e, 0x70, 0x72, 0x6f, 0x74, 0x6f, |
| 0x2f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2f, 0x64, 0x65, 0x76, 0x74, |
| 0x6f, 0x6f, 0x6c, 0x73, 0x2f, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2f, 0x76, 0x31, 0x3b, 0x73, |
| 0x6f, 0x75, 0x72, 0x63, 0x65, 0xf8, 0x01, 0x01, 0xaa, 0x02, 0x1f, 0x47, 0x6f, 0x6f, 0x67, 0x6c, |
| 0x65, 0x2e, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x44, 0x65, 0x76, 0x54, 0x6f, 0x6f, 0x6c, 0x73, |
| 0x2e, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x1f, 0x47, 0x6f, 0x6f, |
| 0x67, 0x6c, 0x65, 0x5c, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x5c, 0x44, 0x65, 0x76, 0x54, 0x6f, 0x6f, |
| 0x6c, 0x73, 0x5c, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5c, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, |
| 0x6f, 0x74, 0x6f, 0x33, |
| } |
| |
| var ( |
| file_google_devtools_source_v1_source_context_proto_rawDescOnce sync.Once |
| file_google_devtools_source_v1_source_context_proto_rawDescData = file_google_devtools_source_v1_source_context_proto_rawDesc |
| ) |
| |
| func file_google_devtools_source_v1_source_context_proto_rawDescGZIP() []byte { |
| file_google_devtools_source_v1_source_context_proto_rawDescOnce.Do(func() { |
| file_google_devtools_source_v1_source_context_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_devtools_source_v1_source_context_proto_rawDescData) |
| }) |
| return file_google_devtools_source_v1_source_context_proto_rawDescData |
| } |
| |
| var file_google_devtools_source_v1_source_context_proto_enumTypes = make([]protoimpl.EnumInfo, 1) |
| var file_google_devtools_source_v1_source_context_proto_msgTypes = make([]protoimpl.MessageInfo, 11) |
| var file_google_devtools_source_v1_source_context_proto_goTypes = []interface{}{ |
| (AliasContext_Kind)(0), // 0: google.devtools.source.v1.AliasContext.Kind |
| (*SourceContext)(nil), // 1: google.devtools.source.v1.SourceContext |
| (*ExtendedSourceContext)(nil), // 2: google.devtools.source.v1.ExtendedSourceContext |
| (*AliasContext)(nil), // 3: google.devtools.source.v1.AliasContext |
| (*CloudRepoSourceContext)(nil), // 4: google.devtools.source.v1.CloudRepoSourceContext |
| (*CloudWorkspaceSourceContext)(nil), // 5: google.devtools.source.v1.CloudWorkspaceSourceContext |
| (*GerritSourceContext)(nil), // 6: google.devtools.source.v1.GerritSourceContext |
| (*GitSourceContext)(nil), // 7: google.devtools.source.v1.GitSourceContext |
| (*RepoId)(nil), // 8: google.devtools.source.v1.RepoId |
| (*ProjectRepoId)(nil), // 9: google.devtools.source.v1.ProjectRepoId |
| (*CloudWorkspaceId)(nil), // 10: google.devtools.source.v1.CloudWorkspaceId |
| nil, // 11: google.devtools.source.v1.ExtendedSourceContext.LabelsEntry |
| } |
| var file_google_devtools_source_v1_source_context_proto_depIdxs = []int32{ |
| 4, // 0: google.devtools.source.v1.SourceContext.cloud_repo:type_name -> google.devtools.source.v1.CloudRepoSourceContext |
| 5, // 1: google.devtools.source.v1.SourceContext.cloud_workspace:type_name -> google.devtools.source.v1.CloudWorkspaceSourceContext |
| 6, // 2: google.devtools.source.v1.SourceContext.gerrit:type_name -> google.devtools.source.v1.GerritSourceContext |
| 7, // 3: google.devtools.source.v1.SourceContext.git:type_name -> google.devtools.source.v1.GitSourceContext |
| 1, // 4: google.devtools.source.v1.ExtendedSourceContext.context:type_name -> google.devtools.source.v1.SourceContext |
| 11, // 5: google.devtools.source.v1.ExtendedSourceContext.labels:type_name -> google.devtools.source.v1.ExtendedSourceContext.LabelsEntry |
| 0, // 6: google.devtools.source.v1.AliasContext.kind:type_name -> google.devtools.source.v1.AliasContext.Kind |
| 8, // 7: google.devtools.source.v1.CloudRepoSourceContext.repo_id:type_name -> google.devtools.source.v1.RepoId |
| 3, // 8: google.devtools.source.v1.CloudRepoSourceContext.alias_context:type_name -> google.devtools.source.v1.AliasContext |
| 10, // 9: google.devtools.source.v1.CloudWorkspaceSourceContext.workspace_id:type_name -> google.devtools.source.v1.CloudWorkspaceId |
| 3, // 10: google.devtools.source.v1.GerritSourceContext.alias_context:type_name -> google.devtools.source.v1.AliasContext |
| 9, // 11: google.devtools.source.v1.RepoId.project_repo_id:type_name -> google.devtools.source.v1.ProjectRepoId |
| 8, // 12: google.devtools.source.v1.CloudWorkspaceId.repo_id:type_name -> google.devtools.source.v1.RepoId |
| 13, // [13:13] is the sub-list for method output_type |
| 13, // [13:13] is the sub-list for method input_type |
| 13, // [13:13] is the sub-list for extension type_name |
| 13, // [13:13] is the sub-list for extension extendee |
| 0, // [0:13] is the sub-list for field type_name |
| } |
| |
| func init() { file_google_devtools_source_v1_source_context_proto_init() } |
| func file_google_devtools_source_v1_source_context_proto_init() { |
| if File_google_devtools_source_v1_source_context_proto != nil { |
| return |
| } |
| if !protoimpl.UnsafeEnabled { |
| file_google_devtools_source_v1_source_context_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { |
| switch v := v.(*SourceContext); i { |
| case 0: |
| return &v.state |
| case 1: |
| return &v.sizeCache |
| case 2: |
| return &v.unknownFields |
| default: |
| return nil |
| } |
| } |
| file_google_devtools_source_v1_source_context_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { |
| switch v := v.(*ExtendedSourceContext); i { |
| case 0: |
| return &v.state |
| case 1: |
| return &v.sizeCache |
| case 2: |
| return &v.unknownFields |
| default: |
| return nil |
| } |
| } |
| file_google_devtools_source_v1_source_context_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { |
| switch v := v.(*AliasContext); i { |
| case 0: |
| return &v.state |
| case 1: |
| return &v.sizeCache |
| case 2: |
| return &v.unknownFields |
| default: |
| return nil |
| } |
| } |
| file_google_devtools_source_v1_source_context_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { |
| switch v := v.(*CloudRepoSourceContext); i { |
| case 0: |
| return &v.state |
| case 1: |
| return &v.sizeCache |
| case 2: |
| return &v.unknownFields |
| default: |
| return nil |
| } |
| } |
| file_google_devtools_source_v1_source_context_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { |
| switch v := v.(*CloudWorkspaceSourceContext); i { |
| case 0: |
| return &v.state |
| case 1: |
| return &v.sizeCache |
| case 2: |
| return &v.unknownFields |
| default: |
| return nil |
| } |
| } |
| file_google_devtools_source_v1_source_context_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { |
| switch v := v.(*GerritSourceContext); i { |
| case 0: |
| return &v.state |
| case 1: |
| return &v.sizeCache |
| case 2: |
| return &v.unknownFields |
| default: |
| return nil |
| } |
| } |
| file_google_devtools_source_v1_source_context_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { |
| switch v := v.(*GitSourceContext); i { |
| case 0: |
| return &v.state |
| case 1: |
| return &v.sizeCache |
| case 2: |
| return &v.unknownFields |
| default: |
| return nil |
| } |
| } |
| file_google_devtools_source_v1_source_context_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { |
| switch v := v.(*RepoId); i { |
| case 0: |
| return &v.state |
| case 1: |
| return &v.sizeCache |
| case 2: |
| return &v.unknownFields |
| default: |
| return nil |
| } |
| } |
| file_google_devtools_source_v1_source_context_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { |
| switch v := v.(*ProjectRepoId); i { |
| case 0: |
| return &v.state |
| case 1: |
| return &v.sizeCache |
| case 2: |
| return &v.unknownFields |
| default: |
| return nil |
| } |
| } |
| file_google_devtools_source_v1_source_context_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { |
| switch v := v.(*CloudWorkspaceId); i { |
| case 0: |
| return &v.state |
| case 1: |
| return &v.sizeCache |
| case 2: |
| return &v.unknownFields |
| default: |
| return nil |
| } |
| } |
| } |
| file_google_devtools_source_v1_source_context_proto_msgTypes[0].OneofWrappers = []interface{}{ |
| (*SourceContext_CloudRepo)(nil), |
| (*SourceContext_CloudWorkspace)(nil), |
| (*SourceContext_Gerrit)(nil), |
| (*SourceContext_Git)(nil), |
| } |
| file_google_devtools_source_v1_source_context_proto_msgTypes[3].OneofWrappers = []interface{}{ |
| (*CloudRepoSourceContext_RevisionId)(nil), |
| (*CloudRepoSourceContext_AliasName)(nil), |
| (*CloudRepoSourceContext_AliasContext)(nil), |
| } |
| file_google_devtools_source_v1_source_context_proto_msgTypes[5].OneofWrappers = []interface{}{ |
| (*GerritSourceContext_RevisionId)(nil), |
| (*GerritSourceContext_AliasName)(nil), |
| (*GerritSourceContext_AliasContext)(nil), |
| } |
| file_google_devtools_source_v1_source_context_proto_msgTypes[7].OneofWrappers = []interface{}{ |
| (*RepoId_ProjectRepoId)(nil), |
| (*RepoId_Uid)(nil), |
| } |
| type x struct{} |
| out := protoimpl.TypeBuilder{ |
| File: protoimpl.DescBuilder{ |
| GoPackagePath: reflect.TypeOf(x{}).PkgPath(), |
| RawDescriptor: file_google_devtools_source_v1_source_context_proto_rawDesc, |
| NumEnums: 1, |
| NumMessages: 11, |
| NumExtensions: 0, |
| NumServices: 0, |
| }, |
| GoTypes: file_google_devtools_source_v1_source_context_proto_goTypes, |
| DependencyIndexes: file_google_devtools_source_v1_source_context_proto_depIdxs, |
| EnumInfos: file_google_devtools_source_v1_source_context_proto_enumTypes, |
| MessageInfos: file_google_devtools_source_v1_source_context_proto_msgTypes, |
| }.Build() |
| File_google_devtools_source_v1_source_context_proto = out.File |
| file_google_devtools_source_v1_source_context_proto_rawDesc = nil |
| file_google_devtools_source_v1_source_context_proto_goTypes = nil |
| file_google_devtools_source_v1_source_context_proto_depIdxs = nil |
| } |