Class MembershipState.Builder (1.46.0)

public static final class MembershipState.Builder extends GeneratedMessageV3.Builder<MembershipState.Builder> implements MembershipStateOrBuilder

Anthos Config Management: State for a single cluster.

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

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public MembershipState.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
MembershipState.Builder
Overrides

build()

public MembershipState build()
Returns
Type Description
MembershipState

buildPartial()

public MembershipState buildPartial()
Returns
Type Description
MembershipState

clear()

public MembershipState.Builder clear()
Returns
Type Description
MembershipState.Builder
Overrides

clearClusterName()

public MembershipState.Builder clearClusterName()

This field is set to the cluster_name field of the Membership Spec if it is not empty. Otherwise, it is set to the cluster's fleet membership name.

string cluster_name = 1;

Returns
Type Description
MembershipState.Builder

This builder for chaining.

clearConfigSyncState()

public MembershipState.Builder clearConfigSyncState()

Current sync status

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

Returns
Type Description
MembershipState.Builder

clearField(Descriptors.FieldDescriptor field)

public MembershipState.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
MembershipState.Builder
Overrides

clearHierarchyControllerState()

public MembershipState.Builder clearHierarchyControllerState()

Hierarchy Controller status

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

Returns
Type Description
MembershipState.Builder

clearMembershipSpec()

public MembershipState.Builder clearMembershipSpec()

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.v1.MembershipSpec membership_spec = 2;

Returns
Type Description
MembershipState.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public MembershipState.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
MembershipState.Builder
Overrides

clearOperatorState()

public MembershipState.Builder clearOperatorState()

Current install status of ACM's Operator

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

Returns
Type Description
MembershipState.Builder

clearPolicyControllerState()

public MembershipState.Builder clearPolicyControllerState()

PolicyController status

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

Returns
Type Description
MembershipState.Builder

clone()

public MembershipState.Builder clone()
Returns
Type Description
MembershipState.Builder
Overrides

getClusterName()

public String getClusterName()

This field is set to the cluster_name field of the Membership Spec if it is not empty. Otherwise, it is set to the cluster's fleet membership name.

string cluster_name = 1;

Returns
Type Description
String

The clusterName.

getClusterNameBytes()

public ByteString getClusterNameBytes()

This field is set to the cluster_name field of the Membership Spec if it is not empty. Otherwise, it is set to the cluster's fleet membership name.

string cluster_name = 1;

Returns
Type Description
ByteString

The bytes for clusterName.

getConfigSyncState()

public ConfigSyncState getConfigSyncState()

Current sync status

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

Returns
Type Description
ConfigSyncState

The configSyncState.

getConfigSyncStateBuilder()

public ConfigSyncState.Builder getConfigSyncStateBuilder()

Current sync status

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

Returns
Type Description
ConfigSyncState.Builder

getConfigSyncStateOrBuilder()

public ConfigSyncStateOrBuilder getConfigSyncStateOrBuilder()

Current sync status

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

Returns
Type Description
ConfigSyncStateOrBuilder

getDefaultInstanceForType()

public MembershipState getDefaultInstanceForType()
Returns
Type Description
MembershipState

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getHierarchyControllerState()

public HierarchyControllerState getHierarchyControllerState()

Hierarchy Controller status

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

Returns
Type Description
HierarchyControllerState

The hierarchyControllerState.

getHierarchyControllerStateBuilder()

public HierarchyControllerState.Builder getHierarchyControllerStateBuilder()

Hierarchy Controller status

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

Returns
Type Description
HierarchyControllerState.Builder

getHierarchyControllerStateOrBuilder()

public HierarchyControllerStateOrBuilder getHierarchyControllerStateOrBuilder()

Hierarchy Controller status

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

Returns
Type Description
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.v1.MembershipSpec membership_spec = 2;

Returns
Type Description
MembershipSpec

The membershipSpec.

getMembershipSpecBuilder()

public MembershipSpec.Builder getMembershipSpecBuilder()

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.v1.MembershipSpec membership_spec = 2;

Returns
Type Description
MembershipSpec.Builder

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.v1.MembershipSpec membership_spec = 2;

Returns
Type Description
MembershipSpecOrBuilder

getOperatorState()

public OperatorState getOperatorState()

Current install status of ACM's Operator

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

Returns
Type Description
OperatorState

The operatorState.

getOperatorStateBuilder()

public OperatorState.Builder getOperatorStateBuilder()

Current install status of ACM's Operator

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

Returns
Type Description
OperatorState.Builder

getOperatorStateOrBuilder()

public OperatorStateOrBuilder getOperatorStateOrBuilder()

Current install status of ACM's Operator

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

Returns
Type Description
OperatorStateOrBuilder

getPolicyControllerState()

public PolicyControllerState getPolicyControllerState()

PolicyController status

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

Returns
Type Description
PolicyControllerState

The policyControllerState.

getPolicyControllerStateBuilder()

public PolicyControllerState.Builder getPolicyControllerStateBuilder()

PolicyController status

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

Returns
Type Description
PolicyControllerState.Builder

getPolicyControllerStateOrBuilder()

public PolicyControllerStateOrBuilder getPolicyControllerStateOrBuilder()

PolicyController status

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

Returns
Type Description
PolicyControllerStateOrBuilder

hasConfigSyncState()

public boolean hasConfigSyncState()

Current sync status

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

Returns
Type Description
boolean

Whether the configSyncState field is set.

hasHierarchyControllerState()

public boolean hasHierarchyControllerState()

Hierarchy Controller status

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

Returns
Type Description
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.v1.MembershipSpec membership_spec = 2;

Returns
Type Description
boolean

Whether the membershipSpec field is set.

hasOperatorState()

public boolean hasOperatorState()

Current install status of ACM's Operator

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

Returns
Type Description
boolean

Whether the operatorState field is set.

hasPolicyControllerState()

public boolean hasPolicyControllerState()

PolicyController status

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

Returns
Type Description
boolean

Whether the policyControllerState field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeConfigSyncState(ConfigSyncState value)

public MembershipState.Builder mergeConfigSyncState(ConfigSyncState value)

Current sync status

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

Parameter
Name Description
value ConfigSyncState
Returns
Type Description
MembershipState.Builder

mergeFrom(MembershipState other)

public MembershipState.Builder mergeFrom(MembershipState other)
Parameter
Name Description
other MembershipState
Returns
Type Description
MembershipState.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public MembershipState.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
MembershipState.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public MembershipState.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
MembershipState.Builder
Overrides

mergeHierarchyControllerState(HierarchyControllerState value)

public MembershipState.Builder mergeHierarchyControllerState(HierarchyControllerState value)

Hierarchy Controller status

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

Parameter
Name Description
value HierarchyControllerState
Returns
Type Description
MembershipState.Builder

mergeMembershipSpec(MembershipSpec value)

public MembershipState.Builder mergeMembershipSpec(MembershipSpec value)

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.v1.MembershipSpec membership_spec = 2;

Parameter
Name Description
value MembershipSpec
Returns
Type Description
MembershipState.Builder

mergeOperatorState(OperatorState value)

public MembershipState.Builder mergeOperatorState(OperatorState value)

Current install status of ACM's Operator

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

Parameter
Name Description
value OperatorState
Returns
Type Description
MembershipState.Builder

mergePolicyControllerState(PolicyControllerState value)

public MembershipState.Builder mergePolicyControllerState(PolicyControllerState value)

PolicyController status

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

Parameter
Name Description
value PolicyControllerState
Returns
Type Description
MembershipState.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final MembershipState.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
MembershipState.Builder
Overrides

setClusterName(String value)

public MembershipState.Builder setClusterName(String value)

This field is set to the cluster_name field of the Membership Spec if it is not empty. Otherwise, it is set to the cluster's fleet membership name.

string cluster_name = 1;

Parameter
Name Description
value String

The clusterName to set.

Returns
Type Description
MembershipState.Builder

This builder for chaining.

setClusterNameBytes(ByteString value)

public MembershipState.Builder setClusterNameBytes(ByteString value)

This field is set to the cluster_name field of the Membership Spec if it is not empty. Otherwise, it is set to the cluster's fleet membership name.

string cluster_name = 1;

Parameter
Name Description
value ByteString

The bytes for clusterName to set.

Returns
Type Description
MembershipState.Builder

This builder for chaining.

setConfigSyncState(ConfigSyncState value)

public MembershipState.Builder setConfigSyncState(ConfigSyncState value)

Current sync status

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

Parameter
Name Description
value ConfigSyncState
Returns
Type Description
MembershipState.Builder

setConfigSyncState(ConfigSyncState.Builder builderForValue)

public MembershipState.Builder setConfigSyncState(ConfigSyncState.Builder builderForValue)

Current sync status

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

Parameter
Name Description
builderForValue ConfigSyncState.Builder
Returns
Type Description
MembershipState.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public MembershipState.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
MembershipState.Builder
Overrides

setHierarchyControllerState(HierarchyControllerState value)

public MembershipState.Builder setHierarchyControllerState(HierarchyControllerState value)

Hierarchy Controller status

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

Parameter
Name Description
value HierarchyControllerState
Returns
Type Description
MembershipState.Builder

setHierarchyControllerState(HierarchyControllerState.Builder builderForValue)

public MembershipState.Builder setHierarchyControllerState(HierarchyControllerState.Builder builderForValue)

Hierarchy Controller status

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

Parameter
Name Description
builderForValue HierarchyControllerState.Builder
Returns
Type Description
MembershipState.Builder

setMembershipSpec(MembershipSpec value)

public MembershipState.Builder setMembershipSpec(MembershipSpec value)

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.v1.MembershipSpec membership_spec = 2;

Parameter
Name Description
value MembershipSpec
Returns
Type Description
MembershipState.Builder

setMembershipSpec(MembershipSpec.Builder builderForValue)

public MembershipState.Builder setMembershipSpec(MembershipSpec.Builder builderForValue)

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.v1.MembershipSpec membership_spec = 2;

Parameter
Name Description
builderForValue MembershipSpec.Builder
Returns
Type Description
MembershipState.Builder

setOperatorState(OperatorState value)

public MembershipState.Builder setOperatorState(OperatorState value)

Current install status of ACM's Operator

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

Parameter
Name Description
value OperatorState
Returns
Type Description
MembershipState.Builder

setOperatorState(OperatorState.Builder builderForValue)

public MembershipState.Builder setOperatorState(OperatorState.Builder builderForValue)

Current install status of ACM's Operator

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

Parameter
Name Description
builderForValue OperatorState.Builder
Returns
Type Description
MembershipState.Builder

setPolicyControllerState(PolicyControllerState value)

public MembershipState.Builder setPolicyControllerState(PolicyControllerState value)

PolicyController status

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

Parameter
Name Description
value PolicyControllerState
Returns
Type Description
MembershipState.Builder

setPolicyControllerState(PolicyControllerState.Builder builderForValue)

public MembershipState.Builder setPolicyControllerState(PolicyControllerState.Builder builderForValue)

PolicyController status

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

Parameter
Name Description
builderForValue PolicyControllerState.Builder
Returns
Type Description
MembershipState.Builder

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public MembershipState.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
MembershipState.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final MembershipState.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
MembershipState.Builder
Overrides