Class Connection.Builder (3.49.0)

public static final class Connection.Builder extends GeneratedMessageV3.Builder<Connection.Builder> implements ConnectionOrBuilder

A connection to a SCM like GitHub, GitHub Enterprise, Bitbucket Data Center, Bitbucket Cloud or GitLab.

Protobuf type google.devtools.cloudbuild.v2.Connection

Implements

ConnectionOrBuilder

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public Connection.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
Connection.Builder
Overrides

build()

public Connection build()
Returns
Type Description
Connection

buildPartial()

public Connection buildPartial()
Returns
Type Description
Connection

clear()

public Connection.Builder clear()
Returns
Type Description
Connection.Builder
Overrides

clearAnnotations()

public Connection.Builder clearAnnotations()
Returns
Type Description
Connection.Builder

clearBitbucketCloudConfig()

public Connection.Builder clearBitbucketCloudConfig()

Configuration for connections to Bitbucket Cloud.

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

Returns
Type Description
Connection.Builder

clearBitbucketDataCenterConfig()

public Connection.Builder clearBitbucketDataCenterConfig()

Configuration for connections to Bitbucket Data Center.

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

Returns
Type Description
Connection.Builder

clearConnectionConfig()

public Connection.Builder clearConnectionConfig()
Returns
Type Description
Connection.Builder

clearCreateTime()

public Connection.Builder clearCreateTime()

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
Connection.Builder

clearDisabled()

public Connection.Builder clearDisabled()

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
Connection.Builder

This builder for chaining.

clearEtag()

public Connection.Builder clearEtag()

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
Connection.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public Connection.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
Connection.Builder
Overrides

clearGithubConfig()

public Connection.Builder clearGithubConfig()

Configuration for connections to github.com.

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

Returns
Type Description
Connection.Builder

clearGithubEnterpriseConfig()

public Connection.Builder clearGithubEnterpriseConfig()

Configuration for connections to an instance of GitHub Enterprise.

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

Returns
Type Description
Connection.Builder

clearGitlabConfig()

public Connection.Builder clearGitlabConfig()

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

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

Returns
Type Description
Connection.Builder

clearInstallationState()

public Connection.Builder clearInstallationState()

Output only. Installation state of the Connection.

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

Returns
Type Description
Connection.Builder

clearName()

public Connection.Builder clearName()

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
Connection.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public Connection.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
Connection.Builder
Overrides

clearReconciling()

public Connection.Builder clearReconciling()

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
Connection.Builder

This builder for chaining.

clearUpdateTime()

public Connection.Builder clearUpdateTime()

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
Connection.Builder

clone()

public Connection.Builder clone()
Returns
Type Description
Connection.Builder
Overrides

containsAnnotations(String key)

public 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 Map<String,String> getAnnotations()

Use #getAnnotationsMap() instead.

Returns
Type Description
Map<String,String>

getAnnotationsCount()

public int getAnnotationsCount()

Allows clients to store small amounts of arbitrary data.

map<string, string> annotations = 15;

Returns
Type Description
int

getAnnotationsMap()

public 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 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 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 BitbucketCloudConfig getBitbucketCloudConfig()

Configuration for connections to Bitbucket Cloud.

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

Returns
Type Description
BitbucketCloudConfig

The bitbucketCloudConfig.

getBitbucketCloudConfigBuilder()

public BitbucketCloudConfig.Builder getBitbucketCloudConfigBuilder()

Configuration for connections to Bitbucket Cloud.

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

Returns
Type Description
BitbucketCloudConfig.Builder

getBitbucketCloudConfigOrBuilder()

public BitbucketCloudConfigOrBuilder getBitbucketCloudConfigOrBuilder()

Configuration for connections to Bitbucket Cloud.

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

Returns
Type Description
BitbucketCloudConfigOrBuilder

getBitbucketDataCenterConfig()

public 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.

getBitbucketDataCenterConfigBuilder()

public BitbucketDataCenterConfig.Builder getBitbucketDataCenterConfigBuilder()

Configuration for connections to Bitbucket Data Center.

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

Returns
Type Description
BitbucketDataCenterConfig.Builder

getBitbucketDataCenterConfigOrBuilder()

public 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 Connection.ConnectionConfigCase getConnectionConfigCase()
Returns
Type Description
Connection.ConnectionConfigCase

getCreateTime()

public 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.

getCreateTimeBuilder()

public Timestamp.Builder getCreateTimeBuilder()

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
Builder

getCreateTimeOrBuilder()

public 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

getDefaultInstanceForType()

public Connection getDefaultInstanceForType()
Returns
Type Description
Connection

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getDisabled()

public 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 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 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 GitHubConfig getGithubConfig()

Configuration for connections to github.com.

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

Returns
Type Description
GitHubConfig

The githubConfig.

getGithubConfigBuilder()

public GitHubConfig.Builder getGithubConfigBuilder()

Configuration for connections to github.com.

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

Returns
Type Description
GitHubConfig.Builder

getGithubConfigOrBuilder()

public GitHubConfigOrBuilder getGithubConfigOrBuilder()

Configuration for connections to github.com.

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

Returns
Type Description
GitHubConfigOrBuilder

getGithubEnterpriseConfig()

public 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.

getGithubEnterpriseConfigBuilder()

public GitHubEnterpriseConfig.Builder getGithubEnterpriseConfigBuilder()

Configuration for connections to an instance of GitHub Enterprise.

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

Returns
Type Description
GitHubEnterpriseConfig.Builder

getGithubEnterpriseConfigOrBuilder()

public 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 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.

getGitlabConfigBuilder()

public GitLabConfig.Builder getGitlabConfigBuilder()

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

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

Returns
Type Description
GitLabConfig.Builder

getGitlabConfigOrBuilder()

public 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 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.

getInstallationStateBuilder()

public InstallationState.Builder getInstallationStateBuilder()

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.Builder

getInstallationStateOrBuilder()

public 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

getMutableAnnotations() (deprecated)

public Map<String,String> getMutableAnnotations()

Use alternate mutation accessors instead.

Returns
Type Description
Map<String,String>

getName()

public 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 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 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 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.

getUpdateTimeBuilder()

public Timestamp.Builder getUpdateTimeBuilder()

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
Builder

getUpdateTimeOrBuilder()

public 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 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 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 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 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 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 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 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 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.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

internalGetMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
Parameter
Name Description
number int
Returns
Type Description
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)

internalGetMutableMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
Parameter
Name Description
number int
Returns
Type Description
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeBitbucketCloudConfig(BitbucketCloudConfig value)

public Connection.Builder mergeBitbucketCloudConfig(BitbucketCloudConfig value)

Configuration for connections to Bitbucket Cloud.

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

Parameter
Name Description
value BitbucketCloudConfig
Returns
Type Description
Connection.Builder

mergeBitbucketDataCenterConfig(BitbucketDataCenterConfig value)

public Connection.Builder mergeBitbucketDataCenterConfig(BitbucketDataCenterConfig value)

Configuration for connections to Bitbucket Data Center.

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

Parameter
Name Description
value BitbucketDataCenterConfig
Returns
Type Description
Connection.Builder

mergeCreateTime(Timestamp value)

public Connection.Builder mergeCreateTime(Timestamp value)

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

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

Parameter
Name Description
value Timestamp
Returns
Type Description
Connection.Builder

mergeFrom(Connection other)

public Connection.Builder mergeFrom(Connection other)
Parameter
Name Description
other Connection
Returns
Type Description
Connection.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public Connection.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Connection.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public Connection.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
Connection.Builder
Overrides

mergeGithubConfig(GitHubConfig value)

public Connection.Builder mergeGithubConfig(GitHubConfig value)

Configuration for connections to github.com.

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

Parameter
Name Description
value GitHubConfig
Returns
Type Description
Connection.Builder

mergeGithubEnterpriseConfig(GitHubEnterpriseConfig value)

public Connection.Builder mergeGithubEnterpriseConfig(GitHubEnterpriseConfig value)

Configuration for connections to an instance of GitHub Enterprise.

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

Parameter
Name Description
value GitHubEnterpriseConfig
Returns
Type Description
Connection.Builder

mergeGitlabConfig(GitLabConfig value)

public Connection.Builder mergeGitlabConfig(GitLabConfig value)

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

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

Parameter
Name Description
value GitLabConfig
Returns
Type Description
Connection.Builder

mergeInstallationState(InstallationState value)

public Connection.Builder mergeInstallationState(InstallationState value)

Output only. Installation state of the Connection.

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

Parameter
Name Description
value InstallationState
Returns
Type Description
Connection.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Connection.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Connection.Builder
Overrides

mergeUpdateTime(Timestamp value)

public Connection.Builder mergeUpdateTime(Timestamp value)

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

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

Parameter
Name Description
value Timestamp
Returns
Type Description
Connection.Builder

putAllAnnotations(Map<String,String> values)

public Connection.Builder putAllAnnotations(Map<String,String> values)

Allows clients to store small amounts of arbitrary data.

map<string, string> annotations = 15;

Parameter
Name Description
values Map<String,String>
Returns
Type Description
Connection.Builder

putAnnotations(String key, String value)

public Connection.Builder putAnnotations(String key, String value)

Allows clients to store small amounts of arbitrary data.

map<string, string> annotations = 15;

Parameters
Name Description
key String
value String
Returns
Type Description
Connection.Builder

removeAnnotations(String key)

public Connection.Builder removeAnnotations(String key)

Allows clients to store small amounts of arbitrary data.

map<string, string> annotations = 15;

Parameter
Name Description
key String
Returns
Type Description
Connection.Builder

setBitbucketCloudConfig(BitbucketCloudConfig value)

public Connection.Builder setBitbucketCloudConfig(BitbucketCloudConfig value)

Configuration for connections to Bitbucket Cloud.

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

Parameter
Name Description
value BitbucketCloudConfig
Returns
Type Description
Connection.Builder

setBitbucketCloudConfig(BitbucketCloudConfig.Builder builderForValue)

public Connection.Builder setBitbucketCloudConfig(BitbucketCloudConfig.Builder builderForValue)

Configuration for connections to Bitbucket Cloud.

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

Parameter
Name Description
builderForValue BitbucketCloudConfig.Builder
Returns
Type Description
Connection.Builder

setBitbucketDataCenterConfig(BitbucketDataCenterConfig value)

public Connection.Builder setBitbucketDataCenterConfig(BitbucketDataCenterConfig value)

Configuration for connections to Bitbucket Data Center.

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

Parameter
Name Description
value BitbucketDataCenterConfig
Returns
Type Description
Connection.Builder

setBitbucketDataCenterConfig(BitbucketDataCenterConfig.Builder builderForValue)

public Connection.Builder setBitbucketDataCenterConfig(BitbucketDataCenterConfig.Builder builderForValue)

Configuration for connections to Bitbucket Data Center.

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

Parameter
Name Description
builderForValue BitbucketDataCenterConfig.Builder
Returns
Type Description
Connection.Builder

setCreateTime(Timestamp value)

public Connection.Builder setCreateTime(Timestamp value)

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

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

Parameter
Name Description
value Timestamp
Returns
Type Description
Connection.Builder

setCreateTime(Timestamp.Builder builderForValue)

public Connection.Builder setCreateTime(Timestamp.Builder builderForValue)

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

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

Parameter
Name Description
builderForValue Builder
Returns
Type Description
Connection.Builder

setDisabled(boolean value)

public Connection.Builder setDisabled(boolean value)

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;

Parameter
Name Description
value boolean

The disabled to set.

Returns
Type Description
Connection.Builder

This builder for chaining.

setEtag(String value)

public Connection.Builder setEtag(String value)

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;

Parameter
Name Description
value String

The etag to set.

Returns
Type Description
Connection.Builder

This builder for chaining.

setEtagBytes(ByteString value)

public Connection.Builder setEtagBytes(ByteString value)

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;

Parameter
Name Description
value ByteString

The bytes for etag to set.

Returns
Type Description
Connection.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public Connection.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
Connection.Builder
Overrides

setGithubConfig(GitHubConfig value)

public Connection.Builder setGithubConfig(GitHubConfig value)

Configuration for connections to github.com.

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

Parameter
Name Description
value GitHubConfig
Returns
Type Description
Connection.Builder

setGithubConfig(GitHubConfig.Builder builderForValue)

public Connection.Builder setGithubConfig(GitHubConfig.Builder builderForValue)

Configuration for connections to github.com.

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

Parameter
Name Description
builderForValue GitHubConfig.Builder
Returns
Type Description
Connection.Builder

setGithubEnterpriseConfig(GitHubEnterpriseConfig value)

public Connection.Builder setGithubEnterpriseConfig(GitHubEnterpriseConfig value)

Configuration for connections to an instance of GitHub Enterprise.

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

Parameter
Name Description
value GitHubEnterpriseConfig
Returns
Type Description
Connection.Builder

setGithubEnterpriseConfig(GitHubEnterpriseConfig.Builder builderForValue)

public Connection.Builder setGithubEnterpriseConfig(GitHubEnterpriseConfig.Builder builderForValue)

Configuration for connections to an instance of GitHub Enterprise.

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

Parameter
Name Description
builderForValue GitHubEnterpriseConfig.Builder
Returns
Type Description
Connection.Builder

setGitlabConfig(GitLabConfig value)

public Connection.Builder setGitlabConfig(GitLabConfig value)

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

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

Parameter
Name Description
value GitLabConfig
Returns
Type Description
Connection.Builder

setGitlabConfig(GitLabConfig.Builder builderForValue)

public Connection.Builder setGitlabConfig(GitLabConfig.Builder builderForValue)

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

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

Parameter
Name Description
builderForValue GitLabConfig.Builder
Returns
Type Description
Connection.Builder

setInstallationState(InstallationState value)

public Connection.Builder setInstallationState(InstallationState value)

Output only. Installation state of the Connection.

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

Parameter
Name Description
value InstallationState
Returns
Type Description
Connection.Builder

setInstallationState(InstallationState.Builder builderForValue)

public Connection.Builder setInstallationState(InstallationState.Builder builderForValue)

Output only. Installation state of the Connection.

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

Parameter
Name Description
builderForValue InstallationState.Builder
Returns
Type Description
Connection.Builder

setName(String value)

public Connection.Builder setName(String value)

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];

Parameter
Name Description
value String

The name to set.

Returns
Type Description
Connection.Builder

This builder for chaining.

setNameBytes(ByteString value)

public Connection.Builder setNameBytes(ByteString value)

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];

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
Connection.Builder

This builder for chaining.

setReconciling(boolean value)

public Connection.Builder setReconciling(boolean value)

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];

Parameter
Name Description
value boolean

The reconciling to set.

Returns
Type Description
Connection.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public Connection.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
Connection.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final Connection.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Connection.Builder
Overrides

setUpdateTime(Timestamp value)

public Connection.Builder setUpdateTime(Timestamp value)

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

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

Parameter
Name Description
value Timestamp
Returns
Type Description
Connection.Builder

setUpdateTime(Timestamp.Builder builderForValue)

public Connection.Builder setUpdateTime(Timestamp.Builder builderForValue)

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

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

Parameter
Name Description
builderForValue Builder
Returns
Type Description
Connection.Builder