Interface ConnectionOrBuilder (3.50.0)

public interface ConnectionOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

containsAnnotations(String key)

public abstract boolean containsAnnotations(String key)

Allows clients to store small amounts of arbitrary data.

map<string, string> annotations = 15;

Parameter
Name Description
key String
Returns
Type Description
boolean

getAnnotations() (deprecated)

public abstract Map<String,String> getAnnotations()

Use #getAnnotationsMap() instead.

Returns
Type Description
Map<String,String>

getAnnotationsCount()

public abstract int getAnnotationsCount()

Allows clients to store small amounts of arbitrary data.

map<string, string> annotations = 15;

Returns
Type Description
int

getAnnotationsMap()

public abstract Map<String,String> getAnnotationsMap()

Allows clients to store small amounts of arbitrary data.

map<string, string> annotations = 15;

Returns
Type Description
Map<String,String>

getAnnotationsOrDefault(String key, String defaultValue)

public abstract String getAnnotationsOrDefault(String key, String defaultValue)

Allows clients to store small amounts of arbitrary data.

map<string, string> annotations = 15;

Parameters
Name Description
key String
defaultValue String
Returns
Type Description
String

getAnnotationsOrThrow(String key)

public abstract String getAnnotationsOrThrow(String key)

Allows clients to store small amounts of arbitrary data.

map<string, string> annotations = 15;

Parameter
Name Description
key String
Returns
Type Description
String

getBitbucketCloudConfig()

public abstract BitbucketCloudConfig getBitbucketCloudConfig()

Configuration for connections to Bitbucket Cloud.

.google.devtools.cloudbuild.v2.BitbucketCloudConfig bitbucket_cloud_config = 9;

Returns
Type Description
BitbucketCloudConfig

The bitbucketCloudConfig.

getBitbucketCloudConfigOrBuilder()

public abstract BitbucketCloudConfigOrBuilder getBitbucketCloudConfigOrBuilder()

Configuration for connections to Bitbucket Cloud.

.google.devtools.cloudbuild.v2.BitbucketCloudConfig bitbucket_cloud_config = 9;

Returns
Type Description
BitbucketCloudConfigOrBuilder

getBitbucketDataCenterConfig()

public abstract BitbucketDataCenterConfig getBitbucketDataCenterConfig()

Configuration for connections to Bitbucket Data Center.

.google.devtools.cloudbuild.v2.BitbucketDataCenterConfig bitbucket_data_center_config = 8;

Returns
Type Description
BitbucketDataCenterConfig

The bitbucketDataCenterConfig.

getBitbucketDataCenterConfigOrBuilder()

public abstract BitbucketDataCenterConfigOrBuilder getBitbucketDataCenterConfigOrBuilder()

Configuration for connections to Bitbucket Data Center.

.google.devtools.cloudbuild.v2.BitbucketDataCenterConfig bitbucket_data_center_config = 8;

Returns
Type Description
BitbucketDataCenterConfigOrBuilder

getConnectionConfigCase()

public abstract Connection.ConnectionConfigCase getConnectionConfigCase()
Returns
Type Description
Connection.ConnectionConfigCase

getCreateTime()

public abstract Timestamp getCreateTime()

Output only. Server assigned timestamp for when the connection was created.

.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Timestamp

The createTime.

getCreateTimeOrBuilder()

public abstract TimestampOrBuilder getCreateTimeOrBuilder()

Output only. Server assigned timestamp for when the connection was created.

.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TimestampOrBuilder

getDisabled()

public abstract boolean getDisabled()

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.

bool disabled = 13;

Returns
Type Description
boolean

The disabled.

getEtag()

public abstract String getEtag()

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.

string etag = 16;

Returns
Type Description
String

The etag.

getEtagBytes()

public abstract ByteString getEtagBytes()

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.

string etag = 16;

Returns
Type Description
ByteString

The bytes for etag.

getGithubConfig()

public abstract GitHubConfig getGithubConfig()

Configuration for connections to github.com.

.google.devtools.cloudbuild.v2.GitHubConfig github_config = 5;

Returns
Type Description
GitHubConfig

The githubConfig.

getGithubConfigOrBuilder()

public abstract GitHubConfigOrBuilder getGithubConfigOrBuilder()

Configuration for connections to github.com.

.google.devtools.cloudbuild.v2.GitHubConfig github_config = 5;

Returns
Type Description
GitHubConfigOrBuilder

getGithubEnterpriseConfig()

public abstract GitHubEnterpriseConfig getGithubEnterpriseConfig()

Configuration for connections to an instance of GitHub Enterprise.

.google.devtools.cloudbuild.v2.GitHubEnterpriseConfig github_enterprise_config = 6;

Returns
Type Description
GitHubEnterpriseConfig

The githubEnterpriseConfig.

getGithubEnterpriseConfigOrBuilder()

public abstract GitHubEnterpriseConfigOrBuilder getGithubEnterpriseConfigOrBuilder()

Configuration for connections to an instance of GitHub Enterprise.

.google.devtools.cloudbuild.v2.GitHubEnterpriseConfig github_enterprise_config = 6;

Returns
Type Description
GitHubEnterpriseConfigOrBuilder

getGitlabConfig()

public abstract GitLabConfig getGitlabConfig()

Configuration for connections to gitlab.com or an instance of GitLab Enterprise.

.google.devtools.cloudbuild.v2.GitLabConfig gitlab_config = 7;

Returns
Type Description
GitLabConfig

The gitlabConfig.

getGitlabConfigOrBuilder()

public abstract GitLabConfigOrBuilder getGitlabConfigOrBuilder()

Configuration for connections to gitlab.com or an instance of GitLab Enterprise.

.google.devtools.cloudbuild.v2.GitLabConfig gitlab_config = 7;

Returns
Type Description
GitLabConfigOrBuilder

getInstallationState()

public abstract InstallationState getInstallationState()

Output only. Installation state of the Connection.

.google.devtools.cloudbuild.v2.InstallationState installation_state = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
InstallationState

The installationState.

getInstallationStateOrBuilder()

public abstract InstallationStateOrBuilder getInstallationStateOrBuilder()

Output only. Installation state of the Connection.

.google.devtools.cloudbuild.v2.InstallationState installation_state = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
InstallationStateOrBuilder

getName()

public abstract String getName()

Immutable. The resource name of the connection, in the format projects/{project}/locations/{location}/connections/{connection_id}.

string name = 1 [(.google.api.field_behavior) = IMMUTABLE];

Returns
Type Description
String

The name.

getNameBytes()

public abstract ByteString getNameBytes()

Immutable. The resource name of the connection, in the format projects/{project}/locations/{location}/connections/{connection_id}.

string name = 1 [(.google.api.field_behavior) = IMMUTABLE];

Returns
Type Description
ByteString

The bytes for name.

getReconciling()

public abstract boolean getReconciling()

Output only. Set to true when the connection is being set up or updated in the background.

bool reconciling = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

The reconciling.

getUpdateTime()

public abstract Timestamp getUpdateTime()

Output only. Server assigned timestamp for when the connection was updated.

.google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Timestamp

The updateTime.

getUpdateTimeOrBuilder()

public abstract TimestampOrBuilder getUpdateTimeOrBuilder()

Output only. Server assigned timestamp for when the connection was updated.

.google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TimestampOrBuilder

hasBitbucketCloudConfig()

public abstract boolean hasBitbucketCloudConfig()

Configuration for connections to Bitbucket Cloud.

.google.devtools.cloudbuild.v2.BitbucketCloudConfig bitbucket_cloud_config = 9;

Returns
Type Description
boolean

Whether the bitbucketCloudConfig field is set.

hasBitbucketDataCenterConfig()

public abstract boolean hasBitbucketDataCenterConfig()

Configuration for connections to Bitbucket Data Center.

.google.devtools.cloudbuild.v2.BitbucketDataCenterConfig bitbucket_data_center_config = 8;

Returns
Type Description
boolean

Whether the bitbucketDataCenterConfig field is set.

hasCreateTime()

public abstract boolean hasCreateTime()

Output only. Server assigned timestamp for when the connection was created.

.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the createTime field is set.

hasGithubConfig()

public abstract boolean hasGithubConfig()

Configuration for connections to github.com.

.google.devtools.cloudbuild.v2.GitHubConfig github_config = 5;

Returns
Type Description
boolean

Whether the githubConfig field is set.

hasGithubEnterpriseConfig()

public abstract boolean hasGithubEnterpriseConfig()

Configuration for connections to an instance of GitHub Enterprise.

.google.devtools.cloudbuild.v2.GitHubEnterpriseConfig github_enterprise_config = 6;

Returns
Type Description
boolean

Whether the githubEnterpriseConfig field is set.

hasGitlabConfig()

public abstract boolean hasGitlabConfig()

Configuration for connections to gitlab.com or an instance of GitLab Enterprise.

.google.devtools.cloudbuild.v2.GitLabConfig gitlab_config = 7;

Returns
Type Description
boolean

Whether the gitlabConfig field is set.

hasInstallationState()

public abstract boolean hasInstallationState()

Output only. Installation state of the Connection.

.google.devtools.cloudbuild.v2.InstallationState installation_state = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the installationState field is set.

hasUpdateTime()

public abstract boolean hasUpdateTime()

Output only. Server assigned timestamp for when the connection was updated.

.google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the updateTime field is set.