genproto: google.golang.org/genproto/googleapis/devtools/source/v1 Index | Files

package source

import "google.golang.org/genproto/googleapis/devtools/source/v1"

Index

Package Files

source_context.pb.go

Variables

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,
    }
)

Enum value maps for AliasContext_Kind.

var File_google_devtools_source_v1_source_context_proto protoreflect.FileDescriptor

type AliasContext Uses

type AliasContext struct {

    // 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"`
    // contains filtered or unexported fields
}

An alias to a repo revision.

func (*AliasContext) Descriptor Uses

func (*AliasContext) Descriptor() ([]byte, []int)

Deprecated: Use AliasContext.ProtoReflect.Descriptor instead.

func (*AliasContext) GetKind Uses

func (x *AliasContext) GetKind() AliasContext_Kind

func (*AliasContext) GetName Uses

func (x *AliasContext) GetName() string

func (*AliasContext) ProtoMessage Uses

func (*AliasContext) ProtoMessage()

func (*AliasContext) ProtoReflect Uses

func (x *AliasContext) ProtoReflect() protoreflect.Message

func (*AliasContext) Reset Uses

func (x *AliasContext) Reset()

func (*AliasContext) String Uses

func (x *AliasContext) String() string

type AliasContext_Kind Uses

type AliasContext_Kind int32

The type of an Alias.

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
)

func (AliasContext_Kind) Descriptor Uses

func (AliasContext_Kind) Descriptor() protoreflect.EnumDescriptor

func (AliasContext_Kind) Enum Uses

func (x AliasContext_Kind) Enum() *AliasContext_Kind

func (AliasContext_Kind) EnumDescriptor Uses

func (AliasContext_Kind) EnumDescriptor() ([]byte, []int)

Deprecated: Use AliasContext_Kind.Descriptor instead.

func (AliasContext_Kind) Number Uses

func (x AliasContext_Kind) Number() protoreflect.EnumNumber

func (AliasContext_Kind) String Uses

func (x AliasContext_Kind) String() string

func (AliasContext_Kind) Type Uses

func (AliasContext_Kind) Type() protoreflect.EnumType

type CloudRepoSourceContext Uses

type CloudRepoSourceContext struct {

    // 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"`
    // contains filtered or unexported fields
}

A CloudRepoSourceContext denotes a particular revision in a cloud repo (a repo hosted by the Google Cloud Platform).

func (*CloudRepoSourceContext) Descriptor Uses

func (*CloudRepoSourceContext) Descriptor() ([]byte, []int)

Deprecated: Use CloudRepoSourceContext.ProtoReflect.Descriptor instead.

func (*CloudRepoSourceContext) GetAliasContext Uses

func (x *CloudRepoSourceContext) GetAliasContext() *AliasContext

func (*CloudRepoSourceContext) GetAliasName Uses

func (x *CloudRepoSourceContext) GetAliasName() string

Deprecated: Do not use.

func (*CloudRepoSourceContext) GetRepoId Uses

func (x *CloudRepoSourceContext) GetRepoId() *RepoId

func (*CloudRepoSourceContext) GetRevision Uses

func (m *CloudRepoSourceContext) GetRevision() isCloudRepoSourceContext_Revision

func (*CloudRepoSourceContext) GetRevisionId Uses

func (x *CloudRepoSourceContext) GetRevisionId() string

func (*CloudRepoSourceContext) ProtoMessage Uses

func (*CloudRepoSourceContext) ProtoMessage()

func (*CloudRepoSourceContext) ProtoReflect Uses

func (x *CloudRepoSourceContext) ProtoReflect() protoreflect.Message

func (*CloudRepoSourceContext) Reset Uses

func (x *CloudRepoSourceContext) Reset()

func (*CloudRepoSourceContext) String Uses

func (x *CloudRepoSourceContext) String() string

type CloudRepoSourceContext_AliasContext Uses

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"`
}

type CloudRepoSourceContext_AliasName Uses

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_RevisionId Uses

type CloudRepoSourceContext_RevisionId struct {
    // A revision ID.
    RevisionId string `protobuf:"bytes,2,opt,name=revision_id,json=revisionId,proto3,oneof"`
}

type CloudWorkspaceId Uses

type CloudWorkspaceId struct {

    // 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"`
    // contains filtered or unexported fields
}

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.

func (*CloudWorkspaceId) Descriptor Uses

func (*CloudWorkspaceId) Descriptor() ([]byte, []int)

Deprecated: Use CloudWorkspaceId.ProtoReflect.Descriptor instead.

func (*CloudWorkspaceId) GetName Uses

func (x *CloudWorkspaceId) GetName() string

func (*CloudWorkspaceId) GetRepoId Uses

func (x *CloudWorkspaceId) GetRepoId() *RepoId

func (*CloudWorkspaceId) ProtoMessage Uses

func (*CloudWorkspaceId) ProtoMessage()

func (*CloudWorkspaceId) ProtoReflect Uses

func (x *CloudWorkspaceId) ProtoReflect() protoreflect.Message

func (*CloudWorkspaceId) Reset Uses

func (x *CloudWorkspaceId) Reset()

func (*CloudWorkspaceId) String Uses

func (x *CloudWorkspaceId) String() string

type CloudWorkspaceSourceContext Uses

type CloudWorkspaceSourceContext struct {

    // 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"`
    // contains filtered or unexported fields
}

A CloudWorkspaceSourceContext denotes a workspace at a particular snapshot.

func (*CloudWorkspaceSourceContext) Descriptor Uses

func (*CloudWorkspaceSourceContext) Descriptor() ([]byte, []int)

Deprecated: Use CloudWorkspaceSourceContext.ProtoReflect.Descriptor instead.

func (*CloudWorkspaceSourceContext) GetSnapshotId Uses

func (x *CloudWorkspaceSourceContext) GetSnapshotId() string

func (*CloudWorkspaceSourceContext) GetWorkspaceId Uses

func (x *CloudWorkspaceSourceContext) GetWorkspaceId() *CloudWorkspaceId

func (*CloudWorkspaceSourceContext) ProtoMessage Uses

func (*CloudWorkspaceSourceContext) ProtoMessage()

func (*CloudWorkspaceSourceContext) ProtoReflect Uses

func (x *CloudWorkspaceSourceContext) ProtoReflect() protoreflect.Message

func (*CloudWorkspaceSourceContext) Reset Uses

func (x *CloudWorkspaceSourceContext) Reset()

func (*CloudWorkspaceSourceContext) String Uses

func (x *CloudWorkspaceSourceContext) String() string

type ExtendedSourceContext Uses

type ExtendedSourceContext struct {

    // 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"`
    // contains filtered or unexported fields
}

An ExtendedSourceContext is a SourceContext combined with additional details describing the context.

func (*ExtendedSourceContext) Descriptor Uses

func (*ExtendedSourceContext) Descriptor() ([]byte, []int)

Deprecated: Use ExtendedSourceContext.ProtoReflect.Descriptor instead.

func (*ExtendedSourceContext) GetContext Uses

func (x *ExtendedSourceContext) GetContext() *SourceContext

func (*ExtendedSourceContext) GetLabels Uses

func (x *ExtendedSourceContext) GetLabels() map[string]string

func (*ExtendedSourceContext) ProtoMessage Uses

func (*ExtendedSourceContext) ProtoMessage()

func (*ExtendedSourceContext) ProtoReflect Uses

func (x *ExtendedSourceContext) ProtoReflect() protoreflect.Message

func (*ExtendedSourceContext) Reset Uses

func (x *ExtendedSourceContext) Reset()

func (*ExtendedSourceContext) String Uses

func (x *ExtendedSourceContext) String() string

type GerritSourceContext Uses

type GerritSourceContext struct {

    // 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"`
    // contains filtered or unexported fields
}

A SourceContext referring to a Gerrit project.

func (*GerritSourceContext) Descriptor Uses

func (*GerritSourceContext) Descriptor() ([]byte, []int)

Deprecated: Use GerritSourceContext.ProtoReflect.Descriptor instead.

func (*GerritSourceContext) GetAliasContext Uses

func (x *GerritSourceContext) GetAliasContext() *AliasContext

func (*GerritSourceContext) GetAliasName Uses

func (x *GerritSourceContext) GetAliasName() string

Deprecated: Do not use.

func (*GerritSourceContext) GetGerritProject Uses

func (x *GerritSourceContext) GetGerritProject() string

func (*GerritSourceContext) GetHostUri Uses

func (x *GerritSourceContext) GetHostUri() string

func (*GerritSourceContext) GetRevision Uses

func (m *GerritSourceContext) GetRevision() isGerritSourceContext_Revision

func (*GerritSourceContext) GetRevisionId Uses

func (x *GerritSourceContext) GetRevisionId() string

func (*GerritSourceContext) ProtoMessage Uses

func (*GerritSourceContext) ProtoMessage()

func (*GerritSourceContext) ProtoReflect Uses

func (x *GerritSourceContext) ProtoReflect() protoreflect.Message

func (*GerritSourceContext) Reset Uses

func (x *GerritSourceContext) Reset()

func (*GerritSourceContext) String Uses

func (x *GerritSourceContext) String() string

type GerritSourceContext_AliasContext Uses

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"`
}

type GerritSourceContext_AliasName Uses

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_RevisionId Uses

type GerritSourceContext_RevisionId struct {
    // A revision (commit) ID.
    RevisionId string `protobuf:"bytes,3,opt,name=revision_id,json=revisionId,proto3,oneof"`
}

type GitSourceContext Uses

type GitSourceContext struct {

    // 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"`
    // contains filtered or unexported fields
}

A GitSourceContext denotes a particular revision in a third party Git repository (e.g. GitHub).

func (*GitSourceContext) Descriptor Uses

func (*GitSourceContext) Descriptor() ([]byte, []int)

Deprecated: Use GitSourceContext.ProtoReflect.Descriptor instead.

func (*GitSourceContext) GetRevisionId Uses

func (x *GitSourceContext) GetRevisionId() string

func (*GitSourceContext) GetUrl Uses

func (x *GitSourceContext) GetUrl() string

func (*GitSourceContext) ProtoMessage Uses

func (*GitSourceContext) ProtoMessage()

func (*GitSourceContext) ProtoReflect Uses

func (x *GitSourceContext) ProtoReflect() protoreflect.Message

func (*GitSourceContext) Reset Uses

func (x *GitSourceContext) Reset()

func (*GitSourceContext) String Uses

func (x *GitSourceContext) String() string

type ProjectRepoId Uses

type ProjectRepoId struct {

    // 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"`
    // contains filtered or unexported fields
}

Selects a repo using a Google Cloud Platform project ID (e.g. winged-cargo-31) and a repo name within that project.

func (*ProjectRepoId) Descriptor Uses

func (*ProjectRepoId) Descriptor() ([]byte, []int)

Deprecated: Use ProjectRepoId.ProtoReflect.Descriptor instead.

func (*ProjectRepoId) GetProjectId Uses

func (x *ProjectRepoId) GetProjectId() string

func (*ProjectRepoId) GetRepoName Uses

func (x *ProjectRepoId) GetRepoName() string

func (*ProjectRepoId) ProtoMessage Uses

func (*ProjectRepoId) ProtoMessage()

func (*ProjectRepoId) ProtoReflect Uses

func (x *ProjectRepoId) ProtoReflect() protoreflect.Message

func (*ProjectRepoId) Reset Uses

func (x *ProjectRepoId) Reset()

func (*ProjectRepoId) String Uses

func (x *ProjectRepoId) String() string

type RepoId Uses

type RepoId struct {

    // 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"`
    // contains filtered or unexported fields
}

A unique identifier for a cloud repo.

func (*RepoId) Descriptor Uses

func (*RepoId) Descriptor() ([]byte, []int)

Deprecated: Use RepoId.ProtoReflect.Descriptor instead.

func (*RepoId) GetId Uses

func (m *RepoId) GetId() isRepoId_Id

func (*RepoId) GetProjectRepoId Uses

func (x *RepoId) GetProjectRepoId() *ProjectRepoId

func (*RepoId) GetUid Uses

func (x *RepoId) GetUid() string

func (*RepoId) ProtoMessage Uses

func (*RepoId) ProtoMessage()

func (*RepoId) ProtoReflect Uses

func (x *RepoId) ProtoReflect() protoreflect.Message

func (*RepoId) Reset Uses

func (x *RepoId) Reset()

func (*RepoId) String Uses

func (x *RepoId) String() string

type RepoId_ProjectRepoId Uses

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 Uses

type RepoId_Uid struct {
    // A server-assigned, globally unique identifier.
    Uid string `protobuf:"bytes,2,opt,name=uid,proto3,oneof"`
}

type SourceContext Uses

type SourceContext struct {

    // 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"`
    // contains filtered or unexported fields
}

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.

func (*SourceContext) Descriptor Uses

func (*SourceContext) Descriptor() ([]byte, []int)

Deprecated: Use SourceContext.ProtoReflect.Descriptor instead.

func (*SourceContext) GetCloudRepo Uses

func (x *SourceContext) GetCloudRepo() *CloudRepoSourceContext

func (*SourceContext) GetCloudWorkspace Uses

func (x *SourceContext) GetCloudWorkspace() *CloudWorkspaceSourceContext

func (*SourceContext) GetContext Uses

func (m *SourceContext) GetContext() isSourceContext_Context

func (*SourceContext) GetGerrit Uses

func (x *SourceContext) GetGerrit() *GerritSourceContext

func (*SourceContext) GetGit Uses

func (x *SourceContext) GetGit() *GitSourceContext

func (*SourceContext) ProtoMessage Uses

func (*SourceContext) ProtoMessage()

func (*SourceContext) ProtoReflect Uses

func (x *SourceContext) ProtoReflect() protoreflect.Message

func (*SourceContext) Reset Uses

func (x *SourceContext) Reset()

func (*SourceContext) String Uses

func (x *SourceContext) String() string

type SourceContext_CloudRepo Uses

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 Uses

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 Uses

type SourceContext_Gerrit struct {
    // A SourceContext referring to a Gerrit project.
    Gerrit *GerritSourceContext `protobuf:"bytes,3,opt,name=gerrit,proto3,oneof"`
}

type SourceContext_Git Uses

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"`
}

Package source imports 6 packages (graph) and is imported by 1 packages. Updated 2020-07-21. Refresh now. Tools for package owners.