Class GitHubEnterpriseConfig.Builder (3.48.0)

public static final class GitHubEnterpriseConfig.Builder extends GeneratedMessageV3.Builder<GitHubEnterpriseConfig.Builder> implements GitHubEnterpriseConfigOrBuilder

Configuration for connections to an instance of GitHub Enterprise.

Protobuf type google.devtools.cloudbuild.v2.GitHubEnterpriseConfig

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public GitHubEnterpriseConfig build()
Returns
Type Description
GitHubEnterpriseConfig

buildPartial()

public GitHubEnterpriseConfig buildPartial()
Returns
Type Description
GitHubEnterpriseConfig

clear()

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

clearApiKey()

public GitHubEnterpriseConfig.Builder clearApiKey()

Required. API Key used for authentication of webhook events.

string api_key = 12 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
GitHubEnterpriseConfig.Builder

This builder for chaining.

clearAppId()

public GitHubEnterpriseConfig.Builder clearAppId()

Id of the GitHub App created from the manifest.

int64 app_id = 2;

Returns
Type Description
GitHubEnterpriseConfig.Builder

This builder for chaining.

clearAppInstallationId()

public GitHubEnterpriseConfig.Builder clearAppInstallationId()

ID of the installation of the GitHub App.

int64 app_installation_id = 9;

Returns
Type Description
GitHubEnterpriseConfig.Builder

This builder for chaining.

clearAppSlug()

public GitHubEnterpriseConfig.Builder clearAppSlug()

The URL-friendly name of the GitHub App.

string app_slug = 13;

Returns
Type Description
GitHubEnterpriseConfig.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearHostUri()

public GitHubEnterpriseConfig.Builder clearHostUri()

Required. The URI of the GitHub Enterprise host this connection is for.

string host_uri = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
GitHubEnterpriseConfig.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearPrivateKeySecretVersion()

public GitHubEnterpriseConfig.Builder clearPrivateKeySecretVersion()

SecretManager resource containing the private key of the GitHub App, formatted as projects/*/secrets/*/versions/*.

string private_key_secret_version = 4 [(.google.api.resource_reference) = { ... }

Returns
Type Description
GitHubEnterpriseConfig.Builder

This builder for chaining.

clearServerVersion()

public GitHubEnterpriseConfig.Builder clearServerVersion()

Output only. GitHub Enterprise version installed at the host_uri.

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

Returns
Type Description
GitHubEnterpriseConfig.Builder

This builder for chaining.

clearServiceDirectoryConfig()

public GitHubEnterpriseConfig.Builder clearServiceDirectoryConfig()

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

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

Returns
Type Description
GitHubEnterpriseConfig.Builder

clearSslCa()

public GitHubEnterpriseConfig.Builder clearSslCa()

SSL certificate to use for requests to GitHub Enterprise.

string ssl_ca = 11;

Returns
Type Description
GitHubEnterpriseConfig.Builder

This builder for chaining.

clearWebhookSecretSecretVersion()

public GitHubEnterpriseConfig.Builder clearWebhookSecretSecretVersion()

SecretManager resource containing the webhook secret of the GitHub App, formatted as projects/*/secrets/*/versions/*.

string webhook_secret_secret_version = 5 [(.google.api.resource_reference) = { ... }

Returns
Type Description
GitHubEnterpriseConfig.Builder

This builder for chaining.

clone()

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

getApiKey()

public String getApiKey()

Required. API Key used for authentication of webhook events.

string api_key = 12 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The apiKey.

getApiKeyBytes()

public ByteString getApiKeyBytes()

Required. API Key used for authentication of webhook events.

string api_key = 12 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for apiKey.

getAppId()

public long getAppId()

Id of the GitHub App created from the manifest.

int64 app_id = 2;

Returns
Type Description
long

The appId.

getAppInstallationId()

public long getAppInstallationId()

ID of the installation of the GitHub App.

int64 app_installation_id = 9;

Returns
Type Description
long

The appInstallationId.

getAppSlug()

public String getAppSlug()

The URL-friendly name of the GitHub App.

string app_slug = 13;

Returns
Type Description
String

The appSlug.

getAppSlugBytes()

public ByteString getAppSlugBytes()

The URL-friendly name of the GitHub App.

string app_slug = 13;

Returns
Type Description
ByteString

The bytes for appSlug.

getDefaultInstanceForType()

public GitHubEnterpriseConfig getDefaultInstanceForType()
Returns
Type Description
GitHubEnterpriseConfig

getDescriptorForType()

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

getHostUri()

public String getHostUri()

Required. The URI of the GitHub Enterprise host this connection is for.

string host_uri = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The hostUri.

getHostUriBytes()

public ByteString getHostUriBytes()

Required. The URI of the GitHub Enterprise host this connection is for.

string host_uri = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for hostUri.

getPrivateKeySecretVersion()

public String getPrivateKeySecretVersion()

SecretManager resource containing the private key of the GitHub App, formatted as projects/*/secrets/*/versions/*.

string private_key_secret_version = 4 [(.google.api.resource_reference) = { ... }

Returns
Type Description
String

The privateKeySecretVersion.

getPrivateKeySecretVersionBytes()

public ByteString getPrivateKeySecretVersionBytes()

SecretManager resource containing the private key of the GitHub App, formatted as projects/*/secrets/*/versions/*.

string private_key_secret_version = 4 [(.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for privateKeySecretVersion.

getServerVersion()

public String getServerVersion()

Output only. GitHub Enterprise version installed at the host_uri.

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

Returns
Type Description
String

The serverVersion.

getServerVersionBytes()

public ByteString getServerVersionBytes()

Output only. GitHub Enterprise version installed at the host_uri.

string server_version = 14 [(.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 GitHub Enterprise server. This should only be set if the GitHub Enterprise server is hosted on-premises and not reachable by public internet. If this field is left empty, calls to the GitHub Enterprise server will be made over the public internet.

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

Returns
Type Description
ServiceDirectoryConfig

The serviceDirectoryConfig.

getServiceDirectoryConfigBuilder()

public ServiceDirectoryConfig.Builder getServiceDirectoryConfigBuilder()

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

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

Returns
Type Description
ServiceDirectoryConfig.Builder

getServiceDirectoryConfigOrBuilder()

public ServiceDirectoryConfigOrBuilder getServiceDirectoryConfigOrBuilder()

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

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

Returns
Type Description
ServiceDirectoryConfigOrBuilder

getSslCa()

public String getSslCa()

SSL certificate to use for requests to GitHub Enterprise.

string ssl_ca = 11;

Returns
Type Description
String

The sslCa.

getSslCaBytes()

public ByteString getSslCaBytes()

SSL certificate to use for requests to GitHub Enterprise.

string ssl_ca = 11;

Returns
Type Description
ByteString

The bytes for sslCa.

getWebhookSecretSecretVersion()

public String getWebhookSecretSecretVersion()

SecretManager resource containing the webhook secret of the GitHub App, formatted as projects/*/secrets/*/versions/*.

string webhook_secret_secret_version = 5 [(.google.api.resource_reference) = { ... }

Returns
Type Description
String

The webhookSecretSecretVersion.

getWebhookSecretSecretVersionBytes()

public ByteString getWebhookSecretSecretVersionBytes()

SecretManager resource containing the webhook secret of the GitHub App, formatted as projects/*/secrets/*/versions/*.

string webhook_secret_secret_version = 5 [(.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for webhookSecretSecretVersion.

hasServiceDirectoryConfig()

public boolean hasServiceDirectoryConfig()

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

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

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

mergeFrom(GitHubEnterpriseConfig other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeServiceDirectoryConfig(ServiceDirectoryConfig value)

public GitHubEnterpriseConfig.Builder mergeServiceDirectoryConfig(ServiceDirectoryConfig value)

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

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

Parameter
Name Description
value ServiceDirectoryConfig
Returns
Type Description
GitHubEnterpriseConfig.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setApiKey(String value)

public GitHubEnterpriseConfig.Builder setApiKey(String value)

Required. API Key used for authentication of webhook events.

string api_key = 12 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The apiKey to set.

Returns
Type Description
GitHubEnterpriseConfig.Builder

This builder for chaining.

setApiKeyBytes(ByteString value)

public GitHubEnterpriseConfig.Builder setApiKeyBytes(ByteString value)

Required. API Key used for authentication of webhook events.

string api_key = 12 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for apiKey to set.

Returns
Type Description
GitHubEnterpriseConfig.Builder

This builder for chaining.

setAppId(long value)

public GitHubEnterpriseConfig.Builder setAppId(long value)

Id of the GitHub App created from the manifest.

int64 app_id = 2;

Parameter
Name Description
value long

The appId to set.

Returns
Type Description
GitHubEnterpriseConfig.Builder

This builder for chaining.

setAppInstallationId(long value)

public GitHubEnterpriseConfig.Builder setAppInstallationId(long value)

ID of the installation of the GitHub App.

int64 app_installation_id = 9;

Parameter
Name Description
value long

The appInstallationId to set.

Returns
Type Description
GitHubEnterpriseConfig.Builder

This builder for chaining.

setAppSlug(String value)

public GitHubEnterpriseConfig.Builder setAppSlug(String value)

The URL-friendly name of the GitHub App.

string app_slug = 13;

Parameter
Name Description
value String

The appSlug to set.

Returns
Type Description
GitHubEnterpriseConfig.Builder

This builder for chaining.

setAppSlugBytes(ByteString value)

public GitHubEnterpriseConfig.Builder setAppSlugBytes(ByteString value)

The URL-friendly name of the GitHub App.

string app_slug = 13;

Parameter
Name Description
value ByteString

The bytes for appSlug to set.

Returns
Type Description
GitHubEnterpriseConfig.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setHostUri(String value)

public GitHubEnterpriseConfig.Builder setHostUri(String value)

Required. The URI of the GitHub Enterprise host this connection is for.

string host_uri = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The hostUri to set.

Returns
Type Description
GitHubEnterpriseConfig.Builder

This builder for chaining.

setHostUriBytes(ByteString value)

public GitHubEnterpriseConfig.Builder setHostUriBytes(ByteString value)

Required. The URI of the GitHub Enterprise host this connection is for.

string host_uri = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for hostUri to set.

Returns
Type Description
GitHubEnterpriseConfig.Builder

This builder for chaining.

setPrivateKeySecretVersion(String value)

public GitHubEnterpriseConfig.Builder setPrivateKeySecretVersion(String value)

SecretManager resource containing the private key of the GitHub App, formatted as projects/*/secrets/*/versions/*.

string private_key_secret_version = 4 [(.google.api.resource_reference) = { ... }

Parameter
Name Description
value String

The privateKeySecretVersion to set.

Returns
Type Description
GitHubEnterpriseConfig.Builder

This builder for chaining.

setPrivateKeySecretVersionBytes(ByteString value)

public GitHubEnterpriseConfig.Builder setPrivateKeySecretVersionBytes(ByteString value)

SecretManager resource containing the private key of the GitHub App, formatted as projects/*/secrets/*/versions/*.

string private_key_secret_version = 4 [(.google.api.resource_reference) = { ... }

Parameter
Name Description
value ByteString

The bytes for privateKeySecretVersion to set.

Returns
Type Description
GitHubEnterpriseConfig.Builder

This builder for chaining.

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

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

setServerVersion(String value)

public GitHubEnterpriseConfig.Builder setServerVersion(String value)

Output only. GitHub Enterprise version installed at the host_uri.

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

Parameter
Name Description
value String

The serverVersion to set.

Returns
Type Description
GitHubEnterpriseConfig.Builder

This builder for chaining.

setServerVersionBytes(ByteString value)

public GitHubEnterpriseConfig.Builder setServerVersionBytes(ByteString value)

Output only. GitHub Enterprise version installed at the host_uri.

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

Parameter
Name Description
value ByteString

The bytes for serverVersion to set.

Returns
Type Description
GitHubEnterpriseConfig.Builder

This builder for chaining.

setServiceDirectoryConfig(ServiceDirectoryConfig value)

public GitHubEnterpriseConfig.Builder setServiceDirectoryConfig(ServiceDirectoryConfig value)

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

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

Parameter
Name Description
value ServiceDirectoryConfig
Returns
Type Description
GitHubEnterpriseConfig.Builder

setServiceDirectoryConfig(ServiceDirectoryConfig.Builder builderForValue)

public GitHubEnterpriseConfig.Builder setServiceDirectoryConfig(ServiceDirectoryConfig.Builder builderForValue)

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

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

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

setSslCa(String value)

public GitHubEnterpriseConfig.Builder setSslCa(String value)

SSL certificate to use for requests to GitHub Enterprise.

string ssl_ca = 11;

Parameter
Name Description
value String

The sslCa to set.

Returns
Type Description
GitHubEnterpriseConfig.Builder

This builder for chaining.

setSslCaBytes(ByteString value)

public GitHubEnterpriseConfig.Builder setSslCaBytes(ByteString value)

SSL certificate to use for requests to GitHub Enterprise.

string ssl_ca = 11;

Parameter
Name Description
value ByteString

The bytes for sslCa to set.

Returns
Type Description
GitHubEnterpriseConfig.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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

setWebhookSecretSecretVersion(String value)

public GitHubEnterpriseConfig.Builder setWebhookSecretSecretVersion(String value)

SecretManager resource containing the webhook secret of the GitHub App, formatted as projects/*/secrets/*/versions/*.

string webhook_secret_secret_version = 5 [(.google.api.resource_reference) = { ... }

Parameter
Name Description
value String

The webhookSecretSecretVersion to set.

Returns
Type Description
GitHubEnterpriseConfig.Builder

This builder for chaining.

setWebhookSecretSecretVersionBytes(ByteString value)

public GitHubEnterpriseConfig.Builder setWebhookSecretSecretVersionBytes(ByteString value)

SecretManager resource containing the webhook secret of the GitHub App, formatted as projects/*/secrets/*/versions/*.

string webhook_secret_secret_version = 5 [(.google.api.resource_reference) = { ... }

Parameter
Name Description
value ByteString

The bytes for webhookSecretSecretVersion to set.

Returns
Type Description
GitHubEnterpriseConfig.Builder

This builder for chaining.