Class BitbucketCloudConfig

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloud.developerconnect.v1.BitbucketCloudConfig
All Implemented Interfaces:
BitbucketCloudConfigOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

@Generated public final class BitbucketCloudConfig extends com.google.protobuf.GeneratedMessage implements BitbucketCloudConfigOrBuilder
 Configuration for connections to an instance of Bitbucket Cloud.
 
Protobuf type google.cloud.developerconnect.v1.BitbucketCloudConfig
See Also:
  • Field Details

    • WORKSPACE_FIELD_NUMBER

      public static final int WORKSPACE_FIELD_NUMBER
      See Also:
    • WEBHOOK_SECRET_SECRET_VERSION_FIELD_NUMBER

      public static final int WEBHOOK_SECRET_SECRET_VERSION_FIELD_NUMBER
      See Also:
    • READ_AUTHORIZER_CREDENTIAL_FIELD_NUMBER

      public static final int READ_AUTHORIZER_CREDENTIAL_FIELD_NUMBER
      See Also:
    • AUTHORIZER_CREDENTIAL_FIELD_NUMBER

      public static final int AUTHORIZER_CREDENTIAL_FIELD_NUMBER
      See Also:
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage
    • 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];
      Specified by:
      getWorkspace in interface BitbucketCloudConfigOrBuilder
      Returns:
      The workspace.
    • getWorkspaceBytes

      public com.google.protobuf.ByteString getWorkspaceBytes()
       Required. The Bitbucket Cloud Workspace ID to be connected to Google Cloud
       Platform.
       
      string workspace = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getWorkspaceBytes in interface BitbucketCloudConfigOrBuilder
      Returns:
      The bytes for workspace.
    • getWebhookSecretSecretVersion

      public String getWebhookSecretSecretVersion()
       Required. Immutable. SecretManager resource containing the webhook secret
       used to verify webhook events, formatted as
       `projects/*/secrets/*/versions/*` or
       `projects/*/locations/*/secrets/*/versions/*` (if regional secrets are
       supported in that location). This is used to validate and create webhooks.
       
      string webhook_secret_secret_version = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
      Specified by:
      getWebhookSecretSecretVersion in interface BitbucketCloudConfigOrBuilder
      Returns:
      The webhookSecretSecretVersion.
    • getWebhookSecretSecretVersionBytes

      public com.google.protobuf.ByteString getWebhookSecretSecretVersionBytes()
       Required. Immutable. SecretManager resource containing the webhook secret
       used to verify webhook events, formatted as
       `projects/*/secrets/*/versions/*` or
       `projects/*/locations/*/secrets/*/versions/*` (if regional secrets are
       supported in that location). This is used to validate and create webhooks.
       
      string webhook_secret_secret_version = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
      Specified by:
      getWebhookSecretSecretVersionBytes in interface BitbucketCloudConfigOrBuilder
      Returns:
      The bytes for webhookSecretSecretVersion.
    • hasReadAuthorizerCredential

      public boolean hasReadAuthorizerCredential()
       Required. An access token with the minimum `repository` access.
       It can either be a workspace, project or repository access token.
       It's recommended to use a system account to generate the credentials.
       
      .google.cloud.developerconnect.v1.UserCredential read_authorizer_credential = 3 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      hasReadAuthorizerCredential in interface BitbucketCloudConfigOrBuilder
      Returns:
      Whether the readAuthorizerCredential field is set.
    • getReadAuthorizerCredential

      public UserCredential getReadAuthorizerCredential()
       Required. An access token with the minimum `repository` access.
       It can either be a workspace, project or repository access token.
       It's recommended to use a system account to generate the credentials.
       
      .google.cloud.developerconnect.v1.UserCredential read_authorizer_credential = 3 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getReadAuthorizerCredential in interface BitbucketCloudConfigOrBuilder
      Returns:
      The readAuthorizerCredential.
    • getReadAuthorizerCredentialOrBuilder

      public UserCredentialOrBuilder getReadAuthorizerCredentialOrBuilder()
       Required. An access token with the minimum `repository` access.
       It can either be a workspace, project or repository access token.
       It's recommended to use a system account to generate the credentials.
       
      .google.cloud.developerconnect.v1.UserCredential read_authorizer_credential = 3 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getReadAuthorizerCredentialOrBuilder in interface BitbucketCloudConfigOrBuilder
    • hasAuthorizerCredential

      public boolean hasAuthorizerCredential()
       Required. An access token with the minimum `repository`, `pullrequest` and
       `webhook` scope access. It can either be a workspace, project or repository
       access token. This is needed to create webhooks. It's recommended to use a
       system account to generate these credentials.
       
      .google.cloud.developerconnect.v1.UserCredential authorizer_credential = 4 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      hasAuthorizerCredential in interface BitbucketCloudConfigOrBuilder
      Returns:
      Whether the authorizerCredential field is set.
    • getAuthorizerCredential

      public UserCredential getAuthorizerCredential()
       Required. An access token with the minimum `repository`, `pullrequest` and
       `webhook` scope access. It can either be a workspace, project or repository
       access token. This is needed to create webhooks. It's recommended to use a
       system account to generate these credentials.
       
      .google.cloud.developerconnect.v1.UserCredential authorizer_credential = 4 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getAuthorizerCredential in interface BitbucketCloudConfigOrBuilder
      Returns:
      The authorizerCredential.
    • getAuthorizerCredentialOrBuilder

      public UserCredentialOrBuilder getAuthorizerCredentialOrBuilder()
       Required. An access token with the minimum `repository`, `pullrequest` and
       `webhook` scope access. It can either be a workspace, project or repository
       access token. This is needed to create webhooks. It's recommended to use a
       system account to generate these credentials.
       
      .google.cloud.developerconnect.v1.UserCredential authorizer_credential = 4 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getAuthorizerCredentialOrBuilder in interface BitbucketCloudConfigOrBuilder
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessage
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessage
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.google.protobuf.AbstractMessage
    • parseFrom

      public static BitbucketCloudConfig parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static BitbucketCloudConfig parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static BitbucketCloudConfig parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static BitbucketCloudConfig parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static BitbucketCloudConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static BitbucketCloudConfig parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static BitbucketCloudConfig parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static BitbucketCloudConfig parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static BitbucketCloudConfig parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static BitbucketCloudConfig parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static BitbucketCloudConfig parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static BitbucketCloudConfig parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

      public BitbucketCloudConfig.Builder newBuilderForType()
      Specified by:
      newBuilderForType in interface com.google.protobuf.Message
      Specified by:
      newBuilderForType in interface com.google.protobuf.MessageLite
    • newBuilder

      public static BitbucketCloudConfig.Builder newBuilder()
    • newBuilder

      public static BitbucketCloudConfig.Builder newBuilder(BitbucketCloudConfig prototype)
    • toBuilder

      public BitbucketCloudConfig.Builder toBuilder()
      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

      protected BitbucketCloudConfig.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
      Overrides:
      newBuilderForType in class com.google.protobuf.AbstractMessage
    • getDefaultInstance

      public static BitbucketCloudConfig getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<BitbucketCloudConfig> parser()
    • getParserForType

      public com.google.protobuf.Parser<BitbucketCloudConfig> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessage
    • getDefaultInstanceForType

      public BitbucketCloudConfig getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder