Class MembershipState (1.55.0)

public final class MembershipState extends GeneratedMessageV3 implements MembershipStateOrBuilder

Policy Controller: State for a single cluster.

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

Static Fields

COMPONENT_STATES_FIELD_NUMBER

public static final int COMPONENT_STATES_FIELD_NUMBER
Field Value
Type Description
int

POLICY_CONTENT_STATE_FIELD_NUMBER

public static final int POLICY_CONTENT_STATE_FIELD_NUMBER
Field Value
Type Description
int

STATE_FIELD_NUMBER

public static final int STATE_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static MembershipState getDefaultInstance()
Returns
Type Description
MembershipState

getDescriptor()

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

newBuilder()

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

newBuilder(MembershipState prototype)

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

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

containsComponentStates(String key)

public 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

equals(Object obj)

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

getComponentStates() (deprecated)

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

getComponentStatesCount()

public 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 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 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 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

getDefaultInstanceForType()

public MembershipState getDefaultInstanceForType()
Returns
Type Description
MembershipState

getParserForType()

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

getPolicyContentState()

public 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 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

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getState()

public 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 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 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.

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 MembershipState.Builder newBuilderForType()
Returns
Type Description
MembershipState.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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