Package com.google.cloudbuild.v1
Class GitHubEnterpriseConfig.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<GitHubEnterpriseConfig.Builder>
com.google.cloudbuild.v1.GitHubEnterpriseConfig.Builder
- All Implemented Interfaces:
GitHubEnterpriseConfigOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- GitHubEnterpriseConfig
public static final class GitHubEnterpriseConfig.Builder
extends com.google.protobuf.GeneratedMessage.Builder<GitHubEnterpriseConfig.Builder>
implements GitHubEnterpriseConfigOrBuilder
GitHubEnterpriseConfig represents a configuration for a GitHub Enterprise server.Protobuf type
google.devtools.cloudbuild.v1.GitHubEnterpriseConfig-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()Required.Output only.Optional.The URL of the github enterprise host the configuration is for.The full resource name for the GitHubEnterpriseConfig For example: "projects/{$project_id}/locations/{$location_id}/githubEnterpriseConfigs/{$config_id}"Optional.Optional.Optional.The key that should be attached to webhook calls to the ReceiveWebhook endpoint.longgetAppId()Required.com.google.protobuf.TimestampOutput only.com.google.protobuf.Timestamp.BuilderOutput only.com.google.protobuf.TimestampOrBuilderOutput only.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorOptional.com.google.protobuf.ByteStringOptional.The URL of the github enterprise host the configuration is for.com.google.protobuf.ByteStringThe URL of the github enterprise host the configuration is for.getName()The full resource name for the GitHubEnterpriseConfig For example: "projects/{$project_id}/locations/{$location_id}/githubEnterpriseConfigs/{$config_id}"com.google.protobuf.ByteStringThe full resource name for the GitHubEnterpriseConfig For example: "projects/{$project_id}/locations/{$location_id}/githubEnterpriseConfigs/{$config_id}"Optional.com.google.protobuf.ByteStringOptional.Optional.Optional.Optional.getSslCa()Optional.com.google.protobuf.ByteStringOptional.The key that should be attached to webhook calls to the ReceiveWebhook endpoint.com.google.protobuf.ByteStringThe key that should be attached to webhook calls to the ReceiveWebhook endpoint.booleanOutput only.booleanOptional.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeCreateTime(com.google.protobuf.Timestamp value) Output only.mergeFrom(GitHubEnterpriseConfig other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) Optional.setAppId(long value) Required.setCreateTime(com.google.protobuf.Timestamp value) Output only.setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) Output only.setDisplayName(String value) Optional.setDisplayNameBytes(com.google.protobuf.ByteString value) Optional.setHostUrl(String value) The URL of the github enterprise host the configuration is for.setHostUrlBytes(com.google.protobuf.ByteString value) The URL of the github enterprise host the configuration is for.The full resource name for the GitHubEnterpriseConfig For example: "projects/{$project_id}/locations/{$location_id}/githubEnterpriseConfigs/{$config_id}"setNameBytes(com.google.protobuf.ByteString value) The full resource name for the GitHubEnterpriseConfig For example: "projects/{$project_id}/locations/{$location_id}/githubEnterpriseConfigs/{$config_id}"setPeeredNetwork(String value) Optional.setPeeredNetworkBytes(com.google.protobuf.ByteString value) Optional.Optional.setSecrets(GitHubEnterpriseSecrets.Builder builderForValue) Optional.Optional.setSslCaBytes(com.google.protobuf.ByteString value) Optional.setWebhookKey(String value) The key that should be attached to webhook calls to the ReceiveWebhook endpoint.setWebhookKeyBytes(com.google.protobuf.ByteString value) The key that should be attached to webhook calls to the ReceiveWebhook endpoint.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<GitHubEnterpriseConfig.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<GitHubEnterpriseConfig.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<GitHubEnterpriseConfig.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<GitHubEnterpriseConfig.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<GitHubEnterpriseConfig.Builder>
-
mergeFrom
public GitHubEnterpriseConfig.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<GitHubEnterpriseConfig.Builder>- Throws:
IOException
-
getName
The full resource name for the GitHubEnterpriseConfig For example: "projects/{$project_id}/locations/{$location_id}/githubEnterpriseConfigs/{$config_id}"string name = 7;- Specified by:
getNamein interfaceGitHubEnterpriseConfigOrBuilder- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()The full resource name for the GitHubEnterpriseConfig For example: "projects/{$project_id}/locations/{$location_id}/githubEnterpriseConfigs/{$config_id}"string name = 7;- Specified by:
getNameBytesin interfaceGitHubEnterpriseConfigOrBuilder- Returns:
- The bytes for name.
-
setName
The full resource name for the GitHubEnterpriseConfig For example: "projects/{$project_id}/locations/{$location_id}/githubEnterpriseConfigs/{$config_id}"string name = 7;- Parameters:
value- The name to set.- Returns:
- This builder for chaining.
-
clearName
The full resource name for the GitHubEnterpriseConfig For example: "projects/{$project_id}/locations/{$location_id}/githubEnterpriseConfigs/{$config_id}"string name = 7;- Returns:
- This builder for chaining.
-
setNameBytes
The full resource name for the GitHubEnterpriseConfig For example: "projects/{$project_id}/locations/{$location_id}/githubEnterpriseConfigs/{$config_id}"string name = 7;- Parameters:
value- The bytes for name to set.- Returns:
- This builder for chaining.
-
getHostUrl
The URL of the github enterprise host the configuration is for.
string host_url = 3;- Specified by:
getHostUrlin interfaceGitHubEnterpriseConfigOrBuilder- Returns:
- The hostUrl.
-
getHostUrlBytes
public com.google.protobuf.ByteString getHostUrlBytes()The URL of the github enterprise host the configuration is for.
string host_url = 3;- Specified by:
getHostUrlBytesin interfaceGitHubEnterpriseConfigOrBuilder- Returns:
- The bytes for hostUrl.
-
setHostUrl
The URL of the github enterprise host the configuration is for.
string host_url = 3;- Parameters:
value- The hostUrl to set.- Returns:
- This builder for chaining.
-
clearHostUrl
The URL of the github enterprise host the configuration is for.
string host_url = 3;- Returns:
- This builder for chaining.
-
setHostUrlBytes
The URL of the github enterprise host the configuration is for.
string host_url = 3;- Parameters:
value- The bytes for hostUrl to set.- Returns:
- This builder for chaining.
-
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];- Specified by:
getAppIdin interfaceGitHubEnterpriseConfigOrBuilder- Returns:
- The appId.
-
setAppId
Required. The GitHub app id of the Cloud Build app on the GitHub Enterprise server.
int64 app_id = 4 [(.google.api.field_behavior) = REQUIRED];- Parameters:
value- The appId to set.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-
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];- Specified by:
hasCreateTimein interfaceGitHubEnterpriseConfigOrBuilder- Returns:
- Whether the createTime field is set.
-
getCreateTime
public com.google.protobuf.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];- Specified by:
getCreateTimein interfaceGitHubEnterpriseConfigOrBuilder- Returns:
- The createTime.
-
setCreateTime
Output only. Time when the installation was associated with the project.
.google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
setCreateTime
public GitHubEnterpriseConfig.Builder setCreateTime(com.google.protobuf.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]; -
mergeCreateTime
Output only. Time when the installation was associated with the project.
.google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
clearCreateTime
Output only. Time when the installation was associated with the project.
.google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
getCreateTimeBuilder
public com.google.protobuf.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]; -
getCreateTimeOrBuilder
public com.google.protobuf.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];- Specified by:
getCreateTimeOrBuilderin interfaceGitHubEnterpriseConfigOrBuilder
-
getWebhookKey
The key that should be attached to webhook calls to the ReceiveWebhook endpoint.
string webhook_key = 8;- Specified by:
getWebhookKeyin interfaceGitHubEnterpriseConfigOrBuilder- Returns:
- The webhookKey.
-
getWebhookKeyBytes
public com.google.protobuf.ByteString getWebhookKeyBytes()The key that should be attached to webhook calls to the ReceiveWebhook endpoint.
string webhook_key = 8;- Specified by:
getWebhookKeyBytesin interfaceGitHubEnterpriseConfigOrBuilder- Returns:
- The bytes for webhookKey.
-
setWebhookKey
The key that should be attached to webhook calls to the ReceiveWebhook endpoint.
string webhook_key = 8;- Parameters:
value- The webhookKey to set.- Returns:
- This builder for chaining.
-
clearWebhookKey
The key that should be attached to webhook calls to the ReceiveWebhook endpoint.
string webhook_key = 8;- Returns:
- This builder for chaining.
-
setWebhookKeyBytes
The key that should be attached to webhook calls to the ReceiveWebhook endpoint.
string webhook_key = 8;- Parameters:
value- The bytes for webhookKey to set.- Returns:
- This builder for chaining.
-
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) = { ... }- Specified by:
getPeeredNetworkin interfaceGitHubEnterpriseConfigOrBuilder- Returns:
- The peeredNetwork.
-
getPeeredNetworkBytes
public com.google.protobuf.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) = { ... }- Specified by:
getPeeredNetworkBytesin interfaceGitHubEnterpriseConfigOrBuilder- Returns:
- The bytes for peeredNetwork.
-
setPeeredNetwork
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) = { ... }- Parameters:
value- The peeredNetwork to set.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-
setPeeredNetworkBytes
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) = { ... }- Parameters:
value- The bytes for peeredNetwork to set.- Returns:
- This builder for chaining.
-
hasSecrets
public boolean hasSecrets()Optional. Names of secrets in Secret Manager.
.google.devtools.cloudbuild.v1.GitHubEnterpriseSecrets secrets = 10 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
hasSecretsin interfaceGitHubEnterpriseConfigOrBuilder- Returns:
- Whether the secrets field is set.
-
getSecrets
Optional. Names of secrets in Secret Manager.
.google.devtools.cloudbuild.v1.GitHubEnterpriseSecrets secrets = 10 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getSecretsin interfaceGitHubEnterpriseConfigOrBuilder- Returns:
- The secrets.
-
setSecrets
Optional. Names of secrets in Secret Manager.
.google.devtools.cloudbuild.v1.GitHubEnterpriseSecrets secrets = 10 [(.google.api.field_behavior) = OPTIONAL]; -
setSecrets
Optional. Names of secrets in Secret Manager.
.google.devtools.cloudbuild.v1.GitHubEnterpriseSecrets secrets = 10 [(.google.api.field_behavior) = OPTIONAL]; -
mergeSecrets
Optional. Names of secrets in Secret Manager.
.google.devtools.cloudbuild.v1.GitHubEnterpriseSecrets secrets = 10 [(.google.api.field_behavior) = OPTIONAL]; -
clearSecrets
Optional. Names of secrets in Secret Manager.
.google.devtools.cloudbuild.v1.GitHubEnterpriseSecrets secrets = 10 [(.google.api.field_behavior) = OPTIONAL]; -
getSecretsBuilder
Optional. Names of secrets in Secret Manager.
.google.devtools.cloudbuild.v1.GitHubEnterpriseSecrets secrets = 10 [(.google.api.field_behavior) = OPTIONAL]; -
getSecretsOrBuilder
Optional. Names of secrets in Secret Manager.
.google.devtools.cloudbuild.v1.GitHubEnterpriseSecrets secrets = 10 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getSecretsOrBuilderin interfaceGitHubEnterpriseConfigOrBuilder
-
getDisplayName
Optional. Name to display for this config.
string display_name = 11 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getDisplayNamein interfaceGitHubEnterpriseConfigOrBuilder- Returns:
- The displayName.
-
getDisplayNameBytes
public com.google.protobuf.ByteString getDisplayNameBytes()Optional. Name to display for this config.
string display_name = 11 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getDisplayNameBytesin interfaceGitHubEnterpriseConfigOrBuilder- Returns:
- The bytes for displayName.
-
setDisplayName
Optional. Name to display for this config.
string display_name = 11 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The displayName to set.- Returns:
- This builder for chaining.
-
clearDisplayName
Optional. Name to display for this config.
string display_name = 11 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-
setDisplayNameBytes
Optional. Name to display for this config.
string display_name = 11 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The bytes for displayName to set.- Returns:
- This builder for chaining.
-
getSslCa
Optional. SSL certificate to use for requests to GitHub Enterprise.
string ssl_ca = 12 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getSslCain interfaceGitHubEnterpriseConfigOrBuilder- Returns:
- The sslCa.
-
getSslCaBytes
public com.google.protobuf.ByteString getSslCaBytes()Optional. SSL certificate to use for requests to GitHub Enterprise.
string ssl_ca = 12 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getSslCaBytesin interfaceGitHubEnterpriseConfigOrBuilder- Returns:
- The bytes for sslCa.
-
setSslCa
Optional. SSL certificate to use for requests to GitHub Enterprise.
string ssl_ca = 12 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The sslCa to set.- Returns:
- This builder for chaining.
-
clearSslCa
Optional. SSL certificate to use for requests to GitHub Enterprise.
string ssl_ca = 12 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-
setSslCaBytes
Optional. SSL certificate to use for requests to GitHub Enterprise.
string ssl_ca = 12 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The bytes for sslCa to set.- Returns:
- This builder for chaining.
-