Class MembershipState.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<MembershipState.Builder>
com.google.cloud.gkehub.configmanagement.v1.MembershipState.Builder
- All Implemented Interfaces:
MembershipStateOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- MembershipState
public static final class MembershipState.Builder
extends com.google.protobuf.GeneratedMessage.Builder<MembershipState.Builder>
implements MembershipStateOrBuilder
**Anthos Config Management**: State for a single cluster.Protobuf type
google.cloud.gkehub.configmanagement.v1.MembershipState-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()This field is set to the `cluster_name` field of the Membership Spec if it is not empty.Current sync statusHierarchy Controller statusMembership configuration in the cluster.Current install status of ACM's OperatorPolicyController statusThis field is set to the `cluster_name` field of the Membership Spec if it is not empty.com.google.protobuf.ByteStringThis field is set to the `cluster_name` field of the Membership Spec if it is not empty.Current sync statusCurrent sync statusCurrent sync statusstatic final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorHierarchy Controller statusHierarchy Controller statusHierarchy Controller statusMembership configuration in the cluster.Membership configuration in the cluster.Membership configuration in the cluster.Current install status of ACM's OperatorCurrent install status of ACM's OperatorCurrent install status of ACM's OperatorPolicyController statusPolicyController statusPolicyController statusbooleanCurrent sync statusbooleanHierarchy Controller statusbooleanMembership configuration in the cluster.booleanCurrent install status of ACM's OperatorbooleanPolicyController statusprotected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanCurrent sync statusmergeFrom(MembershipState other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) Hierarchy Controller statusMembership configuration in the cluster.mergeOperatorState(OperatorState value) Current install status of ACM's OperatorPolicyController statussetClusterName(String value) This field is set to the `cluster_name` field of the Membership Spec if it is not empty.setClusterNameBytes(com.google.protobuf.ByteString value) This field is set to the `cluster_name` field of the Membership Spec if it is not empty.Current sync statussetConfigSyncState(ConfigSyncState.Builder builderForValue) Current sync statusHierarchy Controller statussetHierarchyControllerState(HierarchyControllerState.Builder builderForValue) Hierarchy Controller statussetMembershipSpec(MembershipSpec value) Membership configuration in the cluster.setMembershipSpec(MembershipSpec.Builder builderForValue) Membership configuration in the cluster.setOperatorState(OperatorState value) Current install status of ACM's OperatorsetOperatorState(OperatorState.Builder builderForValue) Current install status of ACM's OperatorPolicyController statussetPolicyControllerState(PolicyControllerState.Builder builderForValue) PolicyController statusMethods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<MembershipState.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<MembershipState.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<MembershipState.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<MembershipState.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<MembershipState.Builder>
-
mergeFrom
public MembershipState.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<MembershipState.Builder>- Throws:
IOException
-
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;- Specified by:
getClusterNamein interfaceMembershipStateOrBuilder- Returns:
- The clusterName.
-
getClusterNameBytes
public com.google.protobuf.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;- Specified by:
getClusterNameBytesin interfaceMembershipStateOrBuilder- Returns:
- The bytes for clusterName.
-
setClusterName
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;- Parameters:
value- The clusterName to set.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-
setClusterNameBytes
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;- Parameters:
value- The bytes for clusterName to set.- Returns:
- This builder for chaining.
-
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;- Specified by:
hasMembershipSpecin interfaceMembershipStateOrBuilder- Returns:
- Whether the membershipSpec field is set.
-
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;- Specified by:
getMembershipSpecin interfaceMembershipStateOrBuilder- Returns:
- The membershipSpec.
-
setMembershipSpec
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; -
setMembershipSpec
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; -
mergeMembershipSpec
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; -
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; -
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; -
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;- Specified by:
getMembershipSpecOrBuilderin interfaceMembershipStateOrBuilder
-
hasOperatorState
public boolean hasOperatorState()Current install status of ACM's Operator
.google.cloud.gkehub.configmanagement.v1.OperatorState operator_state = 3;- Specified by:
hasOperatorStatein interfaceMembershipStateOrBuilder- Returns:
- Whether the operatorState field is set.
-
getOperatorState
Current install status of ACM's Operator
.google.cloud.gkehub.configmanagement.v1.OperatorState operator_state = 3;- Specified by:
getOperatorStatein interfaceMembershipStateOrBuilder- Returns:
- The operatorState.
-
setOperatorState
Current install status of ACM's Operator
.google.cloud.gkehub.configmanagement.v1.OperatorState operator_state = 3; -
setOperatorState
Current install status of ACM's Operator
.google.cloud.gkehub.configmanagement.v1.OperatorState operator_state = 3; -
mergeOperatorState
Current install status of ACM's Operator
.google.cloud.gkehub.configmanagement.v1.OperatorState operator_state = 3; -
clearOperatorState
Current install status of ACM's Operator
.google.cloud.gkehub.configmanagement.v1.OperatorState operator_state = 3; -
getOperatorStateBuilder
Current install status of ACM's Operator
.google.cloud.gkehub.configmanagement.v1.OperatorState operator_state = 3; -
getOperatorStateOrBuilder
Current install status of ACM's Operator
.google.cloud.gkehub.configmanagement.v1.OperatorState operator_state = 3;- Specified by:
getOperatorStateOrBuilderin interfaceMembershipStateOrBuilder
-
hasConfigSyncState
public boolean hasConfigSyncState()Current sync status
.google.cloud.gkehub.configmanagement.v1.ConfigSyncState config_sync_state = 4;- Specified by:
hasConfigSyncStatein interfaceMembershipStateOrBuilder- Returns:
- Whether the configSyncState field is set.
-
getConfigSyncState
Current sync status
.google.cloud.gkehub.configmanagement.v1.ConfigSyncState config_sync_state = 4;- Specified by:
getConfigSyncStatein interfaceMembershipStateOrBuilder- Returns:
- The configSyncState.
-
setConfigSyncState
Current sync status
.google.cloud.gkehub.configmanagement.v1.ConfigSyncState config_sync_state = 4; -
setConfigSyncState
Current sync status
.google.cloud.gkehub.configmanagement.v1.ConfigSyncState config_sync_state = 4; -
mergeConfigSyncState
Current sync status
.google.cloud.gkehub.configmanagement.v1.ConfigSyncState config_sync_state = 4; -
clearConfigSyncState
Current sync status
.google.cloud.gkehub.configmanagement.v1.ConfigSyncState config_sync_state = 4; -
getConfigSyncStateBuilder
Current sync status
.google.cloud.gkehub.configmanagement.v1.ConfigSyncState config_sync_state = 4; -
getConfigSyncStateOrBuilder
Current sync status
.google.cloud.gkehub.configmanagement.v1.ConfigSyncState config_sync_state = 4;- Specified by:
getConfigSyncStateOrBuilderin interfaceMembershipStateOrBuilder
-
hasPolicyControllerState
public boolean hasPolicyControllerState()PolicyController status
.google.cloud.gkehub.configmanagement.v1.PolicyControllerState policy_controller_state = 5;- Specified by:
hasPolicyControllerStatein interfaceMembershipStateOrBuilder- Returns:
- Whether the policyControllerState field is set.
-
getPolicyControllerState
PolicyController status
.google.cloud.gkehub.configmanagement.v1.PolicyControllerState policy_controller_state = 5;- Specified by:
getPolicyControllerStatein interfaceMembershipStateOrBuilder- Returns:
- The policyControllerState.
-
setPolicyControllerState
PolicyController status
.google.cloud.gkehub.configmanagement.v1.PolicyControllerState policy_controller_state = 5; -
setPolicyControllerState
public MembershipState.Builder setPolicyControllerState(PolicyControllerState.Builder builderForValue) PolicyController status
.google.cloud.gkehub.configmanagement.v1.PolicyControllerState policy_controller_state = 5; -
mergePolicyControllerState
PolicyController status
.google.cloud.gkehub.configmanagement.v1.PolicyControllerState policy_controller_state = 5; -
clearPolicyControllerState
PolicyController status
.google.cloud.gkehub.configmanagement.v1.PolicyControllerState policy_controller_state = 5; -
getPolicyControllerStateBuilder
PolicyController status
.google.cloud.gkehub.configmanagement.v1.PolicyControllerState policy_controller_state = 5; -
getPolicyControllerStateOrBuilder
PolicyController status
.google.cloud.gkehub.configmanagement.v1.PolicyControllerState policy_controller_state = 5;- Specified by:
getPolicyControllerStateOrBuilderin interfaceMembershipStateOrBuilder
-
hasHierarchyControllerState
public boolean hasHierarchyControllerState()Hierarchy Controller status
.google.cloud.gkehub.configmanagement.v1.HierarchyControllerState hierarchy_controller_state = 7;- Specified by:
hasHierarchyControllerStatein interfaceMembershipStateOrBuilder- Returns:
- Whether the hierarchyControllerState field is set.
-
getHierarchyControllerState
Hierarchy Controller status
.google.cloud.gkehub.configmanagement.v1.HierarchyControllerState hierarchy_controller_state = 7;- Specified by:
getHierarchyControllerStatein interfaceMembershipStateOrBuilder- Returns:
- The hierarchyControllerState.
-
setHierarchyControllerState
Hierarchy Controller status
.google.cloud.gkehub.configmanagement.v1.HierarchyControllerState hierarchy_controller_state = 7; -
setHierarchyControllerState
public MembershipState.Builder setHierarchyControllerState(HierarchyControllerState.Builder builderForValue) Hierarchy Controller status
.google.cloud.gkehub.configmanagement.v1.HierarchyControllerState hierarchy_controller_state = 7; -
mergeHierarchyControllerState
Hierarchy Controller status
.google.cloud.gkehub.configmanagement.v1.HierarchyControllerState hierarchy_controller_state = 7; -
clearHierarchyControllerState
Hierarchy Controller status
.google.cloud.gkehub.configmanagement.v1.HierarchyControllerState hierarchy_controller_state = 7; -
getHierarchyControllerStateBuilder
Hierarchy Controller status
.google.cloud.gkehub.configmanagement.v1.HierarchyControllerState hierarchy_controller_state = 7; -
getHierarchyControllerStateOrBuilder
Hierarchy Controller status
.google.cloud.gkehub.configmanagement.v1.HierarchyControllerState hierarchy_controller_state = 7;- Specified by:
getHierarchyControllerStateOrBuilderin interfaceMembershipStateOrBuilder
-