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.v1beta.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.v1beta.GitConfig-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()Optional.Optional.Optional.Required.Optional.Required.Optional.Optional.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorOptional.com.google.protobuf.ByteStringOptional.Optional.com.google.protobuf.ByteStringOptional.Optional.com.google.protobuf.ByteStringOptional.Required.com.google.protobuf.ByteStringRequired.Optional.com.google.protobuf.ByteStringOptional.Required.com.google.protobuf.ByteStringRequired.Optional.com.google.protobuf.ByteStringOptional.longOptional.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) Optional.setGcpServiceAccountEmailBytes(com.google.protobuf.ByteString value) Optional.setHttpsProxy(String value) Optional.setHttpsProxyBytes(com.google.protobuf.ByteString value) Optional.setPolicyDir(String value) Optional.setPolicyDirBytes(com.google.protobuf.ByteString value) Optional.setSecretType(String value) Required.setSecretTypeBytes(com.google.protobuf.ByteString value) Required.setSyncBranch(String value) Optional.setSyncBranchBytes(com.google.protobuf.ByteString value) Optional.setSyncRepo(String value) Required.setSyncRepoBytes(com.google.protobuf.ByteString value) Required.setSyncRev(String value) Optional.setSyncRevBytes(com.google.protobuf.ByteString value) Optional.setSyncWaitSecs(long value) Optional.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
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.
-
setSyncRepo
Required. The URL of the Git repository to use as the source of truth.
string sync_repo = 1 [(.google.api.field_behavior) = REQUIRED];- Parameters:
value- The syncRepo to set.- Returns:
- This builder for chaining.
-
clearSyncRepo
Required. The URL of the Git repository to use as the source of truth.
string sync_repo = 1 [(.google.api.field_behavior) = REQUIRED];- Returns:
- This builder for chaining.
-
setSyncRepoBytes
Required. The URL of the Git repository to use as the source of truth.
string sync_repo = 1 [(.google.api.field_behavior) = REQUIRED];- Parameters:
value- The bytes for syncRepo to set.- Returns:
- This builder for chaining.
-
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.
-
setSyncBranch
Optional. The branch of the repository to sync from. Default: master.
string sync_branch = 2 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The syncBranch to set.- Returns:
- This builder for chaining.
-
clearSyncBranch
Optional. The branch of the repository to sync from. Default: master.
string sync_branch = 2 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-
setSyncBranchBytes
Optional. The branch of the repository to sync from. Default: master.
string sync_branch = 2 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The bytes for syncBranch to set.- Returns:
- This builder for chaining.
-
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.
-
setPolicyDir
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];- Parameters:
value- The policyDir to set.- Returns:
- This builder for chaining.
-
clearPolicyDir
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];- Returns:
- This builder for chaining.
-
setPolicyDirBytes
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];- Parameters:
value- The bytes for policyDir to set.- Returns:
- This builder for chaining.
-
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.
-
setSyncWaitSecs
Optional. Period in seconds between consecutive syncs. Default: 15.
int64 sync_wait_secs = 4 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The syncWaitSecs to set.- Returns:
- This builder for chaining.
-
clearSyncWaitSecs
Optional. Period in seconds between consecutive syncs. Default: 15.
int64 sync_wait_secs = 4 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-
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.
-
setSyncRev
Optional. Git revision (tag or hash) to check out. Default HEAD.
string sync_rev = 5 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The syncRev to set.- Returns:
- This builder for chaining.
-
clearSyncRev
Optional. Git revision (tag or hash) to check out. Default HEAD.
string sync_rev = 5 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-
setSyncRevBytes
Optional. Git revision (tag or hash) to check out. Default HEAD.
string sync_rev = 5 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The bytes for syncRev to set.- Returns:
- This builder for chaining.
-
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.
-
setSecretType
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];- Parameters:
value- The secretType to set.- Returns:
- This builder for chaining.
-
clearSecretType
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];- Returns:
- This builder for chaining.
-
setSecretTypeBytes
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];- Parameters:
value- The bytes for secretType to set.- Returns:
- This builder for chaining.
-
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.
-
setHttpsProxy
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];- Parameters:
value- The httpsProxy to set.- Returns:
- This builder for chaining.
-
clearHttpsProxy
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];- Returns:
- This builder for chaining.
-
setHttpsProxyBytes
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];- Parameters:
value- The bytes for httpsProxy to set.- Returns:
- This builder for chaining.
-
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.
-
setGcpServiceAccountEmail
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];- Parameters:
value- The gcpServiceAccountEmail to set.- Returns:
- This builder for chaining.
-
clearGcpServiceAccountEmail
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];- Returns:
- This builder for chaining.
-
setGcpServiceAccountEmailBytes
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];- Parameters:
value- The bytes for gcpServiceAccountEmail to set.- Returns:
- This builder for chaining.
-