public static final class PolicyContentSpec.Builder extends 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
Inherited Members
com.google.protobuf.GeneratedMessage.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessage.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessage.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessage.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessage.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessage.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessage.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
com.google.protobuf.GeneratedMessage.Builder.setUnknownFieldsProto3(com.google.protobuf.UnknownFieldSet)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Methods
build()
public PolicyContentSpec build()
buildPartial()
public PolicyContentSpec buildPartial()
clear()
public PolicyContentSpec.Builder clear()
Overrides
clearBundles()
public PolicyContentSpec.Builder clearBundles()
clearTemplateLibrary()
public PolicyContentSpec.Builder clearTemplateLibrary()
Configures the installation of the Template Library.
.google.cloud.gkehub.policycontroller.v1beta.TemplateLibraryConfig template_library = 2;
containsBundles(String key)
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;
| Parameter |
| Name |
Description |
key |
String
|
getBundles() (deprecated)
public Map<String,BundleInstallSpec> getBundles()
getBundlesCount()
public int getBundlesCount()
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;
| Returns |
| Type |
Description |
int |
|
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;
getBundlesOrDefault(String key, BundleInstallSpec defaultValue)
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;
getBundlesOrThrow(String key)
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;
| Parameter |
| Name |
Description |
key |
String
|
getDefaultInstanceForType()
public PolicyContentSpec getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
getMutableBundles() (deprecated)
public Map<String,BundleInstallSpec> getMutableBundles()
Use alternate mutation accessors instead.
getTemplateLibrary()
public TemplateLibraryConfig getTemplateLibrary()
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;
hasTemplateLibrary()
public boolean hasTemplateLibrary()
Configures the installation of the Template Library.
.google.cloud.gkehub.policycontroller.v1beta.TemplateLibraryConfig template_library = 2;
| Returns |
| Type |
Description |
boolean |
Whether the templateLibrary field is set.
|
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
internalGetMapFieldReflection(int number)
protected MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
| Parameter |
| Name |
Description |
number |
int
|
| Returns |
| Type |
Description |
com.google.protobuf.MapFieldReflectionAccessor |
|
Overrides
com.google.protobuf.GeneratedMessage.Builder.internalGetMapFieldReflection(int)
internalGetMutableMapFieldReflection(int number)
protected MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
| Parameter |
| Name |
Description |
number |
int
|
| Returns |
| Type |
Description |
com.google.protobuf.MapFieldReflectionAccessor |
|
Overrides
com.google.protobuf.GeneratedMessage.Builder.internalGetMutableMapFieldReflection(int)
isInitialized()
public final boolean isInitialized()
Overrides
mergeFrom(PolicyContentSpec other)
public PolicyContentSpec.Builder mergeFrom(PolicyContentSpec other)
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public PolicyContentSpec.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public PolicyContentSpec.Builder mergeFrom(Message other)
| Parameter |
| Name |
Description |
other |
Message
|
Overrides
mergeTemplateLibrary(TemplateLibraryConfig value)
public PolicyContentSpec.Builder mergeTemplateLibrary(TemplateLibraryConfig value)
Configures the installation of the Template Library.
.google.cloud.gkehub.policycontroller.v1beta.TemplateLibraryConfig template_library = 2;
putAllBundles(Map<String,BundleInstallSpec> values)
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;
putBundles(String key, BundleInstallSpec value)
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;
putBundlesBuilderIfAbsent(String key)
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;
| Parameter |
| Name |
Description |
key |
String
|
removeBundles(String key)
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;
| Parameter |
| Name |
Description |
key |
String
|
setTemplateLibrary(TemplateLibraryConfig value)
public PolicyContentSpec.Builder setTemplateLibrary(TemplateLibraryConfig value)
Configures the installation of the Template Library.
.google.cloud.gkehub.policycontroller.v1beta.TemplateLibraryConfig template_library = 2;
setTemplateLibrary(TemplateLibraryConfig.Builder builderForValue)
public PolicyContentSpec.Builder setTemplateLibrary(TemplateLibraryConfig.Builder builderForValue)
Configures the installation of the Template Library.
.google.cloud.gkehub.policycontroller.v1beta.TemplateLibraryConfig template_library = 2;