Class BitbucketCloudConfig.Builder (3.43.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public BitbucketCloudConfig build()
Returns
TypeDescription
BitbucketCloudConfig

buildPartial()

public BitbucketCloudConfig buildPartial()
Returns
TypeDescription
BitbucketCloudConfig

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public BitbucketCloudConfig getDefaultInstanceForType()
Returns
TypeDescription
BitbucketCloudConfig

getDescriptorForType()

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

Whether the readAuthorizerCredential 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 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
NameDescription
valueUserCredential
Returns
TypeDescription
BitbucketCloudConfig.Builder

mergeFrom(BitbucketCloudConfig other)

public BitbucketCloudConfig.Builder mergeFrom(BitbucketCloudConfig other)
Parameter
NameDescription
otherBitbucketCloudConfig
Returns
TypeDescription
BitbucketCloudConfig.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

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

public BitbucketCloudConfig.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
BitbucketCloudConfig.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

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

The webhookSecretSecretVersion to set.

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

The bytes for webhookSecretSecretVersion to set.

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

The workspace to set.

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

The bytes for workspace to set.

Returns
TypeDescription
BitbucketCloudConfig.Builder

This builder for chaining.