Class BitbucketDataCenterConfig.Builder (3.44.0)

public static final class BitbucketDataCenterConfig.Builder extends GeneratedMessageV3.Builder<BitbucketDataCenterConfig.Builder> implements BitbucketDataCenterConfigOrBuilder

Configuration for connections to Bitbucket Data Center.

Protobuf type google.devtools.cloudbuild.v2.BitbucketDataCenterConfig

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public BitbucketDataCenterConfig build()
Returns
Type Description
BitbucketDataCenterConfig

buildPartial()

public BitbucketDataCenterConfig buildPartial()
Returns
Type Description
BitbucketDataCenterConfig

clear()

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

clearAuthorizerCredential()

public BitbucketDataCenterConfig.Builder clearAuthorizerCredential()

Required. A http access token with the REPO_ADMIN scope access.

.google.devtools.cloudbuild.v2.UserCredential authorizer_credential = 4 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
BitbucketDataCenterConfig.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearHostUri()

public BitbucketDataCenterConfig.Builder clearHostUri()

Required. The URI of the Bitbucket Data Center instance or cluster this connection is for.

string host_uri = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
BitbucketDataCenterConfig.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearReadAuthorizerCredential()

public BitbucketDataCenterConfig.Builder clearReadAuthorizerCredential()

Required. A http access token with the REPO_READ access.

.google.devtools.cloudbuild.v2.UserCredential read_authorizer_credential = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
BitbucketDataCenterConfig.Builder

clearServerVersion()

public BitbucketDataCenterConfig.Builder clearServerVersion()

Output only. Version of the Bitbucket Data Center running on the host_uri.

string server_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
BitbucketDataCenterConfig.Builder

This builder for chaining.

clearServiceDirectoryConfig()

public BitbucketDataCenterConfig.Builder clearServiceDirectoryConfig()

Optional. Configuration for using Service Directory to privately connect to a Bitbucket Data Center. This should only be set if the Bitbucket Data Center is hosted on-premises and not reachable by public internet. If this field is left empty, calls to the Bitbucket Data Center will be made over the public internet.

.google.devtools.cloudbuild.v2.ServiceDirectoryConfig service_directory_config = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
BitbucketDataCenterConfig.Builder

clearSslCa()

public BitbucketDataCenterConfig.Builder clearSslCa()

Optional. SSL certificate to use for requests to the Bitbucket Data Center.

string ssl_ca = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
BitbucketDataCenterConfig.Builder

This builder for chaining.

clearWebhookSecretSecretVersion()

public BitbucketDataCenterConfig.Builder clearWebhookSecretSecretVersion()

Required. Immutable. SecretManager resource containing the webhook secret used to verify webhook events, formatted as projects/*/secrets/*/versions/*.

string webhook_secret_secret_version = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }

Returns
Type Description
BitbucketDataCenterConfig.Builder

This builder for chaining.

clone()

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

getAuthorizerCredential()

public UserCredential getAuthorizerCredential()

Required. A http access token with the REPO_ADMIN scope access.

.google.devtools.cloudbuild.v2.UserCredential authorizer_credential = 4 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
UserCredential

The authorizerCredential.

getAuthorizerCredentialBuilder()

public UserCredential.Builder getAuthorizerCredentialBuilder()

Required. A http access token with the REPO_ADMIN scope access.

.google.devtools.cloudbuild.v2.UserCredential authorizer_credential = 4 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
UserCredential.Builder

getAuthorizerCredentialOrBuilder()

public UserCredentialOrBuilder getAuthorizerCredentialOrBuilder()

Required. A http access token with the REPO_ADMIN scope access.

.google.devtools.cloudbuild.v2.UserCredential authorizer_credential = 4 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
UserCredentialOrBuilder

getDefaultInstanceForType()

public BitbucketDataCenterConfig getDefaultInstanceForType()
Returns
Type Description
BitbucketDataCenterConfig

getDescriptorForType()

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

getHostUri()

public String getHostUri()

Required. The URI of the Bitbucket Data Center instance or cluster this connection is for.

string host_uri = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The hostUri.

getHostUriBytes()

public ByteString getHostUriBytes()

Required. The URI of the Bitbucket Data Center instance or cluster this connection is for.

string host_uri = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for hostUri.

getReadAuthorizerCredential()

public UserCredential getReadAuthorizerCredential()

Required. A http access token with the REPO_READ access.

.google.devtools.cloudbuild.v2.UserCredential read_authorizer_credential = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
UserCredential

The readAuthorizerCredential.

getReadAuthorizerCredentialBuilder()

public UserCredential.Builder getReadAuthorizerCredentialBuilder()

Required. A http access token with the REPO_READ access.

.google.devtools.cloudbuild.v2.UserCredential read_authorizer_credential = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
UserCredential.Builder

getReadAuthorizerCredentialOrBuilder()

public UserCredentialOrBuilder getReadAuthorizerCredentialOrBuilder()

Required. A http access token with the REPO_READ access.

.google.devtools.cloudbuild.v2.UserCredential read_authorizer_credential = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
UserCredentialOrBuilder

getServerVersion()

public String getServerVersion()

Output only. Version of the Bitbucket Data Center running on the host_uri.

string server_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The serverVersion.

getServerVersionBytes()

public ByteString getServerVersionBytes()

Output only. Version of the Bitbucket Data Center running on the host_uri.

string server_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for serverVersion.

getServiceDirectoryConfig()

public ServiceDirectoryConfig getServiceDirectoryConfig()

Optional. Configuration for using Service Directory to privately connect to a Bitbucket Data Center. This should only be set if the Bitbucket Data Center is hosted on-premises and not reachable by public internet. If this field is left empty, calls to the Bitbucket Data Center will be made over the public internet.

.google.devtools.cloudbuild.v2.ServiceDirectoryConfig service_directory_config = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ServiceDirectoryConfig

The serviceDirectoryConfig.

getServiceDirectoryConfigBuilder()

public ServiceDirectoryConfig.Builder getServiceDirectoryConfigBuilder()

Optional. Configuration for using Service Directory to privately connect to a Bitbucket Data Center. This should only be set if the Bitbucket Data Center is hosted on-premises and not reachable by public internet. If this field is left empty, calls to the Bitbucket Data Center will be made over the public internet.

.google.devtools.cloudbuild.v2.ServiceDirectoryConfig service_directory_config = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ServiceDirectoryConfig.Builder

getServiceDirectoryConfigOrBuilder()

public ServiceDirectoryConfigOrBuilder getServiceDirectoryConfigOrBuilder()

Optional. Configuration for using Service Directory to privately connect to a Bitbucket Data Center. This should only be set if the Bitbucket Data Center is hosted on-premises and not reachable by public internet. If this field is left empty, calls to the Bitbucket Data Center will be made over the public internet.

.google.devtools.cloudbuild.v2.ServiceDirectoryConfig service_directory_config = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ServiceDirectoryConfigOrBuilder

getSslCa()

public String getSslCa()

Optional. SSL certificate to use for requests to the Bitbucket Data Center.

string ssl_ca = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The sslCa.

getSslCaBytes()

public ByteString getSslCaBytes()

Optional. SSL certificate to use for requests to the Bitbucket Data Center.

string ssl_ca = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for sslCa.

getWebhookSecretSecretVersion()

public String getWebhookSecretSecretVersion()

Required. Immutable. SecretManager resource containing the webhook secret used to verify webhook events, formatted as projects/*/secrets/*/versions/*.

string webhook_secret_secret_version = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }

Returns
Type Description
String

The webhookSecretSecretVersion.

getWebhookSecretSecretVersionBytes()

public ByteString getWebhookSecretSecretVersionBytes()

Required. Immutable. SecretManager resource containing the webhook secret used to verify webhook events, formatted as projects/*/secrets/*/versions/*.

string webhook_secret_secret_version = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for webhookSecretSecretVersion.

hasAuthorizerCredential()

public boolean hasAuthorizerCredential()

Required. A http access token with the REPO_ADMIN scope access.

.google.devtools.cloudbuild.v2.UserCredential authorizer_credential = 4 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the authorizerCredential field is set.

hasReadAuthorizerCredential()

public boolean hasReadAuthorizerCredential()

Required. A http access token with the REPO_READ access.

.google.devtools.cloudbuild.v2.UserCredential read_authorizer_credential = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the readAuthorizerCredential field is set.

hasServiceDirectoryConfig()

public boolean hasServiceDirectoryConfig()

Optional. Configuration for using Service Directory to privately connect to a Bitbucket Data Center. This should only be set if the Bitbucket Data Center is hosted on-premises and not reachable by public internet. If this field is left empty, calls to the Bitbucket Data Center will be made over the public internet.

.google.devtools.cloudbuild.v2.ServiceDirectoryConfig service_directory_config = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the serviceDirectoryConfig field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeAuthorizerCredential(UserCredential value)

public BitbucketDataCenterConfig.Builder mergeAuthorizerCredential(UserCredential value)

Required. A http access token with the REPO_ADMIN scope access.

.google.devtools.cloudbuild.v2.UserCredential authorizer_credential = 4 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value UserCredential
Returns
Type Description
BitbucketDataCenterConfig.Builder

mergeFrom(BitbucketDataCenterConfig other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeReadAuthorizerCredential(UserCredential value)

public BitbucketDataCenterConfig.Builder mergeReadAuthorizerCredential(UserCredential value)

Required. A http access token with the REPO_READ access.

.google.devtools.cloudbuild.v2.UserCredential read_authorizer_credential = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value UserCredential
Returns
Type Description
BitbucketDataCenterConfig.Builder

mergeServiceDirectoryConfig(ServiceDirectoryConfig value)

public BitbucketDataCenterConfig.Builder mergeServiceDirectoryConfig(ServiceDirectoryConfig value)

Optional. Configuration for using Service Directory to privately connect to a Bitbucket Data Center. This should only be set if the Bitbucket Data Center is hosted on-premises and not reachable by public internet. If this field is left empty, calls to the Bitbucket Data Center will be made over the public internet.

.google.devtools.cloudbuild.v2.ServiceDirectoryConfig service_directory_config = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ServiceDirectoryConfig
Returns
Type Description
BitbucketDataCenterConfig.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setAuthorizerCredential(UserCredential value)

public BitbucketDataCenterConfig.Builder setAuthorizerCredential(UserCredential value)

Required. A http access token with the REPO_ADMIN scope access.

.google.devtools.cloudbuild.v2.UserCredential authorizer_credential = 4 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value UserCredential
Returns
Type Description
BitbucketDataCenterConfig.Builder

setAuthorizerCredential(UserCredential.Builder builderForValue)

public BitbucketDataCenterConfig.Builder setAuthorizerCredential(UserCredential.Builder builderForValue)

Required. A http access token with the REPO_ADMIN scope access.

.google.devtools.cloudbuild.v2.UserCredential authorizer_credential = 4 [(.google.api.field_behavior) = REQUIRED];

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setHostUri(String value)

public BitbucketDataCenterConfig.Builder setHostUri(String value)

Required. The URI of the Bitbucket Data Center instance or cluster this connection is for.

string host_uri = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The hostUri to set.

Returns
Type Description
BitbucketDataCenterConfig.Builder

This builder for chaining.

setHostUriBytes(ByteString value)

public BitbucketDataCenterConfig.Builder setHostUriBytes(ByteString value)

Required. The URI of the Bitbucket Data Center instance or cluster this connection is for.

string host_uri = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for hostUri to set.

Returns
Type Description
BitbucketDataCenterConfig.Builder

This builder for chaining.

setReadAuthorizerCredential(UserCredential value)

public BitbucketDataCenterConfig.Builder setReadAuthorizerCredential(UserCredential value)

Required. A http access token with the REPO_READ access.

.google.devtools.cloudbuild.v2.UserCredential read_authorizer_credential = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value UserCredential
Returns
Type Description
BitbucketDataCenterConfig.Builder

setReadAuthorizerCredential(UserCredential.Builder builderForValue)

public BitbucketDataCenterConfig.Builder setReadAuthorizerCredential(UserCredential.Builder builderForValue)

Required. A http access token with the REPO_READ access.

.google.devtools.cloudbuild.v2.UserCredential read_authorizer_credential = 3 [(.google.api.field_behavior) = REQUIRED];

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

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

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

setServerVersion(String value)

public BitbucketDataCenterConfig.Builder setServerVersion(String value)

Output only. Version of the Bitbucket Data Center running on the host_uri.

string server_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value String

The serverVersion to set.

Returns
Type Description
BitbucketDataCenterConfig.Builder

This builder for chaining.

setServerVersionBytes(ByteString value)

public BitbucketDataCenterConfig.Builder setServerVersionBytes(ByteString value)

Output only. Version of the Bitbucket Data Center running on the host_uri.

string server_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ByteString

The bytes for serverVersion to set.

Returns
Type Description
BitbucketDataCenterConfig.Builder

This builder for chaining.

setServiceDirectoryConfig(ServiceDirectoryConfig value)

public BitbucketDataCenterConfig.Builder setServiceDirectoryConfig(ServiceDirectoryConfig value)

Optional. Configuration for using Service Directory to privately connect to a Bitbucket Data Center. This should only be set if the Bitbucket Data Center is hosted on-premises and not reachable by public internet. If this field is left empty, calls to the Bitbucket Data Center will be made over the public internet.

.google.devtools.cloudbuild.v2.ServiceDirectoryConfig service_directory_config = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ServiceDirectoryConfig
Returns
Type Description
BitbucketDataCenterConfig.Builder

setServiceDirectoryConfig(ServiceDirectoryConfig.Builder builderForValue)

public BitbucketDataCenterConfig.Builder setServiceDirectoryConfig(ServiceDirectoryConfig.Builder builderForValue)

Optional. Configuration for using Service Directory to privately connect to a Bitbucket Data Center. This should only be set if the Bitbucket Data Center is hosted on-premises and not reachable by public internet. If this field is left empty, calls to the Bitbucket Data Center will be made over the public internet.

.google.devtools.cloudbuild.v2.ServiceDirectoryConfig service_directory_config = 5 [(.google.api.field_behavior) = OPTIONAL];

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

setSslCa(String value)

public BitbucketDataCenterConfig.Builder setSslCa(String value)

Optional. SSL certificate to use for requests to the Bitbucket Data Center.

string ssl_ca = 6 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The sslCa to set.

Returns
Type Description
BitbucketDataCenterConfig.Builder

This builder for chaining.

setSslCaBytes(ByteString value)

public BitbucketDataCenterConfig.Builder setSslCaBytes(ByteString value)

Optional. SSL certificate to use for requests to the Bitbucket Data Center.

string ssl_ca = 6 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for sslCa to set.

Returns
Type Description
BitbucketDataCenterConfig.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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

setWebhookSecretSecretVersion(String value)

public BitbucketDataCenterConfig.Builder setWebhookSecretSecretVersion(String value)

Required. Immutable. SecretManager resource containing the webhook secret used to verify webhook events, formatted as projects/*/secrets/*/versions/*.

string webhook_secret_secret_version = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value String

The webhookSecretSecretVersion to set.

Returns
Type Description
BitbucketDataCenterConfig.Builder

This builder for chaining.

setWebhookSecretSecretVersionBytes(ByteString value)

public BitbucketDataCenterConfig.Builder setWebhookSecretSecretVersionBytes(ByteString value)

Required. Immutable. SecretManager resource containing the webhook secret used to verify webhook events, formatted as projects/*/secrets/*/versions/*.

string webhook_secret_secret_version = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value ByteString

The bytes for webhookSecretSecretVersion to set.

Returns
Type Description
BitbucketDataCenterConfig.Builder

This builder for chaining.