Class GitConfig
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- com.google.cloud.gkehub.configmanagement.v1alpha.GitConfig
-
- All Implemented Interfaces:
GitConfigOrBuilder,com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable
public final class GitConfig extends com.google.protobuf.GeneratedMessageV3 implements GitConfigOrBuilder
Git repo configuration for a single cluster.
Protobuf typegoogle.cloud.gkehub.configmanagement.v1alpha.GitConfig- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classGitConfig.BuilderGit repo configuration for a single cluster.-
Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter
-
-
Field Summary
Fields Modifier and Type Field Description static intGCP_SERVICE_ACCOUNT_EMAIL_FIELD_NUMBERstatic intHTTPS_PROXY_FIELD_NUMBERstatic intPOLICY_DIR_FIELD_NUMBERstatic intSECRET_TYPE_FIELD_NUMBERstatic intSYNC_BRANCH_FIELD_NUMBERstatic intSYNC_REPO_FIELD_NUMBERstatic intSYNC_REV_FIELD_NUMBERstatic intSYNC_WAIT_SECS_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)static GitConfiggetDefaultInstance()GitConfiggetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()StringgetGcpServiceAccountEmail()The GCP Service Account Email used for auth when secret_type is gcpServiceAccount.com.google.protobuf.ByteStringgetGcpServiceAccountEmailBytes()The GCP Service Account Email used for auth when secret_type is gcpServiceAccount.StringgetHttpsProxy()URL for the HTTPS proxy to be used when communicating with the Git repo.com.google.protobuf.ByteStringgetHttpsProxyBytes()URL for the HTTPS proxy to be used when communicating with the Git repo.com.google.protobuf.Parser<GitConfig>getParserForType()StringgetPolicyDir()The path within the Git repository that represents the top level of the repo to sync.com.google.protobuf.ByteStringgetPolicyDirBytes()The path within the Git repository that represents the top level of the repo to sync.StringgetSecretType()Type of secret configured for access to the Git repo.com.google.protobuf.ByteStringgetSecretTypeBytes()Type of secret configured for access to the Git repo.intgetSerializedSize()StringgetSyncBranch()The branch of the repository to sync from.com.google.protobuf.ByteStringgetSyncBranchBytes()The branch of the repository to sync from.StringgetSyncRepo()The URL of the Git repository to use as the source of truth.com.google.protobuf.ByteStringgetSyncRepoBytes()The URL of the Git repository to use as the source of truth.StringgetSyncRev()Git revision (tag or hash) to check out.com.google.protobuf.ByteStringgetSyncRevBytes()Git revision (tag or hash) to check out.longgetSyncWaitSecs()Period in seconds between consecutive syncs.inthashCode()protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()static GitConfig.BuildernewBuilder()static GitConfig.BuildernewBuilder(GitConfig prototype)GitConfig.BuildernewBuilderForType()protected GitConfig.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)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()GitConfig.BuildertoBuilder()voidwriteTo(com.google.protobuf.CodedOutputStream output)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
-
Methods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Field Detail
-
SYNC_REPO_FIELD_NUMBER
public static final int SYNC_REPO_FIELD_NUMBER
- See Also:
- Constant Field Values
-
SYNC_BRANCH_FIELD_NUMBER
public static final int SYNC_BRANCH_FIELD_NUMBER
- See Also:
- Constant Field Values
-
POLICY_DIR_FIELD_NUMBER
public static final int POLICY_DIR_FIELD_NUMBER
- See Also:
- Constant Field Values
-
SYNC_WAIT_SECS_FIELD_NUMBER
public static final int SYNC_WAIT_SECS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
SYNC_REV_FIELD_NUMBER
public static final int SYNC_REV_FIELD_NUMBER
- See Also:
- Constant Field Values
-
SECRET_TYPE_FIELD_NUMBER
public static final int SECRET_TYPE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
HTTPS_PROXY_FIELD_NUMBER
public static final int HTTPS_PROXY_FIELD_NUMBER
- See Also:
- Constant Field Values
-
GCP_SERVICE_ACCOUNT_EMAIL_FIELD_NUMBER
public static final int GCP_SERVICE_ACCOUNT_EMAIL_FIELD_NUMBER
- See Also:
- Constant Field Values
-
-
Method Detail
-
newInstance
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
- Overrides:
newInstancein classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3
-
getSyncRepo
public String getSyncRepo()
The URL of the Git repository to use as the source of truth.
string sync_repo = 1;- Specified by:
getSyncRepoin interfaceGitConfigOrBuilder- Returns:
- The syncRepo.
-
getSyncRepoBytes
public com.google.protobuf.ByteString getSyncRepoBytes()
The URL of the Git repository to use as the source of truth.
string sync_repo = 1;- Specified by:
getSyncRepoBytesin interfaceGitConfigOrBuilder- Returns:
- The bytes for syncRepo.
-
getSyncBranch
public String getSyncBranch()
The branch of the repository to sync from. Default: master.
string sync_branch = 2;- Specified by:
getSyncBranchin interfaceGitConfigOrBuilder- Returns:
- The syncBranch.
-
getSyncBranchBytes
public com.google.protobuf.ByteString getSyncBranchBytes()
The branch of the repository to sync from. Default: master.
string sync_branch = 2;- Specified by:
getSyncBranchBytesin interfaceGitConfigOrBuilder- Returns:
- The bytes for syncBranch.
-
getPolicyDir
public String getPolicyDir()
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;- Specified by:
getPolicyDirin interfaceGitConfigOrBuilder- Returns:
- The policyDir.
-
getPolicyDirBytes
public com.google.protobuf.ByteString getPolicyDirBytes()
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;- Specified by:
getPolicyDirBytesin interfaceGitConfigOrBuilder- Returns:
- The bytes for policyDir.
-
getSyncWaitSecs
public long getSyncWaitSecs()
Period in seconds between consecutive syncs. Default: 15.
int64 sync_wait_secs = 4;- Specified by:
getSyncWaitSecsin interfaceGitConfigOrBuilder- Returns:
- The syncWaitSecs.
-
getSyncRev
public String getSyncRev()
Git revision (tag or hash) to check out. Default HEAD.
string sync_rev = 5;- Specified by:
getSyncRevin interfaceGitConfigOrBuilder- Returns:
- The syncRev.
-
getSyncRevBytes
public com.google.protobuf.ByteString getSyncRevBytes()
Git revision (tag or hash) to check out. Default HEAD.
string sync_rev = 5;- Specified by:
getSyncRevBytesin interfaceGitConfigOrBuilder- Returns:
- The bytes for syncRev.
-
getSecretType
public String getSecretType()
Type of secret configured for access to the Git repo.
string secret_type = 6;- Specified by:
getSecretTypein interfaceGitConfigOrBuilder- Returns:
- The secretType.
-
getSecretTypeBytes
public com.google.protobuf.ByteString getSecretTypeBytes()
Type of secret configured for access to the Git repo.
string secret_type = 6;- Specified by:
getSecretTypeBytesin interfaceGitConfigOrBuilder- Returns:
- The bytes for secretType.
-
getHttpsProxy
public String getHttpsProxy()
URL for the HTTPS proxy to be used when communicating with the Git repo.
string https_proxy = 7;- Specified by:
getHttpsProxyin interfaceGitConfigOrBuilder- Returns:
- The httpsProxy.
-
getHttpsProxyBytes
public com.google.protobuf.ByteString getHttpsProxyBytes()
URL for the HTTPS proxy to be used when communicating with the Git repo.
string https_proxy = 7;- Specified by:
getHttpsProxyBytesin interfaceGitConfigOrBuilder- Returns:
- The bytes for httpsProxy.
-
getGcpServiceAccountEmail
public String getGcpServiceAccountEmail()
The GCP Service Account Email used for auth when secret_type is gcpServiceAccount.
string gcp_service_account_email = 8;- Specified by:
getGcpServiceAccountEmailin interfaceGitConfigOrBuilder- Returns:
- The gcpServiceAccountEmail.
-
getGcpServiceAccountEmailBytes
public com.google.protobuf.ByteString getGcpServiceAccountEmailBytes()
The GCP Service Account Email used for auth when secret_type is gcpServiceAccount.
string gcp_service_account_email = 8;- 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.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessageV3- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(Object obj)
- 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
public static GitConfig parseFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static GitConfig parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static GitConfig parseDelimitedFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static GitConfig parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseFrom
public static GitConfig parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static GitConfig parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
newBuilderForType
public GitConfig.Builder newBuilderForType()
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
public static GitConfig.Builder newBuilder()
-
newBuilder
public static GitConfig.Builder newBuilder(GitConfig prototype)
-
toBuilder
public GitConfig.Builder toBuilder()
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected GitConfig.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
public static GitConfig getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<GitConfig> parser()
-
getParserForType
public com.google.protobuf.Parser<GitConfig> getParserForType()
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public GitConfig getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
-