Class GitConfig.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.Builder<GitConfig.Builder> implements GitConfigOrBuilder
Git repo configuration for a single cluster.
Protobuf typegoogle.cloud.gkehub.configmanagement.v1.GitConfig
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description GitConfig.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)GitConfigbuild()GitConfigbuildPartial()GitConfig.Builderclear()GitConfig.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)GitConfig.BuilderclearGcpServiceAccountEmail()The GCP Service Account Email used for auth when secret_type is gcpServiceAccount.GitConfig.BuilderclearHttpsProxy()URL for the HTTPS proxy to be used when communicating with the Git repo.GitConfig.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)GitConfig.BuilderclearPolicyDir()The path within the Git repository that represents the top level of the repo to sync.GitConfig.BuilderclearSecretType()Type of secret configured for access to the Git repo.GitConfig.BuilderclearSyncBranch()The branch of the repository to sync from.GitConfig.BuilderclearSyncRepo()The URL of the Git repository to use as the source of truth.GitConfig.BuilderclearSyncRev()Git revision (tag or hash) to check out.GitConfig.BuilderclearSyncWaitSecs()Period in seconds between consecutive syncs.GitConfig.Builderclone()GitConfiggetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()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.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.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.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()GitConfig.BuildermergeFrom(GitConfig other)GitConfig.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)GitConfig.BuildermergeFrom(com.google.protobuf.Message other)GitConfig.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)GitConfig.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)GitConfig.BuildersetGcpServiceAccountEmail(String value)The GCP Service Account Email used for auth when secret_type is gcpServiceAccount.GitConfig.BuildersetGcpServiceAccountEmailBytes(com.google.protobuf.ByteString value)The GCP Service Account Email used for auth when secret_type is gcpServiceAccount.GitConfig.BuildersetHttpsProxy(String value)URL for the HTTPS proxy to be used when communicating with the Git repo.GitConfig.BuildersetHttpsProxyBytes(com.google.protobuf.ByteString value)URL for the HTTPS proxy to be used when communicating with the Git repo.GitConfig.BuildersetPolicyDir(String value)The path within the Git repository that represents the top level of the repo to sync.GitConfig.BuildersetPolicyDirBytes(com.google.protobuf.ByteString value)The path within the Git repository that represents the top level of the repo to sync.GitConfig.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)GitConfig.BuildersetSecretType(String value)Type of secret configured for access to the Git repo.GitConfig.BuildersetSecretTypeBytes(com.google.protobuf.ByteString value)Type of secret configured for access to the Git repo.GitConfig.BuildersetSyncBranch(String value)The branch of the repository to sync from.GitConfig.BuildersetSyncBranchBytes(com.google.protobuf.ByteString value)The branch of the repository to sync from.GitConfig.BuildersetSyncRepo(String value)The URL of the Git repository to use as the source of truth.GitConfig.BuildersetSyncRepoBytes(com.google.protobuf.ByteString value)The URL of the Git repository to use as the source of truth.GitConfig.BuildersetSyncRev(String value)Git revision (tag or hash) to check out.GitConfig.BuildersetSyncRevBytes(com.google.protobuf.ByteString value)Git revision (tag or hash) to check out.GitConfig.BuildersetSyncWaitSecs(long value)Period in seconds between consecutive syncs.GitConfig.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
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.Builder<GitConfig.Builder>
-
clear
public GitConfig.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.Builder<GitConfig.Builder>
-
getDefaultInstanceForType
public GitConfig getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public GitConfig build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public GitConfig buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public GitConfig.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<GitConfig.Builder>
-
setField
public GitConfig.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<GitConfig.Builder>
-
clearField
public GitConfig.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<GitConfig.Builder>
-
clearOneof
public GitConfig.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<GitConfig.Builder>
-
setRepeatedField
public GitConfig.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<GitConfig.Builder>
-
addRepeatedField
public GitConfig.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<GitConfig.Builder>
-
mergeFrom
public GitConfig.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<GitConfig.Builder>
-
mergeFrom
public GitConfig.Builder mergeFrom(GitConfig other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.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
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.
-
setSyncRepo
public GitConfig.Builder setSyncRepo(String value)
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
public GitConfig.Builder clearSyncRepo()
The URL of the Git repository to use as the source of truth.
string sync_repo = 1;- Returns:
- This builder for chaining.
-
setSyncRepoBytes
public GitConfig.Builder setSyncRepoBytes(com.google.protobuf.ByteString value)
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
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.
-
setSyncBranch
public GitConfig.Builder setSyncBranch(String value)
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
public GitConfig.Builder clearSyncBranch()
The branch of the repository to sync from. Default: master.
string sync_branch = 2;- Returns:
- This builder for chaining.
-
setSyncBranchBytes
public GitConfig.Builder setSyncBranchBytes(com.google.protobuf.ByteString value)
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
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.
-
setPolicyDir
public GitConfig.Builder setPolicyDir(String value)
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
public GitConfig.Builder 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
public GitConfig.Builder setPolicyDirBytes(com.google.protobuf.ByteString value)
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
public GitConfig.Builder setSyncWaitSecs(long value)
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
public GitConfig.Builder clearSyncWaitSecs()
Period in seconds between consecutive syncs. Default: 15.
int64 sync_wait_secs = 4;- Returns:
- This builder for chaining.
-
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.
-
setSyncRev
public GitConfig.Builder setSyncRev(String value)
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
public GitConfig.Builder clearSyncRev()
Git revision (tag or hash) to check out. Default HEAD.
string sync_rev = 5;- Returns:
- This builder for chaining.
-
setSyncRevBytes
public GitConfig.Builder setSyncRevBytes(com.google.protobuf.ByteString value)
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
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.
-
setSecretType
public GitConfig.Builder setSecretType(String value)
Type of secret configured for access to the Git repo.
string secret_type = 6;- Parameters:
value- The secretType to set.- Returns:
- This builder for chaining.
-
clearSecretType
public GitConfig.Builder clearSecretType()
Type of secret configured for access to the Git repo.
string secret_type = 6;- Returns:
- This builder for chaining.
-
setSecretTypeBytes
public GitConfig.Builder setSecretTypeBytes(com.google.protobuf.ByteString value)
Type of secret configured for access to the Git repo.
string secret_type = 6;- Parameters:
value- The bytes for secretType to set.- Returns:
- This builder for chaining.
-
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.
-
setHttpsProxy
public GitConfig.Builder setHttpsProxy(String value)
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
public GitConfig.Builder 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
public GitConfig.Builder setHttpsProxyBytes(com.google.protobuf.ByteString value)
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
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.
-
setGcpServiceAccountEmail
public GitConfig.Builder setGcpServiceAccountEmail(String value)
The GCP 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
public GitConfig.Builder clearGcpServiceAccountEmail()
The GCP Service Account Email used for auth when secret_type is gcpServiceAccount.
string gcp_service_account_email = 8;- Returns:
- This builder for chaining.
-
setGcpServiceAccountEmailBytes
public GitConfig.Builder setGcpServiceAccountEmailBytes(com.google.protobuf.ByteString value)
The GCP 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.
-
setUnknownFields
public final GitConfig.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<GitConfig.Builder>
-
mergeUnknownFields
public final GitConfig.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<GitConfig.Builder>
-
-