Interface MembershipStateOrBuilder (1.54.0)

public interface MembershipStateOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

containsComponentStates(String key)

public abstract boolean containsComponentStates(String key)

Currently these include (also serving as map keys):

  1. "admission"
  2. "audit"
  3. "mutation"

map<string, .google.cloud.gkehub.policycontroller.v1beta.OnClusterState> component_states = 3;

Parameter
Name Description
key String
Returns
Type Description
boolean

getComponentStates() (deprecated)

public abstract Map<String,OnClusterState> getComponentStates()
Returns
Type Description
Map<String,OnClusterState>

getComponentStatesCount()

public abstract int getComponentStatesCount()

Currently these include (also serving as map keys):

  1. "admission"
  2. "audit"
  3. "mutation"

map<string, .google.cloud.gkehub.policycontroller.v1beta.OnClusterState> component_states = 3;

Returns
Type Description
int

getComponentStatesMap()

public abstract Map<String,OnClusterState> getComponentStatesMap()

Currently these include (also serving as map keys):

  1. "admission"
  2. "audit"
  3. "mutation"

map<string, .google.cloud.gkehub.policycontroller.v1beta.OnClusterState> component_states = 3;

Returns
Type Description
Map<String,OnClusterState>

getComponentStatesOrDefault(String key, OnClusterState defaultValue)

public abstract OnClusterState getComponentStatesOrDefault(String key, OnClusterState defaultValue)

Currently these include (also serving as map keys):

  1. "admission"
  2. "audit"
  3. "mutation"

map<string, .google.cloud.gkehub.policycontroller.v1beta.OnClusterState> component_states = 3;

Parameters
Name Description
key String
defaultValue OnClusterState
Returns
Type Description
OnClusterState

getComponentStatesOrThrow(String key)

public abstract OnClusterState getComponentStatesOrThrow(String key)

Currently these include (also serving as map keys):

  1. "admission"
  2. "audit"
  3. "mutation"

map<string, .google.cloud.gkehub.policycontroller.v1beta.OnClusterState> component_states = 3;

Parameter
Name Description
key String
Returns
Type Description
OnClusterState

getPolicyContentState()

public abstract PolicyContentState getPolicyContentState()

The overall content state observed by the Hub Feature controller.

.google.cloud.gkehub.policycontroller.v1beta.PolicyContentState policy_content_state = 6;

Returns
Type Description
PolicyContentState

The policyContentState.

getPolicyContentStateOrBuilder()

public abstract PolicyContentStateOrBuilder getPolicyContentStateOrBuilder()

The overall content state observed by the Hub Feature controller.

.google.cloud.gkehub.policycontroller.v1beta.PolicyContentState policy_content_state = 6;

Returns
Type Description
PolicyContentStateOrBuilder

getState()

public abstract MembershipState.LifecycleState getState()

The overall Policy Controller lifecycle state observed by the Hub Feature controller.

.google.cloud.gkehub.policycontroller.v1beta.MembershipState.LifecycleState state = 4;

Returns
Type Description
MembershipState.LifecycleState

The state.

getStateValue()

public abstract int getStateValue()

The overall Policy Controller lifecycle state observed by the Hub Feature controller.

.google.cloud.gkehub.policycontroller.v1beta.MembershipState.LifecycleState state = 4;

Returns
Type Description
int

The enum numeric value on the wire for state.

hasPolicyContentState()

public abstract boolean hasPolicyContentState()

The overall content state observed by the Hub Feature controller.

.google.cloud.gkehub.policycontroller.v1beta.PolicyContentState policy_content_state = 6;

Returns
Type Description
boolean

Whether the policyContentState field is set.