Package com.google.cloudbuild.v1
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:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classGitHubEnterpriseConfig represents a configuration for a GitHub Enterprise server.Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessage
com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT, BuilderT>>, com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.FieldAccessorTable, com.google.protobuf.GeneratedMessage.GeneratedExtension<ContainingT extends com.google.protobuf.Message, T extends Object>, com.google.protobuf.GeneratedMessage.UnusedPrivateParameter Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessage
com.google.protobuf.AbstractMessage.BuilderParentNested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessage
alwaysUseFieldBuilders, loggedPre22TypeNames, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessage
memoizedSizeFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionbooleanlonggetAppId()Required.com.google.protobuf.TimestampOutput only.com.google.protobuf.TimestampOrBuilderOutput only.static GitHubEnterpriseConfigstatic final com.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}"com.google.protobuf.Parser<GitHubEnterpriseConfig>Optional.com.google.protobuf.ByteStringOptional.Optional.Optional.intgetSslCa()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.inthashCode()booleanOptional.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleannewBuilder(GitHubEnterpriseConfig prototype) protected GitHubEnterpriseConfig.BuildernewBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) static GitHubEnterpriseConfigparseDelimitedFrom(InputStream input) static GitHubEnterpriseConfigparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static GitHubEnterpriseConfigparseFrom(byte[] data) static GitHubEnterpriseConfigparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static GitHubEnterpriseConfigparseFrom(com.google.protobuf.ByteString data) static GitHubEnterpriseConfigparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static GitHubEnterpriseConfigparseFrom(com.google.protobuf.CodedInputStream input) static GitHubEnterpriseConfigparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static GitHubEnterpriseConfigparseFrom(InputStream input) static GitHubEnterpriseConfigparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static GitHubEnterpriseConfigparseFrom(ByteBuffer data) static GitHubEnterpriseConfigparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<GitHubEnterpriseConfig>parser()voidwriteTo(com.google.protobuf.CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessage
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, newFileScopedGeneratedExtension, newInstance, newMessageScopedGeneratedExtension, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagMethods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashFields, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
NAME_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER- See Also:
-
HOST_URL_FIELD_NUMBER
public static final int HOST_URL_FIELD_NUMBER- See Also:
-
APP_ID_FIELD_NUMBER
public static final int APP_ID_FIELD_NUMBER- See Also:
-
CREATE_TIME_FIELD_NUMBER
public static final int CREATE_TIME_FIELD_NUMBER- See Also:
-
WEBHOOK_KEY_FIELD_NUMBER
public static final int WEBHOOK_KEY_FIELD_NUMBER- See Also:
-
PEERED_NETWORK_FIELD_NUMBER
public static final int PEERED_NETWORK_FIELD_NUMBER- See Also:
-
SECRETS_FIELD_NUMBER
public static final int SECRETS_FIELD_NUMBER- See Also:
-
DISPLAY_NAME_FIELD_NUMBER
public static final int DISPLAY_NAME_FIELD_NUMBER- See Also:
-
SSL_CA_FIELD_NUMBER
public static final int SSL_CA_FIELD_NUMBER- See Also:
-
-
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
-
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.
-
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.
-
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.
-
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.
-
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.
-
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.
-
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.
-
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.
-
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.
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage
-
writeTo
- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessage- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessage
-
equals
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.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
- Throws:
IOException
-
parseFrom
public static GitHubEnterpriseConfig parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- 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
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
-
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected GitHubEnterpriseConfig.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) - Overrides:
newBuilderForTypein classcom.google.protobuf.AbstractMessage
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessage
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-