Class PolicyContentSpec (1.55.0)

public final class PolicyContentSpec extends GeneratedMessageV3 implements PolicyContentSpecOrBuilder

PolicyContentSpec defines the user's desired content configuration on the cluster.

Protobuf type google.cloud.gkehub.policycontroller.v1beta.PolicyContentSpec

Static Fields

BUNDLES_FIELD_NUMBER

public static final int BUNDLES_FIELD_NUMBER
Field Value
Type Description
int

TEMPLATE_LIBRARY_FIELD_NUMBER

public static final int TEMPLATE_LIBRARY_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static PolicyContentSpec getDefaultInstance()
Returns
Type Description
PolicyContentSpec

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

newBuilder()

public static PolicyContentSpec.Builder newBuilder()
Returns
Type Description
PolicyContentSpec.Builder

newBuilder(PolicyContentSpec prototype)

public static PolicyContentSpec.Builder newBuilder(PolicyContentSpec prototype)
Parameter
Name Description
prototype PolicyContentSpec
Returns
Type Description
PolicyContentSpec.Builder

parseDelimitedFrom(InputStream input)

public static PolicyContentSpec parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
PolicyContentSpec
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static PolicyContentSpec parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
PolicyContentSpec
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static PolicyContentSpec parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
PolicyContentSpec
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static PolicyContentSpec parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
PolicyContentSpec
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static PolicyContentSpec parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
PolicyContentSpec
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static PolicyContentSpec parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
PolicyContentSpec
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static PolicyContentSpec parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
PolicyContentSpec
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static PolicyContentSpec parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
PolicyContentSpec
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static PolicyContentSpec parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
PolicyContentSpec
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static PolicyContentSpec parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
PolicyContentSpec
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static PolicyContentSpec parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
PolicyContentSpec
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static PolicyContentSpec parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
PolicyContentSpec
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<PolicyContentSpec> parser()
Returns
Type Description
Parser<PolicyContentSpec>

Methods

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
Returns
Type Description
boolean

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getBundles() (deprecated)

public Map<String,BundleInstallSpec> getBundles()

Use #getBundlesMap() instead.

Returns
Type Description
Map<String,BundleInstallSpec>

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;

Returns
Type Description
Map<String,BundleInstallSpec>

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;

Parameters
Name Description
key String
defaultValue BundleInstallSpec
Returns
Type Description
BundleInstallSpec

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
Returns
Type Description
BundleInstallSpec

getDefaultInstanceForType()

public PolicyContentSpec getDefaultInstanceForType()
Returns
Type Description
PolicyContentSpec

getParserForType()

public Parser<PolicyContentSpec> getParserForType()
Returns
Type Description
Parser<PolicyContentSpec>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getTemplateLibrary()

public TemplateLibraryConfig getTemplateLibrary()

Configures the installation of the Template Library.

.google.cloud.gkehub.policycontroller.v1beta.TemplateLibraryConfig template_library = 2;

Returns
Type Description
TemplateLibraryConfig

The templateLibrary.

getTemplateLibraryOrBuilder()

public TemplateLibraryConfigOrBuilder getTemplateLibraryOrBuilder()

Configures the installation of the Template Library.

.google.cloud.gkehub.policycontroller.v1beta.TemplateLibraryConfig template_library = 2;

Returns
Type Description
TemplateLibraryConfigOrBuilder

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.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
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.internalGetMapFieldReflection(int)

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public PolicyContentSpec.Builder newBuilderForType()
Returns
Type Description
PolicyContentSpec.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected PolicyContentSpec.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
PolicyContentSpec.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public PolicyContentSpec.Builder toBuilder()
Returns
Type Description
PolicyContentSpec.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException