source

package
v0.0.0-...-96659ae Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 17, 2018 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package source is a generated protocol buffer package.

It is generated from these files:

google/devtools/source/v1/source_context.proto

It has these top-level messages:

SourceContext
ExtendedSourceContext
AliasContext
CloudRepoSourceContext
CloudWorkspaceSourceContext
GerritSourceContext
GitSourceContext
RepoId
ProjectRepoId
CloudWorkspaceId

Index

Constants

This section is empty.

Variables

View Source
var AliasContext_Kind_name = map[int32]string{
	0: "ANY",
	1: "FIXED",
	2: "MOVABLE",
	4: "OTHER",
}
View Source
var AliasContext_Kind_value = map[string]int32{
	"ANY":     0,
	"FIXED":   1,
	"MOVABLE": 2,
	"OTHER":   4,
}

Functions

This section is empty.

Types

type AliasContext

type AliasContext struct {
	// The alias kind.
	Kind AliasContext_Kind `protobuf:"varint,1,opt,name=kind,enum=google.devtools.source.v1.AliasContext_Kind" json:"kind,omitempty"`
	// The alias name.
	Name string `protobuf:"bytes,2,opt,name=name" json:"name,omitempty"`
}

An alias to a repo revision.

func (*AliasContext) Descriptor

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

func (*AliasContext) GetKind

func (m *AliasContext) GetKind() AliasContext_Kind

func (*AliasContext) GetName

func (m *AliasContext) GetName() string

func (*AliasContext) ProtoMessage

func (*AliasContext) ProtoMessage()

func (*AliasContext) Reset

func (m *AliasContext) Reset()

func (*AliasContext) String

func (m *AliasContext) String() string

type AliasContext_Kind

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) EnumDescriptor

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

func (AliasContext_Kind) String

func (x AliasContext_Kind) String() string

type CloudRepoSourceContext

type CloudRepoSourceContext struct {
	// The ID of the repo.
	RepoId *RepoId `protobuf:"bytes,1,opt,name=repo_id,json=repoId" json:"repo_id,omitempty"`
	// A revision in a cloud repository can be identified by either its revision
	// ID or its Alias.
	//
	// Types that are valid to be assigned to Revision:
	//	*CloudRepoSourceContext_RevisionId
	//	*CloudRepoSourceContext_AliasName
	//	*CloudRepoSourceContext_AliasContext
	Revision isCloudRepoSourceContext_Revision `protobuf_oneof:"revision"`
}

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

func (*CloudRepoSourceContext) Descriptor

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

func (*CloudRepoSourceContext) GetAliasContext

func (m *CloudRepoSourceContext) GetAliasContext() *AliasContext

func (*CloudRepoSourceContext) GetAliasName

func (m *CloudRepoSourceContext) GetAliasName() string

func (*CloudRepoSourceContext) GetRepoId

func (m *CloudRepoSourceContext) GetRepoId() *RepoId

func (*CloudRepoSourceContext) GetRevision

func (m *CloudRepoSourceContext) GetRevision() isCloudRepoSourceContext_Revision

func (*CloudRepoSourceContext) GetRevisionId

func (m *CloudRepoSourceContext) GetRevisionId() string

func (*CloudRepoSourceContext) ProtoMessage

func (*CloudRepoSourceContext) ProtoMessage()

func (*CloudRepoSourceContext) Reset

func (m *CloudRepoSourceContext) Reset()

func (*CloudRepoSourceContext) String

func (m *CloudRepoSourceContext) String() string

func (*CloudRepoSourceContext) XXX_OneofFuncs

func (*CloudRepoSourceContext) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{})

XXX_OneofFuncs is for the internal use of the proto package.

type CloudRepoSourceContext_AliasContext

type CloudRepoSourceContext_AliasContext struct {
	AliasContext *AliasContext `protobuf:"bytes,4,opt,name=alias_context,json=aliasContext,oneof"`
}

type CloudRepoSourceContext_AliasName

type CloudRepoSourceContext_AliasName struct {
	AliasName string `protobuf:"bytes,3,opt,name=alias_name,json=aliasName,oneof"`
}

type CloudRepoSourceContext_RevisionId

type CloudRepoSourceContext_RevisionId struct {
	RevisionId string `protobuf:"bytes,2,opt,name=revision_id,json=revisionId,oneof"`
}

type CloudWorkspaceId

type CloudWorkspaceId struct {
	// The ID of the repo containing the workspace.
	RepoId *RepoId `protobuf:"bytes,1,opt,name=repo_id,json=repoId" 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" json:"name,omitempty"`
}

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

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

func (*CloudWorkspaceId) GetName

func (m *CloudWorkspaceId) GetName() string

func (*CloudWorkspaceId) GetRepoId

func (m *CloudWorkspaceId) GetRepoId() *RepoId

func (*CloudWorkspaceId) ProtoMessage

func (*CloudWorkspaceId) ProtoMessage()

func (*CloudWorkspaceId) Reset

func (m *CloudWorkspaceId) Reset()

func (*CloudWorkspaceId) String

func (m *CloudWorkspaceId) String() string

type CloudWorkspaceSourceContext

type CloudWorkspaceSourceContext struct {
	// The ID of the workspace.
	WorkspaceId *CloudWorkspaceId `protobuf:"bytes,1,opt,name=workspace_id,json=workspaceId" 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" json:"snapshot_id,omitempty"`
}

A CloudWorkspaceSourceContext denotes a workspace at a particular snapshot.

func (*CloudWorkspaceSourceContext) Descriptor

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

func (*CloudWorkspaceSourceContext) GetSnapshotId

func (m *CloudWorkspaceSourceContext) GetSnapshotId() string

func (*CloudWorkspaceSourceContext) GetWorkspaceId

func (m *CloudWorkspaceSourceContext) GetWorkspaceId() *CloudWorkspaceId

func (*CloudWorkspaceSourceContext) ProtoMessage

func (*CloudWorkspaceSourceContext) ProtoMessage()

func (*CloudWorkspaceSourceContext) Reset

func (m *CloudWorkspaceSourceContext) Reset()

func (*CloudWorkspaceSourceContext) String

func (m *CloudWorkspaceSourceContext) String() string

type ExtendedSourceContext

type ExtendedSourceContext struct {
	// Any source context.
	Context *SourceContext `protobuf:"bytes,1,opt,name=context" json:"context,omitempty"`
	// Labels with user defined metadata.
	Labels map[string]string `` /* 132-byte string literal not displayed */
}

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

func (*ExtendedSourceContext) Descriptor

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

func (*ExtendedSourceContext) GetContext

func (m *ExtendedSourceContext) GetContext() *SourceContext

func (*ExtendedSourceContext) GetLabels

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

func (*ExtendedSourceContext) ProtoMessage

func (*ExtendedSourceContext) ProtoMessage()

func (*ExtendedSourceContext) Reset

func (m *ExtendedSourceContext) Reset()

func (*ExtendedSourceContext) String

func (m *ExtendedSourceContext) String() string

type GerritSourceContext

type GerritSourceContext struct {
	// The URI of a running Gerrit instance.
	HostUri string `protobuf:"bytes,1,opt,name=host_uri,json=hostUri" 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" json:"gerrit_project,omitempty"`
	// A revision in a Gerrit project can be identified by either its revision ID
	// or its alias.
	//
	// Types that are valid to be assigned to Revision:
	//	*GerritSourceContext_RevisionId
	//	*GerritSourceContext_AliasName
	//	*GerritSourceContext_AliasContext
	Revision isGerritSourceContext_Revision `protobuf_oneof:"revision"`
}

A SourceContext referring to a Gerrit project.

func (*GerritSourceContext) Descriptor

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

func (*GerritSourceContext) GetAliasContext

func (m *GerritSourceContext) GetAliasContext() *AliasContext

func (*GerritSourceContext) GetAliasName

func (m *GerritSourceContext) GetAliasName() string

func (*GerritSourceContext) GetGerritProject

func (m *GerritSourceContext) GetGerritProject() string

func (*GerritSourceContext) GetHostUri

func (m *GerritSourceContext) GetHostUri() string

func (*GerritSourceContext) GetRevision

func (m *GerritSourceContext) GetRevision() isGerritSourceContext_Revision

func (*GerritSourceContext) GetRevisionId

func (m *GerritSourceContext) GetRevisionId() string

func (*GerritSourceContext) ProtoMessage

func (*GerritSourceContext) ProtoMessage()

func (*GerritSourceContext) Reset

func (m *GerritSourceContext) Reset()

func (*GerritSourceContext) String

func (m *GerritSourceContext) String() string

func (*GerritSourceContext) XXX_OneofFuncs

func (*GerritSourceContext) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{})

XXX_OneofFuncs is for the internal use of the proto package.

type GerritSourceContext_AliasContext

type GerritSourceContext_AliasContext struct {
	AliasContext *AliasContext `protobuf:"bytes,5,opt,name=alias_context,json=aliasContext,oneof"`
}

type GerritSourceContext_AliasName

type GerritSourceContext_AliasName struct {
	AliasName string `protobuf:"bytes,4,opt,name=alias_name,json=aliasName,oneof"`
}

type GerritSourceContext_RevisionId

type GerritSourceContext_RevisionId struct {
	RevisionId string `protobuf:"bytes,3,opt,name=revision_id,json=revisionId,oneof"`
}

type GitSourceContext

type GitSourceContext struct {
	// Git repository URL.
	Url string `protobuf:"bytes,1,opt,name=url" json:"url,omitempty"`
	// Git commit hash.
	// required.
	RevisionId string `protobuf:"bytes,2,opt,name=revision_id,json=revisionId" json:"revision_id,omitempty"`
}

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

func (*GitSourceContext) Descriptor

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

func (*GitSourceContext) GetRevisionId

func (m *GitSourceContext) GetRevisionId() string

func (*GitSourceContext) GetUrl

func (m *GitSourceContext) GetUrl() string

func (*GitSourceContext) ProtoMessage

func (*GitSourceContext) ProtoMessage()

func (*GitSourceContext) Reset

func (m *GitSourceContext) Reset()

func (*GitSourceContext) String

func (m *GitSourceContext) String() string

type ProjectRepoId

type ProjectRepoId struct {
	// The ID of the project.
	ProjectId string `protobuf:"bytes,1,opt,name=project_id,json=projectId" 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" json:"repo_name,omitempty"`
}

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

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

func (*ProjectRepoId) GetProjectId

func (m *ProjectRepoId) GetProjectId() string

func (*ProjectRepoId) GetRepoName

func (m *ProjectRepoId) GetRepoName() string

func (*ProjectRepoId) ProtoMessage

func (*ProjectRepoId) ProtoMessage()

func (*ProjectRepoId) Reset

func (m *ProjectRepoId) Reset()

func (*ProjectRepoId) String

func (m *ProjectRepoId) String() string

type RepoId

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 valid to be assigned to Id:
	//	*RepoId_ProjectRepoId
	//	*RepoId_Uid
	Id isRepoId_Id `protobuf_oneof:"id"`
}

A unique identifier for a cloud repo.

func (*RepoId) Descriptor

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

func (*RepoId) GetId

func (m *RepoId) GetId() isRepoId_Id

func (*RepoId) GetProjectRepoId

func (m *RepoId) GetProjectRepoId() *ProjectRepoId

func (*RepoId) GetUid

func (m *RepoId) GetUid() string

func (*RepoId) ProtoMessage

func (*RepoId) ProtoMessage()

func (*RepoId) Reset

func (m *RepoId) Reset()

func (*RepoId) String

func (m *RepoId) String() string

func (*RepoId) XXX_OneofFuncs

func (*RepoId) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{})

XXX_OneofFuncs is for the internal use of the proto package.

type RepoId_ProjectRepoId

type RepoId_ProjectRepoId struct {
	ProjectRepoId *ProjectRepoId `protobuf:"bytes,1,opt,name=project_repo_id,json=projectRepoId,oneof"`
}

type RepoId_Uid

type RepoId_Uid struct {
	Uid string `protobuf:"bytes,2,opt,name=uid,oneof"`
}

type SourceContext

type SourceContext struct {
	// A SourceContext can refer any one of the following types of repositories.
	//
	// Types that are valid to be assigned to Context:
	//	*SourceContext_CloudRepo
	//	*SourceContext_CloudWorkspace
	//	*SourceContext_Gerrit
	//	*SourceContext_Git
	Context isSourceContext_Context `protobuf_oneof:"context"`
}

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

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

func (*SourceContext) GetCloudRepo

func (m *SourceContext) GetCloudRepo() *CloudRepoSourceContext

func (*SourceContext) GetCloudWorkspace

func (m *SourceContext) GetCloudWorkspace() *CloudWorkspaceSourceContext

func (*SourceContext) GetContext

func (m *SourceContext) GetContext() isSourceContext_Context

func (*SourceContext) GetGerrit

func (m *SourceContext) GetGerrit() *GerritSourceContext

func (*SourceContext) GetGit

func (m *SourceContext) GetGit() *GitSourceContext

func (*SourceContext) ProtoMessage

func (*SourceContext) ProtoMessage()

func (*SourceContext) Reset

func (m *SourceContext) Reset()

func (*SourceContext) String

func (m *SourceContext) String() string

func (*SourceContext) XXX_OneofFuncs

func (*SourceContext) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{})

XXX_OneofFuncs is for the internal use of the proto package.

type SourceContext_CloudRepo

type SourceContext_CloudRepo struct {
	CloudRepo *CloudRepoSourceContext `protobuf:"bytes,1,opt,name=cloud_repo,json=cloudRepo,oneof"`
}

type SourceContext_CloudWorkspace

type SourceContext_CloudWorkspace struct {
	CloudWorkspace *CloudWorkspaceSourceContext `protobuf:"bytes,2,opt,name=cloud_workspace,json=cloudWorkspace,oneof"`
}

type SourceContext_Gerrit

type SourceContext_Gerrit struct {
	Gerrit *GerritSourceContext `protobuf:"bytes,3,opt,name=gerrit,oneof"`
}

type SourceContext_Git

type SourceContext_Git struct {
	Git *GitSourceContext `protobuf:"bytes,6,opt,name=git,oneof"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL