Class PolicyContentSpec.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<PolicyContentSpec.Builder>
com.google.cloud.gkehub.policycontroller.v1beta.PolicyContentSpec.Builder
All Implemented Interfaces:
PolicyContentSpecOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
PolicyContentSpec

public static final class PolicyContentSpec.Builder extends com.google.protobuf.GeneratedMessage.Builder<PolicyContentSpec.Builder> implements PolicyContentSpecOrBuilder
 PolicyContentSpec defines the user's desired content configuration on the
 cluster.
 
Protobuf type google.cloud.gkehub.policycontroller.v1beta.PolicyContentSpec
  • Method Details

    • getDescriptor

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

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
      Overrides:
      internalGetMapFieldReflection in class com.google.protobuf.GeneratedMessage.Builder<PolicyContentSpec.Builder>
    • internalGetMutableMapFieldReflection

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
      Overrides:
      internalGetMutableMapFieldReflection in class com.google.protobuf.GeneratedMessage.Builder<PolicyContentSpec.Builder>
    • internalGetFieldAccessorTable

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

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

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

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

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

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

      public PolicyContentSpec.Builder mergeFrom(PolicyContentSpec other)
    • isInitialized

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

      public PolicyContentSpec.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<PolicyContentSpec.Builder>
      Throws:
      IOException
    • getBundlesCount

      public int getBundlesCount()
      Description copied from interface: PolicyContentSpecOrBuilder
       map of bundle name to BundleInstallSpec. The bundle name maps to the
       `bundleName` key in the `policycontroller.gke.io/constraintData` annotation
       on a constraint.
       
      map<string, .google.cloud.gkehub.policycontroller.v1beta.BundleInstallSpec> bundles = 1;
      Specified by:
      getBundlesCount in interface PolicyContentSpecOrBuilder
    • containsBundles

      public boolean containsBundles(String key)
       map of bundle name to BundleInstallSpec. The bundle name maps to the
       `bundleName` key in the `policycontroller.gke.io/constraintData` annotation
       on a constraint.
       
      map<string, .google.cloud.gkehub.policycontroller.v1beta.BundleInstallSpec> bundles = 1;
      Specified by:
      containsBundles in interface PolicyContentSpecOrBuilder
    • getBundles

      @Deprecated public Map<String,BundleInstallSpec> getBundles()
      Deprecated.
      Use getBundlesMap() instead.
      Specified by:
      getBundles in interface PolicyContentSpecOrBuilder
    • getBundlesMap

      public Map<String,BundleInstallSpec> getBundlesMap()
       map of bundle name to BundleInstallSpec. The bundle name maps to the
       `bundleName` key in the `policycontroller.gke.io/constraintData` annotation
       on a constraint.
       
      map<string, .google.cloud.gkehub.policycontroller.v1beta.BundleInstallSpec> bundles = 1;
      Specified by:
      getBundlesMap in interface PolicyContentSpecOrBuilder
    • getBundlesOrDefault

      public BundleInstallSpec getBundlesOrDefault(String key, BundleInstallSpec defaultValue)
       map of bundle name to BundleInstallSpec. The bundle name maps to the
       `bundleName` key in the `policycontroller.gke.io/constraintData` annotation
       on a constraint.
       
      map<string, .google.cloud.gkehub.policycontroller.v1beta.BundleInstallSpec> bundles = 1;
      Specified by:
      getBundlesOrDefault in interface PolicyContentSpecOrBuilder
    • getBundlesOrThrow

      public BundleInstallSpec getBundlesOrThrow(String key)
       map of bundle name to BundleInstallSpec. The bundle name maps to the
       `bundleName` key in the `policycontroller.gke.io/constraintData` annotation
       on a constraint.
       
      map<string, .google.cloud.gkehub.policycontroller.v1beta.BundleInstallSpec> bundles = 1;
      Specified by:
      getBundlesOrThrow in interface PolicyContentSpecOrBuilder
    • clearBundles

      public PolicyContentSpec.Builder clearBundles()
    • removeBundles

      public PolicyContentSpec.Builder removeBundles(String key)
       map of bundle name to BundleInstallSpec. The bundle name maps to the
       `bundleName` key in the `policycontroller.gke.io/constraintData` annotation
       on a constraint.
       
      map<string, .google.cloud.gkehub.policycontroller.v1beta.BundleInstallSpec> bundles = 1;
    • getMutableBundles

      @Deprecated public Map<String,BundleInstallSpec> getMutableBundles()
      Deprecated.
      Use alternate mutation accessors instead.
    • putBundles

      public PolicyContentSpec.Builder putBundles(String key, BundleInstallSpec value)
       map of bundle name to BundleInstallSpec. The bundle name maps to the
       `bundleName` key in the `policycontroller.gke.io/constraintData` annotation
       on a constraint.
       
      map<string, .google.cloud.gkehub.policycontroller.v1beta.BundleInstallSpec> bundles = 1;
    • putAllBundles

      public PolicyContentSpec.Builder putAllBundles(Map<String,BundleInstallSpec> values)
       map of bundle name to BundleInstallSpec. The bundle name maps to the
       `bundleName` key in the `policycontroller.gke.io/constraintData` annotation
       on a constraint.
       
      map<string, .google.cloud.gkehub.policycontroller.v1beta.BundleInstallSpec> bundles = 1;
    • putBundlesBuilderIfAbsent

      public BundleInstallSpec.Builder putBundlesBuilderIfAbsent(String key)
       map of bundle name to BundleInstallSpec. The bundle name maps to the
       `bundleName` key in the `policycontroller.gke.io/constraintData` annotation
       on a constraint.
       
      map<string, .google.cloud.gkehub.policycontroller.v1beta.BundleInstallSpec> bundles = 1;
    • hasTemplateLibrary

      public boolean hasTemplateLibrary()
       Configures the installation of the Template Library.
       
      .google.cloud.gkehub.policycontroller.v1beta.TemplateLibraryConfig template_library = 2;
      Specified by:
      hasTemplateLibrary in interface PolicyContentSpecOrBuilder
      Returns:
      Whether the templateLibrary field is set.
    • getTemplateLibrary

      public TemplateLibraryConfig getTemplateLibrary()
       Configures the installation of the Template Library.
       
      .google.cloud.gkehub.policycontroller.v1beta.TemplateLibraryConfig template_library = 2;
      Specified by:
      getTemplateLibrary in interface PolicyContentSpecOrBuilder
      Returns:
      The templateLibrary.
    • setTemplateLibrary

      public PolicyContentSpec.Builder setTemplateLibrary(TemplateLibraryConfig value)
       Configures the installation of the Template Library.
       
      .google.cloud.gkehub.policycontroller.v1beta.TemplateLibraryConfig template_library = 2;
    • setTemplateLibrary

      public PolicyContentSpec.Builder setTemplateLibrary(TemplateLibraryConfig.Builder builderForValue)
       Configures the installation of the Template Library.
       
      .google.cloud.gkehub.policycontroller.v1beta.TemplateLibraryConfig template_library = 2;
    • mergeTemplateLibrary

      public PolicyContentSpec.Builder mergeTemplateLibrary(TemplateLibraryConfig value)
       Configures the installation of the Template Library.
       
      .google.cloud.gkehub.policycontroller.v1beta.TemplateLibraryConfig template_library = 2;
    • clearTemplateLibrary

      public PolicyContentSpec.Builder clearTemplateLibrary()
       Configures the installation of the Template Library.
       
      .google.cloud.gkehub.policycontroller.v1beta.TemplateLibraryConfig template_library = 2;
    • getTemplateLibraryBuilder

      public TemplateLibraryConfig.Builder getTemplateLibraryBuilder()
       Configures the installation of the Template Library.
       
      .google.cloud.gkehub.policycontroller.v1beta.TemplateLibraryConfig template_library = 2;
    • getTemplateLibraryOrBuilder

      public TemplateLibraryConfigOrBuilder getTemplateLibraryOrBuilder()
       Configures the installation of the Template Library.
       
      .google.cloud.gkehub.policycontroller.v1beta.TemplateLibraryConfig template_library = 2;
      Specified by:
      getTemplateLibraryOrBuilder in interface PolicyContentSpecOrBuilder