Class GitConfig.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<GitConfig.Builder>
com.google.cloud.gkehub.configmanagement.v1.GitConfig.Builder
- All Implemented Interfaces:
GitConfigOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- GitConfig
public static final class GitConfig.Builder
extends com.google.protobuf.GeneratedMessage.Builder<GitConfig.Builder>
implements GitConfigOrBuilder
Git repo configuration for a single cluster.Protobuf type
google.cloud.gkehub.configmanagement.v1.GitConfig-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()The Google Cloud Service Account Email used for auth when secret_type is gcpServiceAccount.URL for the HTTPS proxy to be used when communicating with the Git repo.The path within the Git repository that represents the top level of the repo to sync.Type of secret configured for access to the Git repo.The branch of the repository to sync from.The URL of the Git repository to use as the source of truth.Git revision (tag or hash) to check out.Period in seconds between consecutive syncs.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorThe Google Cloud Service Account Email used for auth when secret_type is gcpServiceAccount.com.google.protobuf.ByteStringThe Google Cloud Service Account Email used for auth when secret_type is gcpServiceAccount.URL for the HTTPS proxy to be used when communicating with the Git repo.com.google.protobuf.ByteStringURL for the HTTPS proxy to be used when communicating with the Git repo.The path within the Git repository that represents the top level of the repo to sync.com.google.protobuf.ByteStringThe path within the Git repository that represents the top level of the repo to sync.Type of secret configured for access to the Git repo.com.google.protobuf.ByteStringType of secret configured for access to the Git repo.The branch of the repository to sync from.com.google.protobuf.ByteStringThe branch of the repository to sync from.The URL of the Git repository to use as the source of truth.com.google.protobuf.ByteStringThe URL of the Git repository to use as the source of truth.Git revision (tag or hash) to check out.com.google.protobuf.ByteStringGit revision (tag or hash) to check out.longPeriod in seconds between consecutive syncs.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) setGcpServiceAccountEmail(String value) The Google Cloud Service Account Email used for auth when secret_type is gcpServiceAccount.setGcpServiceAccountEmailBytes(com.google.protobuf.ByteString value) The Google Cloud Service Account Email used for auth when secret_type is gcpServiceAccount.setHttpsProxy(String value) URL for the HTTPS proxy to be used when communicating with the Git repo.setHttpsProxyBytes(com.google.protobuf.ByteString value) URL for the HTTPS proxy to be used when communicating with the Git repo.setPolicyDir(String value) The path within the Git repository that represents the top level of the repo to sync.setPolicyDirBytes(com.google.protobuf.ByteString value) The path within the Git repository that represents the top level of the repo to sync.setSecretType(String value) Type of secret configured for access to the Git repo.setSecretTypeBytes(com.google.protobuf.ByteString value) Type of secret configured for access to the Git repo.setSyncBranch(String value) The branch of the repository to sync from.setSyncBranchBytes(com.google.protobuf.ByteString value) The branch of the repository to sync from.setSyncRepo(String value) The URL of the Git repository to use as the source of truth.setSyncRepoBytes(com.google.protobuf.ByteString value) The URL of the Git repository to use as the source of truth.setSyncRev(String value) Git revision (tag or hash) to check out.setSyncRevBytes(com.google.protobuf.ByteString value) Git revision (tag or hash) to check out.setSyncWaitSecs(long value) Period in seconds between consecutive syncs.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
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.Builder<GitConfig.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<GitConfig.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<GitConfig.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<GitConfig.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<GitConfig.Builder>
-
mergeFrom
public GitConfig.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<GitConfig.Builder>- Throws:
IOException
-
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.
-
setSyncRepo
The URL of the Git repository to use as the source of truth.
string sync_repo = 1;- Parameters:
value- The syncRepo to set.- Returns:
- This builder for chaining.
-
clearSyncRepo
The URL of the Git repository to use as the source of truth.
string sync_repo = 1;- Returns:
- This builder for chaining.
-
setSyncRepoBytes
The URL of the Git repository to use as the source of truth.
string sync_repo = 1;- Parameters:
value- The bytes for syncRepo to set.- Returns:
- This builder for chaining.
-
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.
-
setSyncBranch
The branch of the repository to sync from. Default: master.
string sync_branch = 2;- Parameters:
value- The syncBranch to set.- Returns:
- This builder for chaining.
-
clearSyncBranch
The branch of the repository to sync from. Default: master.
string sync_branch = 2;- Returns:
- This builder for chaining.
-
setSyncBranchBytes
The branch of the repository to sync from. Default: master.
string sync_branch = 2;- Parameters:
value- The bytes for syncBranch to set.- Returns:
- This builder for chaining.
-
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.
-
setPolicyDir
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;- Parameters:
value- The policyDir to set.- Returns:
- This builder for chaining.
-
clearPolicyDir
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;- Returns:
- This builder for chaining.
-
setPolicyDirBytes
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;- Parameters:
value- The bytes for policyDir to set.- Returns:
- This builder for chaining.
-
getSyncWaitSecs
public long getSyncWaitSecs()Period in seconds between consecutive syncs. Default: 15.
int64 sync_wait_secs = 4;- Specified by:
getSyncWaitSecsin interfaceGitConfigOrBuilder- Returns:
- The syncWaitSecs.
-
setSyncWaitSecs
Period in seconds between consecutive syncs. Default: 15.
int64 sync_wait_secs = 4;- Parameters:
value- The syncWaitSecs to set.- Returns:
- This builder for chaining.
-
clearSyncWaitSecs
Period in seconds between consecutive syncs. Default: 15.
int64 sync_wait_secs = 4;- Returns:
- This builder for chaining.
-
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.
-
setSyncRev
Git revision (tag or hash) to check out. Default HEAD.
string sync_rev = 5;- Parameters:
value- The syncRev to set.- Returns:
- This builder for chaining.
-
clearSyncRev
Git revision (tag or hash) to check out. Default HEAD.
string sync_rev = 5;- Returns:
- This builder for chaining.
-
setSyncRevBytes
Git revision (tag or hash) to check out. Default HEAD.
string sync_rev = 5;- Parameters:
value- The bytes for syncRev to set.- Returns:
- This builder for chaining.
-
getSecretType
Type of secret configured for access to the Git repo. Must be one of ssh, cookiefile, gcenode, token, gcpserviceaccount or none. The validation of this is case-sensitive. Required.
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. Must be one of ssh, cookiefile, gcenode, token, gcpserviceaccount or none. The validation of this is case-sensitive. Required.
string secret_type = 6;- Specified by:
getSecretTypeBytesin interfaceGitConfigOrBuilder- Returns:
- The bytes for secretType.
-
setSecretType
Type of secret configured for access to the Git repo. Must be one of ssh, cookiefile, gcenode, token, gcpserviceaccount or none. The validation of this is case-sensitive. Required.
string secret_type = 6;- Parameters:
value- The secretType to set.- Returns:
- This builder for chaining.
-
clearSecretType
Type of secret configured for access to the Git repo. Must be one of ssh, cookiefile, gcenode, token, gcpserviceaccount or none. The validation of this is case-sensitive. Required.
string secret_type = 6;- Returns:
- This builder for chaining.
-
setSecretTypeBytes
Type of secret configured for access to the Git repo. Must be one of ssh, cookiefile, gcenode, token, gcpserviceaccount or none. The validation of this is case-sensitive. Required.
string secret_type = 6;- Parameters:
value- The bytes for secretType to set.- Returns:
- This builder for chaining.
-
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.
-
setHttpsProxy
URL for the HTTPS proxy to be used when communicating with the Git repo.
string https_proxy = 7;- Parameters:
value- The httpsProxy to set.- Returns:
- This builder for chaining.
-
clearHttpsProxy
URL for the HTTPS proxy to be used when communicating with the Git repo.
string https_proxy = 7;- Returns:
- This builder for chaining.
-
setHttpsProxyBytes
URL for the HTTPS proxy to be used when communicating with the Git repo.
string https_proxy = 7;- Parameters:
value- The bytes for httpsProxy to set.- Returns:
- This builder for chaining.
-
getGcpServiceAccountEmail
The Google Cloud 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 Google Cloud 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.
-
setGcpServiceAccountEmail
The Google Cloud Service Account Email used for auth when secret_type is gcpServiceAccount.
string gcp_service_account_email = 8;- Parameters:
value- The gcpServiceAccountEmail to set.- Returns:
- This builder for chaining.
-
clearGcpServiceAccountEmail
The Google Cloud Service Account Email used for auth when secret_type is gcpServiceAccount.
string gcp_service_account_email = 8;- Returns:
- This builder for chaining.
-
setGcpServiceAccountEmailBytes
The Google Cloud Service Account Email used for auth when secret_type is gcpServiceAccount.
string gcp_service_account_email = 8;- Parameters:
value- The bytes for gcpServiceAccountEmail to set.- Returns:
- This builder for chaining.
-