Class GitLabConfig.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<GitLabConfig.Builder>
com.google.cloud.developerconnect.v1.GitLabConfig.Builder
All Implemented Interfaces:
GitLabConfigOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
GitLabConfig

public static final class GitLabConfig.Builder extends com.google.protobuf.GeneratedMessage.Builder<GitLabConfig.Builder> implements GitLabConfigOrBuilder
 Configuration for connections to gitlab.com.
 
Protobuf type google.cloud.developerconnect.v1.GitLabConfig
  • 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.Builder<GitLabConfig.Builder>
    • clear

      public GitLabConfig.Builder clear()
      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<GitLabConfig.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<GitLabConfig.Builder>
    • getDefaultInstanceForType

      public GitLabConfig getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public GitLabConfig build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public GitLabConfig buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public GitLabConfig.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<GitLabConfig.Builder>
    • mergeFrom

      public GitLabConfig.Builder mergeFrom(GitLabConfig other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<GitLabConfig.Builder>
    • mergeFrom

      public GitLabConfig.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<GitLabConfig.Builder>
      Throws:
      IOException
    • getWebhookSecretSecretVersion

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

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

      public GitLabConfig.Builder setWebhookSecretSecretVersion(String value)
       Required. Immutable. SecretManager resource containing the webhook secret
       of a GitLab project, formatted as `projects/*/secrets/*/versions/*` or
       `projects/*/locations/*/secrets/*/versions/*` (if regional secrets are
       supported in that location). This is used to validate webhooks.
       
      string webhook_secret_secret_version = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The webhookSecretSecretVersion to set.
      Returns:
      This builder for chaining.
    • clearWebhookSecretSecretVersion

      public GitLabConfig.Builder clearWebhookSecretSecretVersion()
       Required. Immutable. SecretManager resource containing the webhook secret
       of a GitLab project, formatted as `projects/*/secrets/*/versions/*` or
       `projects/*/locations/*/secrets/*/versions/*` (if regional secrets are
       supported in that location). This is used to validate webhooks.
       
      string webhook_secret_secret_version = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
      Returns:
      This builder for chaining.
    • setWebhookSecretSecretVersionBytes

      public GitLabConfig.Builder setWebhookSecretSecretVersionBytes(com.google.protobuf.ByteString value)
       Required. Immutable. SecretManager resource containing the webhook secret
       of a GitLab project, formatted as `projects/*/secrets/*/versions/*` or
       `projects/*/locations/*/secrets/*/versions/*` (if regional secrets are
       supported in that location). This is used to validate webhooks.
       
      string webhook_secret_secret_version = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The bytes for webhookSecretSecretVersion to set.
      Returns:
      This builder for chaining.
    • hasReadAuthorizerCredential

      public boolean hasReadAuthorizerCredential()
       Required. A GitLab personal access token with the minimum `read_api` scope
       access and a minimum role of `reporter`. The GitLab Projects visible to
       this Personal Access Token will control which Projects Developer Connect
       has access to.
       
      .google.cloud.developerconnect.v1.UserCredential read_authorizer_credential = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      hasReadAuthorizerCredential in interface GitLabConfigOrBuilder
      Returns:
      Whether the readAuthorizerCredential field is set.
    • getReadAuthorizerCredential

      public UserCredential getReadAuthorizerCredential()
       Required. A GitLab personal access token with the minimum `read_api` scope
       access and a minimum role of `reporter`. The GitLab Projects visible to
       this Personal Access Token will control which Projects Developer Connect
       has access to.
       
      .google.cloud.developerconnect.v1.UserCredential read_authorizer_credential = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getReadAuthorizerCredential in interface GitLabConfigOrBuilder
      Returns:
      The readAuthorizerCredential.
    • setReadAuthorizerCredential

      public GitLabConfig.Builder setReadAuthorizerCredential(UserCredential value)
       Required. A GitLab personal access token with the minimum `read_api` scope
       access and a minimum role of `reporter`. The GitLab Projects visible to
       this Personal Access Token will control which Projects Developer Connect
       has access to.
       
      .google.cloud.developerconnect.v1.UserCredential read_authorizer_credential = 2 [(.google.api.field_behavior) = REQUIRED];
    • setReadAuthorizerCredential

      public GitLabConfig.Builder setReadAuthorizerCredential(UserCredential.Builder builderForValue)
       Required. A GitLab personal access token with the minimum `read_api` scope
       access and a minimum role of `reporter`. The GitLab Projects visible to
       this Personal Access Token will control which Projects Developer Connect
       has access to.
       
      .google.cloud.developerconnect.v1.UserCredential read_authorizer_credential = 2 [(.google.api.field_behavior) = REQUIRED];
    • mergeReadAuthorizerCredential

      public GitLabConfig.Builder mergeReadAuthorizerCredential(UserCredential value)
       Required. A GitLab personal access token with the minimum `read_api` scope
       access and a minimum role of `reporter`. The GitLab Projects visible to
       this Personal Access Token will control which Projects Developer Connect
       has access to.
       
      .google.cloud.developerconnect.v1.UserCredential read_authorizer_credential = 2 [(.google.api.field_behavior) = REQUIRED];
    • clearReadAuthorizerCredential

      public GitLabConfig.Builder clearReadAuthorizerCredential()
       Required. A GitLab personal access token with the minimum `read_api` scope
       access and a minimum role of `reporter`. The GitLab Projects visible to
       this Personal Access Token will control which Projects Developer Connect
       has access to.
       
      .google.cloud.developerconnect.v1.UserCredential read_authorizer_credential = 2 [(.google.api.field_behavior) = REQUIRED];
    • getReadAuthorizerCredentialBuilder

      public UserCredential.Builder getReadAuthorizerCredentialBuilder()
       Required. A GitLab personal access token with the minimum `read_api` scope
       access and a minimum role of `reporter`. The GitLab Projects visible to
       this Personal Access Token will control which Projects Developer Connect
       has access to.
       
      .google.cloud.developerconnect.v1.UserCredential read_authorizer_credential = 2 [(.google.api.field_behavior) = REQUIRED];
    • getReadAuthorizerCredentialOrBuilder

      public UserCredentialOrBuilder getReadAuthorizerCredentialOrBuilder()
       Required. A GitLab personal access token with the minimum `read_api` scope
       access and a minimum role of `reporter`. The GitLab Projects visible to
       this Personal Access Token will control which Projects Developer Connect
       has access to.
       
      .google.cloud.developerconnect.v1.UserCredential read_authorizer_credential = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getReadAuthorizerCredentialOrBuilder in interface GitLabConfigOrBuilder
    • hasAuthorizerCredential

      public boolean hasAuthorizerCredential()
       Required. A GitLab personal access token with the minimum `api` scope
       access and a minimum role of `maintainer`. The GitLab Projects visible to
       this Personal Access Token will control which Projects Developer Connect
       has access to.
       
      .google.cloud.developerconnect.v1.UserCredential authorizer_credential = 3 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      hasAuthorizerCredential in interface GitLabConfigOrBuilder
      Returns:
      Whether the authorizerCredential field is set.
    • getAuthorizerCredential

      public UserCredential getAuthorizerCredential()
       Required. A GitLab personal access token with the minimum `api` scope
       access and a minimum role of `maintainer`. The GitLab Projects visible to
       this Personal Access Token will control which Projects Developer Connect
       has access to.
       
      .google.cloud.developerconnect.v1.UserCredential authorizer_credential = 3 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getAuthorizerCredential in interface GitLabConfigOrBuilder
      Returns:
      The authorizerCredential.
    • setAuthorizerCredential

      public GitLabConfig.Builder setAuthorizerCredential(UserCredential value)
       Required. A GitLab personal access token with the minimum `api` scope
       access and a minimum role of `maintainer`. The GitLab Projects visible to
       this Personal Access Token will control which Projects Developer Connect
       has access to.
       
      .google.cloud.developerconnect.v1.UserCredential authorizer_credential = 3 [(.google.api.field_behavior) = REQUIRED];
    • setAuthorizerCredential

      public GitLabConfig.Builder setAuthorizerCredential(UserCredential.Builder builderForValue)
       Required. A GitLab personal access token with the minimum `api` scope
       access and a minimum role of `maintainer`. The GitLab Projects visible to
       this Personal Access Token will control which Projects Developer Connect
       has access to.
       
      .google.cloud.developerconnect.v1.UserCredential authorizer_credential = 3 [(.google.api.field_behavior) = REQUIRED];
    • mergeAuthorizerCredential

      public GitLabConfig.Builder mergeAuthorizerCredential(UserCredential value)
       Required. A GitLab personal access token with the minimum `api` scope
       access and a minimum role of `maintainer`. The GitLab Projects visible to
       this Personal Access Token will control which Projects Developer Connect
       has access to.
       
      .google.cloud.developerconnect.v1.UserCredential authorizer_credential = 3 [(.google.api.field_behavior) = REQUIRED];
    • clearAuthorizerCredential

      public GitLabConfig.Builder clearAuthorizerCredential()
       Required. A GitLab personal access token with the minimum `api` scope
       access and a minimum role of `maintainer`. The GitLab Projects visible to
       this Personal Access Token will control which Projects Developer Connect
       has access to.
       
      .google.cloud.developerconnect.v1.UserCredential authorizer_credential = 3 [(.google.api.field_behavior) = REQUIRED];
    • getAuthorizerCredentialBuilder

      public UserCredential.Builder getAuthorizerCredentialBuilder()
       Required. A GitLab personal access token with the minimum `api` scope
       access and a minimum role of `maintainer`. The GitLab Projects visible to
       this Personal Access Token will control which Projects Developer Connect
       has access to.
       
      .google.cloud.developerconnect.v1.UserCredential authorizer_credential = 3 [(.google.api.field_behavior) = REQUIRED];
    • getAuthorizerCredentialOrBuilder

      public UserCredentialOrBuilder getAuthorizerCredentialOrBuilder()
       Required. A GitLab personal access token with the minimum `api` scope
       access and a minimum role of `maintainer`. The GitLab Projects visible to
       this Personal Access Token will control which Projects Developer Connect
       has access to.
       
      .google.cloud.developerconnect.v1.UserCredential authorizer_credential = 3 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getAuthorizerCredentialOrBuilder in interface GitLabConfigOrBuilder