Class MembershipState.Builder (1.2.1)

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.v1beta.MembershipState

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public MembershipState.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
MembershipState.Builder
Overrides

build()

public MembershipState build()
Returns
TypeDescription
MembershipState

buildPartial()

public MembershipState buildPartial()
Returns
TypeDescription
MembershipState

clear()

public MembershipState.Builder clear()
Returns
TypeDescription
MembershipState.Builder
Overrides

clearBinauthzState()

public MembershipState.Builder clearBinauthzState()

Binauthz status

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

Returns
TypeDescription
MembershipState.Builder

clearClusterName()

public MembershipState.Builder clearClusterName()

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
MembershipState.Builder

This builder for chaining.

clearConfigSyncState()

public MembershipState.Builder clearConfigSyncState()

Current sync status

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

Returns
TypeDescription
MembershipState.Builder

clearField(Descriptors.FieldDescriptor field)

public MembershipState.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
MembershipState.Builder
Overrides

clearHierarchyControllerState()

public MembershipState.Builder clearHierarchyControllerState()

Hierarchy Controller status

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

Returns
TypeDescription
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.v1beta.MembershipSpec membership_spec = 2;

Returns
TypeDescription
MembershipState.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public MembershipState.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
MembershipState.Builder
Overrides

clearOperatorState()

public MembershipState.Builder clearOperatorState()

Current install status of ACM's Operator

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

Returns
TypeDescription
MembershipState.Builder

clearPolicyControllerState()

public MembershipState.Builder clearPolicyControllerState()

PolicyController status

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

Returns
TypeDescription
MembershipState.Builder

clone()

public MembershipState.Builder clone()
Returns
TypeDescription
MembershipState.Builder
Overrides

getBinauthzState()

public BinauthzState getBinauthzState()

Binauthz status

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

Returns
TypeDescription
BinauthzState

The binauthzState.

getBinauthzStateBuilder()

public BinauthzState.Builder getBinauthzStateBuilder()

Binauthz status

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

Returns
TypeDescription
BinauthzState.Builder

getBinauthzStateOrBuilder()

public BinauthzStateOrBuilder getBinauthzStateOrBuilder()

Binauthz status

.google.cloud.gkehub.configmanagement.v1beta.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.v1beta.ConfigSyncState config_sync_state = 4;

Returns
TypeDescription
ConfigSyncState

The configSyncState.

getConfigSyncStateBuilder()

public ConfigSyncState.Builder getConfigSyncStateBuilder()

Current sync status

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

Returns
TypeDescription
ConfigSyncState.Builder

getConfigSyncStateOrBuilder()

public ConfigSyncStateOrBuilder getConfigSyncStateOrBuilder()

Current sync status

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

Returns
TypeDescription
ConfigSyncStateOrBuilder

getDefaultInstanceForType()

public MembershipState getDefaultInstanceForType()
Returns
TypeDescription
MembershipState

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getHierarchyControllerState()

public HierarchyControllerState getHierarchyControllerState()

Hierarchy Controller status

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

Returns
TypeDescription
HierarchyControllerState

The hierarchyControllerState.

getHierarchyControllerStateBuilder()

public HierarchyControllerState.Builder getHierarchyControllerStateBuilder()

Hierarchy Controller status

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

Returns
TypeDescription
HierarchyControllerState.Builder

getHierarchyControllerStateOrBuilder()

public HierarchyControllerStateOrBuilder getHierarchyControllerStateOrBuilder()

Hierarchy Controller status

.google.cloud.gkehub.configmanagement.v1beta.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.v1beta.MembershipSpec membership_spec = 2;

Returns
TypeDescription
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.v1beta.MembershipSpec membership_spec = 2;

Returns
TypeDescription
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.v1beta.MembershipSpec membership_spec = 2;

Returns
TypeDescription
MembershipSpecOrBuilder

getOperatorState()

public OperatorState getOperatorState()

Current install status of ACM's Operator

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

Returns
TypeDescription
OperatorState

The operatorState.

getOperatorStateBuilder()

public OperatorState.Builder getOperatorStateBuilder()

Current install status of ACM's Operator

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

Returns
TypeDescription
OperatorState.Builder

getOperatorStateOrBuilder()

public OperatorStateOrBuilder getOperatorStateOrBuilder()

Current install status of ACM's Operator

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

Returns
TypeDescription
OperatorStateOrBuilder

getPolicyControllerState()

public PolicyControllerState getPolicyControllerState()

PolicyController status

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

Returns
TypeDescription
PolicyControllerState

The policyControllerState.

getPolicyControllerStateBuilder()

public PolicyControllerState.Builder getPolicyControllerStateBuilder()

PolicyController status

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

Returns
TypeDescription
PolicyControllerState.Builder

getPolicyControllerStateOrBuilder()

public PolicyControllerStateOrBuilder getPolicyControllerStateOrBuilder()

PolicyController status

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

Returns
TypeDescription
PolicyControllerStateOrBuilder

hasBinauthzState()

public boolean hasBinauthzState()

Binauthz status

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

Returns
TypeDescription
boolean

Whether the binauthzState field is set.

hasConfigSyncState()

public boolean hasConfigSyncState()

Current sync status

.google.cloud.gkehub.configmanagement.v1beta.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.v1beta.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.v1beta.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.v1beta.OperatorState operator_state = 3;

Returns
TypeDescription
boolean

Whether the operatorState field is set.

hasPolicyControllerState()

public boolean hasPolicyControllerState()

PolicyController status

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

Returns
TypeDescription
boolean

Whether the policyControllerState field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeBinauthzState(BinauthzState value)

public MembershipState.Builder mergeBinauthzState(BinauthzState value)

Binauthz status

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

Parameter
NameDescription
valueBinauthzState
Returns
TypeDescription
MembershipState.Builder

mergeConfigSyncState(ConfigSyncState value)

public MembershipState.Builder mergeConfigSyncState(ConfigSyncState value)

Current sync status

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

Parameter
NameDescription
valueConfigSyncState
Returns
TypeDescription
MembershipState.Builder

mergeFrom(MembershipState other)

public MembershipState.Builder mergeFrom(MembershipState other)
Parameter
NameDescription
otherMembershipState
Returns
TypeDescription
MembershipState.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public MembershipState.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
MembershipState.Builder
Overrides Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public MembershipState.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
MembershipState.Builder
Overrides

mergeHierarchyControllerState(HierarchyControllerState value)

public MembershipState.Builder mergeHierarchyControllerState(HierarchyControllerState value)

Hierarchy Controller status

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

Parameter
NameDescription
valueHierarchyControllerState
Returns
TypeDescription
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.v1beta.MembershipSpec membership_spec = 2;

Parameter
NameDescription
valueMembershipSpec
Returns
TypeDescription
MembershipState.Builder

mergeOperatorState(OperatorState value)

public MembershipState.Builder mergeOperatorState(OperatorState value)

Current install status of ACM's Operator

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

Parameter
NameDescription
valueOperatorState
Returns
TypeDescription
MembershipState.Builder

mergePolicyControllerState(PolicyControllerState value)

public MembershipState.Builder mergePolicyControllerState(PolicyControllerState value)

PolicyController status

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

Parameter
NameDescription
valuePolicyControllerState
Returns
TypeDescription
MembershipState.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final MembershipState.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
MembershipState.Builder
Overrides

setBinauthzState(BinauthzState value)

public MembershipState.Builder setBinauthzState(BinauthzState value)

Binauthz status

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

Parameter
NameDescription
valueBinauthzState
Returns
TypeDescription
MembershipState.Builder

setBinauthzState(BinauthzState.Builder builderForValue)

public MembershipState.Builder setBinauthzState(BinauthzState.Builder builderForValue)

Binauthz status

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

Parameter
NameDescription
builderForValueBinauthzState.Builder
Returns
TypeDescription
MembershipState.Builder

setClusterName(String value)

public MembershipState.Builder setClusterName(String value)

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;

Parameter
NameDescription
valueString

The clusterName to set.

Returns
TypeDescription
MembershipState.Builder

This builder for chaining.

setClusterNameBytes(ByteString value)

public MembershipState.Builder setClusterNameBytes(ByteString value)

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;

Parameter
NameDescription
valueByteString

The bytes for clusterName to set.

Returns
TypeDescription
MembershipState.Builder

This builder for chaining.

setConfigSyncState(ConfigSyncState value)

public MembershipState.Builder setConfigSyncState(ConfigSyncState value)

Current sync status

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

Parameter
NameDescription
valueConfigSyncState
Returns
TypeDescription
MembershipState.Builder

setConfigSyncState(ConfigSyncState.Builder builderForValue)

public MembershipState.Builder setConfigSyncState(ConfigSyncState.Builder builderForValue)

Current sync status

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

Parameter
NameDescription
builderForValueConfigSyncState.Builder
Returns
TypeDescription
MembershipState.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public MembershipState.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
MembershipState.Builder
Overrides

setHierarchyControllerState(HierarchyControllerState value)

public MembershipState.Builder setHierarchyControllerState(HierarchyControllerState value)

Hierarchy Controller status

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

Parameter
NameDescription
valueHierarchyControllerState
Returns
TypeDescription
MembershipState.Builder

setHierarchyControllerState(HierarchyControllerState.Builder builderForValue)

public MembershipState.Builder setHierarchyControllerState(HierarchyControllerState.Builder builderForValue)

Hierarchy Controller status

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

Parameter
NameDescription
builderForValueHierarchyControllerState.Builder
Returns
TypeDescription
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.v1beta.MembershipSpec membership_spec = 2;

Parameter
NameDescription
valueMembershipSpec
Returns
TypeDescription
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.v1beta.MembershipSpec membership_spec = 2;

Parameter
NameDescription
builderForValueMembershipSpec.Builder
Returns
TypeDescription
MembershipState.Builder

setOperatorState(OperatorState value)

public MembershipState.Builder setOperatorState(OperatorState value)

Current install status of ACM's Operator

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

Parameter
NameDescription
valueOperatorState
Returns
TypeDescription
MembershipState.Builder

setOperatorState(OperatorState.Builder builderForValue)

public MembershipState.Builder setOperatorState(OperatorState.Builder builderForValue)

Current install status of ACM's Operator

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

Parameter
NameDescription
builderForValueOperatorState.Builder
Returns
TypeDescription
MembershipState.Builder

setPolicyControllerState(PolicyControllerState value)

public MembershipState.Builder setPolicyControllerState(PolicyControllerState value)

PolicyController status

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

Parameter
NameDescription
valuePolicyControllerState
Returns
TypeDescription
MembershipState.Builder

setPolicyControllerState(PolicyControllerState.Builder builderForValue)

public MembershipState.Builder setPolicyControllerState(PolicyControllerState.Builder builderForValue)

PolicyController status

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

Parameter
NameDescription
builderForValuePolicyControllerState.Builder
Returns
TypeDescription
MembershipState.Builder

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

public MembershipState.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
MembershipState.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final MembershipState.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
MembershipState.Builder
Overrides