Class Connection.Builder (3.33.0)

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

A connection to a SCM like GitHub, GitHub Enterprise, Bitbucket Server or GitLab.

Protobuf type google.devtools.cloudbuild.v2.Connection

Implements

ConnectionOrBuilder

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public Connection.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
Connection.Builder
Overrides

build()

public Connection build()
Returns
TypeDescription
Connection

buildPartial()

public Connection buildPartial()
Returns
TypeDescription
Connection

clear()

public Connection.Builder clear()
Returns
TypeDescription
Connection.Builder
Overrides

clearAnnotations()

public Connection.Builder clearAnnotations()
Returns
TypeDescription
Connection.Builder

clearConnectionConfig()

public Connection.Builder clearConnectionConfig()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
Connection.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public Connection.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
Connection.Builder
Overrides

clearGithubConfig()

public Connection.Builder clearGithubConfig()

Configuration for connections to github.com.

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

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

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public Connection.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
Connection.Builder

clone()

public Connection.Builder clone()
Returns
TypeDescription
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
NameDescription
keyString
Returns
TypeDescription
boolean

getAnnotations() (deprecated)

public Map<String,String> getAnnotations()

Use #getAnnotationsMap() instead.

Returns
TypeDescription
Map<String,String>

getAnnotationsCount()

public int getAnnotationsCount()

Allows clients to store small amounts of arbitrary data.

map<string, string> annotations = 15;

Returns
TypeDescription
int

getAnnotationsMap()

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

getDefaultInstanceForType()

public Connection getDefaultInstanceForType()
Returns
TypeDescription
Connection

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for etag.

getGithubConfig()

public GitHubConfig getGithubConfig()

Configuration for connections to github.com.

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

Returns
TypeDescription
GitHubConfig

The githubConfig.

getGithubConfigBuilder()

public GitHubConfig.Builder getGithubConfigBuilder()

Configuration for connections to github.com.

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

Returns
TypeDescription
GitHubConfig.Builder

getGithubConfigOrBuilder()

public GitHubConfigOrBuilder getGithubConfigOrBuilder()

Configuration for connections to github.com.

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

Returns
TypeDescription
GitHubConfigOrBuilder

getGithubEnterpriseConfig()

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

getGithubEnterpriseConfigBuilder()

public GitHubEnterpriseConfig.Builder getGithubEnterpriseConfigBuilder()

Configuration for connections to an instance of GitHub Enterprise.

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

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

getMutableAnnotations() (deprecated)

public Map<String,String> getMutableAnnotations()

Use alternate mutation accessors instead.

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

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

Whether the updateTime field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

internalGetMapField(int number)

protected MapField internalGetMapField(int number)
Parameter
NameDescription
numberint
Returns
TypeDescription
MapField
Overrides

internalGetMutableMapField(int number)

protected MapField internalGetMutableMapField(int number)
Parameter
NameDescription
numberint
Returns
TypeDescription
MapField
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

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
NameDescription
valueTimestamp
Returns
TypeDescription
Connection.Builder

mergeFrom(Connection other)

public Connection.Builder mergeFrom(Connection other)
Parameter
NameDescription
otherConnection
Returns
TypeDescription
Connection.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public Connection.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Connection.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public Connection.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
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
NameDescription
valueGitHubConfig
Returns
TypeDescription
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
NameDescription
valueGitHubEnterpriseConfig
Returns
TypeDescription
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
NameDescription
valueGitLabConfig
Returns
TypeDescription
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
NameDescription
valueInstallationState
Returns
TypeDescription
Connection.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Connection.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueTimestamp
Returns
TypeDescription
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
NameDescription
valuesMap<String,String>
Returns
TypeDescription
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
NameDescription
keyString
valueString
Returns
TypeDescription
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
NameDescription
keyString
Returns
TypeDescription
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
NameDescription
valueTimestamp
Returns
TypeDescription
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
NameDescription
builderForValueBuilder
Returns
TypeDescription
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
NameDescription
valueboolean

The disabled to set.

Returns
TypeDescription
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
NameDescription
valueString

The etag to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for etag to set.

Returns
TypeDescription
Connection.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public Connection.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueGitHubConfig
Returns
TypeDescription
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
NameDescription
builderForValueGitHubConfig.Builder
Returns
TypeDescription
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
NameDescription
valueGitHubEnterpriseConfig
Returns
TypeDescription
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
NameDescription
builderForValueGitHubEnterpriseConfig.Builder
Returns
TypeDescription
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
NameDescription
valueGitLabConfig
Returns
TypeDescription
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
NameDescription
builderForValueGitLabConfig.Builder
Returns
TypeDescription
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
NameDescription
valueInstallationState
Returns
TypeDescription
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
NameDescription
builderForValueInstallationState.Builder
Returns
TypeDescription
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
NameDescription
valueString

The name to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
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
NameDescription
valueboolean

The reconciling to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
Connection.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final Connection.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueTimestamp
Returns
TypeDescription
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
NameDescription
builderForValueBuilder
Returns
TypeDescription
Connection.Builder