Class GitHubEnterpriseConfig

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloudbuild.v1.GitHubEnterpriseConfig
All Implemented Interfaces:
GitHubEnterpriseConfigOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

@Generated public final class GitHubEnterpriseConfig extends com.google.protobuf.GeneratedMessage implements GitHubEnterpriseConfigOrBuilder
 GitHubEnterpriseConfig represents a configuration for a GitHub Enterprise
 server.
 
Protobuf type google.devtools.cloudbuild.v1.GitHubEnterpriseConfig
See Also:
  • Field Details

  • 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
    • 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.
    • 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.
    • 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.
    • 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.
    • 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.
    • 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.
    • 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.
    • 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.
    • 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.
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessage
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessage
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.google.protobuf.AbstractMessage
    • parseFrom

      public static GitHubEnterpriseConfig parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static GitHubEnterpriseConfig parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static GitHubEnterpriseConfig parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static GitHubEnterpriseConfig parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static GitHubEnterpriseConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static GitHubEnterpriseConfig parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static GitHubEnterpriseConfig parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static GitHubEnterpriseConfig parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static GitHubEnterpriseConfig parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static GitHubEnterpriseConfig parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static GitHubEnterpriseConfig parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static GitHubEnterpriseConfig parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

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

      public static GitHubEnterpriseConfig.Builder newBuilder()
    • newBuilder

      public static GitHubEnterpriseConfig.Builder newBuilder(GitHubEnterpriseConfig prototype)
    • toBuilder

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

      protected GitHubEnterpriseConfig.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
      Overrides:
      newBuilderForType in class com.google.protobuf.AbstractMessage
    • getDefaultInstance

      public static GitHubEnterpriseConfig getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<GitHubEnterpriseConfig> parser()
    • getParserForType

      public com.google.protobuf.Parser<GitHubEnterpriseConfig> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessage
    • getDefaultInstanceForType

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