Class MembershipState (1.13.0)

public final class MembershipState extends GeneratedMessageV3 implements MembershipStateOrBuilder

Anthos Config Management: State for a single cluster.

Protobuf type google.cloud.gkehub.configmanagement.v1alpha.MembershipState

Static Fields

BINAUTHZ_STATE_FIELD_NUMBER

public static final int BINAUTHZ_STATE_FIELD_NUMBER
Field Value
TypeDescription
int

CLUSTER_NAME_FIELD_NUMBER

public static final int CLUSTER_NAME_FIELD_NUMBER
Field Value
TypeDescription
int

CONFIG_SYNC_STATE_FIELD_NUMBER

public static final int CONFIG_SYNC_STATE_FIELD_NUMBER
Field Value
TypeDescription
int

HIERARCHY_CONTROLLER_STATE_FIELD_NUMBER

public static final int HIERARCHY_CONTROLLER_STATE_FIELD_NUMBER
Field Value
TypeDescription
int

MEMBERSHIP_SPEC_FIELD_NUMBER

public static final int MEMBERSHIP_SPEC_FIELD_NUMBER
Field Value
TypeDescription
int

OPERATOR_STATE_FIELD_NUMBER

public static final int OPERATOR_STATE_FIELD_NUMBER
Field Value
TypeDescription
int

POLICY_CONTROLLER_STATE_FIELD_NUMBER

public static final int POLICY_CONTROLLER_STATE_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static MembershipState getDefaultInstance()
Returns
TypeDescription
MembershipState

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static MembershipState.Builder newBuilder()
Returns
TypeDescription
MembershipState.Builder

newBuilder(MembershipState prototype)

public static MembershipState.Builder newBuilder(MembershipState prototype)
Parameter
NameDescription
prototypeMembershipState
Returns
TypeDescription
MembershipState.Builder

parseDelimitedFrom(InputStream input)

public static MembershipState parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
MembershipState
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static MembershipState parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
MembershipState
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static MembershipState parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
MembershipState
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static MembershipState parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
MembershipState
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static MembershipState parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
MembershipState
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static MembershipState parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
MembershipState
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static MembershipState parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
MembershipState
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static MembershipState parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
MembershipState
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static MembershipState parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
MembershipState
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static MembershipState parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
MembershipState
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static MembershipState parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
MembershipState
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static MembershipState parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
MembershipState
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<MembershipState> parser()
Returns
TypeDescription
Parser<MembershipState>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getBinauthzState()

public BinauthzState getBinauthzState()

Binauthz status

.google.cloud.gkehub.configmanagement.v1alpha.BinauthzState binauthz_state = 6;

Returns
TypeDescription
BinauthzState

The binauthzState.

getBinauthzStateOrBuilder()

public BinauthzStateOrBuilder getBinauthzStateOrBuilder()

Binauthz status

.google.cloud.gkehub.configmanagement.v1alpha.BinauthzState binauthz_state = 6;

Returns
TypeDescription
BinauthzStateOrBuilder

getClusterName()

public String getClusterName()

The user-defined name for the cluster used by ClusterSelectors to group clusters together. This should match Membership's membership_name, unless the user installed ACM on the cluster manually prior to enabling the ACM hub feature. Unique within a Anthos Config Management installation.

string cluster_name = 1;

Returns
TypeDescription
String

The clusterName.

getClusterNameBytes()

public ByteString getClusterNameBytes()

The user-defined name for the cluster used by ClusterSelectors to group clusters together. This should match Membership's membership_name, unless the user installed ACM on the cluster manually prior to enabling the ACM hub feature. Unique within a Anthos Config Management installation.

string cluster_name = 1;

Returns
TypeDescription
ByteString

The bytes for clusterName.

getConfigSyncState()

public ConfigSyncState getConfigSyncState()

Current sync status

.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncState config_sync_state = 4;

Returns
TypeDescription
ConfigSyncState

The configSyncState.

getConfigSyncStateOrBuilder()

public ConfigSyncStateOrBuilder getConfigSyncStateOrBuilder()

Current sync status

.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncState config_sync_state = 4;

Returns
TypeDescription
ConfigSyncStateOrBuilder

getDefaultInstanceForType()

public MembershipState getDefaultInstanceForType()
Returns
TypeDescription
MembershipState

getHierarchyControllerState()

public HierarchyControllerState getHierarchyControllerState()

Hierarchy Controller status

.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerState hierarchy_controller_state = 7;

Returns
TypeDescription
HierarchyControllerState

The hierarchyControllerState.

getHierarchyControllerStateOrBuilder()

public HierarchyControllerStateOrBuilder getHierarchyControllerStateOrBuilder()

Hierarchy Controller status

.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerState hierarchy_controller_state = 7;

Returns
TypeDescription
HierarchyControllerStateOrBuilder

getMembershipSpec()

public MembershipSpec getMembershipSpec()

Membership configuration in the cluster. This represents the actual state in the cluster, while the MembershipSpec in the FeatureSpec represents the intended state

.google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec membership_spec = 2;

Returns
TypeDescription
MembershipSpec

The membershipSpec.

getMembershipSpecOrBuilder()

public MembershipSpecOrBuilder getMembershipSpecOrBuilder()

Membership configuration in the cluster. This represents the actual state in the cluster, while the MembershipSpec in the FeatureSpec represents the intended state

.google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec membership_spec = 2;

Returns
TypeDescription
MembershipSpecOrBuilder

getOperatorState()

public OperatorState getOperatorState()

Current install status of ACM's Operator

.google.cloud.gkehub.configmanagement.v1alpha.OperatorState operator_state = 3;

Returns
TypeDescription
OperatorState

The operatorState.

getOperatorStateOrBuilder()

public OperatorStateOrBuilder getOperatorStateOrBuilder()

Current install status of ACM's Operator

.google.cloud.gkehub.configmanagement.v1alpha.OperatorState operator_state = 3;

Returns
TypeDescription
OperatorStateOrBuilder

getParserForType()

public Parser<MembershipState> getParserForType()
Returns
TypeDescription
Parser<MembershipState>
Overrides

getPolicyControllerState()

public PolicyControllerState getPolicyControllerState()

PolicyController status

.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerState policy_controller_state = 5;

Returns
TypeDescription
PolicyControllerState

The policyControllerState.

getPolicyControllerStateOrBuilder()

public PolicyControllerStateOrBuilder getPolicyControllerStateOrBuilder()

PolicyController status

.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerState policy_controller_state = 5;

Returns
TypeDescription
PolicyControllerStateOrBuilder

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
Overrides

hasBinauthzState()

public boolean hasBinauthzState()

Binauthz status

.google.cloud.gkehub.configmanagement.v1alpha.BinauthzState binauthz_state = 6;

Returns
TypeDescription
boolean

Whether the binauthzState field is set.

hasConfigSyncState()

public boolean hasConfigSyncState()

Current sync status

.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncState config_sync_state = 4;

Returns
TypeDescription
boolean

Whether the configSyncState field is set.

hasHierarchyControllerState()

public boolean hasHierarchyControllerState()

Hierarchy Controller status

.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerState hierarchy_controller_state = 7;

Returns
TypeDescription
boolean

Whether the hierarchyControllerState field is set.

hasMembershipSpec()

public boolean hasMembershipSpec()

Membership configuration in the cluster. This represents the actual state in the cluster, while the MembershipSpec in the FeatureSpec represents the intended state

.google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec membership_spec = 2;

Returns
TypeDescription
boolean

Whether the membershipSpec field is set.

hasOperatorState()

public boolean hasOperatorState()

Current install status of ACM's Operator

.google.cloud.gkehub.configmanagement.v1alpha.OperatorState operator_state = 3;

Returns
TypeDescription
boolean

Whether the operatorState field is set.

hasPolicyControllerState()

public boolean hasPolicyControllerState()

PolicyController status

.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerState policy_controller_state = 5;

Returns
TypeDescription
boolean

Whether the policyControllerState field is set.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public MembershipState.Builder newBuilderForType()
Returns
TypeDescription
MembershipState.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected MembershipState.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
MembershipState.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public MembershipState.Builder toBuilder()
Returns
TypeDescription
MembershipState.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException