Interface ConnectionOrBuilder (3.25.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
NameDescription
keyString
Returns
TypeDescription
boolean

getAnnotations()

public abstract Map<String,String> getAnnotations()

Use #getAnnotationsMap() instead.

Returns
TypeDescription
Map<String,String>

getAnnotationsCount()

public abstract int getAnnotationsCount()

Allows clients to store small amounts of arbitrary data.

map<string, string> annotations = 15;

Returns
TypeDescription
int

getAnnotationsMap()

public abstract Map<String,String> getAnnotationsMap()

Allows clients to store small amounts of arbitrary data.

map<string, string> annotations = 15;

Returns
TypeDescription
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
NameDescription
keyString
defaultValueString
Returns
TypeDescription
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
NameDescription
keyString
Returns
TypeDescription
String

getConnectionConfigCase()

public abstract Connection.ConnectionConfigCase getConnectionConfigCase()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
GitHubConfig

The githubConfig.

getGithubConfigOrBuilder()

public abstract GitHubConfigOrBuilder getGithubConfigOrBuilder()

Configuration for connections to github.com.

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

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
TimestampOrBuilder

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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

Whether the updateTime field is set.