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.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
GitConfig
build()
GitConfig
buildPartial()
GitConfig.Builder
clear()
GitConfig.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
GitConfig.Builder
clearGcpServiceAccountEmail()
The GCP Service Account Email used for auth when secret_type is gcpServiceAccount.GitConfig.Builder
clearHttpsProxy()
URL for the HTTPS proxy to be used when communicating with the Git repo.GitConfig.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
GitConfig.Builder
clearPolicyDir()
The path within the Git repository that represents the top level of the repo to sync.GitConfig.Builder
clearSecretType()
Type of secret configured for access to the Git repo.GitConfig.Builder
clearSyncBranch()
The branch of the repository to sync from.GitConfig.Builder
clearSyncRepo()
The URL of the Git repository to use as the source of truth.GitConfig.Builder
clearSyncRev()
Git revision (tag or hash) to check out.GitConfig.Builder
clearSyncWaitSecs()
Period in seconds between consecutive syncs.GitConfig.Builder
clone()
GitConfig
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
String
getGcpServiceAccountEmail()
The GCP Service Account Email used for auth when secret_type is gcpServiceAccount.com.google.protobuf.ByteString
getGcpServiceAccountEmailBytes()
The GCP Service Account Email used for auth when secret_type is gcpServiceAccount.String
getHttpsProxy()
URL for the HTTPS proxy to be used when communicating with the Git repo.com.google.protobuf.ByteString
getHttpsProxyBytes()
URL for the HTTPS proxy to be used when communicating with the Git repo.String
getPolicyDir()
The path within the Git repository that represents the top level of the repo to sync.com.google.protobuf.ByteString
getPolicyDirBytes()
The path within the Git repository that represents the top level of the repo to sync.String
getSecretType()
Type of secret configured for access to the Git repo.com.google.protobuf.ByteString
getSecretTypeBytes()
Type of secret configured for access to the Git repo.String
getSyncBranch()
The branch of the repository to sync from.com.google.protobuf.ByteString
getSyncBranchBytes()
The branch of the repository to sync from.String
getSyncRepo()
The URL of the Git repository to use as the source of truth.com.google.protobuf.ByteString
getSyncRepoBytes()
The URL of the Git repository to use as the source of truth.String
getSyncRev()
Git revision (tag or hash) to check out.com.google.protobuf.ByteString
getSyncRevBytes()
Git revision (tag or hash) to check out.long
getSyncWaitSecs()
Period in seconds between consecutive syncs.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
GitConfig.Builder
mergeFrom(GitConfig other)
GitConfig.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
GitConfig.Builder
mergeFrom(com.google.protobuf.Message other)
GitConfig.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
GitConfig.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
GitConfig.Builder
setGcpServiceAccountEmail(String value)
The GCP Service Account Email used for auth when secret_type is gcpServiceAccount.GitConfig.Builder
setGcpServiceAccountEmailBytes(com.google.protobuf.ByteString value)
The GCP Service Account Email used for auth when secret_type is gcpServiceAccount.GitConfig.Builder
setHttpsProxy(String value)
URL for the HTTPS proxy to be used when communicating with the Git repo.GitConfig.Builder
setHttpsProxyBytes(com.google.protobuf.ByteString value)
URL for the HTTPS proxy to be used when communicating with the Git repo.GitConfig.Builder
setPolicyDir(String value)
The path within the Git repository that represents the top level of the repo to sync.GitConfig.Builder
setPolicyDirBytes(com.google.protobuf.ByteString value)
The path within the Git repository that represents the top level of the repo to sync.GitConfig.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
GitConfig.Builder
setSecretType(String value)
Type of secret configured for access to the Git repo.GitConfig.Builder
setSecretTypeBytes(com.google.protobuf.ByteString value)
Type of secret configured for access to the Git repo.GitConfig.Builder
setSyncBranch(String value)
The branch of the repository to sync from.GitConfig.Builder
setSyncBranchBytes(com.google.protobuf.ByteString value)
The branch of the repository to sync from.GitConfig.Builder
setSyncRepo(String value)
The URL of the Git repository to use as the source of truth.GitConfig.Builder
setSyncRepoBytes(com.google.protobuf.ByteString value)
The URL of the Git repository to use as the source of truth.GitConfig.Builder
setSyncRev(String value)
Git revision (tag or hash) to check out.GitConfig.Builder
setSyncRevBytes(com.google.protobuf.ByteString value)
Git revision (tag or hash) to check out.GitConfig.Builder
setSyncWaitSecs(long value)
Period in seconds between consecutive syncs.GitConfig.Builder
setUnknownFields(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:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<GitConfig.Builder>
-
clear
public GitConfig.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<GitConfig.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<GitConfig.Builder>
-
getDefaultInstanceForType
public GitConfig getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public GitConfig build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public GitConfig buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public GitConfig.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<GitConfig.Builder>
-
setField
public GitConfig.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<GitConfig.Builder>
-
clearField
public GitConfig.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<GitConfig.Builder>
-
clearOneof
public GitConfig.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<GitConfig.Builder>
-
setRepeatedField
public GitConfig.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<GitConfig.Builder>
-
addRepeatedField
public GitConfig.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<GitConfig.Builder>
-
mergeFrom
public GitConfig.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<GitConfig.Builder>
-
mergeFrom
public GitConfig.Builder mergeFrom(GitConfig other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in 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:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in 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:
getSyncRepo
in 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:
getSyncRepoBytes
in 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:
getSyncBranch
in 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:
getSyncBranchBytes
in 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:
getPolicyDir
in 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:
getPolicyDirBytes
in 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:
getSyncWaitSecs
in 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:
getSyncRev
in 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:
getSyncRevBytes
in 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:
getSecretType
in 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:
getSecretTypeBytes
in 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:
getHttpsProxy
in 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:
getHttpsProxyBytes
in 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:
getGcpServiceAccountEmail
in 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:
getGcpServiceAccountEmailBytes
in 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:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<GitConfig.Builder>
-
mergeUnknownFields
public final GitConfig.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<GitConfig.Builder>
-
-