Class GitHubEnterpriseConfig.Builder (3.22.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public GitHubEnterpriseConfig build()
Returns
TypeDescription
GitHubEnterpriseConfig

buildPartial()

public GitHubEnterpriseConfig buildPartial()
Returns
TypeDescription
GitHubEnterpriseConfig

clear()

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

This builder for chaining.

clearAppSlug()

public GitHubEnterpriseConfig.Builder clearAppSlug()

The URL-friendly name of the GitHub App.

string app_slug = 13;

Returns
TypeDescription
GitHubEnterpriseConfig.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearSslCa()

public GitHubEnterpriseConfig.Builder clearSslCa()

SSL certificate to use for requests to GitHub Enterprise.

string ssl_ca = 11;

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

This builder for chaining.

clone()

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

The bytes for apiKey.

getAppId()

public long getAppId()

Id of the GitHub App created from the manifest.

int64 app_id = 2;

Returns
TypeDescription
long

The appId.

getAppInstallationId()

public long getAppInstallationId()

ID of the installation of the GitHub App.

int64 app_installation_id = 9;

Returns
TypeDescription
long

The appInstallationId.

getAppSlug()

public String getAppSlug()

The URL-friendly name of the GitHub App.

string app_slug = 13;

Returns
TypeDescription
String

The appSlug.

getAppSlugBytes()

public ByteString getAppSlugBytes()

The URL-friendly name of the GitHub App.

string app_slug = 13;

Returns
TypeDescription
ByteString

The bytes for appSlug.

getDefaultInstanceForType()

public GitHubEnterpriseConfig getDefaultInstanceForType()
Returns
TypeDescription
GitHubEnterpriseConfig

getDescriptorForType()

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

getSslCa()

public String getSslCa()

SSL certificate to use for requests to GitHub Enterprise.

string ssl_ca = 11;

Returns
TypeDescription
String

The sslCa.

getSslCaBytes()

public ByteString getSslCaBytes()

SSL certificate to use for requests to GitHub Enterprise.

string ssl_ca = 11;

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

mergeFrom(GitHubEnterpriseConfig other)

public GitHubEnterpriseConfig.Builder mergeFrom(GitHubEnterpriseConfig other)
Parameter
NameDescription
otherGitHubEnterpriseConfig
Returns
TypeDescription
GitHubEnterpriseConfig.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

The apiKey to set.

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

The bytes for apiKey to set.

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

The appId to set.

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

The appInstallationId to set.

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

The appSlug to set.

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

The bytes for appSlug to set.

Returns
TypeDescription
GitHubEnterpriseConfig.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

The hostUri to set.

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

The bytes for hostUri to set.

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

The privateKeySecretVersion to set.

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

The bytes for privateKeySecretVersion to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The serverVersion to set.

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

The bytes for serverVersion to set.

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

The sslCa to set.

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

The bytes for sslCa to set.

Returns
TypeDescription
GitHubEnterpriseConfig.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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

The webhookSecretSecretVersion to set.

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

The bytes for webhookSecretSecretVersion to set.

Returns
TypeDescription
GitHubEnterpriseConfig.Builder

This builder for chaining.