Class GitConfig
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloud.gkehub.configmanagement.v1beta.GitConfig
- All Implemented Interfaces:
GitConfigOrBuilder,com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable
@Generated
public final class GitConfig
extends com.google.protobuf.GeneratedMessage
implements GitConfigOrBuilder
Git repo configuration for a single cluster.Protobuf type
google.cloud.gkehub.configmanagement.v1beta.GitConfig- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classGit repo configuration for a single cluster.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 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 TypeMethodDescriptionbooleanstatic GitConfigstatic final com.google.protobuf.Descriptors.DescriptorOptional.com.google.protobuf.ByteStringOptional.Optional.com.google.protobuf.ByteStringOptional.com.google.protobuf.Parser<GitConfig>Optional.com.google.protobuf.ByteStringOptional.Required.com.google.protobuf.ByteStringRequired.intOptional.com.google.protobuf.ByteStringOptional.Required.com.google.protobuf.ByteStringRequired.Optional.com.google.protobuf.ByteStringOptional.longOptional.inthashCode()protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanstatic GitConfig.Builderstatic GitConfig.BuildernewBuilder(GitConfig prototype) protected GitConfig.BuildernewBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) static GitConfigparseDelimitedFrom(InputStream input) static GitConfigparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static GitConfigparseFrom(byte[] data) static GitConfigparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static GitConfigparseFrom(com.google.protobuf.ByteString data) static GitConfigparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static GitConfigparseFrom(com.google.protobuf.CodedInputStream input) static GitConfigparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static GitConfigparseFrom(InputStream input) static GitConfigparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static GitConfigparseFrom(ByteBuffer data) static GitConfigparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<GitConfig>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
-
SYNC_REPO_FIELD_NUMBER
public static final int SYNC_REPO_FIELD_NUMBER- See Also:
-
SYNC_BRANCH_FIELD_NUMBER
public static final int SYNC_BRANCH_FIELD_NUMBER- See Also:
-
POLICY_DIR_FIELD_NUMBER
public static final int POLICY_DIR_FIELD_NUMBER- See Also:
-
SYNC_WAIT_SECS_FIELD_NUMBER
public static final int SYNC_WAIT_SECS_FIELD_NUMBER- See Also:
-
SYNC_REV_FIELD_NUMBER
public static final int SYNC_REV_FIELD_NUMBER- See Also:
-
SECRET_TYPE_FIELD_NUMBER
public static final int SECRET_TYPE_FIELD_NUMBER- See Also:
-
HTTPS_PROXY_FIELD_NUMBER
public static final int HTTPS_PROXY_FIELD_NUMBER- See Also:
-
GCP_SERVICE_ACCOUNT_EMAIL_FIELD_NUMBER
public static final int GCP_SERVICE_ACCOUNT_EMAIL_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
-
getSyncRepo
Required. The URL of the Git repository to use as the source of truth.
string sync_repo = 1 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getSyncRepoin interfaceGitConfigOrBuilder- Returns:
- The syncRepo.
-
getSyncRepoBytes
public com.google.protobuf.ByteString getSyncRepoBytes()Required. The URL of the Git repository to use as the source of truth.
string sync_repo = 1 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getSyncRepoBytesin interfaceGitConfigOrBuilder- Returns:
- The bytes for syncRepo.
-
getSyncBranch
Optional. The branch of the repository to sync from. Default: master.
string sync_branch = 2 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getSyncBranchin interfaceGitConfigOrBuilder- Returns:
- The syncBranch.
-
getSyncBranchBytes
public com.google.protobuf.ByteString getSyncBranchBytes()Optional. The branch of the repository to sync from. Default: master.
string sync_branch = 2 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getSyncBranchBytesin interfaceGitConfigOrBuilder- Returns:
- The bytes for syncBranch.
-
getPolicyDir
Optional. The path within the Git repository that represents the top level of the repo to sync. Default: the root directory of the repository.
string policy_dir = 3 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getPolicyDirin interfaceGitConfigOrBuilder- Returns:
- The policyDir.
-
getPolicyDirBytes
public com.google.protobuf.ByteString getPolicyDirBytes()Optional. The path within the Git repository that represents the top level of the repo to sync. Default: the root directory of the repository.
string policy_dir = 3 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getPolicyDirBytesin interfaceGitConfigOrBuilder- Returns:
- The bytes for policyDir.
-
getSyncWaitSecs
public long getSyncWaitSecs()Optional. Period in seconds between consecutive syncs. Default: 15.
int64 sync_wait_secs = 4 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getSyncWaitSecsin interfaceGitConfigOrBuilder- Returns:
- The syncWaitSecs.
-
getSyncRev
Optional. Git revision (tag or hash) to check out. Default HEAD.
string sync_rev = 5 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getSyncRevin interfaceGitConfigOrBuilder- Returns:
- The syncRev.
-
getSyncRevBytes
public com.google.protobuf.ByteString getSyncRevBytes()Optional. Git revision (tag or hash) to check out. Default HEAD.
string sync_rev = 5 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getSyncRevBytesin interfaceGitConfigOrBuilder- Returns:
- The bytes for syncRev.
-
getSecretType
Required. Type of secret configured for access to the Git repo. Must be one of `ssh`, `cookiefile`, `gcenode`, `token`, `gcpserviceaccount`, `githubapp` or `none`. The validation of this is case-sensitive.
string secret_type = 6 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getSecretTypein interfaceGitConfigOrBuilder- Returns:
- The secretType.
-
getSecretTypeBytes
public com.google.protobuf.ByteString getSecretTypeBytes()Required. Type of secret configured for access to the Git repo. Must be one of `ssh`, `cookiefile`, `gcenode`, `token`, `gcpserviceaccount`, `githubapp` or `none`. The validation of this is case-sensitive.
string secret_type = 6 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getSecretTypeBytesin interfaceGitConfigOrBuilder- Returns:
- The bytes for secretType.
-
getHttpsProxy
Optional. URL for the HTTPS proxy to be used when communicating with the Git repo. Only specify when secret_type is `cookiefile`, `token`, or `none`.
string https_proxy = 7 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getHttpsProxyin interfaceGitConfigOrBuilder- Returns:
- The httpsProxy.
-
getHttpsProxyBytes
public com.google.protobuf.ByteString getHttpsProxyBytes()Optional. URL for the HTTPS proxy to be used when communicating with the Git repo. Only specify when secret_type is `cookiefile`, `token`, or `none`.
string https_proxy = 7 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getHttpsProxyBytesin interfaceGitConfigOrBuilder- Returns:
- The bytes for httpsProxy.
-
getGcpServiceAccountEmail
Optional. The Google Cloud Service Account Email used for auth when secret_type is `gcpserviceaccount`.
string gcp_service_account_email = 8 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getGcpServiceAccountEmailin interfaceGitConfigOrBuilder- Returns:
- The gcpServiceAccountEmail.
-
getGcpServiceAccountEmailBytes
public com.google.protobuf.ByteString getGcpServiceAccountEmailBytes()Optional. The Google Cloud Service Account Email used for auth when secret_type is `gcpserviceaccount`.
string gcp_service_account_email = 8 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getGcpServiceAccountEmailBytesin interfaceGitConfigOrBuilder- Returns:
- The bytes for gcpServiceAccountEmail.
-
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 GitConfig parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static GitConfig parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static GitConfig parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static GitConfig parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static GitConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static GitConfig parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static GitConfig parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static GitConfig parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static GitConfig 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 GitConfig.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
-