public static final class PolicyContentSpec.Builder extends GeneratedMessageV3.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.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public PolicyContentSpec.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
public PolicyContentSpec build()
buildPartial()
public PolicyContentSpec buildPartial()
clear()
public PolicyContentSpec.Builder clear()
Overrides
clearBundles()
public PolicyContentSpec.Builder clearBundles()
clearField(Descriptors.FieldDescriptor field)
public PolicyContentSpec.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public PolicyContentSpec.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
clearTemplateLibrary()
public PolicyContentSpec.Builder clearTemplateLibrary()
Configures the installation of the Template Library.
.google.cloud.gkehub.policycontroller.v1beta.TemplateLibraryConfig template_library = 2;
clone()
public PolicyContentSpec.Builder clone()
Overrides
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 GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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;
mergeUnknownFields(UnknownFieldSet unknownFields)
public final PolicyContentSpec.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
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
|
setField(Descriptors.FieldDescriptor field, Object value)
public PolicyContentSpec.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public PolicyContentSpec.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
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;
setUnknownFields(UnknownFieldSet unknownFields)
public final PolicyContentSpec.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides