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.
GitHubConfig_GitHubApp_name, GitHubConfig_GitHubApp_value
var (
GitHubConfig_GitHubApp_name = map[int32]string{
0: "GIT_HUB_APP_UNSPECIFIED",
1: "DEVELOPER_CONNECT",
2: "FIREBASE",
}
GitHubConfig_GitHubApp_value = map[string]int32{
"GIT_HUB_APP_UNSPECIFIED": 0,
"DEVELOPER_CONNECT": 1,
"FIREBASE": 2,
}
)
Enum value maps for GitHubConfig_GitHubApp.
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_cloud_developerconnect_v1_developer_connect_proto
var File_google_cloud_developerconnect_v1_developer_connect_proto protoreflect.FileDescriptor
Functions
func RegisterDeveloperConnectServer
func RegisterDeveloperConnectServer(s *grpc.Server, srv DeveloperConnectServer)
Connection
type Connection struct {
ConnectionConfig isConnection_ConnectionConfig `protobuf_oneof:"connection_config"`
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
CreateTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
UpdateTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"`
DeleteTime *timestamppb.Timestamp `protobuf:"bytes,11,opt,name=delete_time,json=deleteTime,proto3" json:"delete_time,omitempty"`
Labels map[string]string "" /* 153 byte string literal not displayed */
InstallationState *InstallationState `protobuf:"bytes,6,opt,name=installation_state,json=installationState,proto3" json:"installation_state,omitempty"`
Disabled bool `protobuf:"varint,7,opt,name=disabled,proto3" json:"disabled,omitempty"`
Reconciling bool `protobuf:"varint,8,opt,name=reconciling,proto3" json:"reconciling,omitempty"`
Annotations map[string]string "" /* 163 byte string literal not displayed */
Etag string `protobuf:"bytes,10,opt,name=etag,proto3" json:"etag,omitempty"`
Uid string `protobuf:"bytes,12,opt,name=uid,proto3" json:"uid,omitempty"`
}
Message describing Connection object
func (*Connection) Descriptor
func (*Connection) Descriptor() ([]byte, []int)
Deprecated: Use Connection.ProtoReflect.Descriptor instead.
func (*Connection) GetAnnotations
func (x *Connection) GetAnnotations() map[string]string
func (*Connection) GetConnectionConfig
func (m *Connection) GetConnectionConfig() isConnection_ConnectionConfig
func (*Connection) GetCreateTime
func (x *Connection) GetCreateTime() *timestamppb.Timestamp
func (*Connection) GetDeleteTime
func (x *Connection) GetDeleteTime() *timestamppb.Timestamp
func (*Connection) GetDisabled
func (x *Connection) GetDisabled() bool
func (*Connection) GetEtag
func (x *Connection) GetEtag() string
func (*Connection) GetGithubConfig
func (x *Connection) GetGithubConfig() *GitHubConfig
func (*Connection) GetInstallationState
func (x *Connection) GetInstallationState() *InstallationState
func (*Connection) GetLabels
func (x *Connection) GetLabels() map[string]string
func (*Connection) GetName
func (x *Connection) GetName() string
func (*Connection) GetReconciling
func (x *Connection) GetReconciling() bool
func (*Connection) GetUid
func (x *Connection) GetUid() string
func (*Connection) GetUpdateTime
func (x *Connection) GetUpdateTime() *timestamppb.Timestamp
func (*Connection) ProtoMessage
func (*Connection) ProtoMessage()
func (*Connection) ProtoReflect
func (x *Connection) ProtoReflect() protoreflect.Message
func (*Connection) Reset
func (x *Connection) Reset()
func (*Connection) String
func (x *Connection) String() string
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"`
}
CreateConnectionRequest
type CreateConnectionRequest struct {
// Required. Value for parent.
Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
// Required. Id of the requesting object
// If auto-generating Id server-side, remove this field and
// connection_id from the method_signature of Create RPC
ConnectionId string `protobuf:"bytes,2,opt,name=connection_id,json=connectionId,proto3" json:"connection_id,omitempty"`
// Required. The resource being created
Connection *Connection `protobuf:"bytes,3,opt,name=connection,proto3" json:"connection,omitempty"`
// Optional. An optional request ID to identify requests. Specify a unique
// request ID so that if you must retry your request, the server will know to
// ignore the request if it has already been completed. The server will
// guarantee that for at least 60 minutes since the first request.
//
// For example, consider a situation where you make an initial request and the
// request times out. If you make the request again with the same request
// ID, the server can check if original operation with the same request ID
// was received, and if so, will ignore the second request. This prevents
// clients from accidentally creating duplicate commitments.
//
// The request ID must be a valid UUID with the exception that zero UUID is
// not supported (00000000-0000-0000-0000-000000000000).
RequestId string `protobuf:"bytes,4,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"`
// Optional. If set, validate the request, but do not actually post it.
ValidateOnly bool `protobuf:"varint,5,opt,name=validate_only,json=validateOnly,proto3" json:"validate_only,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() *Connection
func (*CreateConnectionRequest) GetConnectionId
func (x *CreateConnectionRequest) GetConnectionId() string
func (*CreateConnectionRequest) GetParent
func (x *CreateConnectionRequest) GetParent() string
func (*CreateConnectionRequest) GetRequestId
func (x *CreateConnectionRequest) GetRequestId() string
func (*CreateConnectionRequest) GetValidateOnly
func (x *CreateConnectionRequest) GetValidateOnly() bool
func (*CreateConnectionRequest) ProtoMessage
func (*CreateConnectionRequest) ProtoMessage()
func (*CreateConnectionRequest) ProtoReflect
func (x *CreateConnectionRequest) ProtoReflect() protoreflect.Message
func (*CreateConnectionRequest) Reset
func (x *CreateConnectionRequest) Reset()
func (*CreateConnectionRequest) String
func (x *CreateConnectionRequest) String() string
CreateGitRepositoryLinkRequest
type CreateGitRepositoryLinkRequest struct {
// Required. Value for parent.
Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
// Required. The resource being created
GitRepositoryLink *GitRepositoryLink `protobuf:"bytes,2,opt,name=git_repository_link,json=gitRepositoryLink,proto3" json:"git_repository_link,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
// -._~%!$&'()*+,;=@.
GitRepositoryLinkId string `protobuf:"bytes,3,opt,name=git_repository_link_id,json=gitRepositoryLinkId,proto3" json:"git_repository_link_id,omitempty"`
// Optional. An optional request ID to identify requests. Specify a unique
// request ID so that if you must retry your request, the server will know to
// ignore the request if it has already been completed. The server will
// guarantee that for at least 60 minutes since the first request.
//
// For example, consider a situation where you make an initial request and the
// request times out. If you make the request again with the same request
// ID, the server can check if original operation with the same request ID
// was received, and if so, will ignore the second request. This prevents
// clients from accidentally creating duplicate commitments.
//
// The request ID must be a valid UUID with the exception that zero UUID is
// not supported (00000000-0000-0000-0000-000000000000).
RequestId string `protobuf:"bytes,4,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"`
// Optional. If set, validate the request, but do not actually post it.
ValidateOnly bool `protobuf:"varint,5,opt,name=validate_only,json=validateOnly,proto3" json:"validate_only,omitempty"`
// contains filtered or unexported fields
}
Message for creating a GitRepositoryLink
func (*CreateGitRepositoryLinkRequest) Descriptor
func (*CreateGitRepositoryLinkRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateGitRepositoryLinkRequest.ProtoReflect.Descriptor instead.
func (*CreateGitRepositoryLinkRequest) GetGitRepositoryLink
func (x *CreateGitRepositoryLinkRequest) GetGitRepositoryLink() *GitRepositoryLink
func (*CreateGitRepositoryLinkRequest) GetGitRepositoryLinkId
func (x *CreateGitRepositoryLinkRequest) GetGitRepositoryLinkId() string
func (*CreateGitRepositoryLinkRequest) GetParent
func (x *CreateGitRepositoryLinkRequest) GetParent() string
func (*CreateGitRepositoryLinkRequest) GetRequestId
func (x *CreateGitRepositoryLinkRequest) GetRequestId() string
func (*CreateGitRepositoryLinkRequest) GetValidateOnly
func (x *CreateGitRepositoryLinkRequest) GetValidateOnly() bool
func (*CreateGitRepositoryLinkRequest) ProtoMessage
func (*CreateGitRepositoryLinkRequest) ProtoMessage()
func (*CreateGitRepositoryLinkRequest) ProtoReflect
func (x *CreateGitRepositoryLinkRequest) ProtoReflect() protoreflect.Message
func (*CreateGitRepositoryLinkRequest) Reset
func (x *CreateGitRepositoryLinkRequest) Reset()
func (*CreateGitRepositoryLinkRequest) String
func (x *CreateGitRepositoryLinkRequest) String() string
DeleteConnectionRequest
type DeleteConnectionRequest struct {
// Required. Name of the resource
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// Optional. An optional request ID to identify requests. Specify a unique
// request ID so that if you must retry your request, the server will know to
// ignore the request if it has already been completed. The server will
// guarantee that for at least 60 minutes after the first request.
//
// For example, consider a situation where you make an initial request and the
// request times out. If you make the request again with the same request
// ID, the server can check if original operation with the same request ID
// was received, and if so, will ignore the second request. This prevents
// clients from accidentally creating duplicate commitments.
//
// The request ID must be a valid UUID with the exception that zero UUID is
// not supported (00000000-0000-0000-0000-000000000000).
RequestId string `protobuf:"bytes,2,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"`
// Optional. 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"`
// Optional. 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,4,opt,name=etag,proto3" json:"etag,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() string
func (*DeleteConnectionRequest) GetName
func (x *DeleteConnectionRequest) GetName() string
func (*DeleteConnectionRequest) GetRequestId
func (x *DeleteConnectionRequest) GetRequestId() string
func (*DeleteConnectionRequest) GetValidateOnly
func (x *DeleteConnectionRequest) GetValidateOnly() bool
func (*DeleteConnectionRequest) ProtoMessage
func (*DeleteConnectionRequest) ProtoMessage()
func (*DeleteConnectionRequest) ProtoReflect
func (x *DeleteConnectionRequest) ProtoReflect() protoreflect.Message
func (*DeleteConnectionRequest) Reset
func (x *DeleteConnectionRequest) Reset()
func (*DeleteConnectionRequest) String
func (x *DeleteConnectionRequest) String() string
DeleteGitRepositoryLinkRequest
type DeleteGitRepositoryLinkRequest struct {
// Required. Name of the resource
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// Optional. An optional request ID to identify requests. Specify a unique
// request ID so that if you must retry your request, the server will know to
// ignore the request if it has already been completed. The server will
// guarantee that for at least 60 minutes after the first request.
//
// For example, consider a situation where you make an initial request and the
// request times out. If you make the request again with the same request
// ID, the server can check if original operation with the same request ID
// was received, and if so, will ignore the second request. This prevents
// clients from accidentally creating duplicate commitments.
//
// The request ID must be a valid UUID with the exception that zero UUID is
// not supported (00000000-0000-0000-0000-000000000000).
RequestId string `protobuf:"bytes,2,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"`
// Optional. 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"`
// Optional. 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,4,opt,name=etag,proto3" json:"etag,omitempty"`
// contains filtered or unexported fields
}
Message for deleting a GitRepositoryLink
func (*DeleteGitRepositoryLinkRequest) Descriptor
func (*DeleteGitRepositoryLinkRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeleteGitRepositoryLinkRequest.ProtoReflect.Descriptor instead.
func (*DeleteGitRepositoryLinkRequest) GetEtag
func (x *DeleteGitRepositoryLinkRequest) GetEtag() string
func (*DeleteGitRepositoryLinkRequest) GetName
func (x *DeleteGitRepositoryLinkRequest) GetName() string
func (*DeleteGitRepositoryLinkRequest) GetRequestId
func (x *DeleteGitRepositoryLinkRequest) GetRequestId() string
func (*DeleteGitRepositoryLinkRequest) GetValidateOnly
func (x *DeleteGitRepositoryLinkRequest) GetValidateOnly() bool
func (*DeleteGitRepositoryLinkRequest) ProtoMessage
func (*DeleteGitRepositoryLinkRequest) ProtoMessage()
func (*DeleteGitRepositoryLinkRequest) ProtoReflect
func (x *DeleteGitRepositoryLinkRequest) ProtoReflect() protoreflect.Message
func (*DeleteGitRepositoryLinkRequest) Reset
func (x *DeleteGitRepositoryLinkRequest) Reset()
func (*DeleteGitRepositoryLinkRequest) String
func (x *DeleteGitRepositoryLinkRequest) String() string
DeveloperConnectClient
type DeveloperConnectClient interface {
// Lists Connections in a given project and location.
ListConnections(ctx context.Context, in *ListConnectionsRequest, opts ...grpc.CallOption) (*ListConnectionsResponse, error)
// Gets details of a single Connection.
GetConnection(ctx context.Context, in *GetConnectionRequest, opts ...grpc.CallOption) (*Connection, error)
// Creates a new Connection in a given project and location.
CreateConnection(ctx context.Context, in *CreateConnectionRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error)
// Updates the parameters of 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 GitRepositoryLink. Upon linking a Git Repository, Developer
// Connect will configure the Git Repository to send webhook events to
// Developer Connect. Connections that use Firebase GitHub Application will
// have events forwarded to the Firebase service. All other Connections will
// have events forwarded to Cloud Build.
CreateGitRepositoryLink(ctx context.Context, in *CreateGitRepositoryLinkRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error)
// Deletes a single GitRepositoryLink.
DeleteGitRepositoryLink(ctx context.Context, in *DeleteGitRepositoryLinkRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error)
// Lists GitRepositoryLinks in a given project, location, and connection.
ListGitRepositoryLinks(ctx context.Context, in *ListGitRepositoryLinksRequest, opts ...grpc.CallOption) (*ListGitRepositoryLinksResponse, error)
// Gets details of a single GitRepositoryLink.
GetGitRepositoryLink(ctx context.Context, in *GetGitRepositoryLinkRequest, opts ...grpc.CallOption) (*GitRepositoryLink, error)
// Fetches read/write token of a given gitRepositoryLink.
FetchReadWriteToken(ctx context.Context, in *FetchReadWriteTokenRequest, opts ...grpc.CallOption) (*FetchReadWriteTokenResponse, error)
// Fetches read token of a given gitRepositoryLink.
FetchReadToken(ctx context.Context, in *FetchReadTokenRequest, opts ...grpc.CallOption) (*FetchReadTokenResponse, error)
// FetchLinkableGitRepositories returns a list of git repositories from an SCM
// that are available to be added to a Connection.
FetchLinkableGitRepositories(ctx context.Context, in *FetchLinkableGitRepositoriesRequest, opts ...grpc.CallOption) (*FetchLinkableGitRepositoriesResponse, error)
// FetchGitHubInstallations returns the list of GitHub Installations that
// are available to be added to a Connection.
// For github.com, only installations accessible to the authorizer token
// are returned. For GitHub Enterprise, all installations are returned.
FetchGitHubInstallations(ctx context.Context, in *FetchGitHubInstallationsRequest, opts ...grpc.CallOption) (*FetchGitHubInstallationsResponse, error)
// Fetch the list of branches or tags for a given repository.
FetchGitRefs(ctx context.Context, in *FetchGitRefsRequest, opts ...grpc.CallOption) (*FetchGitRefsResponse, error)
}
DeveloperConnectClient is the client API for DeveloperConnect service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewDeveloperConnectClient
func NewDeveloperConnectClient(cc grpc.ClientConnInterface) DeveloperConnectClient
DeveloperConnectServer
type DeveloperConnectServer interface {
// Lists Connections in a given project and location.
ListConnections(context.Context, *ListConnectionsRequest) (*ListConnectionsResponse, error)
// Gets details of a single Connection.
GetConnection(context.Context, *GetConnectionRequest) (*Connection, error)
// Creates a new Connection in a given project and location.
CreateConnection(context.Context, *CreateConnectionRequest) (*longrunningpb.Operation, error)
// Updates the parameters of a single Connection.
UpdateConnection(context.Context, *UpdateConnectionRequest) (*longrunningpb.Operation, error)
// Deletes a single Connection.
DeleteConnection(context.Context, *DeleteConnectionRequest) (*longrunningpb.Operation, error)
// Creates a GitRepositoryLink. Upon linking a Git Repository, Developer
// Connect will configure the Git Repository to send webhook events to
// Developer Connect. Connections that use Firebase GitHub Application will
// have events forwarded to the Firebase service. All other Connections will
// have events forwarded to Cloud Build.
CreateGitRepositoryLink(context.Context, *CreateGitRepositoryLinkRequest) (*longrunningpb.Operation, error)
// Deletes a single GitRepositoryLink.
DeleteGitRepositoryLink(context.Context, *DeleteGitRepositoryLinkRequest) (*longrunningpb.Operation, error)
// Lists GitRepositoryLinks in a given project, location, and connection.
ListGitRepositoryLinks(context.Context, *ListGitRepositoryLinksRequest) (*ListGitRepositoryLinksResponse, error)
// Gets details of a single GitRepositoryLink.
GetGitRepositoryLink(context.Context, *GetGitRepositoryLinkRequest) (*GitRepositoryLink, error)
// Fetches read/write token of a given gitRepositoryLink.
FetchReadWriteToken(context.Context, *FetchReadWriteTokenRequest) (*FetchReadWriteTokenResponse, error)
// Fetches read token of a given gitRepositoryLink.
FetchReadToken(context.Context, *FetchReadTokenRequest) (*FetchReadTokenResponse, error)
// FetchLinkableGitRepositories returns a list of git repositories from an SCM
// that are available to be added to a Connection.
FetchLinkableGitRepositories(context.Context, *FetchLinkableGitRepositoriesRequest) (*FetchLinkableGitRepositoriesResponse, error)
// FetchGitHubInstallations returns the list of GitHub Installations that
// are available to be added to a Connection.
// For github.com, only installations accessible to the authorizer token
// are returned. For GitHub Enterprise, all installations are returned.
FetchGitHubInstallations(context.Context, *FetchGitHubInstallationsRequest) (*FetchGitHubInstallationsResponse, error)
// Fetch the list of branches or tags for a given repository.
FetchGitRefs(context.Context, *FetchGitRefsRequest) (*FetchGitRefsResponse, error)
}
DeveloperConnectServer is the server API for DeveloperConnect service.
FetchGitHubInstallationsRequest
type FetchGitHubInstallationsRequest struct {
// Required. The resource name of the connection in the format
// `projects/*/locations/*/connections/*`.
Connection string `protobuf:"bytes,1,opt,name=connection,proto3" json:"connection,omitempty"`
// contains filtered or unexported fields
}
Request for fetching github installations.
func (*FetchGitHubInstallationsRequest) Descriptor
func (*FetchGitHubInstallationsRequest) Descriptor() ([]byte, []int)
Deprecated: Use FetchGitHubInstallationsRequest.ProtoReflect.Descriptor instead.
func (*FetchGitHubInstallationsRequest) GetConnection
func (x *FetchGitHubInstallationsRequest) GetConnection() string
func (*FetchGitHubInstallationsRequest) ProtoMessage
func (*FetchGitHubInstallationsRequest) ProtoMessage()
func (*FetchGitHubInstallationsRequest) ProtoReflect
func (x *FetchGitHubInstallationsRequest) ProtoReflect() protoreflect.Message
func (*FetchGitHubInstallationsRequest) Reset
func (x *FetchGitHubInstallationsRequest) Reset()
func (*FetchGitHubInstallationsRequest) String
func (x *FetchGitHubInstallationsRequest) String() string
FetchGitHubInstallationsResponse
type FetchGitHubInstallationsResponse struct {
// List of installations available to the OAuth user (for github.com)
// or all the installations (for GitHub enterprise).
Installations []*FetchGitHubInstallationsResponse_Installation `protobuf:"bytes,1,rep,name=installations,proto3" json:"installations,omitempty"`
// contains filtered or unexported fields
}
Response of fetching github installations.
func (*FetchGitHubInstallationsResponse) Descriptor
func (*FetchGitHubInstallationsResponse) Descriptor() ([]byte, []int)
Deprecated: Use FetchGitHubInstallationsResponse.ProtoReflect.Descriptor instead.
func (*FetchGitHubInstallationsResponse) GetInstallations
func (x *FetchGitHubInstallationsResponse) GetInstallations() []*FetchGitHubInstallationsResponse_Installation
func (*FetchGitHubInstallationsResponse) ProtoMessage
func (*FetchGitHubInstallationsResponse) ProtoMessage()
func (*FetchGitHubInstallationsResponse) ProtoReflect
func (x *FetchGitHubInstallationsResponse) ProtoReflect() protoreflect.Message
func (*FetchGitHubInstallationsResponse) Reset
func (x *FetchGitHubInstallationsResponse) Reset()
func (*FetchGitHubInstallationsResponse) String
func (x *FetchGitHubInstallationsResponse) String() string
FetchGitHubInstallationsResponse_Installation
type FetchGitHubInstallationsResponse_Installation struct {
// ID of the installation in GitHub.
Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
// Name of the GitHub user or organization that owns this installation.
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
// Either "user" or "organization".
Type string `protobuf:"bytes,3,opt,name=type,proto3" json:"type,omitempty"`
// contains filtered or unexported fields
}
Represents an installation of the GitHub App.
func (*FetchGitHubInstallationsResponse_Installation) Descriptor
func (*FetchGitHubInstallationsResponse_Installation) Descriptor() ([]byte, []int)
Deprecated: Use FetchGitHubInstallationsResponse_Installation.ProtoReflect.Descriptor instead.
func (*FetchGitHubInstallationsResponse_Installation) GetId
func (x *FetchGitHubInstallationsResponse_Installation) GetId() int64
func (*FetchGitHubInstallationsResponse_Installation) GetName
func (x *FetchGitHubInstallationsResponse_Installation) GetName() string
func (*FetchGitHubInstallationsResponse_Installation) GetType
func (x *FetchGitHubInstallationsResponse_Installation) GetType() string
func (*FetchGitHubInstallationsResponse_Installation) ProtoMessage
func (*FetchGitHubInstallationsResponse_Installation) ProtoMessage()
func (*FetchGitHubInstallationsResponse_Installation) ProtoReflect
func (x *FetchGitHubInstallationsResponse_Installation) ProtoReflect() protoreflect.Message
func (*FetchGitHubInstallationsResponse_Installation) Reset
func (x *FetchGitHubInstallationsResponse_Installation) Reset()
func (*FetchGitHubInstallationsResponse_Installation) String
func (x *FetchGitHubInstallationsResponse_Installation) String() string
FetchGitRefsRequest
type FetchGitRefsRequest struct {
GitRepositoryLink string `protobuf:"bytes,1,opt,name=git_repository_link,json=gitRepositoryLink,proto3" json:"git_repository_link,omitempty"`
RefType FetchGitRefsRequest_RefType "" /* 149 byte string literal not displayed */
PageSize int32 `protobuf:"varint,4,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
PageToken string `protobuf:"bytes,5,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
}
Request for fetching git refs.
func (*FetchGitRefsRequest) Descriptor
func (*FetchGitRefsRequest) Descriptor() ([]byte, []int)
Deprecated: Use FetchGitRefsRequest.ProtoReflect.Descriptor instead.
func (*FetchGitRefsRequest) GetGitRepositoryLink
func (x *FetchGitRefsRequest) GetGitRepositoryLink() string
func (*FetchGitRefsRequest) GetPageSize
func (x *FetchGitRefsRequest) GetPageSize() int32
func (*FetchGitRefsRequest) GetPageToken
func (x *FetchGitRefsRequest) GetPageToken() string
func (*FetchGitRefsRequest) GetRefType
func (x *FetchGitRefsRequest) GetRefType() FetchGitRefsRequest_RefType
func (*FetchGitRefsRequest) ProtoMessage
func (*FetchGitRefsRequest) ProtoMessage()
func (*FetchGitRefsRequest) ProtoReflect
func (x *FetchGitRefsRequest) ProtoReflect() protoreflect.Message
func (*FetchGitRefsRequest) Reset
func (x *FetchGitRefsRequest) Reset()
func (*FetchGitRefsRequest) String
func (x *FetchGitRefsRequest) String() string
FetchGitRefsRequest_RefType
type FetchGitRefsRequest_RefType int32
Type 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.EnumDescriptor
func (FetchGitRefsRequest_RefType) Enum
func (x FetchGitRefsRequest_RefType) Enum() *FetchGitRefsRequest_RefType
func (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.EnumNumber
func (FetchGitRefsRequest_RefType) String
func (x FetchGitRefsRequest_RefType) String() string
func (FetchGitRefsRequest_RefType) Type
func (FetchGitRefsRequest_RefType) Type() protoreflect.EnumType
FetchGitRefsResponse
type FetchGitRefsResponse struct {
// Name of the refs fetched.
RefNames []string `protobuf:"bytes,1,rep,name=ref_names,json=refNames,proto3" json:"ref_names,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 for fetching git refs.
func (*FetchGitRefsResponse) Descriptor
func (*FetchGitRefsResponse) Descriptor() ([]byte, []int)
Deprecated: Use FetchGitRefsResponse.ProtoReflect.Descriptor instead.
func (*FetchGitRefsResponse) GetNextPageToken
func (x *FetchGitRefsResponse) GetNextPageToken() string
func (*FetchGitRefsResponse) GetRefNames
func (x *FetchGitRefsResponse) GetRefNames() []string
func (*FetchGitRefsResponse) ProtoMessage
func (*FetchGitRefsResponse) ProtoMessage()
func (*FetchGitRefsResponse) ProtoReflect
func (x *FetchGitRefsResponse) ProtoReflect() protoreflect.Message
func (*FetchGitRefsResponse) Reset
func (x *FetchGitRefsResponse) Reset()
func (*FetchGitRefsResponse) String
func (x *FetchGitRefsResponse) String() string
FetchLinkableGitRepositoriesRequest
type FetchLinkableGitRepositoriesRequest struct {
// Required. The name of the Connection.
// Format: `projects/*/locations/*/connections/*`.
Connection string `protobuf:"bytes,1,opt,name=connection,proto3" json:"connection,omitempty"`
// Optional. Number of results to return in the list. Defaults to 20.
PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
// Optional. 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 FetchLinkableGitRepositoriesRequest.
func (*FetchLinkableGitRepositoriesRequest) Descriptor
func (*FetchLinkableGitRepositoriesRequest) Descriptor() ([]byte, []int)
Deprecated: Use FetchLinkableGitRepositoriesRequest.ProtoReflect.Descriptor instead.
func (*FetchLinkableGitRepositoriesRequest) GetConnection
func (x *FetchLinkableGitRepositoriesRequest) GetConnection() string
func (*FetchLinkableGitRepositoriesRequest) GetPageSize
func (x *FetchLinkableGitRepositoriesRequest) GetPageSize() int32
func (*FetchLinkableGitRepositoriesRequest) GetPageToken
func (x *FetchLinkableGitRepositoriesRequest) GetPageToken() string
func (*FetchLinkableGitRepositoriesRequest) ProtoMessage
func (*FetchLinkableGitRepositoriesRequest) ProtoMessage()
func (*FetchLinkableGitRepositoriesRequest) ProtoReflect
func (x *FetchLinkableGitRepositoriesRequest) ProtoReflect() protoreflect.Message
func (*FetchLinkableGitRepositoriesRequest) Reset
func (x *FetchLinkableGitRepositoriesRequest) Reset()
func (*FetchLinkableGitRepositoriesRequest) String
func (x *FetchLinkableGitRepositoriesRequest) String() string
FetchLinkableGitRepositoriesResponse
type FetchLinkableGitRepositoriesResponse struct {
LinkableGitRepositories []*LinkableGitRepository "" /* 132 byte string literal not displayed */
NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
}
Response message for FetchLinkableGitRepositories.
func (*FetchLinkableGitRepositoriesResponse) Descriptor
func (*FetchLinkableGitRepositoriesResponse) Descriptor() ([]byte, []int)
Deprecated: Use FetchLinkableGitRepositoriesResponse.ProtoReflect.Descriptor instead.
func (*FetchLinkableGitRepositoriesResponse) GetLinkableGitRepositories
func (x *FetchLinkableGitRepositoriesResponse) GetLinkableGitRepositories() []*LinkableGitRepository
func (*FetchLinkableGitRepositoriesResponse) GetNextPageToken
func (x *FetchLinkableGitRepositoriesResponse) GetNextPageToken() string
func (*FetchLinkableGitRepositoriesResponse) ProtoMessage
func (*FetchLinkableGitRepositoriesResponse) ProtoMessage()
func (*FetchLinkableGitRepositoriesResponse) ProtoReflect
func (x *FetchLinkableGitRepositoriesResponse) ProtoReflect() protoreflect.Message
func (*FetchLinkableGitRepositoriesResponse) Reset
func (x *FetchLinkableGitRepositoriesResponse) Reset()
func (*FetchLinkableGitRepositoriesResponse) String
func (x *FetchLinkableGitRepositoriesResponse) String() string
FetchReadTokenRequest
type FetchReadTokenRequest struct {
// Required. The resource name of the gitRepositoryLink in the format
// `projects/*/locations/*/connections/*/gitRepositoryLinks/*`.
GitRepositoryLink string `protobuf:"bytes,1,opt,name=git_repository_link,json=gitRepositoryLink,proto3" json:"git_repository_link,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) GetGitRepositoryLink
func (x *FetchReadTokenRequest) GetGitRepositoryLink() string
func (*FetchReadTokenRequest) ProtoMessage
func (*FetchReadTokenRequest) ProtoMessage()
func (*FetchReadTokenRequest) ProtoReflect
func (x *FetchReadTokenRequest) ProtoReflect() protoreflect.Message
func (*FetchReadTokenRequest) Reset
func (x *FetchReadTokenRequest) Reset()
func (*FetchReadTokenRequest) String
func (x *FetchReadTokenRequest) String() string
FetchReadTokenResponse
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"`
// The git_username to specify when making a git clone with the
// token. For example, for GitHub GitRepositoryLinks, this would be
// "x-access-token"
GitUsername string `protobuf:"bytes,3,opt,name=git_username,json=gitUsername,proto3" json:"git_username,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.Timestamp
func (*FetchReadTokenResponse) GetGitUsername
func (x *FetchReadTokenResponse) GetGitUsername() string
func (*FetchReadTokenResponse) GetToken
func (x *FetchReadTokenResponse) GetToken() string
func (*FetchReadTokenResponse) ProtoMessage
func (*FetchReadTokenResponse) ProtoMessage()
func (*FetchReadTokenResponse) ProtoReflect
func (x *FetchReadTokenResponse) ProtoReflect() protoreflect.Message
func (*FetchReadTokenResponse) Reset
func (x *FetchReadTokenResponse) Reset()
func (*FetchReadTokenResponse) String
func (x *FetchReadTokenResponse) String() string
FetchReadWriteTokenRequest
type FetchReadWriteTokenRequest struct {
// Required. The resource name of the gitRepositoryLink in the format
// `projects/*/locations/*/connections/*/gitRepositoryLinks/*`.
GitRepositoryLink string `protobuf:"bytes,1,opt,name=git_repository_link,json=gitRepositoryLink,proto3" json:"git_repository_link,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) GetGitRepositoryLink
func (x *FetchReadWriteTokenRequest) GetGitRepositoryLink() string
func (*FetchReadWriteTokenRequest) ProtoMessage
func (*FetchReadWriteTokenRequest) ProtoMessage()
func (*FetchReadWriteTokenRequest) ProtoReflect
func (x *FetchReadWriteTokenRequest) ProtoReflect() protoreflect.Message
func (*FetchReadWriteTokenRequest) Reset
func (x *FetchReadWriteTokenRequest) Reset()
func (*FetchReadWriteTokenRequest) String
func (x *FetchReadWriteTokenRequest) String() string
FetchReadWriteTokenResponse
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"`
// The git_username to specify when making a git clone with the
// token. For example, for GitHub GitRepositoryLinks, this would be
// "x-access-token"
GitUsername string `protobuf:"bytes,3,opt,name=git_username,json=gitUsername,proto3" json:"git_username,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.Timestamp
func (*FetchReadWriteTokenResponse) GetGitUsername
func (x *FetchReadWriteTokenResponse) GetGitUsername() string
func (*FetchReadWriteTokenResponse) GetToken
func (x *FetchReadWriteTokenResponse) GetToken() string
func (*FetchReadWriteTokenResponse) ProtoMessage
func (*FetchReadWriteTokenResponse) ProtoMessage()
func (*FetchReadWriteTokenResponse) ProtoReflect
func (x *FetchReadWriteTokenResponse) ProtoReflect() protoreflect.Message
func (*FetchReadWriteTokenResponse) Reset
func (x *FetchReadWriteTokenResponse) Reset()
func (*FetchReadWriteTokenResponse) String
func (x *FetchReadWriteTokenResponse) String() string
GetConnectionRequest
type GetConnectionRequest struct {
// Required. Name of the resource
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// contains filtered or unexported fields
}
Message for getting a Connection
func (*GetConnectionRequest) Descriptor
func (*GetConnectionRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetConnectionRequest.ProtoReflect.Descriptor instead.
func (*GetConnectionRequest) GetName
func (x *GetConnectionRequest) GetName() string
func (*GetConnectionRequest) ProtoMessage
func (*GetConnectionRequest) ProtoMessage()
func (*GetConnectionRequest) ProtoReflect
func (x *GetConnectionRequest) ProtoReflect() protoreflect.Message
func (*GetConnectionRequest) Reset
func (x *GetConnectionRequest) Reset()
func (*GetConnectionRequest) String
func (x *GetConnectionRequest) String() string
GetGitRepositoryLinkRequest
type GetGitRepositoryLinkRequest struct {
// Required. Name of the resource
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// contains filtered or unexported fields
}
Message for getting a GitRepositoryLink
func (*GetGitRepositoryLinkRequest) Descriptor
func (*GetGitRepositoryLinkRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetGitRepositoryLinkRequest.ProtoReflect.Descriptor instead.
func (*GetGitRepositoryLinkRequest) GetName
func (x *GetGitRepositoryLinkRequest) GetName() string
func (*GetGitRepositoryLinkRequest) ProtoMessage
func (*GetGitRepositoryLinkRequest) ProtoMessage()
func (*GetGitRepositoryLinkRequest) ProtoReflect
func (x *GetGitRepositoryLinkRequest) ProtoReflect() protoreflect.Message
func (*GetGitRepositoryLinkRequest) Reset
func (x *GetGitRepositoryLinkRequest) Reset()
func (*GetGitRepositoryLinkRequest) String
func (x *GetGitRepositoryLinkRequest) String() string
GitHubConfig
type GitHubConfig struct {
GithubApp GitHubConfig_GitHubApp "" /* 150 byte string literal not displayed */
AuthorizerCredential *OAuthCredential `protobuf:"bytes,2,opt,name=authorizer_credential,json=authorizerCredential,proto3" json:"authorizer_credential,omitempty"`
AppInstallationId int64 `protobuf:"varint,3,opt,name=app_installation_id,json=appInstallationId,proto3" json:"app_installation_id,omitempty"`
InstallationUri string `protobuf:"bytes,4,opt,name=installation_uri,json=installationUri,proto3" json:"installation_uri,omitempty"`
}
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() int64
func (*GitHubConfig) GetAuthorizerCredential
func (x *GitHubConfig) GetAuthorizerCredential() *OAuthCredential
func (*GitHubConfig) GetGithubApp
func (x *GitHubConfig) GetGithubApp() GitHubConfig_GitHubApp
func (*GitHubConfig) GetInstallationUri
func (x *GitHubConfig) GetInstallationUri() string
func (*GitHubConfig) ProtoMessage
func (*GitHubConfig) ProtoMessage()
func (*GitHubConfig) ProtoReflect
func (x *GitHubConfig) ProtoReflect() protoreflect.Message
func (*GitHubConfig) Reset
func (x *GitHubConfig) Reset()
func (*GitHubConfig) String
func (x *GitHubConfig) String() string
GitHubConfig_GitHubApp
type GitHubConfig_GitHubApp int32
Represents the various GitHub Applications that can be installed to a GitHub user or organization and used with Developer Connect.
GitHubConfig_GIT_HUB_APP_UNSPECIFIED, GitHubConfig_DEVELOPER_CONNECT, GitHubConfig_FIREBASE
const (
// GitHub App not specified.
GitHubConfig_GIT_HUB_APP_UNSPECIFIED GitHubConfig_GitHubApp = 0
// The Developer Connect GitHub Application.
GitHubConfig_DEVELOPER_CONNECT GitHubConfig_GitHubApp = 1
// The Firebase GitHub Application.
GitHubConfig_FIREBASE GitHubConfig_GitHubApp = 2
)
func (GitHubConfig_GitHubApp) Descriptor
func (GitHubConfig_GitHubApp) Descriptor() protoreflect.EnumDescriptor
func (GitHubConfig_GitHubApp) Enum
func (x GitHubConfig_GitHubApp) Enum() *GitHubConfig_GitHubApp
func (GitHubConfig_GitHubApp) EnumDescriptor
func (GitHubConfig_GitHubApp) EnumDescriptor() ([]byte, []int)
Deprecated: Use GitHubConfig_GitHubApp.Descriptor instead.
func (GitHubConfig_GitHubApp) Number
func (x GitHubConfig_GitHubApp) Number() protoreflect.EnumNumber
func (GitHubConfig_GitHubApp) String
func (x GitHubConfig_GitHubApp) String() string
func (GitHubConfig_GitHubApp) Type
func (GitHubConfig_GitHubApp) Type() protoreflect.EnumType
GitRepositoryLink
type GitRepositoryLink struct {
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
CloneUri string `protobuf:"bytes,2,opt,name=clone_uri,json=cloneUri,proto3" json:"clone_uri,omitempty"`
CreateTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
UpdateTime *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"`
DeleteTime *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=delete_time,json=deleteTime,proto3" json:"delete_time,omitempty"`
Labels map[string]string "" /* 153 byte string literal not displayed */
Etag string `protobuf:"bytes,7,opt,name=etag,proto3" json:"etag,omitempty"`
Reconciling bool `protobuf:"varint,8,opt,name=reconciling,proto3" json:"reconciling,omitempty"`
Annotations map[string]string "" /* 163 byte string literal not displayed */
Uid string `protobuf:"bytes,10,opt,name=uid,proto3" json:"uid,omitempty"`
}
Message describing the GitRepositoryLink object
func (*GitRepositoryLink) Descriptor
func (*GitRepositoryLink) Descriptor() ([]byte, []int)
Deprecated: Use GitRepositoryLink.ProtoReflect.Descriptor instead.
func (*GitRepositoryLink) GetAnnotations
func (x *GitRepositoryLink) GetAnnotations() map[string]string
func (*GitRepositoryLink) GetCloneUri
func (x *GitRepositoryLink) GetCloneUri() string
func (*GitRepositoryLink) GetCreateTime
func (x *GitRepositoryLink) GetCreateTime() *timestamppb.Timestamp
func (*GitRepositoryLink) GetDeleteTime
func (x *GitRepositoryLink) GetDeleteTime() *timestamppb.Timestamp
func (*GitRepositoryLink) GetEtag
func (x *GitRepositoryLink) GetEtag() string
func (*GitRepositoryLink) GetLabels
func (x *GitRepositoryLink) GetLabels() map[string]string
func (*GitRepositoryLink) GetName
func (x *GitRepositoryLink) GetName() string
func (*GitRepositoryLink) GetReconciling
func (x *GitRepositoryLink) GetReconciling() bool
func (*GitRepositoryLink) GetUid
func (x *GitRepositoryLink) GetUid() string
func (*GitRepositoryLink) GetUpdateTime
func (x *GitRepositoryLink) GetUpdateTime() *timestamppb.Timestamp
func (*GitRepositoryLink) ProtoMessage
func (*GitRepositoryLink) ProtoMessage()
func (*GitRepositoryLink) ProtoReflect
func (x *GitRepositoryLink) ProtoReflect() protoreflect.Message
func (*GitRepositoryLink) Reset
func (x *GitRepositoryLink) Reset()
func (*GitRepositoryLink) String
func (x *GitRepositoryLink) String() string
InstallationState
type InstallationState struct {
// Output only. Current step of the installation process.
Stage InstallationState_Stage `protobuf:"varint,1,opt,name=stage,proto3,enum=google.cloud.developerconnect.v1.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() string
func (*InstallationState) GetMessage
func (x *InstallationState) GetMessage() string
func (*InstallationState) GetStage
func (x *InstallationState) GetStage() InstallationState_Stage
func (*InstallationState) ProtoMessage
func (*InstallationState) ProtoMessage()
func (*InstallationState) ProtoReflect
func (x *InstallationState) ProtoReflect() protoreflect.Message
func (*InstallationState) Reset
func (x *InstallationState) Reset()
func (*InstallationState) String
func (x *InstallationState) String() string
InstallationState_Stage
type InstallationState_Stage int32
Stage 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.EnumDescriptor
func (InstallationState_Stage) Enum
func (x InstallationState_Stage) Enum() *InstallationState_Stage
func (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.EnumNumber
func (InstallationState_Stage) String
func (x InstallationState_Stage) String() string
func (InstallationState_Stage) Type
func (InstallationState_Stage) Type() protoreflect.EnumType
LinkableGitRepository
type LinkableGitRepository struct {
// The clone uri of the repository.
CloneUri string `protobuf:"bytes,1,opt,name=clone_uri,json=cloneUri,proto3" json:"clone_uri,omitempty"`
// contains filtered or unexported fields
}
LinkableGitRepository represents a git repository that can be linked to a connection.
func (*LinkableGitRepository) Descriptor
func (*LinkableGitRepository) Descriptor() ([]byte, []int)
Deprecated: Use LinkableGitRepository.ProtoReflect.Descriptor instead.
func (*LinkableGitRepository) GetCloneUri
func (x *LinkableGitRepository) GetCloneUri() string
func (*LinkableGitRepository) ProtoMessage
func (*LinkableGitRepository) ProtoMessage()
func (*LinkableGitRepository) ProtoReflect
func (x *LinkableGitRepository) ProtoReflect() protoreflect.Message
func (*LinkableGitRepository) Reset
func (x *LinkableGitRepository) Reset()
func (*LinkableGitRepository) String
func (x *LinkableGitRepository) String() string
ListConnectionsRequest
type ListConnectionsRequest struct {
// Required. Parent value for ListConnectionsRequest
Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
// Optional. Requested page size. Server may return fewer items than
// requested. If unspecified, server will pick an appropriate default.
PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
// Optional. A token identifying a page of results the server should return.
PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
// Optional. Filtering results
Filter string `protobuf:"bytes,4,opt,name=filter,proto3" json:"filter,omitempty"`
// Optional. Hint for how to order the results
OrderBy string `protobuf:"bytes,5,opt,name=order_by,json=orderBy,proto3" json:"order_by,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) GetFilter
func (x *ListConnectionsRequest) GetFilter() string
func (*ListConnectionsRequest) GetOrderBy
func (x *ListConnectionsRequest) GetOrderBy() string
func (*ListConnectionsRequest) GetPageSize
func (x *ListConnectionsRequest) GetPageSize() int32
func (*ListConnectionsRequest) GetPageToken
func (x *ListConnectionsRequest) GetPageToken() string
func (*ListConnectionsRequest) GetParent
func (x *ListConnectionsRequest) GetParent() string
func (*ListConnectionsRequest) ProtoMessage
func (*ListConnectionsRequest) ProtoMessage()
func (*ListConnectionsRequest) ProtoReflect
func (x *ListConnectionsRequest) ProtoReflect() protoreflect.Message
func (*ListConnectionsRequest) Reset
func (x *ListConnectionsRequest) Reset()
func (*ListConnectionsRequest) String
func (x *ListConnectionsRequest) String() string
ListConnectionsResponse
type ListConnectionsResponse struct {
// The list of Connection
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"`
// Locations that could not be reached.
Unreachable []string `protobuf:"bytes,3,rep,name=unreachable,proto3" json:"unreachable,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() []*Connection
func (*ListConnectionsResponse) GetNextPageToken
func (x *ListConnectionsResponse) GetNextPageToken() string
func (*ListConnectionsResponse) GetUnreachable
func (x *ListConnectionsResponse) GetUnreachable() []string
func (*ListConnectionsResponse) ProtoMessage
func (*ListConnectionsResponse) ProtoMessage()
func (*ListConnectionsResponse) ProtoReflect
func (x *ListConnectionsResponse) ProtoReflect() protoreflect.Message
func (*ListConnectionsResponse) Reset
func (x *ListConnectionsResponse) Reset()
func (*ListConnectionsResponse) String
func (x *ListConnectionsResponse) String() string
ListGitRepositoryLinksRequest
type ListGitRepositoryLinksRequest struct {
// Required. Parent value for ListGitRepositoryLinksRequest
Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
// Optional. Requested page size. Server may return fewer items than
// requested. If unspecified, server will pick an appropriate default.
PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
// Optional. A token identifying a page of results the server should return.
PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
// Optional. Filtering results
Filter string `protobuf:"bytes,4,opt,name=filter,proto3" json:"filter,omitempty"`
// Optional. Hint for how to order the results
OrderBy string `protobuf:"bytes,5,opt,name=order_by,json=orderBy,proto3" json:"order_by,omitempty"`
// contains filtered or unexported fields
}
Message for requesting a list of GitRepositoryLinks
func (*ListGitRepositoryLinksRequest) Descriptor
func (*ListGitRepositoryLinksRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListGitRepositoryLinksRequest.ProtoReflect.Descriptor instead.
func (*ListGitRepositoryLinksRequest) GetFilter
func (x *ListGitRepositoryLinksRequest) GetFilter() string
func (*ListGitRepositoryLinksRequest) GetOrderBy
func (x *ListGitRepositoryLinksRequest) GetOrderBy() string
func (*ListGitRepositoryLinksRequest) GetPageSize
func (x *ListGitRepositoryLinksRequest) GetPageSize() int32
func (*ListGitRepositoryLinksRequest) GetPageToken
func (x *ListGitRepositoryLinksRequest) GetPageToken() string
func (*ListGitRepositoryLinksRequest) GetParent
func (x *ListGitRepositoryLinksRequest) GetParent() string
func (*ListGitRepositoryLinksRequest) ProtoMessage
func (*ListGitRepositoryLinksRequest) ProtoMessage()
func (*ListGitRepositoryLinksRequest) ProtoReflect
func (x *ListGitRepositoryLinksRequest) ProtoReflect() protoreflect.Message
func (*ListGitRepositoryLinksRequest) Reset
func (x *ListGitRepositoryLinksRequest) Reset()
func (*ListGitRepositoryLinksRequest) String
func (x *ListGitRepositoryLinksRequest) String() string
ListGitRepositoryLinksResponse
type ListGitRepositoryLinksResponse struct {
// The list of GitRepositoryLinks
GitRepositoryLinks []*GitRepositoryLink `protobuf:"bytes,1,rep,name=git_repository_links,json=gitRepositoryLinks,proto3" json:"git_repository_links,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"`
// Locations that could not be reached.
Unreachable []string `protobuf:"bytes,3,rep,name=unreachable,proto3" json:"unreachable,omitempty"`
// contains filtered or unexported fields
}
Message for response to listing GitRepositoryLinks
func (*ListGitRepositoryLinksResponse) Descriptor
func (*ListGitRepositoryLinksResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListGitRepositoryLinksResponse.ProtoReflect.Descriptor instead.
func (*ListGitRepositoryLinksResponse) GetGitRepositoryLinks
func (x *ListGitRepositoryLinksResponse) GetGitRepositoryLinks() []*GitRepositoryLink
func (*ListGitRepositoryLinksResponse) GetNextPageToken
func (x *ListGitRepositoryLinksResponse) GetNextPageToken() string
func (*ListGitRepositoryLinksResponse) GetUnreachable
func (x *ListGitRepositoryLinksResponse) GetUnreachable() []string
func (*ListGitRepositoryLinksResponse) ProtoMessage
func (*ListGitRepositoryLinksResponse) ProtoMessage()
func (*ListGitRepositoryLinksResponse) ProtoReflect
func (x *ListGitRepositoryLinksResponse) ProtoReflect() protoreflect.Message
func (*ListGitRepositoryLinksResponse) Reset
func (x *ListGitRepositoryLinksResponse) Reset()
func (*ListGitRepositoryLinksResponse) String
func (x *ListGitRepositoryLinksResponse) String() string
OAuthCredential
type OAuthCredential struct {
OauthTokenSecretVersion string "" /* 134 byte string literal not displayed */
Username string `protobuf:"bytes,2,opt,name=username,proto3" json:"username,omitempty"`
}
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() string
func (*OAuthCredential) GetUsername
func (x *OAuthCredential) GetUsername() string
func (*OAuthCredential) ProtoMessage
func (*OAuthCredential) ProtoMessage()
func (*OAuthCredential) ProtoReflect
func (x *OAuthCredential) ProtoReflect() protoreflect.Message
func (*OAuthCredential) Reset
func (x *OAuthCredential) Reset()
func (*OAuthCredential) String
func (x *OAuthCredential) String() string
OperationMetadata
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 been cancelled successfully
// 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() string
func (*OperationMetadata) GetCreateTime
func (x *OperationMetadata) GetCreateTime() *timestamppb.Timestamp
func (*OperationMetadata) GetEndTime
func (x *OperationMetadata) GetEndTime() *timestamppb.Timestamp
func (*OperationMetadata) GetRequestedCancellation
func (x *OperationMetadata) GetRequestedCancellation() bool
func (*OperationMetadata) GetStatusMessage
func (x *OperationMetadata) GetStatusMessage() string
func (*OperationMetadata) GetTarget
func (x *OperationMetadata) GetTarget() string
func (*OperationMetadata) GetVerb
func (x *OperationMetadata) GetVerb() string
func (*OperationMetadata) ProtoMessage
func (*OperationMetadata) ProtoMessage()
func (*OperationMetadata) ProtoReflect
func (x *OperationMetadata) ProtoReflect() protoreflect.Message
func (*OperationMetadata) Reset
func (x *OperationMetadata) Reset()
func (*OperationMetadata) String
func (x *OperationMetadata) String() string
UnimplementedDeveloperConnectServer
type UnimplementedDeveloperConnectServer struct {
}
UnimplementedDeveloperConnectServer can be embedded to have forward compatible implementations.
func (*UnimplementedDeveloperConnectServer) CreateConnection
func (*UnimplementedDeveloperConnectServer) CreateConnection(context.Context, *CreateConnectionRequest) (*longrunningpb.Operation, error)
func (*UnimplementedDeveloperConnectServer) CreateGitRepositoryLink
func (*UnimplementedDeveloperConnectServer) CreateGitRepositoryLink(context.Context, *CreateGitRepositoryLinkRequest) (*longrunningpb.Operation, error)
func (*UnimplementedDeveloperConnectServer) DeleteConnection
func (*UnimplementedDeveloperConnectServer) DeleteConnection(context.Context, *DeleteConnectionRequest) (*longrunningpb.Operation, error)
func (*UnimplementedDeveloperConnectServer) DeleteGitRepositoryLink
func (*UnimplementedDeveloperConnectServer) DeleteGitRepositoryLink(context.Context, *DeleteGitRepositoryLinkRequest) (*longrunningpb.Operation, error)
func (*UnimplementedDeveloperConnectServer) FetchGitHubInstallations
func (*UnimplementedDeveloperConnectServer) FetchGitHubInstallations(context.Context, *FetchGitHubInstallationsRequest) (*FetchGitHubInstallationsResponse, error)
func (*UnimplementedDeveloperConnectServer) FetchGitRefs
func (*UnimplementedDeveloperConnectServer) FetchGitRefs(context.Context, *FetchGitRefsRequest) (*FetchGitRefsResponse, error)
func (*UnimplementedDeveloperConnectServer) FetchLinkableGitRepositories
func (*UnimplementedDeveloperConnectServer) FetchLinkableGitRepositories(context.Context, *FetchLinkableGitRepositoriesRequest) (*FetchLinkableGitRepositoriesResponse, error)
func (*UnimplementedDeveloperConnectServer) FetchReadToken
func (*UnimplementedDeveloperConnectServer) FetchReadToken(context.Context, *FetchReadTokenRequest) (*FetchReadTokenResponse, error)
func (*UnimplementedDeveloperConnectServer) FetchReadWriteToken
func (*UnimplementedDeveloperConnectServer) FetchReadWriteToken(context.Context, *FetchReadWriteTokenRequest) (*FetchReadWriteTokenResponse, error)
func (*UnimplementedDeveloperConnectServer) GetConnection
func (*UnimplementedDeveloperConnectServer) GetConnection(context.Context, *GetConnectionRequest) (*Connection, error)
func (*UnimplementedDeveloperConnectServer) GetGitRepositoryLink
func (*UnimplementedDeveloperConnectServer) GetGitRepositoryLink(context.Context, *GetGitRepositoryLinkRequest) (*GitRepositoryLink, error)
func (*UnimplementedDeveloperConnectServer) ListConnections
func (*UnimplementedDeveloperConnectServer) ListConnections(context.Context, *ListConnectionsRequest) (*ListConnectionsResponse, error)
func (*UnimplementedDeveloperConnectServer) ListGitRepositoryLinks
func (*UnimplementedDeveloperConnectServer) ListGitRepositoryLinks(context.Context, *ListGitRepositoryLinksRequest) (*ListGitRepositoryLinksResponse, error)
func (*UnimplementedDeveloperConnectServer) UpdateConnection
func (*UnimplementedDeveloperConnectServer) UpdateConnection(context.Context, *UpdateConnectionRequest) (*longrunningpb.Operation, error)
UpdateConnectionRequest
type UpdateConnectionRequest struct {
// Required. Field mask is used to specify the fields to be overwritten in the
// Connection resource by the update.
// The fields specified in the update_mask are relative to the resource, not
// the full request. A field will be overwritten if it is in the mask. If the
// user does not provide a mask then all fields will be overwritten.
UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,1,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"`
// Required. The resource being updated
Connection *Connection `protobuf:"bytes,2,opt,name=connection,proto3" json:"connection,omitempty"`
// Optional. An optional request ID to identify requests. Specify a unique
// request ID so that if you must retry your request, the server will know to
// ignore the request if it has already been completed. The server will
// guarantee that for at least 60 minutes since the first request.
//
// For example, consider a situation where you make an initial request and the
// request times out. If you make the request again with the same request
// ID, the server can check if original operation with the same request ID
// was received, and if so, will ignore the second request. This prevents
// clients from accidentally creating duplicate commitments.
//
// The request ID must be a valid UUID with the exception that zero UUID is
// not supported (00000000-0000-0000-0000-000000000000).
RequestId string `protobuf:"bytes,3,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"`
// Optional. 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,4,opt,name=allow_missing,json=allowMissing,proto3" json:"allow_missing,omitempty"`
// Optional. If set, validate the request, but do not actually post it.
ValidateOnly bool `protobuf:"varint,5,opt,name=validate_only,json=validateOnly,proto3" json:"validate_only,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() bool
func (*UpdateConnectionRequest) GetConnection
func (x *UpdateConnectionRequest) GetConnection() *Connection
func (*UpdateConnectionRequest) GetRequestId
func (x *UpdateConnectionRequest) GetRequestId() string
func (*UpdateConnectionRequest) GetUpdateMask
func (x *UpdateConnectionRequest) GetUpdateMask() *fieldmaskpb.FieldMask
func (*UpdateConnectionRequest) GetValidateOnly
func (x *UpdateConnectionRequest) GetValidateOnly() bool
func (*UpdateConnectionRequest) ProtoMessage
func (*UpdateConnectionRequest) ProtoMessage()
func (*UpdateConnectionRequest) ProtoReflect
func (x *UpdateConnectionRequest) ProtoReflect() protoreflect.Message
func (*UpdateConnectionRequest) Reset
func (x *UpdateConnectionRequest) Reset()
func (*UpdateConnectionRequest) String
func (x *UpdateConnectionRequest) String() string