Class GitLabConfig.Builder (0.15.0)

publicstaticfinalclass GitLabConfig.BuilderextendsGeneratedMessageV3.Builder<GitLabConfig.Builder>implementsGitLabConfigOrBuilder

Configuration for connections to gitlab.com.

Protobuf type google.cloud.developerconnect.v1.GitLabConfig

Inherited Members

com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)

Static Methods

getDescriptor()

publicstaticfinalDescriptors.DescriptorgetDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

publicGitLabConfig.BuilderaddRepeatedField(Descriptors.FieldDescriptorfield,Objectvalue)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
GitLabConfig.Builder
Overrides

build()

publicGitLabConfigbuild()
Returns
Type Description
GitLabConfig

buildPartial()

publicGitLabConfigbuildPartial()
Returns
Type Description
GitLabConfig

clear()

publicGitLabConfig.Builderclear()
Returns
Type Description
GitLabConfig.Builder
Overrides

clearAuthorizerCredential()

publicGitLabConfig.BuilderclearAuthorizerCredential()

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

clearField(Descriptors.FieldDescriptor field)

publicGitLabConfig.BuilderclearField(Descriptors.FieldDescriptorfield)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
GitLabConfig.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

publicGitLabConfig.BuilderclearOneof(Descriptors.OneofDescriptoroneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
GitLabConfig.Builder
Overrides

clearReadAuthorizerCredential()

publicGitLabConfig.BuilderclearReadAuthorizerCredential()

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()

publicGitLabConfig.BuilderclearWebhookSecretSecretVersion()

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.

clone()

publicGitLabConfig.Builderclone()
Returns
Type Description
GitLabConfig.Builder
Overrides

getAuthorizerCredential()

publicUserCredentialgetAuthorizerCredential()

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()

publicUserCredential.BuildergetAuthorizerCredentialBuilder()

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()

publicUserCredentialOrBuildergetAuthorizerCredentialOrBuilder()

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()

publicGitLabConfiggetDefaultInstanceForType()
Returns
Type Description
GitLabConfig

getDescriptorForType()

publicDescriptors.DescriptorgetDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getReadAuthorizerCredential()

publicUserCredentialgetReadAuthorizerCredential()

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()

publicUserCredential.BuildergetReadAuthorizerCredentialBuilder()

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()

publicUserCredentialOrBuildergetReadAuthorizerCredentialOrBuilder()

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()

publicStringgetWebhookSecretSecretVersion()

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()

publicByteStringgetWebhookSecretSecretVersionBytes()

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()

publicbooleanhasAuthorizerCredential()

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()

publicbooleanhasReadAuthorizerCredential()

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()

protectedGeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

publicfinalbooleanisInitialized()
Returns
Type Description
boolean
Overrides

mergeAuthorizerCredential(UserCredential value)

publicGitLabConfig.BuildermergeAuthorizerCredential(UserCredentialvalue)

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)

publicGitLabConfig.BuildermergeFrom(GitLabConfigother)
Parameter
Name Description
other GitLabConfig
Returns
Type Description
GitLabConfig.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

publicGitLabConfig.BuildermergeFrom(CodedInputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
GitLabConfig.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

publicGitLabConfig.BuildermergeFrom(Messageother)
Parameter
Name Description
other Message
Returns
Type Description
GitLabConfig.Builder
Overrides

mergeReadAuthorizerCredential(UserCredential value)

publicGitLabConfig.BuildermergeReadAuthorizerCredential(UserCredentialvalue)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

publicfinalGitLabConfig.BuildermergeUnknownFields(UnknownFieldSetunknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
GitLabConfig.Builder
Overrides

setAuthorizerCredential(UserCredential value)

publicGitLabConfig.BuildersetAuthorizerCredential(UserCredentialvalue)

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)

publicGitLabConfig.BuildersetAuthorizerCredential(UserCredential.BuilderbuilderForValue)

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

setField(Descriptors.FieldDescriptor field, Object value)

publicGitLabConfig.BuildersetField(Descriptors.FieldDescriptorfield,Objectvalue)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
GitLabConfig.Builder
Overrides

setReadAuthorizerCredential(UserCredential value)

publicGitLabConfig.BuildersetReadAuthorizerCredential(UserCredentialvalue)

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)

publicGitLabConfig.BuildersetReadAuthorizerCredential(UserCredential.BuilderbuilderForValue)

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

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

publicGitLabConfig.BuildersetRepeatedField(Descriptors.FieldDescriptorfield,intindex,Objectvalue)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
GitLabConfig.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

publicfinalGitLabConfig.BuildersetUnknownFields(UnknownFieldSetunknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
GitLabConfig.Builder
Overrides

setWebhookSecretSecretVersion(String value)

publicGitLabConfig.BuildersetWebhookSecretSecretVersion(Stringvalue)

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)

publicGitLabConfig.BuildersetWebhookSecretSecretVersionBytes(ByteStringvalue)

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.

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025年11月19日 UTC.