Class GitLabConfig.Builder (3.48.0)

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

Configuration for connections to gitlab.com or an instance of GitLab Enterprise.

Protobuf type google.devtools.cloudbuild.v2.GitLabConfig

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public GitLabConfig.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
GitLabConfig.Builder
Overrides

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 api scope access.

.google.devtools.cloudbuild.v2.UserCredential authorizer_credential = 4 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
GitLabConfig.Builder

clearField(Descriptors.FieldDescriptor field)

public GitLabConfig.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
GitLabConfig.Builder
Overrides

clearHostUri()

public GitLabConfig.Builder clearHostUri()

The URI of the GitLab Enterprise host this connection is for. If not specified, the default value is https://gitlab.com.

string host_uri = 1;

Returns
Type Description
GitLabConfig.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public GitLabConfig.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
GitLabConfig.Builder
Overrides

clearReadAuthorizerCredential()

public GitLabConfig.Builder clearReadAuthorizerCredential()

Required. A GitLab personal access token with the minimum read_api scope access.

.google.devtools.cloudbuild.v2.UserCredential read_authorizer_credential = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
GitLabConfig.Builder

clearServerVersion()

public GitLabConfig.Builder clearServerVersion()

Output only. Version of the GitLab Enterprise server running on the host_uri.

string server_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
GitLabConfig.Builder

This builder for chaining.

clearServiceDirectoryConfig()

public GitLabConfig.Builder clearServiceDirectoryConfig()

Configuration for using Service Directory to privately connect to a GitLab Enterprise server. This should only be set if the GitLab Enterprise server is hosted on-premises and not reachable by public internet. If this field is left empty, calls to the GitLab Enterprise server will be made over the public internet.

.google.devtools.cloudbuild.v2.ServiceDirectoryConfig service_directory_config = 5;

Returns
Type Description
GitLabConfig.Builder

clearSslCa()

public GitLabConfig.Builder clearSslCa()

SSL certificate to use for requests to GitLab Enterprise.

string ssl_ca = 6;

Returns
Type Description
GitLabConfig.Builder

This builder for chaining.

clearWebhookSecretSecretVersion()

public GitLabConfig.Builder clearWebhookSecretSecretVersion()

Required. Immutable. SecretManager resource containing the webhook secret of a GitLab Enterprise project, formatted as projects/*/secrets/*/versions/*.

string webhook_secret_secret_version = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }

Returns
Type Description
GitLabConfig.Builder

This builder for chaining.

clone()

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

getAuthorizerCredential()

public UserCredential getAuthorizerCredential()

Required. A GitLab personal access token with the api scope access.

.google.devtools.cloudbuild.v2.UserCredential authorizer_credential = 4 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
UserCredential

The authorizerCredential.

getAuthorizerCredentialBuilder()

public UserCredential.Builder getAuthorizerCredentialBuilder()

Required. A GitLab personal access token with the api scope access.

.google.devtools.cloudbuild.v2.UserCredential authorizer_credential = 4 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
UserCredential.Builder

getAuthorizerCredentialOrBuilder()

public UserCredentialOrBuilder getAuthorizerCredentialOrBuilder()

Required. A GitLab personal access token with the api scope access.

.google.devtools.cloudbuild.v2.UserCredential authorizer_credential = 4 [(.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

getHostUri()

public String getHostUri()

The URI of the GitLab Enterprise host this connection is for. If not specified, the default value is https://gitlab.com.

string host_uri = 1;

Returns
Type Description
String

The hostUri.

getHostUriBytes()

public ByteString getHostUriBytes()

The URI of the GitLab Enterprise host this connection is for. If not specified, the default value is https://gitlab.com.

string host_uri = 1;

Returns
Type Description
ByteString

The bytes for hostUri.

getReadAuthorizerCredential()

public UserCredential getReadAuthorizerCredential()

Required. A GitLab personal access token with the minimum read_api scope access.

.google.devtools.cloudbuild.v2.UserCredential read_authorizer_credential = 3 [(.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.

.google.devtools.cloudbuild.v2.UserCredential read_authorizer_credential = 3 [(.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.

.google.devtools.cloudbuild.v2.UserCredential read_authorizer_credential = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
UserCredentialOrBuilder

getServerVersion()

public String getServerVersion()

Output only. Version of the GitLab Enterprise server running on the host_uri.

string server_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The serverVersion.

getServerVersionBytes()

public ByteString getServerVersionBytes()

Output only. Version of the GitLab Enterprise server running on the host_uri.

string server_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for serverVersion.

getServiceDirectoryConfig()

public ServiceDirectoryConfig getServiceDirectoryConfig()

Configuration for using Service Directory to privately connect to a GitLab Enterprise server. This should only be set if the GitLab Enterprise server is hosted on-premises and not reachable by public internet. If this field is left empty, calls to the GitLab Enterprise server will be made over the public internet.

.google.devtools.cloudbuild.v2.ServiceDirectoryConfig service_directory_config = 5;

Returns
Type Description
ServiceDirectoryConfig

The serviceDirectoryConfig.

getServiceDirectoryConfigBuilder()

public ServiceDirectoryConfig.Builder getServiceDirectoryConfigBuilder()

Configuration for using Service Directory to privately connect to a GitLab Enterprise server. This should only be set if the GitLab Enterprise server is hosted on-premises and not reachable by public internet. If this field is left empty, calls to the GitLab Enterprise server will be made over the public internet.

.google.devtools.cloudbuild.v2.ServiceDirectoryConfig service_directory_config = 5;

Returns
Type Description
ServiceDirectoryConfig.Builder

getServiceDirectoryConfigOrBuilder()

public ServiceDirectoryConfigOrBuilder getServiceDirectoryConfigOrBuilder()

Configuration for using Service Directory to privately connect to a GitLab Enterprise server. This should only be set if the GitLab Enterprise server is hosted on-premises and not reachable by public internet. If this field is left empty, calls to the GitLab Enterprise server will be made over the public internet.

.google.devtools.cloudbuild.v2.ServiceDirectoryConfig service_directory_config = 5;

Returns
Type Description
ServiceDirectoryConfigOrBuilder

getSslCa()

public String getSslCa()

SSL certificate to use for requests to GitLab Enterprise.

string ssl_ca = 6;

Returns
Type Description
String

The sslCa.

getSslCaBytes()

public ByteString getSslCaBytes()

SSL certificate to use for requests to GitLab Enterprise.

string ssl_ca = 6;

Returns
Type Description
ByteString

The bytes for sslCa.

getWebhookSecretSecretVersion()

public String getWebhookSecretSecretVersion()

Required. Immutable. SecretManager resource containing the webhook secret of a GitLab Enterprise project, formatted as projects/*/secrets/*/versions/*.

string webhook_secret_secret_version = 2 [(.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 Enterprise project, formatted as projects/*/secrets/*/versions/*.

string webhook_secret_secret_version = 2 [(.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 api scope access.

.google.devtools.cloudbuild.v2.UserCredential authorizer_credential = 4 [(.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.

.google.devtools.cloudbuild.v2.UserCredential read_authorizer_credential = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the readAuthorizerCredential field is set.

hasServiceDirectoryConfig()

public boolean hasServiceDirectoryConfig()

Configuration for using Service Directory to privately connect to a GitLab Enterprise server. This should only be set if the GitLab Enterprise server is hosted on-premises and not reachable by public internet. If this field is left empty, calls to the GitLab Enterprise server will be made over the public internet.

.google.devtools.cloudbuild.v2.ServiceDirectoryConfig service_directory_config = 5;

Returns
Type Description
boolean

Whether the serviceDirectoryConfig field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.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 api scope access.

.google.devtools.cloudbuild.v2.UserCredential authorizer_credential = 4 [(.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.

.google.devtools.cloudbuild.v2.UserCredential read_authorizer_credential = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value UserCredential
Returns
Type Description
GitLabConfig.Builder

mergeServiceDirectoryConfig(ServiceDirectoryConfig value)

public GitLabConfig.Builder mergeServiceDirectoryConfig(ServiceDirectoryConfig value)

Configuration for using Service Directory to privately connect to a GitLab Enterprise server. This should only be set if the GitLab Enterprise server is hosted on-premises and not reachable by public internet. If this field is left empty, calls to the GitLab Enterprise server will be made over the public internet.

.google.devtools.cloudbuild.v2.ServiceDirectoryConfig service_directory_config = 5;

Parameter
Name Description
value ServiceDirectoryConfig
Returns
Type Description
GitLabConfig.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final GitLabConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
GitLabConfig.Builder
Overrides

setAuthorizerCredential(UserCredential value)

public GitLabConfig.Builder setAuthorizerCredential(UserCredential value)

Required. A GitLab personal access token with the api scope access.

.google.devtools.cloudbuild.v2.UserCredential authorizer_credential = 4 [(.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 api scope access.

.google.devtools.cloudbuild.v2.UserCredential authorizer_credential = 4 [(.google.api.field_behavior) = REQUIRED];

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

setField(Descriptors.FieldDescriptor field, Object value)

public GitLabConfig.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
GitLabConfig.Builder
Overrides

setHostUri(String value)

public GitLabConfig.Builder setHostUri(String value)

The URI of the GitLab Enterprise host this connection is for. If not specified, the default value is https://gitlab.com.

string host_uri = 1;

Parameter
Name Description
value String

The hostUri to set.

Returns
Type Description
GitLabConfig.Builder

This builder for chaining.

setHostUriBytes(ByteString value)

public GitLabConfig.Builder setHostUriBytes(ByteString value)

The URI of the GitLab Enterprise host this connection is for. If not specified, the default value is https://gitlab.com.

string host_uri = 1;

Parameter
Name Description
value ByteString

The bytes for hostUri to set.

Returns
Type Description
GitLabConfig.Builder

This builder for chaining.

setReadAuthorizerCredential(UserCredential value)

public GitLabConfig.Builder setReadAuthorizerCredential(UserCredential value)

Required. A GitLab personal access token with the minimum read_api scope access.

.google.devtools.cloudbuild.v2.UserCredential read_authorizer_credential = 3 [(.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.

.google.devtools.cloudbuild.v2.UserCredential read_authorizer_credential = 3 [(.google.api.field_behavior) = REQUIRED];

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

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

public GitLabConfig.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
GitLabConfig.Builder
Overrides

setServerVersion(String value)

public GitLabConfig.Builder setServerVersion(String value)

Output only. Version of the GitLab Enterprise server running on the host_uri.

string server_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value String

The serverVersion to set.

Returns
Type Description
GitLabConfig.Builder

This builder for chaining.

setServerVersionBytes(ByteString value)

public GitLabConfig.Builder setServerVersionBytes(ByteString value)

Output only. Version of the GitLab Enterprise server running on the host_uri.

string server_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ByteString

The bytes for serverVersion to set.

Returns
Type Description
GitLabConfig.Builder

This builder for chaining.

setServiceDirectoryConfig(ServiceDirectoryConfig value)

public GitLabConfig.Builder setServiceDirectoryConfig(ServiceDirectoryConfig value)

Configuration for using Service Directory to privately connect to a GitLab Enterprise server. This should only be set if the GitLab Enterprise server is hosted on-premises and not reachable by public internet. If this field is left empty, calls to the GitLab Enterprise server will be made over the public internet.

.google.devtools.cloudbuild.v2.ServiceDirectoryConfig service_directory_config = 5;

Parameter
Name Description
value ServiceDirectoryConfig
Returns
Type Description
GitLabConfig.Builder

setServiceDirectoryConfig(ServiceDirectoryConfig.Builder builderForValue)

public GitLabConfig.Builder setServiceDirectoryConfig(ServiceDirectoryConfig.Builder builderForValue)

Configuration for using Service Directory to privately connect to a GitLab Enterprise server. This should only be set if the GitLab Enterprise server is hosted on-premises and not reachable by public internet. If this field is left empty, calls to the GitLab Enterprise server will be made over the public internet.

.google.devtools.cloudbuild.v2.ServiceDirectoryConfig service_directory_config = 5;

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

setSslCa(String value)

public GitLabConfig.Builder setSslCa(String value)

SSL certificate to use for requests to GitLab Enterprise.

string ssl_ca = 6;

Parameter
Name Description
value String

The sslCa to set.

Returns
Type Description
GitLabConfig.Builder

This builder for chaining.

setSslCaBytes(ByteString value)

public GitLabConfig.Builder setSslCaBytes(ByteString value)

SSL certificate to use for requests to GitLab Enterprise.

string ssl_ca = 6;

Parameter
Name Description
value ByteString

The bytes for sslCa to set.

Returns
Type Description
GitLabConfig.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final GitLabConfig.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
GitLabConfig.Builder
Overrides

setWebhookSecretSecretVersion(String value)

public GitLabConfig.Builder setWebhookSecretSecretVersion(String value)

Required. Immutable. SecretManager resource containing the webhook secret of a GitLab Enterprise project, formatted as projects/*/secrets/*/versions/*.

string webhook_secret_secret_version = 2 [(.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 Enterprise project, formatted as projects/*/secrets/*/versions/*.

string webhook_secret_secret_version = 2 [(.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.