Class Connection.Builder (0.12.0)

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

Message describing Connection object

Protobuf type google.cloud.developerconnect.v1.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

clearConnectionConfig()

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

clearCreateTime()

public Connection.Builder clearCreateTime()

Output only. [Output only] Create timestamp

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

Returns
Type Description
Connection.Builder

clearCryptoKeyConfig()

public Connection.Builder clearCryptoKeyConfig()

Optional. The crypto key configuration. This field is used by the Customer-Managed Encryption Keys (CMEK) feature.

.google.cloud.developerconnect.v1.CryptoKeyConfig crypto_key_config = 15 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Connection.Builder

clearDeleteTime()

public Connection.Builder clearDeleteTime()

Output only. [Output only] Delete timestamp

.google.protobuf.Timestamp delete_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Connection.Builder

clearDisabled()

public Connection.Builder clearDisabled()

Optional. 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 = 7 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Connection.Builder

This builder for chaining.

clearEtag()

public Connection.Builder clearEtag()

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.

string etag = 10 [(.google.api.field_behavior) = OPTIONAL];

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.cloud.developerconnect.v1.GitHubConfig github_config = 5;

Returns
Type Description
Connection.Builder

clearGithubEnterpriseConfig()

public Connection.Builder clearGithubEnterpriseConfig()

Configuration for connections to an instance of GitHub Enterprise.

.google.cloud.developerconnect.v1.GitHubEnterpriseConfig github_enterprise_config = 13;

Returns
Type Description
Connection.Builder

clearGitlabConfig()

public Connection.Builder clearGitlabConfig()

Configuration for connections to gitlab.com.

.google.cloud.developerconnect.v1.GitLabConfig gitlab_config = 14;

Returns
Type Description
Connection.Builder

clearGitlabEnterpriseConfig()

public Connection.Builder clearGitlabEnterpriseConfig()

Configuration for connections to an instance of GitLab Enterprise.

.google.cloud.developerconnect.v1.GitLabEnterpriseConfig gitlab_enterprise_config = 16;

Returns
Type Description
Connection.Builder

clearInstallationState()

public Connection.Builder clearInstallationState()

Output only. Installation state of the Connection.

.google.cloud.developerconnect.v1.InstallationState installation_state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Connection.Builder

clearLabels()

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

clearName()

public Connection.Builder clearName()

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

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

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 = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Connection.Builder

This builder for chaining.

clearUid()

public Connection.Builder clearUid()

Output only. A system-assigned unique identifier for a the GitRepositoryLink.

string uid = 12 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... }

Returns
Type Description
Connection.Builder

This builder for chaining.

clearUpdateTime()

public Connection.Builder clearUpdateTime()

Output only. [Output only] Update timestamp

.google.protobuf.Timestamp update_time = 3 [(.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)

Optional. Allows clients to store small amounts of arbitrary data.

map<string, string> annotations = 9 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
key String
Returns
Type Description
boolean

containsLabels(String key)

public boolean containsLabels(String key)

Optional. Labels as key value pairs

map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];

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()

Optional. Allows clients to store small amounts of arbitrary data.

map<string, string> annotations = 9 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

getAnnotationsMap()

public Map<String,String> getAnnotationsMap()

Optional. Allows clients to store small amounts of arbitrary data.

map<string, string> annotations = 9 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Map<String,String>

getAnnotationsOrDefault(String key, String defaultValue)

public String getAnnotationsOrDefault(String key, String defaultValue)

Optional. Allows clients to store small amounts of arbitrary data.

map<string, string> annotations = 9 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
key String
defaultValue String
Returns
Type Description
String

getAnnotationsOrThrow(String key)

public String getAnnotationsOrThrow(String key)

Optional. Allows clients to store small amounts of arbitrary data.

map<string, string> annotations = 9 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
key String
Returns
Type Description
String

getConnectionConfigCase()

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

getCreateTime()

public Timestamp getCreateTime()

Output only. [Output only] Create timestamp

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

Returns
Type Description
Timestamp

The createTime.

getCreateTimeBuilder()

public Timestamp.Builder getCreateTimeBuilder()

Output only. [Output only] Create timestamp

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

Returns
Type Description
Builder

getCreateTimeOrBuilder()

public TimestampOrBuilder getCreateTimeOrBuilder()

Output only. [Output only] Create timestamp

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

Returns
Type Description
TimestampOrBuilder

getCryptoKeyConfig()

public CryptoKeyConfig getCryptoKeyConfig()

Optional. The crypto key configuration. This field is used by the Customer-Managed Encryption Keys (CMEK) feature.

.google.cloud.developerconnect.v1.CryptoKeyConfig crypto_key_config = 15 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
CryptoKeyConfig

The cryptoKeyConfig.

getCryptoKeyConfigBuilder()

public CryptoKeyConfig.Builder getCryptoKeyConfigBuilder()

Optional. The crypto key configuration. This field is used by the Customer-Managed Encryption Keys (CMEK) feature.

.google.cloud.developerconnect.v1.CryptoKeyConfig crypto_key_config = 15 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
CryptoKeyConfig.Builder

getCryptoKeyConfigOrBuilder()

public CryptoKeyConfigOrBuilder getCryptoKeyConfigOrBuilder()

Optional. The crypto key configuration. This field is used by the Customer-Managed Encryption Keys (CMEK) feature.

.google.cloud.developerconnect.v1.CryptoKeyConfig crypto_key_config = 15 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
CryptoKeyConfigOrBuilder

getDefaultInstanceForType()

public Connection getDefaultInstanceForType()
Returns
Type Description
Connection

getDeleteTime()

public Timestamp getDeleteTime()

Output only. [Output only] Delete timestamp

.google.protobuf.Timestamp delete_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Timestamp

The deleteTime.

getDeleteTimeBuilder()

public Timestamp.Builder getDeleteTimeBuilder()

Output only. [Output only] Delete timestamp

.google.protobuf.Timestamp delete_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Builder

getDeleteTimeOrBuilder()

public TimestampOrBuilder getDeleteTimeOrBuilder()

Output only. [Output only] Delete timestamp

.google.protobuf.Timestamp delete_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TimestampOrBuilder

getDescriptorForType()

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

getDisabled()

public boolean getDisabled()

Optional. 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 = 7 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

The disabled.

getEtag()

public String getEtag()

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.

string etag = 10 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The etag.

getEtagBytes()

public ByteString getEtagBytes()

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.

string etag = 10 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for etag.

getGithubConfig()

public GitHubConfig getGithubConfig()

Configuration for connections to github.com.

.google.cloud.developerconnect.v1.GitHubConfig github_config = 5;

Returns
Type Description
GitHubConfig

The githubConfig.

getGithubConfigBuilder()

public GitHubConfig.Builder getGithubConfigBuilder()

Configuration for connections to github.com.

.google.cloud.developerconnect.v1.GitHubConfig github_config = 5;

Returns
Type Description
GitHubConfig.Builder

getGithubConfigOrBuilder()

public GitHubConfigOrBuilder getGithubConfigOrBuilder()

Configuration for connections to github.com.

.google.cloud.developerconnect.v1.GitHubConfig github_config = 5;

Returns
Type Description
GitHubConfigOrBuilder

getGithubEnterpriseConfig()

public GitHubEnterpriseConfig getGithubEnterpriseConfig()

Configuration for connections to an instance of GitHub Enterprise.

.google.cloud.developerconnect.v1.GitHubEnterpriseConfig github_enterprise_config = 13;

Returns
Type Description
GitHubEnterpriseConfig

The githubEnterpriseConfig.

getGithubEnterpriseConfigBuilder()

public GitHubEnterpriseConfig.Builder getGithubEnterpriseConfigBuilder()

Configuration for connections to an instance of GitHub Enterprise.

.google.cloud.developerconnect.v1.GitHubEnterpriseConfig github_enterprise_config = 13;

Returns
Type Description
GitHubEnterpriseConfig.Builder

getGithubEnterpriseConfigOrBuilder()

public GitHubEnterpriseConfigOrBuilder getGithubEnterpriseConfigOrBuilder()

Configuration for connections to an instance of GitHub Enterprise.

.google.cloud.developerconnect.v1.GitHubEnterpriseConfig github_enterprise_config = 13;

Returns
Type Description
GitHubEnterpriseConfigOrBuilder

getGitlabConfig()

public GitLabConfig getGitlabConfig()

Configuration for connections to gitlab.com.

.google.cloud.developerconnect.v1.GitLabConfig gitlab_config = 14;

Returns
Type Description
GitLabConfig

The gitlabConfig.

getGitlabConfigBuilder()

public GitLabConfig.Builder getGitlabConfigBuilder()

Configuration for connections to gitlab.com.

.google.cloud.developerconnect.v1.GitLabConfig gitlab_config = 14;

Returns
Type Description
GitLabConfig.Builder

getGitlabConfigOrBuilder()

public GitLabConfigOrBuilder getGitlabConfigOrBuilder()

Configuration for connections to gitlab.com.

.google.cloud.developerconnect.v1.GitLabConfig gitlab_config = 14;

Returns
Type Description
GitLabConfigOrBuilder

getGitlabEnterpriseConfig()

public GitLabEnterpriseConfig getGitlabEnterpriseConfig()

Configuration for connections to an instance of GitLab Enterprise.

.google.cloud.developerconnect.v1.GitLabEnterpriseConfig gitlab_enterprise_config = 16;

Returns
Type Description
GitLabEnterpriseConfig

The gitlabEnterpriseConfig.

getGitlabEnterpriseConfigBuilder()

public GitLabEnterpriseConfig.Builder getGitlabEnterpriseConfigBuilder()

Configuration for connections to an instance of GitLab Enterprise.

.google.cloud.developerconnect.v1.GitLabEnterpriseConfig gitlab_enterprise_config = 16;

Returns
Type Description
GitLabEnterpriseConfig.Builder

getGitlabEnterpriseConfigOrBuilder()

public GitLabEnterpriseConfigOrBuilder getGitlabEnterpriseConfigOrBuilder()

Configuration for connections to an instance of GitLab Enterprise.

.google.cloud.developerconnect.v1.GitLabEnterpriseConfig gitlab_enterprise_config = 16;

Returns
Type Description
GitLabEnterpriseConfigOrBuilder

getInstallationState()

public InstallationState getInstallationState()

Output only. Installation state of the Connection.

.google.cloud.developerconnect.v1.InstallationState installation_state = 6 [(.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.cloud.developerconnect.v1.InstallationState installation_state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
InstallationState.Builder

getInstallationStateOrBuilder()

public InstallationStateOrBuilder getInstallationStateOrBuilder()

Output only. Installation state of the Connection.

.google.cloud.developerconnect.v1.InstallationState installation_state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
InstallationStateOrBuilder

getLabels() (deprecated)

public Map<String,String> getLabels()

Use #getLabelsMap() instead.

Returns
Type Description
Map<String,String>

getLabelsCount()

public int getLabelsCount()

Optional. Labels as key value pairs

map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

getLabelsMap()

public Map<String,String> getLabelsMap()

Optional. Labels as key value pairs

map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Map<String,String>

getLabelsOrDefault(String key, String defaultValue)

public String getLabelsOrDefault(String key, String defaultValue)

Optional. Labels as key value pairs

map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
key String
defaultValue String
Returns
Type Description
String

getLabelsOrThrow(String key)

public String getLabelsOrThrow(String key)

Optional. Labels as key value pairs

map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
key String
Returns
Type Description
String

getMutableAnnotations() (deprecated)

public Map<String,String> getMutableAnnotations()

Use alternate mutation accessors instead.

Returns
Type Description
Map<String,String>

getMutableLabels() (deprecated)

public Map<String,String> getMutableLabels()

Use alternate mutation accessors instead.

Returns
Type Description
Map<String,String>

getName()

public String getName()

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

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

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

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

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

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 = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

The reconciling.

getUid()

public String getUid()

Output only. A system-assigned unique identifier for a the GitRepositoryLink.

string uid = 12 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... }

Returns
Type Description
String

The uid.

getUidBytes()

public ByteString getUidBytes()

Output only. A system-assigned unique identifier for a the GitRepositoryLink.

string uid = 12 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... }

Returns
Type Description
ByteString

The bytes for uid.

getUpdateTime()

public Timestamp getUpdateTime()

Output only. [Output only] Update timestamp

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

Returns
Type Description
Timestamp

The updateTime.

getUpdateTimeBuilder()

public Timestamp.Builder getUpdateTimeBuilder()

Output only. [Output only] Update timestamp

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

Returns
Type Description
Builder

getUpdateTimeOrBuilder()

public TimestampOrBuilder getUpdateTimeOrBuilder()

Output only. [Output only] Update timestamp

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

Returns
Type Description
TimestampOrBuilder

hasCreateTime()

public boolean hasCreateTime()

Output only. [Output only] Create timestamp

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

Returns
Type Description
boolean

Whether the createTime field is set.

hasCryptoKeyConfig()

public boolean hasCryptoKeyConfig()

Optional. The crypto key configuration. This field is used by the Customer-Managed Encryption Keys (CMEK) feature.

.google.cloud.developerconnect.v1.CryptoKeyConfig crypto_key_config = 15 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the cryptoKeyConfig field is set.

hasDeleteTime()

public boolean hasDeleteTime()

Output only. [Output only] Delete timestamp

.google.protobuf.Timestamp delete_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the deleteTime field is set.

hasGithubConfig()

public boolean hasGithubConfig()

Configuration for connections to github.com.

.google.cloud.developerconnect.v1.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.cloud.developerconnect.v1.GitHubEnterpriseConfig github_enterprise_config = 13;

Returns
Type Description
boolean

Whether the githubEnterpriseConfig field is set.

hasGitlabConfig()

public boolean hasGitlabConfig()

Configuration for connections to gitlab.com.

.google.cloud.developerconnect.v1.GitLabConfig gitlab_config = 14;

Returns
Type Description
boolean

Whether the gitlabConfig field is set.

hasGitlabEnterpriseConfig()

public boolean hasGitlabEnterpriseConfig()

Configuration for connections to an instance of GitLab Enterprise.

.google.cloud.developerconnect.v1.GitLabEnterpriseConfig gitlab_enterprise_config = 16;

Returns
Type Description
boolean

Whether the gitlabEnterpriseConfig field is set.

hasInstallationState()

public boolean hasInstallationState()

Output only. Installation state of the Connection.

.google.cloud.developerconnect.v1.InstallationState installation_state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the installationState field is set.

hasUpdateTime()

public boolean hasUpdateTime()

Output only. [Output only] Update timestamp

.google.protobuf.Timestamp update_time = 3 [(.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

mergeCreateTime(Timestamp value)

public Connection.Builder mergeCreateTime(Timestamp value)

Output only. [Output only] Create timestamp

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

Parameter
Name Description
value Timestamp
Returns
Type Description
Connection.Builder

mergeCryptoKeyConfig(CryptoKeyConfig value)

public Connection.Builder mergeCryptoKeyConfig(CryptoKeyConfig value)

Optional. The crypto key configuration. This field is used by the Customer-Managed Encryption Keys (CMEK) feature.

.google.cloud.developerconnect.v1.CryptoKeyConfig crypto_key_config = 15 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value CryptoKeyConfig
Returns
Type Description
Connection.Builder

mergeDeleteTime(Timestamp value)

public Connection.Builder mergeDeleteTime(Timestamp value)

Output only. [Output only] Delete timestamp

.google.protobuf.Timestamp delete_time = 11 [(.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.cloud.developerconnect.v1.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.cloud.developerconnect.v1.GitHubEnterpriseConfig github_enterprise_config = 13;

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.

.google.cloud.developerconnect.v1.GitLabConfig gitlab_config = 14;

Parameter
Name Description
value GitLabConfig
Returns
Type Description
Connection.Builder

mergeGitlabEnterpriseConfig(GitLabEnterpriseConfig value)

public Connection.Builder mergeGitlabEnterpriseConfig(GitLabEnterpriseConfig value)

Configuration for connections to an instance of GitLab Enterprise.

.google.cloud.developerconnect.v1.GitLabEnterpriseConfig gitlab_enterprise_config = 16;

Parameter
Name Description
value GitLabEnterpriseConfig
Returns
Type Description
Connection.Builder

mergeInstallationState(InstallationState value)

public Connection.Builder mergeInstallationState(InstallationState value)

Output only. Installation state of the Connection.

.google.cloud.developerconnect.v1.InstallationState installation_state = 6 [(.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. [Output only] Update timestamp

.google.protobuf.Timestamp update_time = 3 [(.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)

Optional. Allows clients to store small amounts of arbitrary data.

map<string, string> annotations = 9 [(.google.api.field_behavior) = OPTIONAL];

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

putAllLabels(Map<String,String> values)

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

Optional. Labels as key value pairs

map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];

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)

Optional. Allows clients to store small amounts of arbitrary data.

map<string, string> annotations = 9 [(.google.api.field_behavior) = OPTIONAL];

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

putLabels(String key, String value)

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

Optional. Labels as key value pairs

map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];

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

removeAnnotations(String key)

public Connection.Builder removeAnnotations(String key)

Optional. Allows clients to store small amounts of arbitrary data.

map<string, string> annotations = 9 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
key String
Returns
Type Description
Connection.Builder

removeLabels(String key)

public Connection.Builder removeLabels(String key)

Optional. Labels as key value pairs

map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
key String
Returns
Type Description
Connection.Builder

setCreateTime(Timestamp value)

public Connection.Builder setCreateTime(Timestamp value)

Output only. [Output only] Create timestamp

.google.protobuf.Timestamp create_time = 2 [(.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. [Output only] Create timestamp

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

Parameter
Name Description
builderForValue Builder
Returns
Type Description
Connection.Builder

setCryptoKeyConfig(CryptoKeyConfig value)

public Connection.Builder setCryptoKeyConfig(CryptoKeyConfig value)

Optional. The crypto key configuration. This field is used by the Customer-Managed Encryption Keys (CMEK) feature.

.google.cloud.developerconnect.v1.CryptoKeyConfig crypto_key_config = 15 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value CryptoKeyConfig
Returns
Type Description
Connection.Builder

setCryptoKeyConfig(CryptoKeyConfig.Builder builderForValue)

public Connection.Builder setCryptoKeyConfig(CryptoKeyConfig.Builder builderForValue)

Optional. The crypto key configuration. This field is used by the Customer-Managed Encryption Keys (CMEK) feature.

.google.cloud.developerconnect.v1.CryptoKeyConfig crypto_key_config = 15 [(.google.api.field_behavior) = OPTIONAL];

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

setDeleteTime(Timestamp value)

public Connection.Builder setDeleteTime(Timestamp value)

Output only. [Output only] Delete timestamp

.google.protobuf.Timestamp delete_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
Connection.Builder

setDeleteTime(Timestamp.Builder builderForValue)

public Connection.Builder setDeleteTime(Timestamp.Builder builderForValue)

Output only. [Output only] Delete timestamp

.google.protobuf.Timestamp delete_time = 11 [(.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)

Optional. 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 = 7 [(.google.api.field_behavior) = OPTIONAL];

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)

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.

string etag = 10 [(.google.api.field_behavior) = OPTIONAL];

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)

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.

string etag = 10 [(.google.api.field_behavior) = OPTIONAL];

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.cloud.developerconnect.v1.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.cloud.developerconnect.v1.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.cloud.developerconnect.v1.GitHubEnterpriseConfig github_enterprise_config = 13;

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.cloud.developerconnect.v1.GitHubEnterpriseConfig github_enterprise_config = 13;

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.

.google.cloud.developerconnect.v1.GitLabConfig gitlab_config = 14;

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.

.google.cloud.developerconnect.v1.GitLabConfig gitlab_config = 14;

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

setGitlabEnterpriseConfig(GitLabEnterpriseConfig value)

public Connection.Builder setGitlabEnterpriseConfig(GitLabEnterpriseConfig value)

Configuration for connections to an instance of GitLab Enterprise.

.google.cloud.developerconnect.v1.GitLabEnterpriseConfig gitlab_enterprise_config = 16;

Parameter
Name Description
value GitLabEnterpriseConfig
Returns
Type Description
Connection.Builder

setGitlabEnterpriseConfig(GitLabEnterpriseConfig.Builder builderForValue)

public Connection.Builder setGitlabEnterpriseConfig(GitLabEnterpriseConfig.Builder builderForValue)

Configuration for connections to an instance of GitLab Enterprise.

.google.cloud.developerconnect.v1.GitLabEnterpriseConfig gitlab_enterprise_config = 16;

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

setInstallationState(InstallationState value)

public Connection.Builder setInstallationState(InstallationState value)

Output only. Installation state of the Connection.

.google.cloud.developerconnect.v1.InstallationState installation_state = 6 [(.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.cloud.developerconnect.v1.InstallationState installation_state = 6 [(.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)

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

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

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)

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

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

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 = 8 [(.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

setUid(String value)

public Connection.Builder setUid(String value)

Output only. A system-assigned unique identifier for a the GitRepositoryLink.

string uid = 12 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... }

Parameter
Name Description
value String

The uid to set.

Returns
Type Description
Connection.Builder

This builder for chaining.

setUidBytes(ByteString value)

public Connection.Builder setUidBytes(ByteString value)

Output only. A system-assigned unique identifier for a the GitRepositoryLink.

string uid = 12 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... }

Parameter
Name Description
value ByteString

The bytes for uid to set.

Returns
Type Description
Connection.Builder

This builder for chaining.

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. [Output only] Update timestamp

.google.protobuf.Timestamp update_time = 3 [(.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. [Output only] Update timestamp

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

Parameter
Name Description
builderForValue Builder
Returns
Type Description
Connection.Builder