Class BitbucketCloudConfig (3.50.0)

public final class BitbucketCloudConfig extends GeneratedMessageV3 implements BitbucketCloudConfigOrBuilder

Configuration for connections to Bitbucket Cloud.

Protobuf type google.devtools.cloudbuild.v2.BitbucketCloudConfig

Static Fields

AUTHORIZER_CREDENTIAL_FIELD_NUMBER

public static final int AUTHORIZER_CREDENTIAL_FIELD_NUMBER
Field Value
Type Description
int

READ_AUTHORIZER_CREDENTIAL_FIELD_NUMBER

public static final int READ_AUTHORIZER_CREDENTIAL_FIELD_NUMBER
Field Value
Type Description
int

WEBHOOK_SECRET_SECRET_VERSION_FIELD_NUMBER

public static final int WEBHOOK_SECRET_SECRET_VERSION_FIELD_NUMBER
Field Value
Type Description
int

WORKSPACE_FIELD_NUMBER

public static final int WORKSPACE_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static BitbucketCloudConfig getDefaultInstance()
Returns
Type Description
BitbucketCloudConfig

getDescriptor()

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

newBuilder()

public static BitbucketCloudConfig.Builder newBuilder()
Returns
Type Description
BitbucketCloudConfig.Builder

newBuilder(BitbucketCloudConfig prototype)

public static BitbucketCloudConfig.Builder newBuilder(BitbucketCloudConfig prototype)
Parameter
Name Description
prototype BitbucketCloudConfig
Returns
Type Description
BitbucketCloudConfig.Builder

parseDelimitedFrom(InputStream input)

public static BitbucketCloudConfig parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
BitbucketCloudConfig
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static BitbucketCloudConfig parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
BitbucketCloudConfig
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static BitbucketCloudConfig parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
BitbucketCloudConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static BitbucketCloudConfig parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
BitbucketCloudConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static BitbucketCloudConfig parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
BitbucketCloudConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static BitbucketCloudConfig parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
BitbucketCloudConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static BitbucketCloudConfig parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
BitbucketCloudConfig
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static BitbucketCloudConfig parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
BitbucketCloudConfig
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static BitbucketCloudConfig parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
BitbucketCloudConfig
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static BitbucketCloudConfig parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
BitbucketCloudConfig
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static BitbucketCloudConfig parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
BitbucketCloudConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static BitbucketCloudConfig parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
BitbucketCloudConfig
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<BitbucketCloudConfig> parser()
Returns
Type Description
Parser<BitbucketCloudConfig>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
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.

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

getParserForType()

public Parser<BitbucketCloudConfig> getParserForType()
Returns
Type Description
Parser<BitbucketCloudConfig>
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.

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

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

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.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public BitbucketCloudConfig.Builder newBuilderForType()
Returns
Type Description
BitbucketCloudConfig.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected BitbucketCloudConfig.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
BitbucketCloudConfig.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public BitbucketCloudConfig.Builder toBuilder()
Returns
Type Description
BitbucketCloudConfig.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException