Class 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 type google.cloud.gkehub.configmanagement.v1alpha.GitConfig
    • Method Detail

      • getDescriptor

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<GitConfig.Builder>
      • clear

        public GitConfig.Builder clear()
        Specified by:
        clear in interface com.google.protobuf.Message.Builder
        Specified by:
        clear in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clear in class com.google.protobuf.GeneratedMessageV3.Builder<GitConfig.Builder>
      • getDescriptorForType

        public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
        Specified by:
        getDescriptorForType in interface com.google.protobuf.Message.Builder
        Specified by:
        getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
        Overrides:
        getDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<GitConfig.Builder>
      • getDefaultInstanceForType

        public GitConfig getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
      • build

        public GitConfig build()
        Specified by:
        build in interface com.google.protobuf.Message.Builder
        Specified by:
        build in interface com.google.protobuf.MessageLite.Builder
      • buildPartial

        public GitConfig buildPartial()
        Specified by:
        buildPartial in interface com.google.protobuf.Message.Builder
        Specified by:
        buildPartial in interface com.google.protobuf.MessageLite.Builder
      • clone

        public GitConfig.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.google.protobuf.GeneratedMessageV3.Builder<GitConfig.Builder>
      • setField

        public GitConfig.Builder setField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                          Object value)
        Specified by:
        setField in interface com.google.protobuf.Message.Builder
        Overrides:
        setField in class com.google.protobuf.GeneratedMessageV3.Builder<GitConfig.Builder>
      • clearField

        public GitConfig.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<GitConfig.Builder>
      • clearOneof

        public GitConfig.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.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 interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<GitConfig.Builder>
      • addRepeatedField

        public GitConfig.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                  Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<GitConfig.Builder>
      • mergeFrom

        public GitConfig.Builder mergeFrom​(com.google.protobuf.Message other)
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<GitConfig.Builder>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.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 interface com.google.protobuf.Message.Builder
        Specified by:
        mergeFrom in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        mergeFrom in class com.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 interface GitConfigOrBuilder
        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 interface GitConfigOrBuilder
        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 interface GitConfigOrBuilder
        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 interface GitConfigOrBuilder
        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 interface GitConfigOrBuilder
        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 interface GitConfigOrBuilder
        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 interface GitConfigOrBuilder
        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 interface GitConfigOrBuilder
        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 interface GitConfigOrBuilder
        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 interface GitConfigOrBuilder
        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 interface GitConfigOrBuilder
        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 interface GitConfigOrBuilder
        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 interface GitConfigOrBuilder
        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 interface GitConfigOrBuilder
        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 interface GitConfigOrBuilder
        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 interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<GitConfig.Builder>
      • mergeUnknownFields

        public final GitConfig.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<GitConfig.Builder>