Class PolicyContentState (1.54.0)

public final class PolicyContentState extends GeneratedMessageV3 implements PolicyContentStateOrBuilder

The state of the policy controller policy content

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

Static Fields

BUNDLE_STATES_FIELD_NUMBER

public static final int BUNDLE_STATES_FIELD_NUMBER
Field Value
Type Description
int

REFERENTIAL_SYNC_CONFIG_STATE_FIELD_NUMBER

public static final int REFERENTIAL_SYNC_CONFIG_STATE_FIELD_NUMBER
Field Value
Type Description
int

TEMPLATE_LIBRARY_STATE_FIELD_NUMBER

public static final int TEMPLATE_LIBRARY_STATE_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static PolicyContentState getDefaultInstance()
Returns
Type Description
PolicyContentState

getDescriptor()

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

newBuilder()

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

newBuilder(PolicyContentState prototype)

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

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

containsBundleStates(String key)

public boolean containsBundleStates(String key)

The state of the any bundles included in the chosen version of the manifest

map<string, .google.cloud.gkehub.policycontroller.v1beta.OnClusterState> bundle_states = 2;

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

getBundleStates() (deprecated)

public Map<String,OnClusterState> getBundleStates()

Use #getBundleStatesMap() instead.

Returns
Type Description
Map<String,OnClusterState>

getBundleStatesCount()

public int getBundleStatesCount()

The state of the any bundles included in the chosen version of the manifest

map<string, .google.cloud.gkehub.policycontroller.v1beta.OnClusterState> bundle_states = 2;

Returns
Type Description
int

getBundleStatesMap()

public Map<String,OnClusterState> getBundleStatesMap()

The state of the any bundles included in the chosen version of the manifest

map<string, .google.cloud.gkehub.policycontroller.v1beta.OnClusterState> bundle_states = 2;

Returns
Type Description
Map<String,OnClusterState>

getBundleStatesOrDefault(String key, OnClusterState defaultValue)

public OnClusterState getBundleStatesOrDefault(String key, OnClusterState defaultValue)

The state of the any bundles included in the chosen version of the manifest

map<string, .google.cloud.gkehub.policycontroller.v1beta.OnClusterState> bundle_states = 2;

Parameters
Name Description
key String
defaultValue OnClusterState
Returns
Type Description
OnClusterState

getBundleStatesOrThrow(String key)

public OnClusterState getBundleStatesOrThrow(String key)

The state of the any bundles included in the chosen version of the manifest

map<string, .google.cloud.gkehub.policycontroller.v1beta.OnClusterState> bundle_states = 2;

Parameter
Name Description
key String
Returns
Type Description
OnClusterState

getDefaultInstanceForType()

public PolicyContentState getDefaultInstanceForType()
Returns
Type Description
PolicyContentState

getParserForType()

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

getReferentialSyncConfigState()

public OnClusterState getReferentialSyncConfigState()

The state of the referential data sync configuration. This could represent the state of either the syncSet object(s) or the config object, depending on the version of PoCo configured by the user.

.google.cloud.gkehub.policycontroller.v1beta.OnClusterState referential_sync_config_state = 3;

Returns
Type Description
OnClusterState

The referentialSyncConfigState.

getReferentialSyncConfigStateOrBuilder()

public OnClusterStateOrBuilder getReferentialSyncConfigStateOrBuilder()

The state of the referential data sync configuration. This could represent the state of either the syncSet object(s) or the config object, depending on the version of PoCo configured by the user.

.google.cloud.gkehub.policycontroller.v1beta.OnClusterState referential_sync_config_state = 3;

Returns
Type Description
OnClusterStateOrBuilder

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getTemplateLibraryState()

public OnClusterState getTemplateLibraryState()

The state of the template library

.google.cloud.gkehub.policycontroller.v1beta.OnClusterState template_library_state = 1;

Returns
Type Description
OnClusterState

The templateLibraryState.

getTemplateLibraryStateOrBuilder()

public OnClusterStateOrBuilder getTemplateLibraryStateOrBuilder()

The state of the template library

.google.cloud.gkehub.policycontroller.v1beta.OnClusterState template_library_state = 1;

Returns
Type Description
OnClusterStateOrBuilder

hasReferentialSyncConfigState()

public boolean hasReferentialSyncConfigState()

The state of the referential data sync configuration. This could represent the state of either the syncSet object(s) or the config object, depending on the version of PoCo configured by the user.

.google.cloud.gkehub.policycontroller.v1beta.OnClusterState referential_sync_config_state = 3;

Returns
Type Description
boolean

Whether the referentialSyncConfigState field is set.

hasTemplateLibraryState()

public boolean hasTemplateLibraryState()

The state of the template library

.google.cloud.gkehub.policycontroller.v1beta.OnClusterState template_library_state = 1;

Returns
Type Description
boolean

Whether the templateLibraryState 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 PolicyContentState.Builder newBuilderForType()
Returns
Type Description
PolicyContentState.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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