Class BitbucketCloudConfig (3.41.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
TypeDescription
int

READ_AUTHORIZER_CREDENTIAL_FIELD_NUMBER

public static final int READ_AUTHORIZER_CREDENTIAL_FIELD_NUMBER
Field Value
TypeDescription
int

WEBHOOK_SECRET_SECRET_VERSION_FIELD_NUMBER

public static final int WEBHOOK_SECRET_SECRET_VERSION_FIELD_NUMBER
Field Value
TypeDescription
int

WORKSPACE_FIELD_NUMBER

public static final int WORKSPACE_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static BitbucketCloudConfig getDefaultInstance()
Returns
TypeDescription
BitbucketCloudConfig

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static BitbucketCloudConfig.Builder newBuilder()
Returns
TypeDescription
BitbucketCloudConfig.Builder

newBuilder(BitbucketCloudConfig prototype)

public static BitbucketCloudConfig.Builder newBuilder(BitbucketCloudConfig prototype)
Parameter
NameDescription
prototypeBitbucketCloudConfig
Returns
TypeDescription
BitbucketCloudConfig.Builder

parseDelimitedFrom(InputStream input)

public static BitbucketCloudConfig parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
BitbucketCloudConfig
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static BitbucketCloudConfig parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
BitbucketCloudConfig
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static BitbucketCloudConfig parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
BitbucketCloudConfig
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static BitbucketCloudConfig parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
BitbucketCloudConfig
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static BitbucketCloudConfig parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
BitbucketCloudConfig
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static BitbucketCloudConfig parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
BitbucketCloudConfig
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static BitbucketCloudConfig parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
BitbucketCloudConfig
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static BitbucketCloudConfig parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
BitbucketCloudConfig
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static BitbucketCloudConfig parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
BitbucketCloudConfig
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static BitbucketCloudConfig parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
BitbucketCloudConfig
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static BitbucketCloudConfig parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
BitbucketCloudConfig
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static BitbucketCloudConfig parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
BitbucketCloudConfig
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<BitbucketCloudConfig> parser()
Returns
TypeDescription
Parser<BitbucketCloudConfig>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
UserCredentialOrBuilder

getDefaultInstanceForType()

public BitbucketCloudConfig getDefaultInstanceForType()
Returns
TypeDescription
BitbucketCloudConfig

getParserForType()

public Parser<BitbucketCloudConfig> getParserForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
UserCredentialOrBuilder

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
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
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.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public BitbucketCloudConfig.Builder newBuilderForType()
Returns
TypeDescription
BitbucketCloudConfig.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected BitbucketCloudConfig.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
BitbucketCloudConfig.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public BitbucketCloudConfig.Builder toBuilder()
Returns
TypeDescription
BitbucketCloudConfig.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException