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 Summary
Modifier and TypeMethodDescriptionbuild()clear()Configures the installation of the Template Library.booleancontainsBundles(String key) map of bundle name to BundleInstallSpec.Deprecated.intmap of bundle name to BundleInstallSpec.map of bundle name to BundleInstallSpec.getBundlesOrDefault(String key, BundleInstallSpec defaultValue) map of bundle name to BundleInstallSpec.getBundlesOrThrow(String key) map of bundle name to BundleInstallSpec.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorDeprecated.Configures the installation of the Template Library.Configures the installation of the Template Library.Configures the installation of the Template Library.booleanConfigures the installation of the Template Library.protected com.google.protobuf.GeneratedMessage.FieldAccessorTableprotected com.google.protobuf.MapFieldReflectionAccessorinternalGetMapFieldReflection(int number) protected com.google.protobuf.MapFieldReflectionAccessorinternalGetMutableMapFieldReflection(int number) final booleanmergeFrom(PolicyContentSpec other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) Configures the installation of the Template Library.putAllBundles(Map<String, BundleInstallSpec> values) map of bundle name to BundleInstallSpec.putBundles(String key, BundleInstallSpec value) map of bundle name to BundleInstallSpec.map of bundle name to BundleInstallSpec.removeBundles(String key) map of bundle name to BundleInstallSpec.Configures the installation of the Template Library.setTemplateLibrary(TemplateLibraryConfig.Builder builderForValue) Configures the installation of the Template Library.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, internalGetMutableMapField, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods 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() -
internalGetMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number) - Overrides:
internalGetMapFieldReflectionin classcom.google.protobuf.GeneratedMessage.Builder<PolicyContentSpec.Builder>
-
internalGetMutableMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number) - Overrides:
internalGetMutableMapFieldReflectionin classcom.google.protobuf.GeneratedMessage.Builder<PolicyContentSpec.Builder>
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<PolicyContentSpec.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<PolicyContentSpec.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<PolicyContentSpec.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<PolicyContentSpec.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.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:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<PolicyContentSpec.Builder>- Throws:
IOException
-
getBundlesCount
public int getBundlesCount()Description copied from interface:PolicyContentSpecOrBuildermap 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:
getBundlesCountin interfacePolicyContentSpecOrBuilder
-
containsBundles
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:
containsBundlesin interfacePolicyContentSpecOrBuilder
-
getBundles
Deprecated.UsegetBundlesMap()instead.- Specified by:
getBundlesin interfacePolicyContentSpecOrBuilder
-
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:
getBundlesMapin interfacePolicyContentSpecOrBuilder
-
getBundlesOrDefault
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:
getBundlesOrDefaultin interfacePolicyContentSpecOrBuilder
-
getBundlesOrThrow
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:
getBundlesOrThrowin interfacePolicyContentSpecOrBuilder
-
clearBundles
-
removeBundles
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.Use alternate mutation accessors instead. -
putBundles
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
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
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:
hasTemplateLibraryin interfacePolicyContentSpecOrBuilder- Returns:
- Whether the templateLibrary field is set.
-
getTemplateLibrary
Configures the installation of the Template Library.
.google.cloud.gkehub.policycontroller.v1beta.TemplateLibraryConfig template_library = 2;- Specified by:
getTemplateLibraryin interfacePolicyContentSpecOrBuilder- Returns:
- The templateLibrary.
-
setTemplateLibrary
Configures the installation of the Template Library.
.google.cloud.gkehub.policycontroller.v1beta.TemplateLibraryConfig template_library = 2; -
setTemplateLibrary
Configures the installation of the Template Library.
.google.cloud.gkehub.policycontroller.v1beta.TemplateLibraryConfig template_library = 2; -
mergeTemplateLibrary
Configures the installation of the Template Library.
.google.cloud.gkehub.policycontroller.v1beta.TemplateLibraryConfig template_library = 2; -
clearTemplateLibrary
Configures the installation of the Template Library.
.google.cloud.gkehub.policycontroller.v1beta.TemplateLibraryConfig template_library = 2; -
getTemplateLibraryBuilder
Configures the installation of the Template Library.
.google.cloud.gkehub.policycontroller.v1beta.TemplateLibraryConfig template_library = 2; -
getTemplateLibraryOrBuilder
Configures the installation of the Template Library.
.google.cloud.gkehub.policycontroller.v1beta.TemplateLibraryConfig template_library = 2;- Specified by:
getTemplateLibraryOrBuilderin interfacePolicyContentSpecOrBuilder
-