Class MembershipState

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloud.gkehub.policycontroller.v1beta.MembershipState
All Implemented Interfaces:
MembershipStateOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

@Generated public final class MembershipState extends com.google.protobuf.GeneratedMessage implements MembershipStateOrBuilder
 **Policy Controller**: State for a single cluster.
 
Protobuf type google.cloud.gkehub.policycontroller.v1beta.MembershipState
See Also:
  • Field Details

    • COMPONENT_STATES_FIELD_NUMBER

      public static final int COMPONENT_STATES_FIELD_NUMBER
      See Also:
    • STATE_FIELD_NUMBER

      public static final int STATE_FIELD_NUMBER
      See Also:
    • POLICY_CONTENT_STATE_FIELD_NUMBER

      public static final int POLICY_CONTENT_STATE_FIELD_NUMBER
      See Also:
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetMapFieldReflection

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
      Overrides:
      internalGetMapFieldReflection in class com.google.protobuf.GeneratedMessage
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage
    • getComponentStatesCount

      public int getComponentStatesCount()
      Description copied from interface: MembershipStateOrBuilder
       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;
      Specified by:
      getComponentStatesCount in interface MembershipStateOrBuilder
    • containsComponentStates

      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;
      Specified by:
      containsComponentStates in interface MembershipStateOrBuilder
    • getComponentStates

      @Deprecated public Map<String,OnClusterState> getComponentStates()
      Deprecated.
      Specified by:
      getComponentStates in interface MembershipStateOrBuilder
    • 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;
      Specified by:
      getComponentStatesMap in interface MembershipStateOrBuilder
    • getComponentStatesOrDefault

      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;
      Specified by:
      getComponentStatesOrDefault in interface MembershipStateOrBuilder
    • getComponentStatesOrThrow

      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;
      Specified by:
      getComponentStatesOrThrow in interface MembershipStateOrBuilder
    • 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;
      Specified by:
      getStateValue in interface MembershipStateOrBuilder
      Returns:
      The enum numeric value on the wire for state.
    • 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;
      Specified by:
      getState in interface MembershipStateOrBuilder
      Returns:
      The 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;
      Specified by:
      hasPolicyContentState in interface MembershipStateOrBuilder
      Returns:
      Whether the policyContentState field is set.
    • getPolicyContentState

      public PolicyContentState getPolicyContentState()
       The overall content state observed by the Hub Feature controller.
       
      .google.cloud.gkehub.policycontroller.v1beta.PolicyContentState policy_content_state = 6;
      Specified by:
      getPolicyContentState in interface MembershipStateOrBuilder
      Returns:
      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;
      Specified by:
      getPolicyContentStateOrBuilder in interface MembershipStateOrBuilder
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessage
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessage
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.google.protobuf.AbstractMessage
    • parseFrom

      public static MembershipState parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static MembershipState parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static MembershipState parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static MembershipState parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static MembershipState parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static MembershipState parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static MembershipState parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static MembershipState parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static MembershipState parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static MembershipState parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static MembershipState parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static MembershipState parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

      public MembershipState.Builder newBuilderForType()
      Specified by:
      newBuilderForType in interface com.google.protobuf.Message
      Specified by:
      newBuilderForType in interface com.google.protobuf.MessageLite
    • newBuilder

      public static MembershipState.Builder newBuilder()
    • newBuilder

      public static MembershipState.Builder newBuilder(MembershipState prototype)
    • toBuilder

      public MembershipState.Builder toBuilder()
      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

      protected MembershipState.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
      Overrides:
      newBuilderForType in class com.google.protobuf.AbstractMessage
    • getDefaultInstance

      public static MembershipState getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<MembershipState> parser()
    • getParserForType

      public com.google.protobuf.Parser<MembershipState> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessage
    • getDefaultInstanceForType

      public MembershipState getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder