Class OciConfig.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<OciConfig.Builder>
com.google.cloud.gkehub.configmanagement.v1.OciConfig.Builder
All Implemented Interfaces:
OciConfigOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
OciConfig

public static final class OciConfig.Builder extends com.google.protobuf.GeneratedMessage.Builder<OciConfig.Builder> implements OciConfigOrBuilder
 OCI repo configuration for a single cluster
 
Protobuf type google.cloud.gkehub.configmanagement.v1.OciConfig
  • Method Summary

    Modifier and Type
    Method
    Description
     
     
     
    The Google Cloud Service Account Email used for auth when secret_type is gcpServiceAccount.
    The absolute path of the directory that contains the local resources.
    Type of secret configured for access to the Git repo.
    The OCI image repository URL for the package to sync from.
    Period in seconds between consecutive syncs.
     
    static final com.google.protobuf.Descriptors.Descriptor
     
    com.google.protobuf.Descriptors.Descriptor
     
    The Google Cloud Service Account Email used for auth when secret_type is gcpServiceAccount.
    com.google.protobuf.ByteString
    The Google Cloud Service Account Email used for auth when secret_type is gcpServiceAccount.
    The absolute path of the directory that contains the local resources.
    com.google.protobuf.ByteString
    The absolute path of the directory that contains the local resources.
    Type of secret configured for access to the Git repo.
    com.google.protobuf.ByteString
    Type of secret configured for access to the Git repo.
    The OCI image repository URL for the package to sync from.
    com.google.protobuf.ByteString
    The OCI image repository URL for the package to sync from.
    long
    Period in seconds between consecutive syncs.
    protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
     
    final boolean
     
     
    mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    mergeFrom(com.google.protobuf.Message other)
     
    The Google Cloud Service Account Email used for auth when secret_type is gcpServiceAccount.
    setGcpServiceAccountEmailBytes(com.google.protobuf.ByteString value)
    The Google Cloud Service Account Email used for auth when secret_type is gcpServiceAccount.
    The absolute path of the directory that contains the local resources.
    setPolicyDirBytes(com.google.protobuf.ByteString value)
    The absolute path of the directory that contains the local resources.
    Type of secret configured for access to the Git repo.
    setSecretTypeBytes(com.google.protobuf.ByteString value)
    Type of secret configured for access to the Git repo.
    The OCI image repository URL for the package to sync from.
    setSyncRepoBytes(com.google.protobuf.ByteString value)
    The OCI image repository URL for the package to sync from.
    setSyncWaitSecs(long value)
    Period in seconds between consecutive syncs.

    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, 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

    Methods inherited from interface com.google.protobuf.Message.Builder

    mergeDelimitedFrom, mergeDelimitedFrom

    Methods inherited from interface com.google.protobuf.MessageLite.Builder

    mergeFrom

    Methods 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:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<OciConfig.Builder>
    • clear

      public OciConfig.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.GeneratedMessage.Builder<OciConfig.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.GeneratedMessage.Builder<OciConfig.Builder>
    • getDefaultInstanceForType

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

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

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

      public OciConfig.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<OciConfig.Builder>
    • mergeFrom

      public OciConfig.Builder mergeFrom(OciConfig other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<OciConfig.Builder>
    • mergeFrom

      public OciConfig.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<OciConfig.Builder>
      Throws:
      IOException
    • getSyncRepo

      public String getSyncRepo()
       The OCI image repository URL for the package to sync from.
       e.g. `LOCATION-docker.pkg.dev/PROJECT_ID/REPOSITORY_NAME/PACKAGE_NAME`.
       
      string sync_repo = 1;
      Specified by:
      getSyncRepo in interface OciConfigOrBuilder
      Returns:
      The syncRepo.
    • getSyncRepoBytes

      public com.google.protobuf.ByteString getSyncRepoBytes()
       The OCI image repository URL for the package to sync from.
       e.g. `LOCATION-docker.pkg.dev/PROJECT_ID/REPOSITORY_NAME/PACKAGE_NAME`.
       
      string sync_repo = 1;
      Specified by:
      getSyncRepoBytes in interface OciConfigOrBuilder
      Returns:
      The bytes for syncRepo.
    • setSyncRepo

      public OciConfig.Builder setSyncRepo(String value)
       The OCI image repository URL for the package to sync from.
       e.g. `LOCATION-docker.pkg.dev/PROJECT_ID/REPOSITORY_NAME/PACKAGE_NAME`.
       
      string sync_repo = 1;
      Parameters:
      value - The syncRepo to set.
      Returns:
      This builder for chaining.
    • clearSyncRepo

      public OciConfig.Builder clearSyncRepo()
       The OCI image repository URL for the package to sync from.
       e.g. `LOCATION-docker.pkg.dev/PROJECT_ID/REPOSITORY_NAME/PACKAGE_NAME`.
       
      string sync_repo = 1;
      Returns:
      This builder for chaining.
    • setSyncRepoBytes

      public OciConfig.Builder setSyncRepoBytes(com.google.protobuf.ByteString value)
       The OCI image repository URL for the package to sync from.
       e.g. `LOCATION-docker.pkg.dev/PROJECT_ID/REPOSITORY_NAME/PACKAGE_NAME`.
       
      string sync_repo = 1;
      Parameters:
      value - The bytes for syncRepo to set.
      Returns:
      This builder for chaining.
    • getPolicyDir

      public String getPolicyDir()
       The absolute path of the directory that contains
       the local resources.  Default: the root directory of the image.
       
      string policy_dir = 2;
      Specified by:
      getPolicyDir in interface OciConfigOrBuilder
      Returns:
      The policyDir.
    • getPolicyDirBytes

      public com.google.protobuf.ByteString getPolicyDirBytes()
       The absolute path of the directory that contains
       the local resources.  Default: the root directory of the image.
       
      string policy_dir = 2;
      Specified by:
      getPolicyDirBytes in interface OciConfigOrBuilder
      Returns:
      The bytes for policyDir.
    • setPolicyDir

      public OciConfig.Builder setPolicyDir(String value)
       The absolute path of the directory that contains
       the local resources.  Default: the root directory of the image.
       
      string policy_dir = 2;
      Parameters:
      value - The policyDir to set.
      Returns:
      This builder for chaining.
    • clearPolicyDir

      public OciConfig.Builder clearPolicyDir()
       The absolute path of the directory that contains
       the local resources.  Default: the root directory of the image.
       
      string policy_dir = 2;
      Returns:
      This builder for chaining.
    • setPolicyDirBytes

      public OciConfig.Builder setPolicyDirBytes(com.google.protobuf.ByteString value)
       The absolute path of the directory that contains
       the local resources.  Default: the root directory of the image.
       
      string policy_dir = 2;
      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 = 3;
      Specified by:
      getSyncWaitSecs in interface OciConfigOrBuilder
      Returns:
      The syncWaitSecs.
    • setSyncWaitSecs

      public OciConfig.Builder setSyncWaitSecs(long value)
       Period in seconds between consecutive syncs. Default: 15.
       
      int64 sync_wait_secs = 3;
      Parameters:
      value - The syncWaitSecs to set.
      Returns:
      This builder for chaining.
    • clearSyncWaitSecs

      public OciConfig.Builder clearSyncWaitSecs()
       Period in seconds between consecutive syncs. Default: 15.
       
      int64 sync_wait_secs = 3;
      Returns:
      This builder for chaining.
    • getSecretType

      public String getSecretType()
       Type of secret configured for access to the Git repo.
       
      string secret_type = 4;
      Specified by:
      getSecretType in interface OciConfigOrBuilder
      Returns:
      The secretType.
    • getSecretTypeBytes

      public com.google.protobuf.ByteString getSecretTypeBytes()
       Type of secret configured for access to the Git repo.
       
      string secret_type = 4;
      Specified by:
      getSecretTypeBytes in interface OciConfigOrBuilder
      Returns:
      The bytes for secretType.
    • setSecretType

      public OciConfig.Builder setSecretType(String value)
       Type of secret configured for access to the Git repo.
       
      string secret_type = 4;
      Parameters:
      value - The secretType to set.
      Returns:
      This builder for chaining.
    • clearSecretType

      public OciConfig.Builder clearSecretType()
       Type of secret configured for access to the Git repo.
       
      string secret_type = 4;
      Returns:
      This builder for chaining.
    • setSecretTypeBytes

      public OciConfig.Builder setSecretTypeBytes(com.google.protobuf.ByteString value)
       Type of secret configured for access to the Git repo.
       
      string secret_type = 4;
      Parameters:
      value - The bytes for secretType to set.
      Returns:
      This builder for chaining.
    • getGcpServiceAccountEmail

      public String getGcpServiceAccountEmail()
       The Google Cloud Service Account Email used for auth when secret_type is
       gcpServiceAccount.
       
      string gcp_service_account_email = 5;
      Specified by:
      getGcpServiceAccountEmail in interface OciConfigOrBuilder
      Returns:
      The gcpServiceAccountEmail.
    • getGcpServiceAccountEmailBytes

      public com.google.protobuf.ByteString getGcpServiceAccountEmailBytes()
       The Google Cloud Service Account Email used for auth when secret_type is
       gcpServiceAccount.
       
      string gcp_service_account_email = 5;
      Specified by:
      getGcpServiceAccountEmailBytes in interface OciConfigOrBuilder
      Returns:
      The bytes for gcpServiceAccountEmail.
    • setGcpServiceAccountEmail

      public OciConfig.Builder setGcpServiceAccountEmail(String value)
       The Google Cloud Service Account Email used for auth when secret_type is
       gcpServiceAccount.
       
      string gcp_service_account_email = 5;
      Parameters:
      value - The gcpServiceAccountEmail to set.
      Returns:
      This builder for chaining.
    • clearGcpServiceAccountEmail

      public OciConfig.Builder clearGcpServiceAccountEmail()
       The Google Cloud Service Account Email used for auth when secret_type is
       gcpServiceAccount.
       
      string gcp_service_account_email = 5;
      Returns:
      This builder for chaining.
    • setGcpServiceAccountEmailBytes

      public OciConfig.Builder setGcpServiceAccountEmailBytes(com.google.protobuf.ByteString value)
       The Google Cloud Service Account Email used for auth when secret_type is
       gcpServiceAccount.
       
      string gcp_service_account_email = 5;
      Parameters:
      value - The bytes for gcpServiceAccountEmail to set.
      Returns:
      This builder for chaining.