Class GitLabConfig.Builder (3.33.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public GitLabConfig.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
GitLabConfig.Builder
Overrides

build()

public GitLabConfig build()
Returns
TypeDescription
GitLabConfig

buildPartial()

public GitLabConfig buildPartial()
Returns
TypeDescription
GitLabConfig

clear()

public GitLabConfig.Builder clear()
Returns
TypeDescription
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
TypeDescription
GitLabConfig.Builder

clearField(Descriptors.FieldDescriptor field)

public GitLabConfig.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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
TypeDescription
GitLabConfig.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public GitLabConfig.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
GitLabConfig.Builder

clearSslCa()

public GitLabConfig.Builder clearSslCa()

SSL certificate to use for requests to GitLab Enterprise.

string ssl_ca = 6;

Returns
TypeDescription
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
TypeDescription
GitLabConfig.Builder

This builder for chaining.

clone()

public GitLabConfig.Builder clone()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
UserCredentialOrBuilder

getDefaultInstanceForType()

public GitLabConfig getDefaultInstanceForType()
Returns
TypeDescription
GitLabConfig

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
ServiceDirectoryConfigOrBuilder

getSslCa()

public String getSslCa()

SSL certificate to use for requests to GitLab Enterprise.

string ssl_ca = 6;

Returns
TypeDescription
String

The sslCa.

getSslCaBytes()

public ByteString getSslCaBytes()

SSL certificate to use for requests to GitLab Enterprise.

string ssl_ca = 6;

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

Whether the serviceDirectoryConfig field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
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
NameDescription
valueUserCredential
Returns
TypeDescription
GitLabConfig.Builder

mergeFrom(GitLabConfig other)

public GitLabConfig.Builder mergeFrom(GitLabConfig other)
Parameter
NameDescription
otherGitLabConfig
Returns
TypeDescription
GitLabConfig.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public GitLabConfig.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
GitLabConfig.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public GitLabConfig.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
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
NameDescription
valueUserCredential
Returns
TypeDescription
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
NameDescription
valueServiceDirectoryConfig
Returns
TypeDescription
GitLabConfig.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final GitLabConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueUserCredential
Returns
TypeDescription
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
NameDescription
builderForValueUserCredential.Builder
Returns
TypeDescription
GitLabConfig.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public GitLabConfig.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The hostUri to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for hostUri to set.

Returns
TypeDescription
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
NameDescription
valueUserCredential
Returns
TypeDescription
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
NameDescription
builderForValueUserCredential.Builder
Returns
TypeDescription
GitLabConfig.Builder

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

public GitLabConfig.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The serverVersion to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for serverVersion to set.

Returns
TypeDescription
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
NameDescription
valueServiceDirectoryConfig
Returns
TypeDescription
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
NameDescription
builderForValueServiceDirectoryConfig.Builder
Returns
TypeDescription
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
NameDescription
valueString

The sslCa to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for sslCa to set.

Returns
TypeDescription
GitLabConfig.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final GitLabConfig.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueString

The webhookSecretSecretVersion to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for webhookSecretSecretVersion to set.

Returns
TypeDescription
GitLabConfig.Builder

This builder for chaining.