Constants
RepositoryManager_CreateConnection_FullMethodName, RepositoryManager_GetConnection_FullMethodName, RepositoryManager_ListConnections_FullMethodName, RepositoryManager_UpdateConnection_FullMethodName, RepositoryManager_DeleteConnection_FullMethodName, RepositoryManager_CreateRepository_FullMethodName, RepositoryManager_BatchCreateRepositories_FullMethodName, RepositoryManager_GetRepository_FullMethodName, RepositoryManager_ListRepositories_FullMethodName, RepositoryManager_DeleteRepository_FullMethodName, RepositoryManager_FetchReadWriteToken_FullMethodName, RepositoryManager_FetchReadToken_FullMethodName, RepositoryManager_FetchLinkableRepositories_FullMethodName, RepositoryManager_FetchGitRefs_FullMethodName
const (
RepositoryManager_CreateConnection_FullMethodName = "/google.devtools.cloudbuild.v2.RepositoryManager/CreateConnection"
RepositoryManager_GetConnection_FullMethodName = "/google.devtools.cloudbuild.v2.RepositoryManager/GetConnection"
RepositoryManager_ListConnections_FullMethodName = "/google.devtools.cloudbuild.v2.RepositoryManager/ListConnections"
RepositoryManager_UpdateConnection_FullMethodName = "/google.devtools.cloudbuild.v2.RepositoryManager/UpdateConnection"
RepositoryManager_DeleteConnection_FullMethodName = "/google.devtools.cloudbuild.v2.RepositoryManager/DeleteConnection"
RepositoryManager_CreateRepository_FullMethodName = "/google.devtools.cloudbuild.v2.RepositoryManager/CreateRepository"
RepositoryManager_BatchCreateRepositories_FullMethodName = "/google.devtools.cloudbuild.v2.RepositoryManager/BatchCreateRepositories"
RepositoryManager_GetRepository_FullMethodName = "/google.devtools.cloudbuild.v2.RepositoryManager/GetRepository"
RepositoryManager_ListRepositories_FullMethodName = "/google.devtools.cloudbuild.v2.RepositoryManager/ListRepositories"
RepositoryManager_DeleteRepository_FullMethodName = "/google.devtools.cloudbuild.v2.RepositoryManager/DeleteRepository"
RepositoryManager_FetchReadWriteToken_FullMethodName = "/google.devtools.cloudbuild.v2.RepositoryManager/FetchReadWriteToken"
RepositoryManager_FetchReadToken_FullMethodName = "/google.devtools.cloudbuild.v2.RepositoryManager/FetchReadToken"
RepositoryManager_FetchLinkableRepositories_FullMethodName = "/google.devtools.cloudbuild.v2.RepositoryManager/FetchLinkableRepositories"
RepositoryManager_FetchGitRefs_FullMethodName = "/google.devtools.cloudbuild.v2.RepositoryManager/FetchGitRefs"
)Variables
InstallationState_Stage_name, InstallationState_Stage_value
var (
InstallationState_Stage_name = map[int32]string{
0: "STAGE_UNSPECIFIED",
1: "PENDING_CREATE_APP",
2: "PENDING_USER_OAUTH",
3: "PENDING_INSTALL_APP",
10: "COMPLETE",
}
InstallationState_Stage_value = map[string]int32{
"STAGE_UNSPECIFIED": 0,
"PENDING_CREATE_APP": 1,
"PENDING_USER_OAUTH": 2,
"PENDING_INSTALL_APP": 3,
"COMPLETE": 10,
}
)Enum value maps for InstallationState_Stage.
FetchGitRefsRequest_RefType_name, FetchGitRefsRequest_RefType_value
var (
FetchGitRefsRequest_RefType_name = map[int32]string{
0: "REF_TYPE_UNSPECIFIED",
1: "TAG",
2: "BRANCH",
}
FetchGitRefsRequest_RefType_value = map[string]int32{
"REF_TYPE_UNSPECIFIED": 0,
"TAG": 1,
"BRANCH": 2,
}
)Enum value maps for FetchGitRefsRequest_RefType.
File_google_devtools_cloudbuild_v2_cloudbuild_proto
var File_google_devtools_cloudbuild_v2_cloudbuild_proto protoreflect.FileDescriptorFile_google_devtools_cloudbuild_v2_repositories_proto
var File_google_devtools_cloudbuild_v2_repositories_proto protoreflect.FileDescriptorRepositoryManager_ServiceDesc
var RepositoryManager_ServiceDesc = grpc.ServiceDesc{
ServiceName: "google.devtools.cloudbuild.v2.RepositoryManager",
HandlerType: (*RepositoryManagerServer)(nil),
Methods: []grpc.MethodDesc{
{
MethodName: "CreateConnection",
Handler: _RepositoryManager_CreateConnection_Handler,
},
{
MethodName: "GetConnection",
Handler: _RepositoryManager_GetConnection_Handler,
},
{
MethodName: "ListConnections",
Handler: _RepositoryManager_ListConnections_Handler,
},
{
MethodName: "UpdateConnection",
Handler: _RepositoryManager_UpdateConnection_Handler,
},
{
MethodName: "DeleteConnection",
Handler: _RepositoryManager_DeleteConnection_Handler,
},
{
MethodName: "CreateRepository",
Handler: _RepositoryManager_CreateRepository_Handler,
},
{
MethodName: "BatchCreateRepositories",
Handler: _RepositoryManager_BatchCreateRepositories_Handler,
},
{
MethodName: "GetRepository",
Handler: _RepositoryManager_GetRepository_Handler,
},
{
MethodName: "ListRepositories",
Handler: _RepositoryManager_ListRepositories_Handler,
},
{
MethodName: "DeleteRepository",
Handler: _RepositoryManager_DeleteRepository_Handler,
},
{
MethodName: "FetchReadWriteToken",
Handler: _RepositoryManager_FetchReadWriteToken_Handler,
},
{
MethodName: "FetchReadToken",
Handler: _RepositoryManager_FetchReadToken_Handler,
},
{
MethodName: "FetchLinkableRepositories",
Handler: _RepositoryManager_FetchLinkableRepositories_Handler,
},
{
MethodName: "FetchGitRefs",
Handler: _RepositoryManager_FetchGitRefs_Handler,
},
},
Streams: []grpc.StreamDesc{},
Metadata: "google/devtools/cloudbuild/v2/repositories.proto",
}RepositoryManager_ServiceDesc is the grpc.ServiceDesc for RepositoryManager service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions
func RegisterRepositoryManagerServer
func RegisterRepositoryManagerServer(s grpc.ServiceRegistrar, srv RepositoryManagerServer)BatchCreateRepositoriesRequest
type BatchCreateRepositoriesRequest struct {
// Required. The connection to contain all the repositories being created.
// Format: projects/*/locations/*/connections/*
// The parent field in the CreateRepositoryRequest messages
// must either be empty or match this field.
Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
// Required. The request messages specifying the repositories to create.
Requests []*CreateRepositoryRequest `protobuf:"bytes,2,rep,name=requests,proto3" json:"requests,omitempty"`
// contains filtered or unexported fields
}Message for creating repositoritories in batch.
func (*BatchCreateRepositoriesRequest) Descriptor
func (*BatchCreateRepositoriesRequest) Descriptor() ([]byte, []int)Deprecated: Use BatchCreateRepositoriesRequest.ProtoReflect.Descriptor instead.
func (*BatchCreateRepositoriesRequest) GetParent
func (x *BatchCreateRepositoriesRequest) GetParent() stringfunc (*BatchCreateRepositoriesRequest) GetRequests
func (x *BatchCreateRepositoriesRequest) GetRequests() []*CreateRepositoryRequestfunc (*BatchCreateRepositoriesRequest) ProtoMessage
func (*BatchCreateRepositoriesRequest) ProtoMessage()func (*BatchCreateRepositoriesRequest) ProtoReflect
func (x *BatchCreateRepositoriesRequest) ProtoReflect() protoreflect.Messagefunc (*BatchCreateRepositoriesRequest) Reset
func (x *BatchCreateRepositoriesRequest) Reset()func (*BatchCreateRepositoriesRequest) String
func (x *BatchCreateRepositoriesRequest) String() stringBatchCreateRepositoriesResponse
type BatchCreateRepositoriesResponse struct {
// Repository resources created.
Repositories []*Repository `protobuf:"bytes,1,rep,name=repositories,proto3" json:"repositories,omitempty"`
// contains filtered or unexported fields
}Message for response of creating repositories in batch.
func (*BatchCreateRepositoriesResponse) Descriptor
func (*BatchCreateRepositoriesResponse) Descriptor() ([]byte, []int)Deprecated: Use BatchCreateRepositoriesResponse.ProtoReflect.Descriptor instead.
func (*BatchCreateRepositoriesResponse) GetRepositories
func (x *BatchCreateRepositoriesResponse) GetRepositories() []*Repositoryfunc (*BatchCreateRepositoriesResponse) ProtoMessage
func (*BatchCreateRepositoriesResponse) ProtoMessage()func (*BatchCreateRepositoriesResponse) ProtoReflect
func (x *BatchCreateRepositoriesResponse) ProtoReflect() protoreflect.Messagefunc (*BatchCreateRepositoriesResponse) Reset
func (x *BatchCreateRepositoriesResponse) Reset()func (*BatchCreateRepositoriesResponse) String
func (x *BatchCreateRepositoriesResponse) String() stringBitbucketCloudConfig
type BitbucketCloudConfig struct {
// Required. The Bitbucket Cloud Workspace ID to be connected to Google Cloud
// Platform.
Workspace string `protobuf:"bytes,1,opt,name=workspace,proto3" json:"workspace,omitempty"`
// Required. SecretManager resource containing the webhook secret used to
// verify webhook events, formatted as `projects/*/secrets/*/versions/*`.
WebhookSecretSecretVersion string `protobuf:"bytes,2,opt,name=webhook_secret_secret_version,json=webhookSecretSecretVersion,proto3" json:"webhook_secret_secret_version,omitempty"`
// Required. An access token with the `repository` access. It can be either a
// workspace, project or repository access token. It's recommended to use a
// system account to generate the credentials.
ReadAuthorizerCredential *UserCredential `protobuf:"bytes,3,opt,name=read_authorizer_credential,json=readAuthorizerCredential,proto3" json:"read_authorizer_credential,omitempty"`
// Required. An access token with the `webhook`, `repository`,
// `repository:admin` and `pullrequest` scope access. It can be either a
// workspace, project or repository access token. It's recommended to use a
// system account to generate these credentials.
AuthorizerCredential *UserCredential `protobuf:"bytes,4,opt,name=authorizer_credential,json=authorizerCredential,proto3" json:"authorizer_credential,omitempty"`
// contains filtered or unexported fields
}Configuration for connections to Bitbucket Cloud.
func (*BitbucketCloudConfig) Descriptor
func (*BitbucketCloudConfig) Descriptor() ([]byte, []int)Deprecated: Use BitbucketCloudConfig.ProtoReflect.Descriptor instead.
func (*BitbucketCloudConfig) GetAuthorizerCredential
func (x *BitbucketCloudConfig) GetAuthorizerCredential() *UserCredentialfunc (*BitbucketCloudConfig) GetReadAuthorizerCredential
func (x *BitbucketCloudConfig) GetReadAuthorizerCredential() *UserCredentialfunc (*BitbucketCloudConfig) GetWebhookSecretSecretVersion
func (x *BitbucketCloudConfig) GetWebhookSecretSecretVersion() stringfunc (*BitbucketCloudConfig) GetWorkspace
func (x *BitbucketCloudConfig) GetWorkspace() stringfunc (*BitbucketCloudConfig) ProtoMessage
func (*BitbucketCloudConfig) ProtoMessage()func (*BitbucketCloudConfig) ProtoReflect
func (x *BitbucketCloudConfig) ProtoReflect() protoreflect.Messagefunc (*BitbucketCloudConfig) Reset
func (x *BitbucketCloudConfig) Reset()func (*BitbucketCloudConfig) String
func (x *BitbucketCloudConfig) String() stringBitbucketDataCenterConfig
type BitbucketDataCenterConfig struct {
// Required. The URI of the Bitbucket Data Center instance or cluster this
// connection is for.
HostUri string `protobuf:"bytes,1,opt,name=host_uri,json=hostUri,proto3" json:"host_uri,omitempty"`
// Required. Immutable. SecretManager resource containing the webhook secret
// used to verify webhook events, formatted as
// `projects/*/secrets/*/versions/*`.
WebhookSecretSecretVersion string `protobuf:"bytes,2,opt,name=webhook_secret_secret_version,json=webhookSecretSecretVersion,proto3" json:"webhook_secret_secret_version,omitempty"`
// Required. A http access token with the `REPO_READ` access.
ReadAuthorizerCredential *UserCredential `protobuf:"bytes,3,opt,name=read_authorizer_credential,json=readAuthorizerCredential,proto3" json:"read_authorizer_credential,omitempty"`
// Required. A http access token with the `REPO_ADMIN` scope access.
AuthorizerCredential *UserCredential `protobuf:"bytes,4,opt,name=authorizer_credential,json=authorizerCredential,proto3" json:"authorizer_credential,omitempty"`
// Optional. Configuration for using Service Directory to privately connect to
// a Bitbucket Data Center. This should only be set if the Bitbucket Data
// Center is hosted on-premises and not reachable by public internet. If this
// field is left empty, calls to the Bitbucket Data Center will be made over
// the public internet.
ServiceDirectoryConfig *ServiceDirectoryConfig `protobuf:"bytes,5,opt,name=service_directory_config,json=serviceDirectoryConfig,proto3" json:"service_directory_config,omitempty"`
// Optional. SSL certificate to use for requests to the Bitbucket Data Center.
SslCa string `protobuf:"bytes,6,opt,name=ssl_ca,json=sslCa,proto3" json:"ssl_ca,omitempty"`
// Output only. Version of the Bitbucket Data Center running on the
// `host_uri`.
ServerVersion string `protobuf:"bytes,7,opt,name=server_version,json=serverVersion,proto3" json:"server_version,omitempty"`
// contains filtered or unexported fields
}Configuration for connections to Bitbucket Data Center.
func (*BitbucketDataCenterConfig) Descriptor
func (*BitbucketDataCenterConfig) Descriptor() ([]byte, []int)Deprecated: Use BitbucketDataCenterConfig.ProtoReflect.Descriptor instead.
func (*BitbucketDataCenterConfig) GetAuthorizerCredential
func (x *BitbucketDataCenterConfig) GetAuthorizerCredential() *UserCredentialfunc (*BitbucketDataCenterConfig) GetHostUri
func (x *BitbucketDataCenterConfig) GetHostUri() stringfunc (*BitbucketDataCenterConfig) GetReadAuthorizerCredential
func (x *BitbucketDataCenterConfig) GetReadAuthorizerCredential() *UserCredentialfunc (*BitbucketDataCenterConfig) GetServerVersion
func (x *BitbucketDataCenterConfig) GetServerVersion() stringfunc (*BitbucketDataCenterConfig) GetServiceDirectoryConfig
func (x *BitbucketDataCenterConfig) GetServiceDirectoryConfig() *ServiceDirectoryConfigfunc (*BitbucketDataCenterConfig) GetSslCa
func (x *BitbucketDataCenterConfig) GetSslCa() stringfunc (*BitbucketDataCenterConfig) GetWebhookSecretSecretVersion
func (x *BitbucketDataCenterConfig) GetWebhookSecretSecretVersion() stringfunc (*BitbucketDataCenterConfig) ProtoMessage
func (*BitbucketDataCenterConfig) ProtoMessage()func (*BitbucketDataCenterConfig) ProtoReflect
func (x *BitbucketDataCenterConfig) ProtoReflect() protoreflect.Messagefunc (*BitbucketDataCenterConfig) Reset
func (x *BitbucketDataCenterConfig) Reset()func (*BitbucketDataCenterConfig) String
func (x *BitbucketDataCenterConfig) String() stringConnection
type Connection struct {
// Immutable. The resource name of the connection, in the format
// `projects/{project}/locations/{location}/connections/{connection_id}`.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// Output only. Server assigned timestamp for when the connection was created.
CreateTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
// Output only. Server assigned timestamp for when the connection was updated.
UpdateTime *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"`
// Configuration for the connection depending on the type of provider.
//
// Types that are assignable to ConnectionConfig:
//
// *Connection_GithubConfig
// *Connection_GithubEnterpriseConfig
// *Connection_GitlabConfig
// *Connection_BitbucketDataCenterConfig
// *Connection_BitbucketCloudConfig
ConnectionConfig isConnection_ConnectionConfig `protobuf_oneof:"connection_config"`
// Output only. Installation state of the Connection.
InstallationState *InstallationState `protobuf:"bytes,12,opt,name=installation_state,json=installationState,proto3" json:"installation_state,omitempty"`
// If disabled is set to true, functionality is disabled for this connection.
// Repository based API methods and webhooks processing for repositories in
// this connection will be disabled.
Disabled bool `protobuf:"varint,13,opt,name=disabled,proto3" json:"disabled,omitempty"`
// Output only. Set to true when the connection is being set up or updated in
// the background.
Reconciling bool `protobuf:"varint,14,opt,name=reconciling,proto3" json:"reconciling,omitempty"`
// Allows clients to store small amounts of arbitrary data.
Annotations map[string]string `protobuf:"bytes,15,rep,name=annotations,proto3" json:"annotations,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
// This checksum is computed by the server based on the value of other
// fields, and may be sent on update and delete requests to ensure the
// client has an up-to-date value before proceeding.
Etag string `protobuf:"bytes,16,opt,name=etag,proto3" json:"etag,omitempty"`
// contains filtered or unexported fields
}A connection to a SCM like GitHub, GitHub Enterprise, Bitbucket Data Center, Bitbucket Cloud or GitLab.
func (*Connection) Descriptor
func (*Connection) Descriptor() ([]byte, []int)Deprecated: Use Connection.ProtoReflect.Descriptor instead.
func (*Connection) GetAnnotations
func (x *Connection) GetAnnotations() map[string]stringfunc (*Connection) GetBitbucketCloudConfig
func (x *Connection) GetBitbucketCloudConfig() *BitbucketCloudConfigfunc (*Connection) GetBitbucketDataCenterConfig
func (x *Connection) GetBitbucketDataCenterConfig() *BitbucketDataCenterConfigfunc (*Connection) GetConnectionConfig
func (m *Connection) GetConnectionConfig() isConnection_ConnectionConfigfunc (*Connection) GetCreateTime
func (x *Connection) GetCreateTime() *timestamppb.Timestampfunc (*Connection) GetDisabled
func (x *Connection) GetDisabled() boolfunc (*Connection) GetEtag
func (x *Connection) GetEtag() stringfunc (*Connection) GetGithubConfig
func (x *Connection) GetGithubConfig() *GitHubConfigfunc (*Connection) GetGithubEnterpriseConfig
func (x *Connection) GetGithubEnterpriseConfig() *GitHubEnterpriseConfigfunc (*Connection) GetGitlabConfig
func (x *Connection) GetGitlabConfig() *GitLabConfigfunc (*Connection) GetInstallationState
func (x *Connection) GetInstallationState() *InstallationStatefunc (*Connection) GetName
func (x *Connection) GetName() stringfunc (*Connection) GetReconciling
func (x *Connection) GetReconciling() boolfunc (*Connection) GetUpdateTime
func (x *Connection) GetUpdateTime() *timestamppb.Timestampfunc (*Connection) ProtoMessage
func (*Connection) ProtoMessage()func (*Connection) ProtoReflect
func (x *Connection) ProtoReflect() protoreflect.Messagefunc (*Connection) Reset
func (x *Connection) Reset()func (*Connection) String
func (x *Connection) String() stringConnection_BitbucketCloudConfig
type Connection_BitbucketCloudConfig struct {
// Configuration for connections to Bitbucket Cloud.
BitbucketCloudConfig *BitbucketCloudConfig `protobuf:"bytes,9,opt,name=bitbucket_cloud_config,json=bitbucketCloudConfig,proto3,oneof"`
}Connection_BitbucketDataCenterConfig
type Connection_BitbucketDataCenterConfig struct {
// Configuration for connections to Bitbucket Data Center.
BitbucketDataCenterConfig *BitbucketDataCenterConfig `protobuf:"bytes,8,opt,name=bitbucket_data_center_config,json=bitbucketDataCenterConfig,proto3,oneof"`
}Connection_GithubConfig
type Connection_GithubConfig struct {
// Configuration for connections to github.com.
GithubConfig *GitHubConfig `protobuf:"bytes,5,opt,name=github_config,json=githubConfig,proto3,oneof"`
}Connection_GithubEnterpriseConfig
type Connection_GithubEnterpriseConfig struct {
// Configuration for connections to an instance of GitHub Enterprise.
GithubEnterpriseConfig *GitHubEnterpriseConfig `protobuf:"bytes,6,opt,name=github_enterprise_config,json=githubEnterpriseConfig,proto3,oneof"`
}Connection_GitlabConfig
type Connection_GitlabConfig struct {
// Configuration for connections to gitlab.com or an instance of GitLab
// Enterprise.
GitlabConfig *GitLabConfig `protobuf:"bytes,7,opt,name=gitlab_config,json=gitlabConfig,proto3,oneof"`
}CreateConnectionRequest
type CreateConnectionRequest struct {
// Required. Project and location where the connection will be created.
// Format: `projects/*/locations/*`.
Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
// Required. The Connection to create.
Connection *Connection `protobuf:"bytes,2,opt,name=connection,proto3" json:"connection,omitempty"`
// Required. The ID to use for the Connection, which will become the final
// component of the Connection's resource name. Names must be unique
// per-project per-location. Allows alphanumeric characters and any of
// -._~%!$&'()*+,;=@.
ConnectionId string `protobuf:"bytes,3,opt,name=connection_id,json=connectionId,proto3" json:"connection_id,omitempty"`
// contains filtered or unexported fields
}Message for creating a Connection
func (*CreateConnectionRequest) Descriptor
func (*CreateConnectionRequest) Descriptor() ([]byte, []int)Deprecated: Use CreateConnectionRequest.ProtoReflect.Descriptor instead.
func (*CreateConnectionRequest) GetConnection
func (x *CreateConnectionRequest) GetConnection() *Connectionfunc (*CreateConnectionRequest) GetConnectionId
func (x *CreateConnectionRequest) GetConnectionId() stringfunc (*CreateConnectionRequest) GetParent
func (x *CreateConnectionRequest) GetParent() stringfunc (*CreateConnectionRequest) ProtoMessage
func (*CreateConnectionRequest) ProtoMessage()func (*CreateConnectionRequest) ProtoReflect
func (x *CreateConnectionRequest) ProtoReflect() protoreflect.Messagefunc (*CreateConnectionRequest) Reset
func (x *CreateConnectionRequest) Reset()func (*CreateConnectionRequest) String
func (x *CreateConnectionRequest) String() stringCreateRepositoryRequest
type CreateRepositoryRequest struct {
// Required. The connection to contain the repository. If the request is part
// of a BatchCreateRepositoriesRequest, this field should be empty or match
// the parent specified there.
Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
// Required. The repository to create.
Repository *Repository `protobuf:"bytes,2,opt,name=repository,proto3" json:"repository,omitempty"`
// Required. The ID to use for the repository, which will become the final
// component of the repository's resource name. This ID should be unique in
// the connection. Allows alphanumeric characters and any of
// -._~%!$&'()*+,;=@.
RepositoryId string `protobuf:"bytes,3,opt,name=repository_id,json=repositoryId,proto3" json:"repository_id,omitempty"`
// contains filtered or unexported fields
}Message for creating a Repository.
func (*CreateRepositoryRequest) Descriptor
func (*CreateRepositoryRequest) Descriptor() ([]byte, []int)Deprecated: Use CreateRepositoryRequest.ProtoReflect.Descriptor instead.
func (*CreateRepositoryRequest) GetParent
func (x *CreateRepositoryRequest) GetParent() stringfunc (*CreateRepositoryRequest) GetRepository
func (x *CreateRepositoryRequest) GetRepository() *Repositoryfunc (*CreateRepositoryRequest) GetRepositoryId
func (x *CreateRepositoryRequest) GetRepositoryId() stringfunc (*CreateRepositoryRequest) ProtoMessage
func (*CreateRepositoryRequest) ProtoMessage()func (*CreateRepositoryRequest) ProtoReflect
func (x *CreateRepositoryRequest) ProtoReflect() protoreflect.Messagefunc (*CreateRepositoryRequest) Reset
func (x *CreateRepositoryRequest) Reset()func (*CreateRepositoryRequest) String
func (x *CreateRepositoryRequest) String() stringDeleteConnectionRequest
type DeleteConnectionRequest struct {
// Required. The name of the Connection to delete.
// Format: `projects/*/locations/*/connections/*`.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// The current etag of the connection.
// If an etag is provided and does not match the current etag of the
// connection, deletion will be blocked and an ABORTED error will be returned.
Etag string `protobuf:"bytes,2,opt,name=etag,proto3" json:"etag,omitempty"`
// If set, validate the request, but do not actually post it.
ValidateOnly bool `protobuf:"varint,3,opt,name=validate_only,json=validateOnly,proto3" json:"validate_only,omitempty"`
// contains filtered or unexported fields
}Message for deleting a Connection.
func (*DeleteConnectionRequest) Descriptor
func (*DeleteConnectionRequest) Descriptor() ([]byte, []int)Deprecated: Use DeleteConnectionRequest.ProtoReflect.Descriptor instead.
func (*DeleteConnectionRequest) GetEtag
func (x *DeleteConnectionRequest) GetEtag() stringfunc (*DeleteConnectionRequest) GetName
func (x *DeleteConnectionRequest) GetName() stringfunc (*DeleteConnectionRequest) GetValidateOnly
func (x *DeleteConnectionRequest) GetValidateOnly() boolfunc (*DeleteConnectionRequest) ProtoMessage
func (*DeleteConnectionRequest) ProtoMessage()func (*DeleteConnectionRequest) ProtoReflect
func (x *DeleteConnectionRequest) ProtoReflect() protoreflect.Messagefunc (*DeleteConnectionRequest) Reset
func (x *DeleteConnectionRequest) Reset()func (*DeleteConnectionRequest) String
func (x *DeleteConnectionRequest) String() stringDeleteRepositoryRequest
type DeleteRepositoryRequest struct {
// Required. The name of the Repository to delete.
// Format: `projects/*/locations/*/connections/*/repositories/*`.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// The current etag of the repository.
// If an etag is provided and does not match the current etag of the
// repository, deletion will be blocked and an ABORTED error will be returned.
Etag string `protobuf:"bytes,2,opt,name=etag,proto3" json:"etag,omitempty"`
// If set, validate the request, but do not actually post it.
ValidateOnly bool `protobuf:"varint,3,opt,name=validate_only,json=validateOnly,proto3" json:"validate_only,omitempty"`
// contains filtered or unexported fields
}Message for deleting a Repository.
func (*DeleteRepositoryRequest) Descriptor
func (*DeleteRepositoryRequest) Descriptor() ([]byte, []int)Deprecated: Use DeleteRepositoryRequest.ProtoReflect.Descriptor instead.
func (*DeleteRepositoryRequest) GetEtag
func (x *DeleteRepositoryRequest) GetEtag() stringfunc (*DeleteRepositoryRequest) GetName
func (x *DeleteRepositoryRequest) GetName() stringfunc (*DeleteRepositoryRequest) GetValidateOnly
func (x *DeleteRepositoryRequest) GetValidateOnly() boolfunc (*DeleteRepositoryRequest) ProtoMessage
func (*DeleteRepositoryRequest) ProtoMessage()func (*DeleteRepositoryRequest) ProtoReflect
func (x *DeleteRepositoryRequest) ProtoReflect() protoreflect.Messagefunc (*DeleteRepositoryRequest) Reset
func (x *DeleteRepositoryRequest) Reset()func (*DeleteRepositoryRequest) String
func (x *DeleteRepositoryRequest) String() stringFetchGitRefsRequest
type FetchGitRefsRequest struct {
// Required. The resource name of the repository in the format
// `projects/*/locations/*/connections/*/repositories/*`.
Repository string `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"`
// Type of refs to fetch
RefType FetchGitRefsRequest_RefType `protobuf:"varint,2,opt,name=ref_type,json=refType,proto3,enum=google.devtools.cloudbuild.v2.FetchGitRefsRequest_RefType" json:"ref_type,omitempty"`
// contains filtered or unexported fields
}Request for fetching git refs
func (*FetchGitRefsRequest) Descriptor
func (*FetchGitRefsRequest) Descriptor() ([]byte, []int)Deprecated: Use FetchGitRefsRequest.ProtoReflect.Descriptor instead.
func (*FetchGitRefsRequest) GetRefType
func (x *FetchGitRefsRequest) GetRefType() FetchGitRefsRequest_RefTypefunc (*FetchGitRefsRequest) GetRepository
func (x *FetchGitRefsRequest) GetRepository() stringfunc (*FetchGitRefsRequest) ProtoMessage
func (*FetchGitRefsRequest) ProtoMessage()func (*FetchGitRefsRequest) ProtoReflect
func (x *FetchGitRefsRequest) ProtoReflect() protoreflect.Messagefunc (*FetchGitRefsRequest) Reset
func (x *FetchGitRefsRequest) Reset()func (*FetchGitRefsRequest) String
func (x *FetchGitRefsRequest) String() stringFetchGitRefsRequest_RefType
type FetchGitRefsRequest_RefType int32Type of refs
FetchGitRefsRequest_REF_TYPE_UNSPECIFIED, FetchGitRefsRequest_TAG, FetchGitRefsRequest_BRANCH
const (
// No type specified.
FetchGitRefsRequest_REF_TYPE_UNSPECIFIED FetchGitRefsRequest_RefType = 0
// To fetch tags.
FetchGitRefsRequest_TAG FetchGitRefsRequest_RefType = 1
// To fetch branches.
FetchGitRefsRequest_BRANCH FetchGitRefsRequest_RefType = 2
)func (FetchGitRefsRequest_RefType) Descriptor
func (FetchGitRefsRequest_RefType) Descriptor() protoreflect.EnumDescriptorfunc (FetchGitRefsRequest_RefType) Enum
func (x FetchGitRefsRequest_RefType) Enum() *FetchGitRefsRequest_RefTypefunc (FetchGitRefsRequest_RefType) EnumDescriptor
func (FetchGitRefsRequest_RefType) EnumDescriptor() ([]byte, []int)Deprecated: Use FetchGitRefsRequest_RefType.Descriptor instead.
func (FetchGitRefsRequest_RefType) Number
func (x FetchGitRefsRequest_RefType) Number() protoreflect.EnumNumberfunc (FetchGitRefsRequest_RefType) String
func (x FetchGitRefsRequest_RefType) String() stringfunc (FetchGitRefsRequest_RefType) Type
func (FetchGitRefsRequest_RefType) Type() protoreflect.EnumTypeFetchGitRefsResponse
type FetchGitRefsResponse struct {
// Name of the refs fetched.
RefNames []string `protobuf:"bytes,1,rep,name=ref_names,json=refNames,proto3" json:"ref_names,omitempty"`
// contains filtered or unexported fields
}Response for fetching git refs
func (*FetchGitRefsResponse) Descriptor
func (*FetchGitRefsResponse) Descriptor() ([]byte, []int)Deprecated: Use FetchGitRefsResponse.ProtoReflect.Descriptor instead.
func (*FetchGitRefsResponse) GetRefNames
func (x *FetchGitRefsResponse) GetRefNames() []stringfunc (*FetchGitRefsResponse) ProtoMessage
func (*FetchGitRefsResponse) ProtoMessage()func (*FetchGitRefsResponse) ProtoReflect
func (x *FetchGitRefsResponse) ProtoReflect() protoreflect.Messagefunc (*FetchGitRefsResponse) Reset
func (x *FetchGitRefsResponse) Reset()func (*FetchGitRefsResponse) String
func (x *FetchGitRefsResponse) String() stringFetchLinkableRepositoriesRequest
type FetchLinkableRepositoriesRequest struct {
// Required. The name of the Connection.
// Format: `projects/*/locations/*/connections/*`.
Connection string `protobuf:"bytes,1,opt,name=connection,proto3" json:"connection,omitempty"`
// Number of results to return in the list. Default to 20.
PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
// Page start.
PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
// contains filtered or unexported fields
}Request message for FetchLinkableRepositories.
func (*FetchLinkableRepositoriesRequest) Descriptor
func (*FetchLinkableRepositoriesRequest) Descriptor() ([]byte, []int)Deprecated: Use FetchLinkableRepositoriesRequest.ProtoReflect.Descriptor instead.
func (*FetchLinkableRepositoriesRequest) GetConnection
func (x *FetchLinkableRepositoriesRequest) GetConnection() stringfunc (*FetchLinkableRepositoriesRequest) GetPageSize
func (x *FetchLinkableRepositoriesRequest) GetPageSize() int32func (*FetchLinkableRepositoriesRequest) GetPageToken
func (x *FetchLinkableRepositoriesRequest) GetPageToken() stringfunc (*FetchLinkableRepositoriesRequest) ProtoMessage
func (*FetchLinkableRepositoriesRequest) ProtoMessage()func (*FetchLinkableRepositoriesRequest) ProtoReflect
func (x *FetchLinkableRepositoriesRequest) ProtoReflect() protoreflect.Messagefunc (*FetchLinkableRepositoriesRequest) Reset
func (x *FetchLinkableRepositoriesRequest) Reset()func (*FetchLinkableRepositoriesRequest) String
func (x *FetchLinkableRepositoriesRequest) String() stringFetchLinkableRepositoriesResponse
type FetchLinkableRepositoriesResponse struct {
// repositories ready to be created.
Repositories []*Repository `protobuf:"bytes,1,rep,name=repositories,proto3" json:"repositories,omitempty"`
// A token identifying a page of results the server should return.
NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
// contains filtered or unexported fields
}Response message for FetchLinkableRepositories.
func (*FetchLinkableRepositoriesResponse) Descriptor
func (*FetchLinkableRepositoriesResponse) Descriptor() ([]byte, []int)Deprecated: Use FetchLinkableRepositoriesResponse.ProtoReflect.Descriptor instead.
func (*FetchLinkableRepositoriesResponse) GetNextPageToken
func (x *FetchLinkableRepositoriesResponse) GetNextPageToken() stringfunc (*FetchLinkableRepositoriesResponse) GetRepositories
func (x *FetchLinkableRepositoriesResponse) GetRepositories() []*Repositoryfunc (*FetchLinkableRepositoriesResponse) ProtoMessage
func (*FetchLinkableRepositoriesResponse) ProtoMessage()func (*FetchLinkableRepositoriesResponse) ProtoReflect
func (x *FetchLinkableRepositoriesResponse) ProtoReflect() protoreflect.Messagefunc (*FetchLinkableRepositoriesResponse) Reset
func (x *FetchLinkableRepositoriesResponse) Reset()func (*FetchLinkableRepositoriesResponse) String
func (x *FetchLinkableRepositoriesResponse) String() stringFetchReadTokenRequest
type FetchReadTokenRequest struct {
// Required. The resource name of the repository in the format
// `projects/*/locations/*/connections/*/repositories/*`.
Repository string `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"`
// contains filtered or unexported fields
}Message for fetching SCM read token.
func (*FetchReadTokenRequest) Descriptor
func (*FetchReadTokenRequest) Descriptor() ([]byte, []int)Deprecated: Use FetchReadTokenRequest.ProtoReflect.Descriptor instead.
func (*FetchReadTokenRequest) GetRepository
func (x *FetchReadTokenRequest) GetRepository() stringfunc (*FetchReadTokenRequest) ProtoMessage
func (*FetchReadTokenRequest) ProtoMessage()func (*FetchReadTokenRequest) ProtoReflect
func (x *FetchReadTokenRequest) ProtoReflect() protoreflect.Messagefunc (*FetchReadTokenRequest) Reset
func (x *FetchReadTokenRequest) Reset()func (*FetchReadTokenRequest) String
func (x *FetchReadTokenRequest) String() stringFetchReadTokenResponse
type FetchReadTokenResponse struct {
// The token content.
Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"`
// Expiration timestamp. Can be empty if unknown or non-expiring.
ExpirationTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=expiration_time,json=expirationTime,proto3" json:"expiration_time,omitempty"`
// contains filtered or unexported fields
}Message for responding to get read token.
func (*FetchReadTokenResponse) Descriptor
func (*FetchReadTokenResponse) Descriptor() ([]byte, []int)Deprecated: Use FetchReadTokenResponse.ProtoReflect.Descriptor instead.
func (*FetchReadTokenResponse) GetExpirationTime
func (x *FetchReadTokenResponse) GetExpirationTime() *timestamppb.Timestampfunc (*FetchReadTokenResponse) GetToken
func (x *FetchReadTokenResponse) GetToken() stringfunc (*FetchReadTokenResponse) ProtoMessage
func (*FetchReadTokenResponse) ProtoMessage()func (*FetchReadTokenResponse) ProtoReflect
func (x *FetchReadTokenResponse) ProtoReflect() protoreflect.Messagefunc (*FetchReadTokenResponse) Reset
func (x *FetchReadTokenResponse) Reset()func (*FetchReadTokenResponse) String
func (x *FetchReadTokenResponse) String() stringFetchReadWriteTokenRequest
type FetchReadWriteTokenRequest struct {
// Required. The resource name of the repository in the format
// `projects/*/locations/*/connections/*/repositories/*`.
Repository string `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"`
// contains filtered or unexported fields
}Message for fetching SCM read/write token.
func (*FetchReadWriteTokenRequest) Descriptor
func (*FetchReadWriteTokenRequest) Descriptor() ([]byte, []int)Deprecated: Use FetchReadWriteTokenRequest.ProtoReflect.Descriptor instead.
func (*FetchReadWriteTokenRequest) GetRepository
func (x *FetchReadWriteTokenRequest) GetRepository() stringfunc (*FetchReadWriteTokenRequest) ProtoMessage
func (*FetchReadWriteTokenRequest) ProtoMessage()func (*FetchReadWriteTokenRequest) ProtoReflect
func (x *FetchReadWriteTokenRequest) ProtoReflect() protoreflect.Messagefunc (*FetchReadWriteTokenRequest) Reset
func (x *FetchReadWriteTokenRequest) Reset()func (*FetchReadWriteTokenRequest) String
func (x *FetchReadWriteTokenRequest) String() stringFetchReadWriteTokenResponse
type FetchReadWriteTokenResponse struct {
// The token content.
Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"`
// Expiration timestamp. Can be empty if unknown or non-expiring.
ExpirationTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=expiration_time,json=expirationTime,proto3" json:"expiration_time,omitempty"`
// contains filtered or unexported fields
}Message for responding to get read/write token.
func (*FetchReadWriteTokenResponse) Descriptor
func (*FetchReadWriteTokenResponse) Descriptor() ([]byte, []int)Deprecated: Use FetchReadWriteTokenResponse.ProtoReflect.Descriptor instead.
func (*FetchReadWriteTokenResponse) GetExpirationTime
func (x *FetchReadWriteTokenResponse) GetExpirationTime() *timestamppb.Timestampfunc (*FetchReadWriteTokenResponse) GetToken
func (x *FetchReadWriteTokenResponse) GetToken() stringfunc (*FetchReadWriteTokenResponse) ProtoMessage
func (*FetchReadWriteTokenResponse) ProtoMessage()func (*FetchReadWriteTokenResponse) ProtoReflect
func (x *FetchReadWriteTokenResponse) ProtoReflect() protoreflect.Messagefunc (*FetchReadWriteTokenResponse) Reset
func (x *FetchReadWriteTokenResponse) Reset()func (*FetchReadWriteTokenResponse) String
func (x *FetchReadWriteTokenResponse) String() stringGetConnectionRequest
type GetConnectionRequest struct {
// Required. The name of the Connection to retrieve.
// Format: `projects/*/locations/*/connections/*`.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// contains filtered or unexported fields
}Message for getting the details of a Connection.
func (*GetConnectionRequest) Descriptor
func (*GetConnectionRequest) Descriptor() ([]byte, []int)Deprecated: Use GetConnectionRequest.ProtoReflect.Descriptor instead.
func (*GetConnectionRequest) GetName
func (x *GetConnectionRequest) GetName() stringfunc (*GetConnectionRequest) ProtoMessage
func (*GetConnectionRequest) ProtoMessage()func (*GetConnectionRequest) ProtoReflect
func (x *GetConnectionRequest) ProtoReflect() protoreflect.Messagefunc (*GetConnectionRequest) Reset
func (x *GetConnectionRequest) Reset()func (*GetConnectionRequest) String
func (x *GetConnectionRequest) String() stringGetRepositoryRequest
type GetRepositoryRequest struct {
// Required. The name of the Repository to retrieve.
// Format: `projects/*/locations/*/connections/*/repositories/*`.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// contains filtered or unexported fields
}Message for getting the details of a Repository.
func (*GetRepositoryRequest) Descriptor
func (*GetRepositoryRequest) Descriptor() ([]byte, []int)Deprecated: Use GetRepositoryRequest.ProtoReflect.Descriptor instead.
func (*GetRepositoryRequest) GetName
func (x *GetRepositoryRequest) GetName() stringfunc (*GetRepositoryRequest) ProtoMessage
func (*GetRepositoryRequest) ProtoMessage()func (*GetRepositoryRequest) ProtoReflect
func (x *GetRepositoryRequest) ProtoReflect() protoreflect.Messagefunc (*GetRepositoryRequest) Reset
func (x *GetRepositoryRequest) Reset()func (*GetRepositoryRequest) String
func (x *GetRepositoryRequest) String() stringGitHubConfig
type GitHubConfig struct {
// OAuth credential of the account that authorized the Cloud Build GitHub App.
// It is recommended to use a robot account instead of a human user account.
// The OAuth token must be tied to the Cloud Build GitHub App.
AuthorizerCredential *OAuthCredential `protobuf:"bytes,1,opt,name=authorizer_credential,json=authorizerCredential,proto3" json:"authorizer_credential,omitempty"`
// GitHub App installation id.
AppInstallationId int64 `protobuf:"varint,2,opt,name=app_installation_id,json=appInstallationId,proto3" json:"app_installation_id,omitempty"`
// contains filtered or unexported fields
}Configuration for connections to github.com.
func (*GitHubConfig) Descriptor
func (*GitHubConfig) Descriptor() ([]byte, []int)Deprecated: Use GitHubConfig.ProtoReflect.Descriptor instead.
func (*GitHubConfig) GetAppInstallationId
func (x *GitHubConfig) GetAppInstallationId() int64func (*GitHubConfig) GetAuthorizerCredential
func (x *GitHubConfig) GetAuthorizerCredential() *OAuthCredentialfunc (*GitHubConfig) ProtoMessage
func (*GitHubConfig) ProtoMessage()func (*GitHubConfig) ProtoReflect
func (x *GitHubConfig) ProtoReflect() protoreflect.Messagefunc (*GitHubConfig) Reset
func (x *GitHubConfig) Reset()func (*GitHubConfig) String
func (x *GitHubConfig) String() stringGitHubEnterpriseConfig
type GitHubEnterpriseConfig struct {
// Required. The URI of the GitHub Enterprise host this connection is for.
HostUri string `protobuf:"bytes,1,opt,name=host_uri,json=hostUri,proto3" json:"host_uri,omitempty"`
// Required. API Key used for authentication of webhook events.
ApiKey string `protobuf:"bytes,12,opt,name=api_key,json=apiKey,proto3" json:"api_key,omitempty"`
// Id of the GitHub App created from the manifest.
AppId int64 `protobuf:"varint,2,opt,name=app_id,json=appId,proto3" json:"app_id,omitempty"`
// The URL-friendly name of the GitHub App.
AppSlug string `protobuf:"bytes,13,opt,name=app_slug,json=appSlug,proto3" json:"app_slug,omitempty"`
// SecretManager resource containing the private key of the GitHub App,
// formatted as `projects/*/secrets/*/versions/*`.
PrivateKeySecretVersion string `protobuf:"bytes,4,opt,name=private_key_secret_version,json=privateKeySecretVersion,proto3" json:"private_key_secret_version,omitempty"`
// SecretManager resource containing the webhook secret of the GitHub App,
// formatted as `projects/*/secrets/*/versions/*`.
WebhookSecretSecretVersion string `protobuf:"bytes,5,opt,name=webhook_secret_secret_version,json=webhookSecretSecretVersion,proto3" json:"webhook_secret_secret_version,omitempty"`
// ID of the installation of the GitHub App.
AppInstallationId int64 `protobuf:"varint,9,opt,name=app_installation_id,json=appInstallationId,proto3" json:"app_installation_id,omitempty"`
// Configuration for using Service Directory to privately connect to a GitHub
// Enterprise server. This should only be set if the GitHub Enterprise server
// is hosted on-premises and not reachable by public internet. If this field
// is left empty, calls to the GitHub Enterprise server will be made over the
// public internet.
ServiceDirectoryConfig *ServiceDirectoryConfig `protobuf:"bytes,10,opt,name=service_directory_config,json=serviceDirectoryConfig,proto3" json:"service_directory_config,omitempty"`
// SSL certificate to use for requests to GitHub Enterprise.
SslCa string `protobuf:"bytes,11,opt,name=ssl_ca,json=sslCa,proto3" json:"ssl_ca,omitempty"`
// Output only. GitHub Enterprise version installed at the host_uri.
ServerVersion string `protobuf:"bytes,14,opt,name=server_version,json=serverVersion,proto3" json:"server_version,omitempty"`
// contains filtered or unexported fields
}Configuration for connections to an instance of GitHub Enterprise.
func (*GitHubEnterpriseConfig) Descriptor
func (*GitHubEnterpriseConfig) Descriptor() ([]byte, []int)Deprecated: Use GitHubEnterpriseConfig.ProtoReflect.Descriptor instead.
func (*GitHubEnterpriseConfig) GetApiKey
func (x *GitHubEnterpriseConfig) GetApiKey() stringfunc (*GitHubEnterpriseConfig) GetAppId
func (x *GitHubEnterpriseConfig) GetAppId() int64func (*GitHubEnterpriseConfig) GetAppInstallationId
func (x *GitHubEnterpriseConfig) GetAppInstallationId() int64func (*GitHubEnterpriseConfig) GetAppSlug
func (x *GitHubEnterpriseConfig) GetAppSlug() stringfunc (*GitHubEnterpriseConfig) GetHostUri
func (x *GitHubEnterpriseConfig) GetHostUri() stringfunc (*GitHubEnterpriseConfig) GetPrivateKeySecretVersion
func (x *GitHubEnterpriseConfig) GetPrivateKeySecretVersion() stringfunc (*GitHubEnterpriseConfig) GetServerVersion
func (x *GitHubEnterpriseConfig) GetServerVersion() stringfunc (*GitHubEnterpriseConfig) GetServiceDirectoryConfig
func (x *GitHubEnterpriseConfig) GetServiceDirectoryConfig() *ServiceDirectoryConfigfunc (*GitHubEnterpriseConfig) GetSslCa
func (x *GitHubEnterpriseConfig) GetSslCa() stringfunc (*GitHubEnterpriseConfig) GetWebhookSecretSecretVersion
func (x *GitHubEnterpriseConfig) GetWebhookSecretSecretVersion() stringfunc (*GitHubEnterpriseConfig) ProtoMessage
func (*GitHubEnterpriseConfig) ProtoMessage()func (*GitHubEnterpriseConfig) ProtoReflect
func (x *GitHubEnterpriseConfig) ProtoReflect() protoreflect.Messagefunc (*GitHubEnterpriseConfig) Reset
func (x *GitHubEnterpriseConfig) Reset()func (*GitHubEnterpriseConfig) String
func (x *GitHubEnterpriseConfig) String() stringGitLabConfig
type GitLabConfig struct {
// The URI of the GitLab Enterprise host this connection is for.
// If not specified, the default value is https://gitlab.com.
HostUri string `protobuf:"bytes,1,opt,name=host_uri,json=hostUri,proto3" json:"host_uri,omitempty"`
// Required. Immutable. SecretManager resource containing the webhook secret
// of a GitLab Enterprise project, formatted as
// `projects/*/secrets/*/versions/*`.
WebhookSecretSecretVersion string `protobuf:"bytes,2,opt,name=webhook_secret_secret_version,json=webhookSecretSecretVersion,proto3" json:"webhook_secret_secret_version,omitempty"`
// Required. A GitLab personal access token with the minimum `read_api` scope
// access.
ReadAuthorizerCredential *UserCredential `protobuf:"bytes,3,opt,name=read_authorizer_credential,json=readAuthorizerCredential,proto3" json:"read_authorizer_credential,omitempty"`
// Required. A GitLab personal access token with the `api` scope access.
AuthorizerCredential *UserCredential `protobuf:"bytes,4,opt,name=authorizer_credential,json=authorizerCredential,proto3" json:"authorizer_credential,omitempty"`
// Configuration for using Service Directory to privately connect to a GitLab
// Enterprise server. This should only be set if the GitLab Enterprise server
// is hosted on-premises and not reachable by public internet. If this field
// is left empty, calls to the GitLab Enterprise server will be made over the
// public internet.
ServiceDirectoryConfig *ServiceDirectoryConfig `protobuf:"bytes,5,opt,name=service_directory_config,json=serviceDirectoryConfig,proto3" json:"service_directory_config,omitempty"`
// SSL certificate to use for requests to GitLab Enterprise.
SslCa string `protobuf:"bytes,6,opt,name=ssl_ca,json=sslCa,proto3" json:"ssl_ca,omitempty"`
// Output only. Version of the GitLab Enterprise server running on the
// `host_uri`.
ServerVersion string `protobuf:"bytes,7,opt,name=server_version,json=serverVersion,proto3" json:"server_version,omitempty"`
// contains filtered or unexported fields
}Configuration for connections to gitlab.com or an instance of GitLab Enterprise.
func (*GitLabConfig) Descriptor
func (*GitLabConfig) Descriptor() ([]byte, []int)Deprecated: Use GitLabConfig.ProtoReflect.Descriptor instead.
func (*GitLabConfig) GetAuthorizerCredential
func (x *GitLabConfig) GetAuthorizerCredential() *UserCredentialfunc (*GitLabConfig) GetHostUri
func (x *GitLabConfig) GetHostUri() stringfunc (*GitLabConfig) GetReadAuthorizerCredential
func (x *GitLabConfig) GetReadAuthorizerCredential() *UserCredentialfunc (*GitLabConfig) GetServerVersion
func (x *GitLabConfig) GetServerVersion() stringfunc (*GitLabConfig) GetServiceDirectoryConfig
func (x *GitLabConfig) GetServiceDirectoryConfig() *ServiceDirectoryConfigfunc (*GitLabConfig) GetSslCa
func (x *GitLabConfig) GetSslCa() stringfunc (*GitLabConfig) GetWebhookSecretSecretVersion
func (x *GitLabConfig) GetWebhookSecretSecretVersion() stringfunc (*GitLabConfig) ProtoMessage
func (*GitLabConfig) ProtoMessage()func (*GitLabConfig) ProtoReflect
func (x *GitLabConfig) ProtoReflect() protoreflect.Messagefunc (*GitLabConfig) Reset
func (x *GitLabConfig) Reset()func (*GitLabConfig) String
func (x *GitLabConfig) String() stringInstallationState
type InstallationState struct {
// Output only. Current step of the installation process.
Stage InstallationState_Stage `protobuf:"varint,1,opt,name=stage,proto3,enum=google.devtools.cloudbuild.v2.InstallationState_Stage" json:"stage,omitempty"`
// Output only. Message of what the user should do next to continue the
// installation. Empty string if the installation is already complete.
Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
// Output only. Link to follow for next action. Empty string if the
// installation is already complete.
ActionUri string `protobuf:"bytes,3,opt,name=action_uri,json=actionUri,proto3" json:"action_uri,omitempty"`
// contains filtered or unexported fields
}Describes stage and necessary actions to be taken by the user to complete the installation. Used for GitHub and GitHub Enterprise based connections.
func (*InstallationState) Descriptor
func (*InstallationState) Descriptor() ([]byte, []int)Deprecated: Use InstallationState.ProtoReflect.Descriptor instead.
func (*InstallationState) GetActionUri
func (x *InstallationState) GetActionUri() stringfunc (*InstallationState) GetMessage
func (x *InstallationState) GetMessage() stringfunc (*InstallationState) GetStage
func (x *InstallationState) GetStage() InstallationState_Stagefunc (*InstallationState) ProtoMessage
func (*InstallationState) ProtoMessage()func (*InstallationState) ProtoReflect
func (x *InstallationState) ProtoReflect() protoreflect.Messagefunc (*InstallationState) Reset
func (x *InstallationState) Reset()func (*InstallationState) String
func (x *InstallationState) String() stringInstallationState_Stage
type InstallationState_Stage int32Stage of the installation process.
InstallationState_STAGE_UNSPECIFIED, InstallationState_PENDING_CREATE_APP, InstallationState_PENDING_USER_OAUTH, InstallationState_PENDING_INSTALL_APP, InstallationState_COMPLETE
const (
// No stage specified.
InstallationState_STAGE_UNSPECIFIED InstallationState_Stage = 0
// Only for GitHub Enterprise. An App creation has been requested.
// The user needs to confirm the creation in their GitHub enterprise host.
InstallationState_PENDING_CREATE_APP InstallationState_Stage = 1
// User needs to authorize the GitHub (or Enterprise) App via OAuth.
InstallationState_PENDING_USER_OAUTH InstallationState_Stage = 2
// User needs to follow the link to install the GitHub (or Enterprise) App.
InstallationState_PENDING_INSTALL_APP InstallationState_Stage = 3
// Installation process has been completed.
InstallationState_COMPLETE InstallationState_Stage = 10
)func (InstallationState_Stage) Descriptor
func (InstallationState_Stage) Descriptor() protoreflect.EnumDescriptorfunc (InstallationState_Stage) Enum
func (x InstallationState_Stage) Enum() *InstallationState_Stagefunc (InstallationState_Stage) EnumDescriptor
func (InstallationState_Stage) EnumDescriptor() ([]byte, []int)Deprecated: Use InstallationState_Stage.Descriptor instead.
func (InstallationState_Stage) Number
func (x InstallationState_Stage) Number() protoreflect.EnumNumberfunc (InstallationState_Stage) String
func (x InstallationState_Stage) String() stringfunc (InstallationState_Stage) Type
func (InstallationState_Stage) Type() protoreflect.EnumTypeListConnectionsRequest
type ListConnectionsRequest struct {
// Required. The parent, which owns this collection of Connections.
// Format: `projects/*/locations/*`.
Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
// Number of results to return in the list.
PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
// Page start.
PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
// contains filtered or unexported fields
}Message for requesting list of Connections.
func (*ListConnectionsRequest) Descriptor
func (*ListConnectionsRequest) Descriptor() ([]byte, []int)Deprecated: Use ListConnectionsRequest.ProtoReflect.Descriptor instead.
func (*ListConnectionsRequest) GetPageSize
func (x *ListConnectionsRequest) GetPageSize() int32func (*ListConnectionsRequest) GetPageToken
func (x *ListConnectionsRequest) GetPageToken() stringfunc (*ListConnectionsRequest) GetParent
func (x *ListConnectionsRequest) GetParent() stringfunc (*ListConnectionsRequest) ProtoMessage
func (*ListConnectionsRequest) ProtoMessage()func (*ListConnectionsRequest) ProtoReflect
func (x *ListConnectionsRequest) ProtoReflect() protoreflect.Messagefunc (*ListConnectionsRequest) Reset
func (x *ListConnectionsRequest) Reset()func (*ListConnectionsRequest) String
func (x *ListConnectionsRequest) String() stringListConnectionsResponse
type ListConnectionsResponse struct {
// The list of Connections.
Connections []*Connection `protobuf:"bytes,1,rep,name=connections,proto3" json:"connections,omitempty"`
// A token identifying a page of results the server should return.
NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
// contains filtered or unexported fields
}Message for response to listing Connections.
func (*ListConnectionsResponse) Descriptor
func (*ListConnectionsResponse) Descriptor() ([]byte, []int)Deprecated: Use ListConnectionsResponse.ProtoReflect.Descriptor instead.
func (*ListConnectionsResponse) GetConnections
func (x *ListConnectionsResponse) GetConnections() []*Connectionfunc (*ListConnectionsResponse) GetNextPageToken
func (x *ListConnectionsResponse) GetNextPageToken() stringfunc (*ListConnectionsResponse) ProtoMessage
func (*ListConnectionsResponse) ProtoMessage()func (*ListConnectionsResponse) ProtoReflect
func (x *ListConnectionsResponse) ProtoReflect() protoreflect.Messagefunc (*ListConnectionsResponse) Reset
func (x *ListConnectionsResponse) Reset()func (*ListConnectionsResponse) String
func (x *ListConnectionsResponse) String() stringListRepositoriesRequest
type ListRepositoriesRequest struct {
// Required. The parent, which owns this collection of Repositories.
// Format: `projects/*/locations/*/connections/*`.
Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
// Number of results to return in the list.
PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
// Page start.
PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
// A filter expression that filters resources listed in the response.
// Expressions must follow API improvement proposal
// [AIP-160](https://google.aip.dev/160). e.g.
// `remote_uri:"https://github.com*"`.
Filter string `protobuf:"bytes,4,opt,name=filter,proto3" json:"filter,omitempty"`
// contains filtered or unexported fields
}Message for requesting list of Repositories.
func (*ListRepositoriesRequest) Descriptor
func (*ListRepositoriesRequest) Descriptor() ([]byte, []int)Deprecated: Use ListRepositoriesRequest.ProtoReflect.Descriptor instead.
func (*ListRepositoriesRequest) GetFilter
func (x *ListRepositoriesRequest) GetFilter() stringfunc (*ListRepositoriesRequest) GetPageSize
func (x *ListRepositoriesRequest) GetPageSize() int32func (*ListRepositoriesRequest) GetPageToken
func (x *ListRepositoriesRequest) GetPageToken() stringfunc (*ListRepositoriesRequest) GetParent
func (x *ListRepositoriesRequest) GetParent() stringfunc (*ListRepositoriesRequest) ProtoMessage
func (*ListRepositoriesRequest) ProtoMessage()func (*ListRepositoriesRequest) ProtoReflect
func (x *ListRepositoriesRequest) ProtoReflect() protoreflect.Messagefunc (*ListRepositoriesRequest) Reset
func (x *ListRepositoriesRequest) Reset()func (*ListRepositoriesRequest) String
func (x *ListRepositoriesRequest) String() stringListRepositoriesResponse
type ListRepositoriesResponse struct {
// The list of Repositories.
Repositories []*Repository `protobuf:"bytes,1,rep,name=repositories,proto3" json:"repositories,omitempty"`
// A token identifying a page of results the server should return.
NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
// contains filtered or unexported fields
}Message for response to listing Repositories.
func (*ListRepositoriesResponse) Descriptor
func (*ListRepositoriesResponse) Descriptor() ([]byte, []int)Deprecated: Use ListRepositoriesResponse.ProtoReflect.Descriptor instead.
func (*ListRepositoriesResponse) GetNextPageToken
func (x *ListRepositoriesResponse) GetNextPageToken() stringfunc (*ListRepositoriesResponse) GetRepositories
func (x *ListRepositoriesResponse) GetRepositories() []*Repositoryfunc (*ListRepositoriesResponse) ProtoMessage
func (*ListRepositoriesResponse) ProtoMessage()func (*ListRepositoriesResponse) ProtoReflect
func (x *ListRepositoriesResponse) ProtoReflect() protoreflect.Messagefunc (*ListRepositoriesResponse) Reset
func (x *ListRepositoriesResponse) Reset()func (*ListRepositoriesResponse) String
func (x *ListRepositoriesResponse) String() stringOAuthCredential
type OAuthCredential struct {
// A SecretManager resource containing the OAuth token that authorizes
// the Cloud Build connection. Format: `projects/*/secrets/*/versions/*`.
OauthTokenSecretVersion string `protobuf:"bytes,1,opt,name=oauth_token_secret_version,json=oauthTokenSecretVersion,proto3" json:"oauth_token_secret_version,omitempty"`
// Output only. The username associated to this token.
Username string `protobuf:"bytes,2,opt,name=username,proto3" json:"username,omitempty"`
// contains filtered or unexported fields
}Represents an OAuth token of the account that authorized the Connection, and associated metadata.
func (*OAuthCredential) Descriptor
func (*OAuthCredential) Descriptor() ([]byte, []int)Deprecated: Use OAuthCredential.ProtoReflect.Descriptor instead.
func (*OAuthCredential) GetOauthTokenSecretVersion
func (x *OAuthCredential) GetOauthTokenSecretVersion() stringfunc (*OAuthCredential) GetUsername
func (x *OAuthCredential) GetUsername() stringfunc (*OAuthCredential) ProtoMessage
func (*OAuthCredential) ProtoMessage()func (*OAuthCredential) ProtoReflect
func (x *OAuthCredential) ProtoReflect() protoreflect.Messagefunc (*OAuthCredential) Reset
func (x *OAuthCredential) Reset()func (*OAuthCredential) String
func (x *OAuthCredential) String() stringOperationMetadata
type OperationMetadata struct {
// Output only. The time the operation was created.
CreateTime *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
// Output only. The time the operation finished running.
EndTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"`
// Output only. Server-defined resource path for the target of the operation.
Target string `protobuf:"bytes,3,opt,name=target,proto3" json:"target,omitempty"`
// Output only. Name of the verb executed by the operation.
Verb string `protobuf:"bytes,4,opt,name=verb,proto3" json:"verb,omitempty"`
// Output only. Human-readable status of the operation, if any.
StatusMessage string `protobuf:"bytes,5,opt,name=status_message,json=statusMessage,proto3" json:"status_message,omitempty"`
// Output only. Identifies whether the user has requested cancellation
// of the operation. Operations that have successfully been cancelled
// have [Operation.error][] value with a
// [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to
// `Code.CANCELLED`.
RequestedCancellation bool `protobuf:"varint,6,opt,name=requested_cancellation,json=requestedCancellation,proto3" json:"requested_cancellation,omitempty"`
// Output only. API version used to start the operation.
ApiVersion string `protobuf:"bytes,7,opt,name=api_version,json=apiVersion,proto3" json:"api_version,omitempty"`
// contains filtered or unexported fields
}Represents the metadata of the long-running operation.
func (*OperationMetadata) Descriptor
func (*OperationMetadata) Descriptor() ([]byte, []int)Deprecated: Use OperationMetadata.ProtoReflect.Descriptor instead.
func (*OperationMetadata) GetApiVersion
func (x *OperationMetadata) GetApiVersion() stringfunc (*OperationMetadata) GetCreateTime
func (x *OperationMetadata) GetCreateTime() *timestamppb.Timestampfunc (*OperationMetadata) GetEndTime
func (x *OperationMetadata) GetEndTime() *timestamppb.Timestampfunc (*OperationMetadata) GetRequestedCancellation
func (x *OperationMetadata) GetRequestedCancellation() boolfunc (*OperationMetadata) GetStatusMessage
func (x *OperationMetadata) GetStatusMessage() stringfunc (*OperationMetadata) GetTarget
func (x *OperationMetadata) GetTarget() stringfunc (*OperationMetadata) GetVerb
func (x *OperationMetadata) GetVerb() stringfunc (*OperationMetadata) ProtoMessage
func (*OperationMetadata) ProtoMessage()func (*OperationMetadata) ProtoReflect
func (x *OperationMetadata) ProtoReflect() protoreflect.Messagefunc (*OperationMetadata) Reset
func (x *OperationMetadata) Reset()func (*OperationMetadata) String
func (x *OperationMetadata) String() stringProcessWebhookRequest
type ProcessWebhookRequest struct {
// Required. Project and location where the webhook will be received.
// Format: `projects/*/locations/*`.
Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
// HTTP request body.
Body *httpbody.HttpBody `protobuf:"bytes,2,opt,name=body,proto3" json:"body,omitempty"`
// Arbitrary additional key to find the maching repository for a webhook event
// if needed.
WebhookKey string `protobuf:"bytes,3,opt,name=webhook_key,json=webhookKey,proto3" json:"webhook_key,omitempty"`
// contains filtered or unexported fields
}RPC request object accepted by the ProcessWebhook RPC method.
func (*ProcessWebhookRequest) Descriptor
func (*ProcessWebhookRequest) Descriptor() ([]byte, []int)Deprecated: Use ProcessWebhookRequest.ProtoReflect.Descriptor instead.
func (*ProcessWebhookRequest) GetBody
func (x *ProcessWebhookRequest) GetBody() *httpbody.HttpBodyfunc (*ProcessWebhookRequest) GetParent
func (x *ProcessWebhookRequest) GetParent() stringfunc (*ProcessWebhookRequest) GetWebhookKey
func (x *ProcessWebhookRequest) GetWebhookKey() stringfunc (*ProcessWebhookRequest) ProtoMessage
func (*ProcessWebhookRequest) ProtoMessage()func (*ProcessWebhookRequest) ProtoReflect
func (x *ProcessWebhookRequest) ProtoReflect() protoreflect.Messagefunc (*ProcessWebhookRequest) Reset
func (x *ProcessWebhookRequest) Reset()func (*ProcessWebhookRequest) String
func (x *ProcessWebhookRequest) String() stringRepository
type Repository struct {
// Immutable. Resource name of the repository, in the format
// `projects/*/locations/*/connections/*/repositories/*`.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// Required. Git Clone HTTPS URI.
RemoteUri string `protobuf:"bytes,2,opt,name=remote_uri,json=remoteUri,proto3" json:"remote_uri,omitempty"`
// Output only. Server assigned timestamp for when the connection was created.
CreateTime *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
// Output only. Server assigned timestamp for when the connection was updated.
UpdateTime *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"`
// Allows clients to store small amounts of arbitrary data.
Annotations map[string]string `protobuf:"bytes,6,rep,name=annotations,proto3" json:"annotations,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
// This checksum is computed by the server based on the value of other
// fields, and may be sent on update and delete requests to ensure the
// client has an up-to-date value before proceeding.
Etag string `protobuf:"bytes,7,opt,name=etag,proto3" json:"etag,omitempty"`
// Output only. External ID of the webhook created for the repository.
WebhookId string `protobuf:"bytes,8,opt,name=webhook_id,json=webhookId,proto3" json:"webhook_id,omitempty"`
// contains filtered or unexported fields
}A repository associated to a parent connection.
func (*Repository) Descriptor
func (*Repository) Descriptor() ([]byte, []int)Deprecated: Use Repository.ProtoReflect.Descriptor instead.
func (*Repository) GetAnnotations
func (x *Repository) GetAnnotations() map[string]stringfunc (*Repository) GetCreateTime
func (x *Repository) GetCreateTime() *timestamppb.Timestampfunc (*Repository) GetEtag
func (x *Repository) GetEtag() stringfunc (*Repository) GetName
func (x *Repository) GetName() stringfunc (*Repository) GetRemoteUri
func (x *Repository) GetRemoteUri() stringfunc (*Repository) GetUpdateTime
func (x *Repository) GetUpdateTime() *timestamppb.Timestampfunc (*Repository) GetWebhookId
func (x *Repository) GetWebhookId() stringfunc (*Repository) ProtoMessage
func (*Repository) ProtoMessage()func (*Repository) ProtoReflect
func (x *Repository) ProtoReflect() protoreflect.Messagefunc (*Repository) Reset
func (x *Repository) Reset()func (*Repository) String
func (x *Repository) String() stringRepositoryManagerClient
type RepositoryManagerClient interface {
// Creates a Connection.
CreateConnection(ctx context.Context, in *CreateConnectionRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error)
// Gets details of a single connection.
GetConnection(ctx context.Context, in *GetConnectionRequest, opts ...grpc.CallOption) (*Connection, error)
// Lists Connections in a given project and location.
ListConnections(ctx context.Context, in *ListConnectionsRequest, opts ...grpc.CallOption) (*ListConnectionsResponse, error)
// Updates a single connection.
UpdateConnection(ctx context.Context, in *UpdateConnectionRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error)
// Deletes a single connection.
DeleteConnection(ctx context.Context, in *DeleteConnectionRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error)
// Creates a Repository.
CreateRepository(ctx context.Context, in *CreateRepositoryRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error)
// Creates multiple repositories inside a connection.
BatchCreateRepositories(ctx context.Context, in *BatchCreateRepositoriesRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error)
// Gets details of a single repository.
GetRepository(ctx context.Context, in *GetRepositoryRequest, opts ...grpc.CallOption) (*Repository, error)
// Lists Repositories in a given connection.
ListRepositories(ctx context.Context, in *ListRepositoriesRequest, opts ...grpc.CallOption) (*ListRepositoriesResponse, error)
// Deletes a single repository.
DeleteRepository(ctx context.Context, in *DeleteRepositoryRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error)
// Fetches read/write token of a given repository.
FetchReadWriteToken(ctx context.Context, in *FetchReadWriteTokenRequest, opts ...grpc.CallOption) (*FetchReadWriteTokenResponse, error)
// Fetches read token of a given repository.
FetchReadToken(ctx context.Context, in *FetchReadTokenRequest, opts ...grpc.CallOption) (*FetchReadTokenResponse, error)
// FetchLinkableRepositories get repositories from SCM that are
// accessible and could be added to the connection.
FetchLinkableRepositories(ctx context.Context, in *FetchLinkableRepositoriesRequest, opts ...grpc.CallOption) (*FetchLinkableRepositoriesResponse, error)
// Fetch the list of branches or tags for a given repository.
FetchGitRefs(ctx context.Context, in *FetchGitRefsRequest, opts ...grpc.CallOption) (*FetchGitRefsResponse, error)
}RepositoryManagerClient is the client API for RepositoryManager service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewRepositoryManagerClient
func NewRepositoryManagerClient(cc grpc.ClientConnInterface) RepositoryManagerClientRepositoryManagerServer
type RepositoryManagerServer interface {
// Creates a Connection.
CreateConnection(context.Context, *CreateConnectionRequest) (*longrunningpb.Operation, error)
// Gets details of a single connection.
GetConnection(context.Context, *GetConnectionRequest) (*Connection, error)
// Lists Connections in a given project and location.
ListConnections(context.Context, *ListConnectionsRequest) (*ListConnectionsResponse, error)
// Updates a single connection.
UpdateConnection(context.Context, *UpdateConnectionRequest) (*longrunningpb.Operation, error)
// Deletes a single connection.
DeleteConnection(context.Context, *DeleteConnectionRequest) (*longrunningpb.Operation, error)
// Creates a Repository.
CreateRepository(context.Context, *CreateRepositoryRequest) (*longrunningpb.Operation, error)
// Creates multiple repositories inside a connection.
BatchCreateRepositories(context.Context, *BatchCreateRepositoriesRequest) (*longrunningpb.Operation, error)
// Gets details of a single repository.
GetRepository(context.Context, *GetRepositoryRequest) (*Repository, error)
// Lists Repositories in a given connection.
ListRepositories(context.Context, *ListRepositoriesRequest) (*ListRepositoriesResponse, error)
// Deletes a single repository.
DeleteRepository(context.Context, *DeleteRepositoryRequest) (*longrunningpb.Operation, error)
// Fetches read/write token of a given repository.
FetchReadWriteToken(context.Context, *FetchReadWriteTokenRequest) (*FetchReadWriteTokenResponse, error)
// Fetches read token of a given repository.
FetchReadToken(context.Context, *FetchReadTokenRequest) (*FetchReadTokenResponse, error)
// FetchLinkableRepositories get repositories from SCM that are
// accessible and could be added to the connection.
FetchLinkableRepositories(context.Context, *FetchLinkableRepositoriesRequest) (*FetchLinkableRepositoriesResponse, error)
// Fetch the list of branches or tags for a given repository.
FetchGitRefs(context.Context, *FetchGitRefsRequest) (*FetchGitRefsResponse, error)
}RepositoryManagerServer is the server API for RepositoryManager service. All implementations should embed UnimplementedRepositoryManagerServer for forward compatibility
RunWorkflowCustomOperationMetadata
type RunWorkflowCustomOperationMetadata struct {
// Output only. The time the operation was created.
CreateTime *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
// Output only. The time the operation finished running.
EndTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"`
// Output only. Name of the verb executed by the operation.
Verb string `protobuf:"bytes,3,opt,name=verb,proto3" json:"verb,omitempty"`
// Output only. Identifies whether the user has requested cancellation
// of the operation. Operations that have successfully been cancelled
// have [Operation.error][] value with a
// [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to
// `Code.CANCELLED`.
RequestedCancellation bool `protobuf:"varint,4,opt,name=requested_cancellation,json=requestedCancellation,proto3" json:"requested_cancellation,omitempty"`
// Output only. API version used to start the operation.
ApiVersion string `protobuf:"bytes,5,opt,name=api_version,json=apiVersion,proto3" json:"api_version,omitempty"`
// Output only. Server-defined resource path for the target of the operation.
Target string `protobuf:"bytes,6,opt,name=target,proto3" json:"target,omitempty"`
// Output only. ID of the pipeline run created by RunWorkflow.
PipelineRunId string `protobuf:"bytes,7,opt,name=pipeline_run_id,json=pipelineRunId,proto3" json:"pipeline_run_id,omitempty"`
// contains filtered or unexported fields
}Represents the custom metadata of the RunWorkflow long-running operation.
func (*RunWorkflowCustomOperationMetadata) Descriptor
func (*RunWorkflowCustomOperationMetadata) Descriptor() ([]byte, []int)Deprecated: Use RunWorkflowCustomOperationMetadata.ProtoReflect.Descriptor instead.
func (*RunWorkflowCustomOperationMetadata) GetApiVersion
func (x *RunWorkflowCustomOperationMetadata) GetApiVersion() stringfunc (*RunWorkflowCustomOperationMetadata) GetCreateTime
func (x *RunWorkflowCustomOperationMetadata) GetCreateTime() *timestamppb.Timestampfunc (*RunWorkflowCustomOperationMetadata) GetEndTime
func (x *RunWorkflowCustomOperationMetadata) GetEndTime() *timestamppb.Timestampfunc (*RunWorkflowCustomOperationMetadata) GetPipelineRunId
func (x *RunWorkflowCustomOperationMetadata) GetPipelineRunId() stringfunc (*RunWorkflowCustomOperationMetadata) GetRequestedCancellation
func (x *RunWorkflowCustomOperationMetadata) GetRequestedCancellation() boolfunc (*RunWorkflowCustomOperationMetadata) GetTarget
func (x *RunWorkflowCustomOperationMetadata) GetTarget() stringfunc (*RunWorkflowCustomOperationMetadata) GetVerb
func (x *RunWorkflowCustomOperationMetadata) GetVerb() stringfunc (*RunWorkflowCustomOperationMetadata) ProtoMessage
func (*RunWorkflowCustomOperationMetadata) ProtoMessage()func (*RunWorkflowCustomOperationMetadata) ProtoReflect
func (x *RunWorkflowCustomOperationMetadata) ProtoReflect() protoreflect.Messagefunc (*RunWorkflowCustomOperationMetadata) Reset
func (x *RunWorkflowCustomOperationMetadata) Reset()func (*RunWorkflowCustomOperationMetadata) String
func (x *RunWorkflowCustomOperationMetadata) String() stringServiceDirectoryConfig
type ServiceDirectoryConfig struct {
// Required. The Service Directory service name.
// Format:
// projects/{project}/locations/{location}/namespaces/{namespace}/services/{service}.
Service string `protobuf:"bytes,1,opt,name=service,proto3" json:"service,omitempty"`
// contains filtered or unexported fields
}ServiceDirectoryConfig represents Service Directory configuration for a connection.
func (*ServiceDirectoryConfig) Descriptor
func (*ServiceDirectoryConfig) Descriptor() ([]byte, []int)Deprecated: Use ServiceDirectoryConfig.ProtoReflect.Descriptor instead.
func (*ServiceDirectoryConfig) GetService
func (x *ServiceDirectoryConfig) GetService() stringfunc (*ServiceDirectoryConfig) ProtoMessage
func (*ServiceDirectoryConfig) ProtoMessage()func (*ServiceDirectoryConfig) ProtoReflect
func (x *ServiceDirectoryConfig) ProtoReflect() protoreflect.Messagefunc (*ServiceDirectoryConfig) Reset
func (x *ServiceDirectoryConfig) Reset()func (*ServiceDirectoryConfig) String
func (x *ServiceDirectoryConfig) String() stringUnimplementedRepositoryManagerServer
type UnimplementedRepositoryManagerServer struct {
}UnimplementedRepositoryManagerServer should be embedded to have forward compatible implementations.
func (UnimplementedRepositoryManagerServer) BatchCreateRepositories
func (UnimplementedRepositoryManagerServer) BatchCreateRepositories(context.Context, *BatchCreateRepositoriesRequest) (*longrunningpb.Operation, error)func (UnimplementedRepositoryManagerServer) CreateConnection
func (UnimplementedRepositoryManagerServer) CreateConnection(context.Context, *CreateConnectionRequest) (*longrunningpb.Operation, error)func (UnimplementedRepositoryManagerServer) CreateRepository
func (UnimplementedRepositoryManagerServer) CreateRepository(context.Context, *CreateRepositoryRequest) (*longrunningpb.Operation, error)func (UnimplementedRepositoryManagerServer) DeleteConnection
func (UnimplementedRepositoryManagerServer) DeleteConnection(context.Context, *DeleteConnectionRequest) (*longrunningpb.Operation, error)func (UnimplementedRepositoryManagerServer) DeleteRepository
func (UnimplementedRepositoryManagerServer) DeleteRepository(context.Context, *DeleteRepositoryRequest) (*longrunningpb.Operation, error)func (UnimplementedRepositoryManagerServer) FetchGitRefs
func (UnimplementedRepositoryManagerServer) FetchGitRefs(context.Context, *FetchGitRefsRequest) (*FetchGitRefsResponse, error)func (UnimplementedRepositoryManagerServer) FetchLinkableRepositories
func (UnimplementedRepositoryManagerServer) FetchLinkableRepositories(context.Context, *FetchLinkableRepositoriesRequest) (*FetchLinkableRepositoriesResponse, error)func (UnimplementedRepositoryManagerServer) FetchReadToken
func (UnimplementedRepositoryManagerServer) FetchReadToken(context.Context, *FetchReadTokenRequest) (*FetchReadTokenResponse, error)func (UnimplementedRepositoryManagerServer) FetchReadWriteToken
func (UnimplementedRepositoryManagerServer) FetchReadWriteToken(context.Context, *FetchReadWriteTokenRequest) (*FetchReadWriteTokenResponse, error)func (UnimplementedRepositoryManagerServer) GetConnection
func (UnimplementedRepositoryManagerServer) GetConnection(context.Context, *GetConnectionRequest) (*Connection, error)func (UnimplementedRepositoryManagerServer) GetRepository
func (UnimplementedRepositoryManagerServer) GetRepository(context.Context, *GetRepositoryRequest) (*Repository, error)func (UnimplementedRepositoryManagerServer) ListConnections
func (UnimplementedRepositoryManagerServer) ListConnections(context.Context, *ListConnectionsRequest) (*ListConnectionsResponse, error)func (UnimplementedRepositoryManagerServer) ListRepositories
func (UnimplementedRepositoryManagerServer) ListRepositories(context.Context, *ListRepositoriesRequest) (*ListRepositoriesResponse, error)func (UnimplementedRepositoryManagerServer) UpdateConnection
func (UnimplementedRepositoryManagerServer) UpdateConnection(context.Context, *UpdateConnectionRequest) (*longrunningpb.Operation, error)UnsafeRepositoryManagerServer
type UnsafeRepositoryManagerServer interface {
// contains filtered or unexported methods
}UnsafeRepositoryManagerServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to RepositoryManagerServer will result in compilation errors.
UpdateConnectionRequest
type UpdateConnectionRequest struct {
// Required. The Connection to update.
Connection *Connection `protobuf:"bytes,1,opt,name=connection,proto3" json:"connection,omitempty"`
// The list of fields to be updated.
UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"`
// If set to true, and the connection is not found a new connection
// will be created. In this situation `update_mask` is ignored.
// The creation will succeed only if the input connection has all the
// necessary information (e.g a github_config with both user_oauth_token and
// installation_id properties).
AllowMissing bool `protobuf:"varint,3,opt,name=allow_missing,json=allowMissing,proto3" json:"allow_missing,omitempty"`
// The current etag of the connection.
// If an etag is provided and does not match the current etag of the
// connection, update will be blocked and an ABORTED error will be returned.
Etag string `protobuf:"bytes,4,opt,name=etag,proto3" json:"etag,omitempty"`
// contains filtered or unexported fields
}Message for updating a Connection.
func (*UpdateConnectionRequest) Descriptor
func (*UpdateConnectionRequest) Descriptor() ([]byte, []int)Deprecated: Use UpdateConnectionRequest.ProtoReflect.Descriptor instead.
func (*UpdateConnectionRequest) GetAllowMissing
func (x *UpdateConnectionRequest) GetAllowMissing() boolfunc (*UpdateConnectionRequest) GetConnection
func (x *UpdateConnectionRequest) GetConnection() *Connectionfunc (*UpdateConnectionRequest) GetEtag
func (x *UpdateConnectionRequest) GetEtag() stringfunc (*UpdateConnectionRequest) GetUpdateMask
func (x *UpdateConnectionRequest) GetUpdateMask() *fieldmaskpb.FieldMaskfunc (*UpdateConnectionRequest) ProtoMessage
func (*UpdateConnectionRequest) ProtoMessage()func (*UpdateConnectionRequest) ProtoReflect
func (x *UpdateConnectionRequest) ProtoReflect() protoreflect.Messagefunc (*UpdateConnectionRequest) Reset
func (x *UpdateConnectionRequest) Reset()func (*UpdateConnectionRequest) String
func (x *UpdateConnectionRequest) String() stringUserCredential
type UserCredential struct {
// Required. A SecretManager resource containing the user token that
// authorizes the Cloud Build connection. Format:
// `projects/*/secrets/*/versions/*`.
UserTokenSecretVersion string `protobuf:"bytes,1,opt,name=user_token_secret_version,json=userTokenSecretVersion,proto3" json:"user_token_secret_version,omitempty"`
// Output only. The username associated to this token.
Username string `protobuf:"bytes,2,opt,name=username,proto3" json:"username,omitempty"`
// contains filtered or unexported fields
}Represents a personal access token that authorized the Connection, and associated metadata.
func (*UserCredential) Descriptor
func (*UserCredential) Descriptor() ([]byte, []int)Deprecated: Use UserCredential.ProtoReflect.Descriptor instead.
func (*UserCredential) GetUserTokenSecretVersion
func (x *UserCredential) GetUserTokenSecretVersion() stringfunc (*UserCredential) GetUsername
func (x *UserCredential) GetUsername() stringfunc (*UserCredential) ProtoMessage
func (*UserCredential) ProtoMessage()func (*UserCredential) ProtoReflect
func (x *UserCredential) ProtoReflect() protoreflect.Messagefunc (*UserCredential) Reset
func (x *UserCredential) Reset()func (*UserCredential) String
func (x *UserCredential) String() string