Class BitbucketDataCenterConfig.Builder (3.41.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public BitbucketDataCenterConfig build()
Returns
TypeDescription
BitbucketDataCenterConfig

buildPartial()

public BitbucketDataCenterConfig buildPartial()
Returns
TypeDescription
BitbucketDataCenterConfig

clear()

public BitbucketDataCenterConfig.Builder clear()
Returns
TypeDescription
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
TypeDescription
BitbucketDataCenterConfig.Builder

clearField(Descriptors.FieldDescriptor field)

public BitbucketDataCenterConfig.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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
TypeDescription
BitbucketDataCenterConfig.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

This builder for chaining.

clone()

public BitbucketDataCenterConfig.Builder clone()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
UserCredentialOrBuilder

getDefaultInstanceForType()

public BitbucketDataCenterConfig getDefaultInstanceForType()
Returns
TypeDescription
BitbucketDataCenterConfig

getDescriptorForType()

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

Whether the serviceDirectoryConfig field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
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
NameDescription
valueUserCredential
Returns
TypeDescription
BitbucketDataCenterConfig.Builder

mergeFrom(BitbucketDataCenterConfig other)

public BitbucketDataCenterConfig.Builder mergeFrom(BitbucketDataCenterConfig other)
Parameter
NameDescription
otherBitbucketDataCenterConfig
Returns
TypeDescription
BitbucketDataCenterConfig.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public BitbucketDataCenterConfig.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
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
NameDescription
valueUserCredential
Returns
TypeDescription
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
NameDescription
valueServiceDirectoryConfig
Returns
TypeDescription
BitbucketDataCenterConfig.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final BitbucketDataCenterConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueUserCredential
Returns
TypeDescription
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
NameDescription
builderForValueUserCredential.Builder
Returns
TypeDescription
BitbucketDataCenterConfig.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public BitbucketDataCenterConfig.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The hostUri to set.

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

The bytes for hostUri to set.

Returns
TypeDescription
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
NameDescription
valueUserCredential
Returns
TypeDescription
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
NameDescription
builderForValueUserCredential.Builder
Returns
TypeDescription
BitbucketDataCenterConfig.Builder

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

public BitbucketDataCenterConfig.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The serverVersion to set.

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

The bytes for serverVersion to set.

Returns
TypeDescription
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
NameDescription
valueServiceDirectoryConfig
Returns
TypeDescription
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
NameDescription
builderForValueServiceDirectoryConfig.Builder
Returns
TypeDescription
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
NameDescription
valueString

The sslCa to set.

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

The bytes for sslCa to set.

Returns
TypeDescription
BitbucketDataCenterConfig.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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

The webhookSecretSecretVersion to set.

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

The bytes for webhookSecretSecretVersion to set.

Returns
TypeDescription
BitbucketDataCenterConfig.Builder

This builder for chaining.