Class GitConfig

  • All Implemented Interfaces:
    GitConfigOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

    public final class GitConfig
    extends com.google.protobuf.GeneratedMessageV3
    implements GitConfigOrBuilder
     Git repo configuration for a single cluster.
     
    Protobuf type google.cloud.gkehub.configmanagement.v1.GitConfig
    See Also:
    Serialized Form
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  GitConfig.Builder
      Git repo configuration for a single cluster.
      • Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3

        com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,​BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,​BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter
      • Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite

        com.google.protobuf.AbstractMessageLite.InternalOneOfEnum
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(Object obj)  
      static GitConfig getDefaultInstance()  
      GitConfig getDefaultInstanceForType()  
      static com.google.protobuf.Descriptors.Descriptor getDescriptor()  
      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.
      com.google.protobuf.Parser<GitConfig> getParserForType()  
      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.
      int getSerializedSize()  
      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.
      int hashCode()  
      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()  
      boolean isInitialized()  
      static GitConfig.Builder newBuilder()  
      static GitConfig.Builder newBuilder​(GitConfig prototype)  
      GitConfig.Builder newBuilderForType()  
      protected GitConfig.Builder newBuilderForType​(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)  
      protected Object newInstance​(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)  
      static GitConfig parseDelimitedFrom​(InputStream input)  
      static GitConfig parseDelimitedFrom​(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)  
      static GitConfig parseFrom​(byte[] data)  
      static GitConfig parseFrom​(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)  
      static GitConfig parseFrom​(com.google.protobuf.ByteString data)  
      static GitConfig parseFrom​(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)  
      static GitConfig parseFrom​(com.google.protobuf.CodedInputStream input)  
      static GitConfig parseFrom​(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)  
      static GitConfig parseFrom​(InputStream input)  
      static GitConfig parseFrom​(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)  
      static GitConfig parseFrom​(ByteBuffer data)  
      static GitConfig parseFrom​(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)  
      static com.google.protobuf.Parser<GitConfig> parser()  
      GitConfig.Builder toBuilder()  
      void writeTo​(com.google.protobuf.CodedOutputStream output)  
      • Methods inherited from class com.google.protobuf.GeneratedMessageV3

        canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
      • Methods inherited from class com.google.protobuf.AbstractMessage

        findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
      • Methods inherited from class com.google.protobuf.AbstractMessageLite

        addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
      • Methods inherited from interface com.google.protobuf.MessageLite

        toByteArray, toByteString, writeDelimitedTo, writeTo
      • Methods inherited from interface com.google.protobuf.MessageOrBuilder

        findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
    • Field Detail

      • SYNC_BRANCH_FIELD_NUMBER

        public static final int SYNC_BRANCH_FIELD_NUMBER
        See Also:
        Constant Field Values
      • POLICY_DIR_FIELD_NUMBER

        public static final int POLICY_DIR_FIELD_NUMBER
        See Also:
        Constant Field Values
      • SYNC_WAIT_SECS_FIELD_NUMBER

        public static final int SYNC_WAIT_SECS_FIELD_NUMBER
        See Also:
        Constant Field Values
      • SECRET_TYPE_FIELD_NUMBER

        public static final int SECRET_TYPE_FIELD_NUMBER
        See Also:
        Constant Field Values
      • HTTPS_PROXY_FIELD_NUMBER

        public static final int HTTPS_PROXY_FIELD_NUMBER
        See Also:
        Constant Field Values
      • GCP_SERVICE_ACCOUNT_EMAIL_FIELD_NUMBER

        public static final int GCP_SERVICE_ACCOUNT_EMAIL_FIELD_NUMBER
        See Also:
        Constant Field Values
    • Method Detail

      • newInstance

        protected Object newInstance​(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
        Overrides:
        newInstance in class com.google.protobuf.GeneratedMessageV3
      • 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
      • 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.
      • 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.
      • 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.
      • 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.
      • 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.
      • 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.
      • 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.
      • 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.
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3
      • writeTo

        public void writeTo​(com.google.protobuf.CodedOutputStream output)
                     throws IOException
        Specified by:
        writeTo in interface com.google.protobuf.MessageLite
        Overrides:
        writeTo in class com.google.protobuf.GeneratedMessageV3
        Throws:
        IOException
      • getSerializedSize

        public int getSerializedSize()
        Specified by:
        getSerializedSize in interface com.google.protobuf.MessageLite
        Overrides:
        getSerializedSize in class com.google.protobuf.GeneratedMessageV3
      • equals

        public boolean equals​(Object obj)
        Specified by:
        equals in interface com.google.protobuf.Message
        Overrides:
        equals in class com.google.protobuf.AbstractMessage
      • hashCode

        public int hashCode()
        Specified by:
        hashCode in interface com.google.protobuf.Message
        Overrides:
        hashCode in class com.google.protobuf.AbstractMessage
      • parseFrom

        public static GitConfig parseFrom​(ByteBuffer data)
                                   throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static GitConfig parseFrom​(ByteBuffer data,
                                          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                   throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static GitConfig parseFrom​(com.google.protobuf.ByteString data)
                                   throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static GitConfig parseFrom​(com.google.protobuf.ByteString data,
                                          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                   throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static GitConfig parseFrom​(byte[] data)
                                   throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static GitConfig parseFrom​(byte[] data,
                                          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                   throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static GitConfig parseFrom​(com.google.protobuf.CodedInputStream input,
                                          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                   throws IOException
        Throws:
        IOException
      • newBuilderForType

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

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

        protected GitConfig.Builder newBuilderForType​(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
        Specified by:
        newBuilderForType in class com.google.protobuf.GeneratedMessageV3
      • getDefaultInstance

        public static GitConfig getDefaultInstance()
      • parser

        public static com.google.protobuf.Parser<GitConfig> parser()
      • getParserForType

        public com.google.protobuf.Parser<GitConfig> getParserForType()
        Specified by:
        getParserForType in interface com.google.protobuf.Message
        Specified by:
        getParserForType in interface com.google.protobuf.MessageLite
        Overrides:
        getParserForType in class com.google.protobuf.GeneratedMessageV3
      • getDefaultInstanceForType

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