Class GitLabConfig.Builder (0.42.0)

public static final class GitLabConfig.Builder extends GeneratedMessage.Builder<GitLabConfig.Builder> implements GitLabConfigOrBuilder

Configuration for connections to gitlab.com.

Protobuf type google.cloud.developerconnect.v1.GitLabConfig

Static Methods

getDescriptor()

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

Methods

build()

public GitLabConfig build()
Returns
Type Description
GitLabConfig

buildPartial()

public GitLabConfig buildPartial()
Returns
Type Description
GitLabConfig

clear()

public GitLabConfig.Builder clear()
Returns
Type Description
GitLabConfig.Builder
Overrides

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];

Returns
Type Description
GitLabConfig.Builder

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];

Returns
Type Description
GitLabConfig.Builder

clearWebhookSecretSecretVersion()

public GitLabConfig.Builder clearWebhookSecretSecretVersion()

Required. Immutable. SecretManager resource containing the webhook secret of a GitLab project, formatted as projects/*/secrets/*/versions/*. 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
Type Description
GitLabConfig.Builder

This builder for chaining.

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];

Returns
Type Description
UserCredential

The authorizerCredential.

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];

Returns
Type Description
UserCredential.Builder

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];

Returns
Type Description
UserCredentialOrBuilder

getDefaultInstanceForType()

public GitLabConfig getDefaultInstanceForType()
Returns
Type Description
GitLabConfig

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

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];

Returns
Type Description
UserCredential

The readAuthorizerCredential.

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];

Returns
Type Description
UserCredential.Builder

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];

Returns
Type Description
UserCredentialOrBuilder

getWebhookSecretSecretVersion()

public String getWebhookSecretSecretVersion()

Required. Immutable. SecretManager resource containing the webhook secret of a GitLab project, formatted as projects/*/secrets/*/versions/*. 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
Type Description
String

The webhookSecretSecretVersion.

getWebhookSecretSecretVersionBytes()

public ByteString getWebhookSecretSecretVersionBytes()

Required. Immutable. SecretManager resource containing the webhook secret of a GitLab project, formatted as projects/*/secrets/*/versions/*. 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
Type Description
ByteString

The bytes for webhookSecretSecretVersion.

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];

Returns
Type Description
boolean

Whether the authorizerCredential field is set.

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];

Returns
Type Description
boolean

Whether the readAuthorizerCredential field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeAuthorizerCredential(UserCredential value)

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];

Parameter
Name Description
value UserCredential
Returns
Type Description
GitLabConfig.Builder

mergeFrom(GitLabConfig other)

public GitLabConfig.Builder mergeFrom(GitLabConfig other)
Parameter
Name Description
other GitLabConfig
Returns
Type Description
GitLabConfig.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public GitLabConfig.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
GitLabConfig.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public GitLabConfig.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
GitLabConfig.Builder
Overrides

mergeReadAuthorizerCredential(UserCredential value)

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];

Parameter
Name Description
value UserCredential
Returns
Type Description
GitLabConfig.Builder

setAuthorizerCredential(UserCredential value)

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];

Parameter
Name Description
value UserCredential
Returns
Type Description
GitLabConfig.Builder

setAuthorizerCredential(UserCredential.Builder builderForValue)

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];

Parameter
Name Description
builderForValue UserCredential.Builder
Returns
Type Description
GitLabConfig.Builder

setReadAuthorizerCredential(UserCredential value)

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];

Parameter
Name Description
value UserCredential
Returns
Type Description
GitLabConfig.Builder

setReadAuthorizerCredential(UserCredential.Builder builderForValue)

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];

Parameter
Name Description
builderForValue UserCredential.Builder
Returns
Type Description
GitLabConfig.Builder

setWebhookSecretSecretVersion(String value)

public GitLabConfig.Builder setWebhookSecretSecretVersion(String value)

Required. Immutable. SecretManager resource containing the webhook secret of a GitLab project, formatted as projects/*/secrets/*/versions/*. 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) = { ... }

Parameter
Name Description
value String

The webhookSecretSecretVersion to set.

Returns
Type Description
GitLabConfig.Builder

This builder for chaining.

setWebhookSecretSecretVersionBytes(ByteString value)

public GitLabConfig.Builder setWebhookSecretSecretVersionBytes(ByteString value)

Required. Immutable. SecretManager resource containing the webhook secret of a GitLab project, formatted as projects/*/secrets/*/versions/*. 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) = { ... }

Parameter
Name Description
value ByteString

The bytes for webhookSecretSecretVersion to set.

Returns
Type Description
GitLabConfig.Builder

This builder for chaining.