Class GitHubEnterpriseConfig (3.26.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
TypeDescription
int

CREATE_TIME_FIELD_NUMBER

public static final int CREATE_TIME_FIELD_NUMBER
Field Value
TypeDescription
int

DISPLAY_NAME_FIELD_NUMBER

public static final int DISPLAY_NAME_FIELD_NUMBER
Field Value
TypeDescription
int

HOST_URL_FIELD_NUMBER

public static final int HOST_URL_FIELD_NUMBER
Field Value
TypeDescription
int

NAME_FIELD_NUMBER

public static final int NAME_FIELD_NUMBER
Field Value
TypeDescription
int

PEERED_NETWORK_FIELD_NUMBER

public static final int PEERED_NETWORK_FIELD_NUMBER
Field Value
TypeDescription
int

SECRETS_FIELD_NUMBER

public static final int SECRETS_FIELD_NUMBER
Field Value
TypeDescription
int

SSL_CA_FIELD_NUMBER

public static final int SSL_CA_FIELD_NUMBER
Field Value
TypeDescription
int

WEBHOOK_KEY_FIELD_NUMBER

public static final int WEBHOOK_KEY_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static GitHubEnterpriseConfig getDefaultInstance()
Returns
TypeDescription
GitHubEnterpriseConfig

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static GitHubEnterpriseConfig.Builder newBuilder()
Returns
TypeDescription
GitHubEnterpriseConfig.Builder

newBuilder(GitHubEnterpriseConfig prototype)

public static GitHubEnterpriseConfig.Builder newBuilder(GitHubEnterpriseConfig prototype)
Parameter
NameDescription
prototypeGitHubEnterpriseConfig
Returns
TypeDescription
GitHubEnterpriseConfig.Builder

parseDelimitedFrom(InputStream input)

public static GitHubEnterpriseConfig parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
GitHubEnterpriseConfig
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static GitHubEnterpriseConfig parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
GitHubEnterpriseConfig
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static GitHubEnterpriseConfig parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
GitHubEnterpriseConfig
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static GitHubEnterpriseConfig parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
GitHubEnterpriseConfig
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static GitHubEnterpriseConfig parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
GitHubEnterpriseConfig
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static GitHubEnterpriseConfig parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
GitHubEnterpriseConfig
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static GitHubEnterpriseConfig parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
GitHubEnterpriseConfig
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static GitHubEnterpriseConfig parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
GitHubEnterpriseConfig
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static GitHubEnterpriseConfig parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
GitHubEnterpriseConfig
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static GitHubEnterpriseConfig parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
GitHubEnterpriseConfig
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static GitHubEnterpriseConfig parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
GitHubEnterpriseConfig
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static GitHubEnterpriseConfig parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
GitHubEnterpriseConfig
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<GitHubEnterpriseConfig> parser()
Returns
TypeDescription
Parser<GitHubEnterpriseConfig>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
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
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.

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

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.

getParserForType()

public Parser<GitHubEnterpriseConfig> getParserForType()
Returns
TypeDescription
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
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.

getSecretsOrBuilder()

public GitHubEnterpriseSecretsOrBuilder getSecretsOrBuilder()

Names of secrets in Secret Manager.

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

Returns
TypeDescription
GitHubEnterpriseSecretsOrBuilder

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
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
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.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public GitHubEnterpriseConfig.Builder newBuilderForType()
Returns
TypeDescription
GitHubEnterpriseConfig.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected GitHubEnterpriseConfig.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
GitHubEnterpriseConfig.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public GitHubEnterpriseConfig.Builder toBuilder()
Returns
TypeDescription
GitHubEnterpriseConfig.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException