Class GitHubEnterpriseConfig.Builder (3.39.0)

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

Protobuf type google.devtools.cloudbuild.v1.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

clearAppId()

public GitHubEnterpriseConfig.Builder clearAppId()

Required. The GitHub app id of the Cloud Build app on the GitHub Enterprise server.

int64 app_id = 4 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
GitHubEnterpriseConfig.Builder

This builder for chaining.

clearCreateTime()

public GitHubEnterpriseConfig.Builder clearCreateTime()

Output only. Time when the installation was associated with the project.

.google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
GitHubEnterpriseConfig.Builder

clearDisplayName()

public GitHubEnterpriseConfig.Builder clearDisplayName()

Name to display for this config.

string display_name = 11;

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

clearHostUrl()

public GitHubEnterpriseConfig.Builder clearHostUrl()

The URL of the github enterprise host the configuration is for.

string host_url = 3;

Returns
TypeDescription
GitHubEnterpriseConfig.Builder

This builder for chaining.

clearName()

public GitHubEnterpriseConfig.Builder clearName()

Optional. The full resource name for the GitHubEnterpriseConfig For example: "projects/{$project_id}/locations/{$location_id}/githubEnterpriseConfigs/{$config_id}"

string name = 7 [(.google.api.field_behavior) = OPTIONAL];

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

clearPeeredNetwork()

public GitHubEnterpriseConfig.Builder clearPeeredNetwork()

Optional. The network to be used when reaching out to the GitHub Enterprise server. The VPC network must be enabled for private service connection. This should be set if the GitHub Enterprise server is hosted on-premises and not reachable by public internet. If this field is left empty, no network peering will occur and calls to the GitHub Enterprise server will be made over the public internet. Must be in the format projects/{project}/global/networks/{network}, where {project} is a project number or id and {network} is the name of a VPC network in the project.

string peered_network = 9 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
GitHubEnterpriseConfig.Builder

This builder for chaining.

clearSecrets()

public GitHubEnterpriseConfig.Builder clearSecrets()

Names of secrets in Secret Manager.

.google.devtools.cloudbuild.v1.GitHubEnterpriseSecrets secrets = 10;

Returns
TypeDescription
GitHubEnterpriseConfig.Builder

clearSslCa()

public GitHubEnterpriseConfig.Builder clearSslCa()

Optional. SSL certificate to use for requests to GitHub Enterprise.

string ssl_ca = 12 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
GitHubEnterpriseConfig.Builder

This builder for chaining.

clearWebhookKey()

public GitHubEnterpriseConfig.Builder clearWebhookKey()

The key that should be attached to webhook calls to the ReceiveWebhook endpoint.

string webhook_key = 8;

Returns
TypeDescription
GitHubEnterpriseConfig.Builder

This builder for chaining.

clone()

public GitHubEnterpriseConfig.Builder clone()
Returns
TypeDescription
GitHubEnterpriseConfig.Builder
Overrides

getAppId()

public long getAppId()

Required. The GitHub app id of the Cloud Build app on the GitHub Enterprise server.

int64 app_id = 4 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
long

The appId.

getCreateTime()

public Timestamp getCreateTime()

Output only. Time when the installation was associated with the project.

.google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Timestamp

The createTime.

getCreateTimeBuilder()

public Timestamp.Builder getCreateTimeBuilder()

Output only. Time when the installation was associated with the project.

.google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Builder

getCreateTimeOrBuilder()

public TimestampOrBuilder getCreateTimeOrBuilder()

Output only. Time when the installation was associated with the project.

.google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
TimestampOrBuilder

getDefaultInstanceForType()

public GitHubEnterpriseConfig getDefaultInstanceForType()
Returns
TypeDescription
GitHubEnterpriseConfig

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getDisplayName()

public String getDisplayName()

Name to display for this config.

string display_name = 11;

Returns
TypeDescription
String

The displayName.

getDisplayNameBytes()

public ByteString getDisplayNameBytes()

Name to display for this config.

string display_name = 11;

Returns
TypeDescription
ByteString

The bytes for displayName.

getHostUrl()

public String getHostUrl()

The URL of the github enterprise host the configuration is for.

string host_url = 3;

Returns
TypeDescription
String

The hostUrl.

getHostUrlBytes()

public ByteString getHostUrlBytes()

The URL of the github enterprise host the configuration is for.

string host_url = 3;

Returns
TypeDescription
ByteString

The bytes for hostUrl.

getName()

public String getName()

Optional. The full resource name for the GitHubEnterpriseConfig For example: "projects/{$project_id}/locations/{$location_id}/githubEnterpriseConfigs/{$config_id}"

string name = 7 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

Optional. The full resource name for the GitHubEnterpriseConfig For example: "projects/{$project_id}/locations/{$location_id}/githubEnterpriseConfigs/{$config_id}"

string name = 7 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
ByteString

The bytes for name.

getPeeredNetwork()

public String getPeeredNetwork()

Optional. The network to be used when reaching out to the GitHub Enterprise server. The VPC network must be enabled for private service connection. This should be set if the GitHub Enterprise server is hosted on-premises and not reachable by public internet. If this field is left empty, no network peering will occur and calls to the GitHub Enterprise server will be made over the public internet. Must be in the format projects/{project}/global/networks/{network}, where {project} is a project number or id and {network} is the name of a VPC network in the project.

string peered_network = 9 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
String

The peeredNetwork.

getPeeredNetworkBytes()

public ByteString getPeeredNetworkBytes()

Optional. The network to be used when reaching out to the GitHub Enterprise server. The VPC network must be enabled for private service connection. This should be set if the GitHub Enterprise server is hosted on-premises and not reachable by public internet. If this field is left empty, no network peering will occur and calls to the GitHub Enterprise server will be made over the public internet. Must be in the format projects/{project}/global/networks/{network}, where {project} is a project number or id and {network} is the name of a VPC network in the project.

string peered_network = 9 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
ByteString

The bytes for peeredNetwork.

getSecrets()

public GitHubEnterpriseSecrets getSecrets()

Names of secrets in Secret Manager.

.google.devtools.cloudbuild.v1.GitHubEnterpriseSecrets secrets = 10;

Returns
TypeDescription
GitHubEnterpriseSecrets

The secrets.

getSecretsBuilder()

public GitHubEnterpriseSecrets.Builder getSecretsBuilder()

Names of secrets in Secret Manager.

.google.devtools.cloudbuild.v1.GitHubEnterpriseSecrets secrets = 10;

Returns
TypeDescription
GitHubEnterpriseSecrets.Builder

getSecretsOrBuilder()

public GitHubEnterpriseSecretsOrBuilder getSecretsOrBuilder()

Names of secrets in Secret Manager.

.google.devtools.cloudbuild.v1.GitHubEnterpriseSecrets secrets = 10;

Returns
TypeDescription
GitHubEnterpriseSecretsOrBuilder

getSslCa()

public String getSslCa()

Optional. SSL certificate to use for requests to GitHub Enterprise.

string ssl_ca = 12 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
String

The sslCa.

getSslCaBytes()

public ByteString getSslCaBytes()

Optional. SSL certificate to use for requests to GitHub Enterprise.

string ssl_ca = 12 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
ByteString

The bytes for sslCa.

getWebhookKey()

public String getWebhookKey()

The key that should be attached to webhook calls to the ReceiveWebhook endpoint.

string webhook_key = 8;

Returns
TypeDescription
String

The webhookKey.

getWebhookKeyBytes()

public ByteString getWebhookKeyBytes()

The key that should be attached to webhook calls to the ReceiveWebhook endpoint.

string webhook_key = 8;

Returns
TypeDescription
ByteString

The bytes for webhookKey.

hasCreateTime()

public boolean hasCreateTime()

Output only. Time when the installation was associated with the project.

.google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
boolean

Whether the createTime field is set.

hasSecrets()

public boolean hasSecrets()

Names of secrets in Secret Manager.

.google.devtools.cloudbuild.v1.GitHubEnterpriseSecrets secrets = 10;

Returns
TypeDescription
boolean

Whether the secrets field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeCreateTime(Timestamp value)

public GitHubEnterpriseConfig.Builder mergeCreateTime(Timestamp value)

Output only. Time when the installation was associated with the project.

.google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
GitHubEnterpriseConfig.Builder

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

mergeSecrets(GitHubEnterpriseSecrets value)

public GitHubEnterpriseConfig.Builder mergeSecrets(GitHubEnterpriseSecrets value)

Names of secrets in Secret Manager.

.google.devtools.cloudbuild.v1.GitHubEnterpriseSecrets secrets = 10;

Parameter
NameDescription
valueGitHubEnterpriseSecrets
Returns
TypeDescription
GitHubEnterpriseConfig.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final GitHubEnterpriseConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
GitHubEnterpriseConfig.Builder
Overrides

setAppId(long value)

public GitHubEnterpriseConfig.Builder setAppId(long value)

Required. The GitHub app id of the Cloud Build app on the GitHub Enterprise server.

int64 app_id = 4 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valuelong

The appId to set.

Returns
TypeDescription
GitHubEnterpriseConfig.Builder

This builder for chaining.

setCreateTime(Timestamp value)

public GitHubEnterpriseConfig.Builder setCreateTime(Timestamp value)

Output only. Time when the installation was associated with the project.

.google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
GitHubEnterpriseConfig.Builder

setCreateTime(Timestamp.Builder builderForValue)

public GitHubEnterpriseConfig.Builder setCreateTime(Timestamp.Builder builderForValue)

Output only. Time when the installation was associated with the project.

.google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
GitHubEnterpriseConfig.Builder

setDisplayName(String value)

public GitHubEnterpriseConfig.Builder setDisplayName(String value)

Name to display for this config.

string display_name = 11;

Parameter
NameDescription
valueString

The displayName to set.

Returns
TypeDescription
GitHubEnterpriseConfig.Builder

This builder for chaining.

setDisplayNameBytes(ByteString value)

public GitHubEnterpriseConfig.Builder setDisplayNameBytes(ByteString value)

Name to display for this config.

string display_name = 11;

Parameter
NameDescription
valueByteString

The bytes for displayName 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

setHostUrl(String value)

public GitHubEnterpriseConfig.Builder setHostUrl(String value)

The URL of the github enterprise host the configuration is for.

string host_url = 3;

Parameter
NameDescription
valueString

The hostUrl to set.

Returns
TypeDescription
GitHubEnterpriseConfig.Builder

This builder for chaining.

setHostUrlBytes(ByteString value)

public GitHubEnterpriseConfig.Builder setHostUrlBytes(ByteString value)

The URL of the github enterprise host the configuration is for.

string host_url = 3;

Parameter
NameDescription
valueByteString

The bytes for hostUrl to set.

Returns
TypeDescription
GitHubEnterpriseConfig.Builder

This builder for chaining.

setName(String value)

public GitHubEnterpriseConfig.Builder setName(String value)

Optional. The full resource name for the GitHubEnterpriseConfig For example: "projects/{$project_id}/locations/{$location_id}/githubEnterpriseConfigs/{$config_id}"

string name = 7 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueString

The name to set.

Returns
TypeDescription
GitHubEnterpriseConfig.Builder

This builder for chaining.

setNameBytes(ByteString value)

public GitHubEnterpriseConfig.Builder setNameBytes(ByteString value)

Optional. The full resource name for the GitHubEnterpriseConfig For example: "projects/{$project_id}/locations/{$location_id}/githubEnterpriseConfigs/{$config_id}"

string name = 7 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
GitHubEnterpriseConfig.Builder

This builder for chaining.

setPeeredNetwork(String value)

public GitHubEnterpriseConfig.Builder setPeeredNetwork(String value)

Optional. The network to be used when reaching out to the GitHub Enterprise server. The VPC network must be enabled for private service connection. This should be set if the GitHub Enterprise server is hosted on-premises and not reachable by public internet. If this field is left empty, no network peering will occur and calls to the GitHub Enterprise server will be made over the public internet. Must be in the format projects/{project}/global/networks/{network}, where {project} is a project number or id and {network} is the name of a VPC network in the project.

string peered_network = 9 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Parameter
NameDescription
valueString

The peeredNetwork to set.

Returns
TypeDescription
GitHubEnterpriseConfig.Builder

This builder for chaining.

setPeeredNetworkBytes(ByteString value)

public GitHubEnterpriseConfig.Builder setPeeredNetworkBytes(ByteString value)

Optional. The network to be used when reaching out to the GitHub Enterprise server. The VPC network must be enabled for private service connection. This should be set if the GitHub Enterprise server is hosted on-premises and not reachable by public internet. If this field is left empty, no network peering will occur and calls to the GitHub Enterprise server will be made over the public internet. Must be in the format projects/{project}/global/networks/{network}, where {project} is a project number or id and {network} is the name of a VPC network in the project.

string peered_network = 9 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Parameter
NameDescription
valueByteString

The bytes for peeredNetwork 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

setSecrets(GitHubEnterpriseSecrets value)

public GitHubEnterpriseConfig.Builder setSecrets(GitHubEnterpriseSecrets value)

Names of secrets in Secret Manager.

.google.devtools.cloudbuild.v1.GitHubEnterpriseSecrets secrets = 10;

Parameter
NameDescription
valueGitHubEnterpriseSecrets
Returns
TypeDescription
GitHubEnterpriseConfig.Builder

setSecrets(GitHubEnterpriseSecrets.Builder builderForValue)

public GitHubEnterpriseConfig.Builder setSecrets(GitHubEnterpriseSecrets.Builder builderForValue)

Names of secrets in Secret Manager.

.google.devtools.cloudbuild.v1.GitHubEnterpriseSecrets secrets = 10;

Parameter
NameDescription
builderForValueGitHubEnterpriseSecrets.Builder
Returns
TypeDescription
GitHubEnterpriseConfig.Builder

setSslCa(String value)

public GitHubEnterpriseConfig.Builder setSslCa(String value)

Optional. SSL certificate to use for requests to GitHub Enterprise.

string ssl_ca = 12 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueString

The sslCa to set.

Returns
TypeDescription
GitHubEnterpriseConfig.Builder

This builder for chaining.

setSslCaBytes(ByteString value)

public GitHubEnterpriseConfig.Builder setSslCaBytes(ByteString value)

Optional. SSL certificate to use for requests to GitHub Enterprise.

string ssl_ca = 12 [(.google.api.field_behavior) = OPTIONAL];

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

setWebhookKey(String value)

public GitHubEnterpriseConfig.Builder setWebhookKey(String value)

The key that should be attached to webhook calls to the ReceiveWebhook endpoint.

string webhook_key = 8;

Parameter
NameDescription
valueString

The webhookKey to set.

Returns
TypeDescription
GitHubEnterpriseConfig.Builder

This builder for chaining.

setWebhookKeyBytes(ByteString value)

public GitHubEnterpriseConfig.Builder setWebhookKeyBytes(ByteString value)

The key that should be attached to webhook calls to the ReceiveWebhook endpoint.

string webhook_key = 8;

Parameter
NameDescription
valueByteString

The bytes for webhookKey to set.

Returns
TypeDescription
GitHubEnterpriseConfig.Builder

This builder for chaining.