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 Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<GitHubEnterpriseConfig.Builder>
    • clear

      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<GitHubEnterpriseConfig.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<GitHubEnterpriseConfig.Builder>
    • getDefaultInstanceForType

      public GitHubEnterpriseConfig getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public GitHubEnterpriseConfig build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public GitHubEnterpriseConfig buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public GitHubEnterpriseConfig.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<GitHubEnterpriseConfig.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.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:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<GitHubEnterpriseConfig.Builder>
      Throws:
      IOException
    • getName

      public String getName()
       The full resource name for the GitHubEnterpriseConfig
       For example:
       "projects/{$project_id}/locations/{$location_id}/githubEnterpriseConfigs/{$config_id}"
       
      string name = 7;
      Specified by:
      getName in interface GitHubEnterpriseConfigOrBuilder
      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:
      getNameBytes in interface GitHubEnterpriseConfigOrBuilder
      Returns:
      The bytes for name.
    • setName

      public GitHubEnterpriseConfig.Builder setName(String value)
       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

      public GitHubEnterpriseConfig.Builder 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

      public GitHubEnterpriseConfig.Builder setNameBytes(com.google.protobuf.ByteString value)
       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

      public String getHostUrl()
       The URL of the github enterprise host the configuration is for.
       
      string host_url = 3;
      Specified by:
      getHostUrl in interface GitHubEnterpriseConfigOrBuilder
      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:
      getHostUrlBytes in interface GitHubEnterpriseConfigOrBuilder
      Returns:
      The bytes for hostUrl.
    • setHostUrl

      public GitHubEnterpriseConfig.Builder setHostUrl(String value)
       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

      public GitHubEnterpriseConfig.Builder clearHostUrl()
       The URL of the github enterprise host the configuration is for.
       
      string host_url = 3;
      Returns:
      This builder for chaining.
    • setHostUrlBytes

      public GitHubEnterpriseConfig.Builder setHostUrlBytes(com.google.protobuf.ByteString value)
       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:
      getAppId in interface GitHubEnterpriseConfigOrBuilder
      Returns:
      The appId.
    • setAppId

      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];
      Parameters:
      value - The appId to set.
      Returns:
      This builder for chaining.
    • 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:
      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:
      hasCreateTime in interface GitHubEnterpriseConfigOrBuilder
      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:
      getCreateTime in interface GitHubEnterpriseConfigOrBuilder
      Returns:
      The createTime.
    • setCreateTime

      public GitHubEnterpriseConfig.Builder setCreateTime(com.google.protobuf.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];
    • 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

      public GitHubEnterpriseConfig.Builder mergeCreateTime(com.google.protobuf.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];
    • 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];
    • 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:
      getCreateTimeOrBuilder in interface GitHubEnterpriseConfigOrBuilder
    • getWebhookKey

      public String getWebhookKey()
       The key that should be attached to webhook calls to the ReceiveWebhook
       endpoint.
       
      string webhook_key = 8;
      Specified by:
      getWebhookKey in interface GitHubEnterpriseConfigOrBuilder
      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:
      getWebhookKeyBytes in interface GitHubEnterpriseConfigOrBuilder
      Returns:
      The bytes for webhookKey.
    • setWebhookKey

      public GitHubEnterpriseConfig.Builder setWebhookKey(String value)
       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

      public GitHubEnterpriseConfig.Builder clearWebhookKey()
       The key that should be attached to webhook calls to the ReceiveWebhook
       endpoint.
       
      string webhook_key = 8;
      Returns:
      This builder for chaining.
    • setWebhookKeyBytes

      public GitHubEnterpriseConfig.Builder setWebhookKeyBytes(com.google.protobuf.ByteString value)
       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

      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) = { ... }
      Specified by:
      getPeeredNetwork in interface GitHubEnterpriseConfigOrBuilder
      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:
      getPeeredNetworkBytes in interface GitHubEnterpriseConfigOrBuilder
      Returns:
      The bytes for peeredNetwork.
    • setPeeredNetwork

      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) = { ... }
      Parameters:
      value - The peeredNetwork to set.
      Returns:
      This builder for chaining.
    • 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:
      This builder for chaining.
    • setPeeredNetworkBytes

      public GitHubEnterpriseConfig.Builder setPeeredNetworkBytes(com.google.protobuf.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) = { ... }
      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:
      hasSecrets in interface GitHubEnterpriseConfigOrBuilder
      Returns:
      Whether the secrets field is set.
    • getSecrets

      public GitHubEnterpriseSecrets getSecrets()
       Optional. Names of secrets in Secret Manager.
       
      .google.devtools.cloudbuild.v1.GitHubEnterpriseSecrets secrets = 10 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getSecrets in interface GitHubEnterpriseConfigOrBuilder
      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

      public GitHubEnterpriseConfig.Builder clearSecrets()
       Optional. Names of secrets in Secret Manager.
       
      .google.devtools.cloudbuild.v1.GitHubEnterpriseSecrets secrets = 10 [(.google.api.field_behavior) = OPTIONAL];
    • getSecretsBuilder

      public GitHubEnterpriseSecrets.Builder getSecretsBuilder()
       Optional. Names of secrets in Secret Manager.
       
      .google.devtools.cloudbuild.v1.GitHubEnterpriseSecrets secrets = 10 [(.google.api.field_behavior) = OPTIONAL];
    • getSecretsOrBuilder

      public GitHubEnterpriseSecretsOrBuilder getSecretsOrBuilder()
       Optional. Names of secrets in Secret Manager.
       
      .google.devtools.cloudbuild.v1.GitHubEnterpriseSecrets secrets = 10 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getSecretsOrBuilder in interface GitHubEnterpriseConfigOrBuilder
    • getDisplayName

      public String getDisplayName()
       Optional. Name to display for this config.
       
      string display_name = 11 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getDisplayName in interface GitHubEnterpriseConfigOrBuilder
      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:
      getDisplayNameBytes in interface GitHubEnterpriseConfigOrBuilder
      Returns:
      The bytes for displayName.
    • setDisplayName

      public GitHubEnterpriseConfig.Builder setDisplayName(String value)
       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

      public GitHubEnterpriseConfig.Builder clearDisplayName()
       Optional. Name to display for this config.
       
      string display_name = 11 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • setDisplayNameBytes

      public GitHubEnterpriseConfig.Builder setDisplayNameBytes(com.google.protobuf.ByteString value)
       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

      public String getSslCa()
       Optional. SSL certificate to use for requests to GitHub Enterprise.
       
      string ssl_ca = 12 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getSslCa in interface GitHubEnterpriseConfigOrBuilder
      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:
      getSslCaBytes in interface GitHubEnterpriseConfigOrBuilder
      Returns:
      The bytes for sslCa.
    • setSslCa

      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];
      Parameters:
      value - The sslCa to set.
      Returns:
      This builder for chaining.
    • 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:
      This builder for chaining.
    • setSslCaBytes

      public GitHubEnterpriseConfig.Builder setSslCaBytes(com.google.protobuf.ByteString value)
       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.