Class BitbucketCloudConfig.Builder (3.45.0)

public static final class BitbucketCloudConfig.Builder extends GeneratedMessageV3.Builder<BitbucketCloudConfig.Builder> implements BitbucketCloudConfigOrBuilder

Configuration for connections to Bitbucket Cloud.

Protobuf type google.devtools.cloudbuild.v2.BitbucketCloudConfig

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public BitbucketCloudConfig build()
Returns
Type Description
BitbucketCloudConfig

buildPartial()

public BitbucketCloudConfig buildPartial()
Returns
Type Description
BitbucketCloudConfig

clear()

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

clearAuthorizerCredential()

public BitbucketCloudConfig.Builder clearAuthorizerCredential()

Required. An access token with the webhook, repository, repository:admin and pullrequest scope access. It can be either a workspace, project or repository access token. It's recommended to use a system account to generate these credentials.

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

Returns
Type Description
BitbucketCloudConfig.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearReadAuthorizerCredential()

public BitbucketCloudConfig.Builder clearReadAuthorizerCredential()

Required. An access token with the repository access. It can be either a workspace, project or repository access token. It's recommended to use a system account to generate the credentials.

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

Returns
Type Description
BitbucketCloudConfig.Builder

clearWebhookSecretSecretVersion()

public BitbucketCloudConfig.Builder clearWebhookSecretSecretVersion()

Required. 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.resource_reference) = { ... }

Returns
Type Description
BitbucketCloudConfig.Builder

This builder for chaining.

clearWorkspace()

public BitbucketCloudConfig.Builder clearWorkspace()

Required. The Bitbucket Cloud Workspace ID to be connected to Google Cloud Platform.

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

Returns
Type Description
BitbucketCloudConfig.Builder

This builder for chaining.

clone()

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

getAuthorizerCredential()

public UserCredential getAuthorizerCredential()

Required. An access token with the webhook, repository, repository:admin and pullrequest scope access. It can be either a workspace, project or repository access token. It's recommended to use a system account to generate these credentials.

.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. An access token with the webhook, repository, repository:admin and pullrequest scope access. It can be either a workspace, project or repository access token. It's recommended to use a system account to generate these credentials.

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

Returns
Type Description
UserCredential.Builder

getAuthorizerCredentialOrBuilder()

public UserCredentialOrBuilder getAuthorizerCredentialOrBuilder()

Required. An access token with the webhook, repository, repository:admin and pullrequest scope access. It can be either a workspace, project or repository access token. It's recommended to use a system account to generate these credentials.

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

Returns
Type Description
UserCredentialOrBuilder

getDefaultInstanceForType()

public BitbucketCloudConfig getDefaultInstanceForType()
Returns
Type Description
BitbucketCloudConfig

getDescriptorForType()

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

getReadAuthorizerCredential()

public UserCredential getReadAuthorizerCredential()

Required. An access token with the repository access. It can be either a workspace, project or repository access token. It's recommended to use a system account to generate the credentials.

.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. An access token with the repository access. It can be either a workspace, project or repository access token. It's recommended to use a system account to generate the credentials.

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

Returns
Type Description
UserCredential.Builder

getReadAuthorizerCredentialOrBuilder()

public UserCredentialOrBuilder getReadAuthorizerCredentialOrBuilder()

Required. An access token with the repository access. It can be either a workspace, project or repository access token. It's recommended to use a system account to generate the credentials.

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

Returns
Type Description
UserCredentialOrBuilder

getWebhookSecretSecretVersion()

public String getWebhookSecretSecretVersion()

Required. 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.resource_reference) = { ... }

Returns
Type Description
String

The webhookSecretSecretVersion.

getWebhookSecretSecretVersionBytes()

public ByteString getWebhookSecretSecretVersionBytes()

Required. 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.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for webhookSecretSecretVersion.

getWorkspace()

public String getWorkspace()

Required. The Bitbucket Cloud Workspace ID to be connected to Google Cloud Platform.

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

Returns
Type Description
String

The workspace.

getWorkspaceBytes()

public ByteString getWorkspaceBytes()

Required. The Bitbucket Cloud Workspace ID to be connected to Google Cloud Platform.

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

Returns
Type Description
ByteString

The bytes for workspace.

hasAuthorizerCredential()

public boolean hasAuthorizerCredential()

Required. An access token with the webhook, repository, repository:admin and pullrequest scope access. It can be either a workspace, project or repository access token. It's recommended to use a system account to generate these credentials.

.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. An access token with the repository access. It can be either a workspace, project or repository access token. It's recommended to use a system account to generate the credentials.

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

Returns
Type Description
boolean

Whether the readAuthorizerCredential 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 BitbucketCloudConfig.Builder mergeAuthorizerCredential(UserCredential value)

Required. An access token with the webhook, repository, repository:admin and pullrequest scope access. It can be either a workspace, project or repository access token. It's recommended to use a system account to generate these credentials.

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

Parameter
Name Description
value UserCredential
Returns
Type Description
BitbucketCloudConfig.Builder

mergeFrom(BitbucketCloudConfig other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeReadAuthorizerCredential(UserCredential value)

public BitbucketCloudConfig.Builder mergeReadAuthorizerCredential(UserCredential value)

Required. An access token with the repository access. It can be either a workspace, project or repository access token. It's recommended to use a system account to generate the credentials.

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

Parameter
Name Description
value UserCredential
Returns
Type Description
BitbucketCloudConfig.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setAuthorizerCredential(UserCredential value)

public BitbucketCloudConfig.Builder setAuthorizerCredential(UserCredential value)

Required. An access token with the webhook, repository, repository:admin and pullrequest scope access. It can be either a workspace, project or repository access token. It's recommended to use a system account to generate these credentials.

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

Parameter
Name Description
value UserCredential
Returns
Type Description
BitbucketCloudConfig.Builder

setAuthorizerCredential(UserCredential.Builder builderForValue)

public BitbucketCloudConfig.Builder setAuthorizerCredential(UserCredential.Builder builderForValue)

Required. An access token with the webhook, repository, repository:admin and pullrequest scope access. It can be either a workspace, project or repository access token. It's recommended to use a system account to generate these credentials.

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

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setReadAuthorizerCredential(UserCredential value)

public BitbucketCloudConfig.Builder setReadAuthorizerCredential(UserCredential value)

Required. An access token with the repository access. It can be either a workspace, project or repository access token. It's recommended to use a system account to generate the credentials.

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

Parameter
Name Description
value UserCredential
Returns
Type Description
BitbucketCloudConfig.Builder

setReadAuthorizerCredential(UserCredential.Builder builderForValue)

public BitbucketCloudConfig.Builder setReadAuthorizerCredential(UserCredential.Builder builderForValue)

Required. An access token with the repository access. It can be either a workspace, project or repository access token. It's recommended to use a system account to generate the credentials.

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

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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

setWebhookSecretSecretVersion(String value)

public BitbucketCloudConfig.Builder setWebhookSecretSecretVersion(String value)

Required. 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.resource_reference) = { ... }

Parameter
Name Description
value String

The webhookSecretSecretVersion to set.

Returns
Type Description
BitbucketCloudConfig.Builder

This builder for chaining.

setWebhookSecretSecretVersionBytes(ByteString value)

public BitbucketCloudConfig.Builder setWebhookSecretSecretVersionBytes(ByteString value)

Required. 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.resource_reference) = { ... }

Parameter
Name Description
value ByteString

The bytes for webhookSecretSecretVersion to set.

Returns
Type Description
BitbucketCloudConfig.Builder

This builder for chaining.

setWorkspace(String value)

public BitbucketCloudConfig.Builder setWorkspace(String value)

Required. The Bitbucket Cloud Workspace ID to be connected to Google Cloud Platform.

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

Parameter
Name Description
value String

The workspace to set.

Returns
Type Description
BitbucketCloudConfig.Builder

This builder for chaining.

setWorkspaceBytes(ByteString value)

public BitbucketCloudConfig.Builder setWorkspaceBytes(ByteString value)

Required. The Bitbucket Cloud Workspace ID to be connected to Google Cloud Platform.

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

Parameter
Name Description
value ByteString

The bytes for workspace to set.

Returns
Type Description
BitbucketCloudConfig.Builder

This builder for chaining.