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.v1beta.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.v1beta.OciConfig
  • 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()
       Required. 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 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getSyncRepo in interface OciConfigOrBuilder
      Returns:
      The syncRepo.
    • getSyncRepoBytes

      public com.google.protobuf.ByteString getSyncRepoBytes()
       Required. 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 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getSyncRepoBytes in interface OciConfigOrBuilder
      Returns:
      The bytes for syncRepo.
    • setSyncRepo

      public OciConfig.Builder setSyncRepo(String value)
       Required. 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 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The syncRepo to set.
      Returns:
      This builder for chaining.
    • clearSyncRepo

      public OciConfig.Builder clearSyncRepo()
       Required. 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 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • setSyncRepoBytes

      public OciConfig.Builder setSyncRepoBytes(com.google.protobuf.ByteString value)
       Required. 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 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The bytes for syncRepo to set.
      Returns:
      This builder for chaining.
    • getPolicyDir

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

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

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

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

      public OciConfig.Builder setPolicyDirBytes(com.google.protobuf.ByteString value)
       Optional. The absolute path of the directory that contains
       the local resources.  Default: the root directory of the image.
       
      string policy_dir = 2 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes for policyDir to set.
      Returns:
      This builder for chaining.
    • getSyncWaitSecs

      public long getSyncWaitSecs()
       Optional. Period in seconds between consecutive syncs. Default: 15.
       
      int64 sync_wait_secs = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getSyncWaitSecs in interface OciConfigOrBuilder
      Returns:
      The syncWaitSecs.
    • setSyncWaitSecs

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

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

      public String getSecretType()
       Required. Type of secret configured for access to the OCI repo.
       Must be one of `gcenode`, `gcpserviceaccount`, `k8sserviceaccount` or
       `none`.
       The validation of this is case-sensitive.
       
      string secret_type = 4 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getSecretType in interface OciConfigOrBuilder
      Returns:
      The secretType.
    • getSecretTypeBytes

      public com.google.protobuf.ByteString getSecretTypeBytes()
       Required. Type of secret configured for access to the OCI repo.
       Must be one of `gcenode`, `gcpserviceaccount`, `k8sserviceaccount` or
       `none`.
       The validation of this is case-sensitive.
       
      string secret_type = 4 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getSecretTypeBytes in interface OciConfigOrBuilder
      Returns:
      The bytes for secretType.
    • setSecretType

      public OciConfig.Builder setSecretType(String value)
       Required. Type of secret configured for access to the OCI repo.
       Must be one of `gcenode`, `gcpserviceaccount`, `k8sserviceaccount` or
       `none`.
       The validation of this is case-sensitive.
       
      string secret_type = 4 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The secretType to set.
      Returns:
      This builder for chaining.
    • clearSecretType

      public OciConfig.Builder clearSecretType()
       Required. Type of secret configured for access to the OCI repo.
       Must be one of `gcenode`, `gcpserviceaccount`, `k8sserviceaccount` or
       `none`.
       The validation of this is case-sensitive.
       
      string secret_type = 4 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • setSecretTypeBytes

      public OciConfig.Builder setSecretTypeBytes(com.google.protobuf.ByteString value)
       Required. Type of secret configured for access to the OCI repo.
       Must be one of `gcenode`, `gcpserviceaccount`, `k8sserviceaccount` or
       `none`.
       The validation of this is case-sensitive.
       
      string secret_type = 4 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The bytes for secretType to set.
      Returns:
      This builder for chaining.
    • getGcpServiceAccountEmail

      public String getGcpServiceAccountEmail()
       Optional. The Google Cloud Service Account Email used for auth when
       secret_type is `gcpserviceaccount`.
       
      string gcp_service_account_email = 5 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getGcpServiceAccountEmail in interface OciConfigOrBuilder
      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 = 5 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getGcpServiceAccountEmailBytes in interface OciConfigOrBuilder
      Returns:
      The bytes for gcpServiceAccountEmail.
    • setGcpServiceAccountEmail

      public OciConfig.Builder setGcpServiceAccountEmail(String value)
       Optional. The Google Cloud Service Account Email used for auth when
       secret_type is `gcpserviceaccount`.
       
      string gcp_service_account_email = 5 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The gcpServiceAccountEmail to set.
      Returns:
      This builder for chaining.
    • clearGcpServiceAccountEmail

      public OciConfig.Builder clearGcpServiceAccountEmail()
       Optional. The Google Cloud Service Account Email used for auth when
       secret_type is `gcpserviceaccount`.
       
      string gcp_service_account_email = 5 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • setGcpServiceAccountEmailBytes

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