Class GitHubEnterpriseConfig (3.48.0)

public final class GitHubEnterpriseConfig extends GeneratedMessageV3 implements GitHubEnterpriseConfigOrBuilder

Protobuf type google.devtools.cloudbuild.v1.GitHubEnterpriseConfig

Static Fields

APP_ID_FIELD_NUMBER

public static final int APP_ID_FIELD_NUMBER
Field Value
Type Description
int

CREATE_TIME_FIELD_NUMBER

public static final int CREATE_TIME_FIELD_NUMBER
Field Value
Type Description
int

DISPLAY_NAME_FIELD_NUMBER

public static final int DISPLAY_NAME_FIELD_NUMBER
Field Value
Type Description
int

HOST_URL_FIELD_NUMBER

public static final int HOST_URL_FIELD_NUMBER
Field Value
Type Description
int

NAME_FIELD_NUMBER

public static final int NAME_FIELD_NUMBER
Field Value
Type Description
int

PEERED_NETWORK_FIELD_NUMBER

public static final int PEERED_NETWORK_FIELD_NUMBER
Field Value
Type Description
int

SECRETS_FIELD_NUMBER

public static final int SECRETS_FIELD_NUMBER
Field Value
Type Description
int

SSL_CA_FIELD_NUMBER

public static final int SSL_CA_FIELD_NUMBER
Field Value
Type Description
int

WEBHOOK_KEY_FIELD_NUMBER

public static final int WEBHOOK_KEY_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static GitHubEnterpriseConfig getDefaultInstance()
Returns
Type Description
GitHubEnterpriseConfig

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

newBuilder()

public static GitHubEnterpriseConfig.Builder newBuilder()
Returns
Type Description
GitHubEnterpriseConfig.Builder

newBuilder(GitHubEnterpriseConfig prototype)

public static GitHubEnterpriseConfig.Builder newBuilder(GitHubEnterpriseConfig prototype)
Parameter
Name Description
prototype GitHubEnterpriseConfig
Returns
Type Description
GitHubEnterpriseConfig.Builder

parseDelimitedFrom(InputStream input)

public static GitHubEnterpriseConfig parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
GitHubEnterpriseConfig
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static GitHubEnterpriseConfig parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
GitHubEnterpriseConfig
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static GitHubEnterpriseConfig parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
GitHubEnterpriseConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static GitHubEnterpriseConfig parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
GitHubEnterpriseConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static GitHubEnterpriseConfig parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
GitHubEnterpriseConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static GitHubEnterpriseConfig parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
GitHubEnterpriseConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static GitHubEnterpriseConfig parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
GitHubEnterpriseConfig
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static GitHubEnterpriseConfig parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
GitHubEnterpriseConfig
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static GitHubEnterpriseConfig parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
GitHubEnterpriseConfig
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static GitHubEnterpriseConfig parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
GitHubEnterpriseConfig
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static GitHubEnterpriseConfig parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
GitHubEnterpriseConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static GitHubEnterpriseConfig parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
GitHubEnterpriseConfig
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<GitHubEnterpriseConfig> parser()
Returns
Type Description
Parser<GitHubEnterpriseConfig>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
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
Type Description
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
Type Description
Timestamp

The createTime.

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
Type Description
TimestampOrBuilder

getDefaultInstanceForType()

public GitHubEnterpriseConfig getDefaultInstanceForType()
Returns
Type Description
GitHubEnterpriseConfig

getDisplayName()

public String getDisplayName()

Name to display for this config.

string display_name = 11;

Returns
Type Description
String

The displayName.

getDisplayNameBytes()

public ByteString getDisplayNameBytes()

Name to display for this config.

string display_name = 11;

Returns
Type Description
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
Type Description
String

The hostUrl.

getHostUrlBytes()

public ByteString getHostUrlBytes()

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

string host_url = 3;

Returns
Type Description
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
Type Description
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
Type Description
ByteString

The bytes for name.

getParserForType()

public Parser<GitHubEnterpriseConfig> getParserForType()
Returns
Type Description
Parser<GitHubEnterpriseConfig>
Overrides

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
Type Description
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
Type Description
ByteString

The bytes for peeredNetwork.

getSecrets()

public GitHubEnterpriseSecrets getSecrets()

Names of secrets in Secret Manager.

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

Returns
Type Description
GitHubEnterpriseSecrets

The secrets.

getSecretsOrBuilder()

public GitHubEnterpriseSecretsOrBuilder getSecretsOrBuilder()

Names of secrets in Secret Manager.

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

Returns
Type Description
GitHubEnterpriseSecretsOrBuilder

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getSslCa()

public String getSslCa()

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

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

Returns
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Type Description
boolean

Whether the secrets field is set.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public GitHubEnterpriseConfig.Builder newBuilderForType()
Returns
Type Description
GitHubEnterpriseConfig.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected GitHubEnterpriseConfig.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
GitHubEnterpriseConfig.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public GitHubEnterpriseConfig.Builder toBuilder()
Returns
Type Description
GitHubEnterpriseConfig.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException