java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloud.gkehub.configmanagement.v1beta.GitConfig
All Implemented Interfaces:
GitConfigOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

@Generated public final class GitConfig extends com.google.protobuf.GeneratedMessage implements GitConfigOrBuilder
 Git repo configuration for a single cluster.
 
Protobuf type google.cloud.gkehub.configmanagement.v1beta.GitConfig
See Also:
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static final class 
    Git repo configuration for a single cluster.

    Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessage

    com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.FieldAccessorTable, com.google.protobuf.GeneratedMessage.GeneratedExtension<ContainingT extends com.google.protobuf.Message,T extends Object>, com.google.protobuf.GeneratedMessage.UnusedPrivateParameter

    Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessage

    com.google.protobuf.AbstractMessage.BuilderParent

    Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite

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

    Fields
    Modifier and Type
    Field
    Description
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     

    Fields inherited from class com.google.protobuf.GeneratedMessage

    alwaysUseFieldBuilders, loggedPre22TypeNames, unknownFields

    Fields inherited from class com.google.protobuf.AbstractMessage

    memoizedSize

    Fields inherited from class com.google.protobuf.AbstractMessageLite

    memoizedHashCode
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
     
    static GitConfig
     
     
    static final com.google.protobuf.Descriptors.Descriptor
     
    Optional.
    com.google.protobuf.ByteString
    Optional.
    Optional.
    com.google.protobuf.ByteString
    Optional.
    com.google.protobuf.Parser<GitConfig>
     
    Optional.
    com.google.protobuf.ByteString
    Optional.
    Required.
    com.google.protobuf.ByteString
    Required.
    int
     
    Optional.
    com.google.protobuf.ByteString
    Optional.
    Required.
    com.google.protobuf.ByteString
    Required.
    Optional.
    com.google.protobuf.ByteString
    Optional.
    long
    Optional.
    int
     
    protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
     
    final boolean
     
     
    newBuilder(GitConfig prototype)
     
     
    newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
     
    static GitConfig
     
    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
     
    static GitConfig
    parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    static GitConfig
     
    static GitConfig
    parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    static com.google.protobuf.Parser<GitConfig>
     
     
    void
    writeTo(com.google.protobuf.CodedOutputStream output)
     

    Methods inherited from class com.google.protobuf.GeneratedMessage

    canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, newFileScopedGeneratedExtension, newInstance, newMessageScopedGeneratedExtension, 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, hashFields, toString

    Methods inherited from class com.google.protobuf.AbstractMessageLite

    addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait

    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 Details

    • SYNC_REPO_FIELD_NUMBER

      public static final int SYNC_REPO_FIELD_NUMBER
      See Also:
    • SYNC_BRANCH_FIELD_NUMBER

      public static final int SYNC_BRANCH_FIELD_NUMBER
      See Also:
    • POLICY_DIR_FIELD_NUMBER

      public static final int POLICY_DIR_FIELD_NUMBER
      See Also:
    • SYNC_WAIT_SECS_FIELD_NUMBER

      public static final int SYNC_WAIT_SECS_FIELD_NUMBER
      See Also:
    • SYNC_REV_FIELD_NUMBER

      public static final int SYNC_REV_FIELD_NUMBER
      See Also:
    • SECRET_TYPE_FIELD_NUMBER

      public static final int SECRET_TYPE_FIELD_NUMBER
      See Also:
    • HTTPS_PROXY_FIELD_NUMBER

      public static final int HTTPS_PROXY_FIELD_NUMBER
      See Also:
    • GCP_SERVICE_ACCOUNT_EMAIL_FIELD_NUMBER

      public static final int GCP_SERVICE_ACCOUNT_EMAIL_FIELD_NUMBER
      See Also:
  • Method Details

    • getDescriptor

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

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage
    • getSyncRepo

      public String 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:
      getSyncRepo in interface GitConfigOrBuilder
      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:
      getSyncRepoBytes in interface GitConfigOrBuilder
      Returns:
      The bytes for syncRepo.
    • getSyncBranch

      public String getSyncBranch()
       Optional. The branch of the repository to sync from. Default: master.
       
      string sync_branch = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getSyncBranch in interface GitConfigOrBuilder
      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:
      getSyncBranchBytes in interface GitConfigOrBuilder
      Returns:
      The bytes for syncBranch.
    • getPolicyDir

      public String 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:
      getPolicyDir in interface GitConfigOrBuilder
      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:
      getPolicyDirBytes in interface GitConfigOrBuilder
      Returns:
      The bytes for policyDir.
    • 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:
      getSyncWaitSecs in interface GitConfigOrBuilder
      Returns:
      The syncWaitSecs.
    • getSyncRev

      public String getSyncRev()
       Optional. Git revision (tag or hash) to check out. Default HEAD.
       
      string sync_rev = 5 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getSyncRev in interface GitConfigOrBuilder
      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:
      getSyncRevBytes in interface GitConfigOrBuilder
      Returns:
      The bytes for syncRev.
    • getSecretType

      public String 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:
      getSecretType in interface GitConfigOrBuilder
      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:
      getSecretTypeBytes in interface GitConfigOrBuilder
      Returns:
      The bytes for secretType.
    • getHttpsProxy

      public String 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:
      getHttpsProxy in interface GitConfigOrBuilder
      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:
      getHttpsProxyBytes in interface GitConfigOrBuilder
      Returns:
      The bytes for httpsProxy.
    • getGcpServiceAccountEmail

      public String 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:
      getGcpServiceAccountEmail in interface GitConfigOrBuilder
      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:
      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.GeneratedMessage
    • 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.GeneratedMessage
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessage
    • 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(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static GitConfig parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static GitConfig parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static GitConfig parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static GitConfig parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • 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
    • newBuilder

      public static GitConfig.Builder newBuilder()
    • newBuilder

      public static GitConfig.Builder newBuilder(GitConfig prototype)
    • 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.AbstractMessage.BuilderParent parent)
      Overrides:
      newBuilderForType in class com.google.protobuf.AbstractMessage
    • 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.GeneratedMessage
    • getDefaultInstanceForType

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