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.policycontroller.v1beta.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
**Policy Controller**: State for a single cluster.Protobuf type
google.cloud.gkehub.policycontroller.v1beta.MembershipState-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()The overall content state observed by the Hub Feature controller.The overall Policy Controller lifecycle state observed by the Hub Feature controller.booleanCurrently these include (also serving as map keys): 1.Deprecated.intCurrently these include (also serving as map keys): 1.Currently these include (also serving as map keys): 1.getComponentStatesOrDefault(String key, OnClusterState defaultValue) Currently these include (also serving as map keys): 1.Currently these include (also serving as map keys): 1.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorDeprecated.The overall content state observed by the Hub Feature controller.The overall content state observed by the Hub Feature controller.The overall content state observed by the Hub Feature controller.getState()The overall Policy Controller lifecycle state observed by the Hub Feature controller.intThe overall Policy Controller lifecycle state observed by the Hub Feature controller.booleanThe overall content state observed by the Hub Feature controller.protected com.google.protobuf.GeneratedMessage.FieldAccessorTableprotected com.google.protobuf.MapFieldReflectionAccessorinternalGetMapFieldReflection(int number) protected com.google.protobuf.MapFieldReflectionAccessorinternalGetMutableMapFieldReflection(int number) final booleanmergeFrom(MembershipState other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) The overall content state observed by the Hub Feature controller.putAllComponentStates(Map<String, OnClusterState> values) Currently these include (also serving as map keys): 1.putComponentStates(String key, OnClusterState value) Currently these include (also serving as map keys): 1.Currently these include (also serving as map keys): 1.Currently these include (also serving as map keys): 1.The overall content state observed by the Hub Feature controller.setPolicyContentState(PolicyContentState.Builder builderForValue) The overall content state observed by the Hub Feature controller.The overall Policy Controller lifecycle state observed by the Hub Feature controller.setStateValue(int value) The overall Policy Controller lifecycle state observed by the Hub Feature controller.Methods 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, internalGetMutableMapField, 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() -
internalGetMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number) - Overrides:
internalGetMapFieldReflectionin classcom.google.protobuf.GeneratedMessage.Builder<MembershipState.Builder>
-
internalGetMutableMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number) - Overrides:
internalGetMutableMapFieldReflectionin classcom.google.protobuf.GeneratedMessage.Builder<MembershipState.Builder>
-
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
-
getComponentStatesCount
public int getComponentStatesCount()Description copied from interface:MembershipStateOrBuilderCurrently 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:
getComponentStatesCountin interfaceMembershipStateOrBuilder
-
containsComponentStates
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:
containsComponentStatesin interfaceMembershipStateOrBuilder
-
getComponentStates
Deprecated.UsegetComponentStatesMap()instead.- Specified by:
getComponentStatesin interfaceMembershipStateOrBuilder
-
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:
getComponentStatesMapin interfaceMembershipStateOrBuilder
-
getComponentStatesOrDefault
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:
getComponentStatesOrDefaultin interfaceMembershipStateOrBuilder
-
getComponentStatesOrThrow
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:
getComponentStatesOrThrowin interfaceMembershipStateOrBuilder
-
clearComponentStates
-
removeComponentStates
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; -
getMutableComponentStates
Deprecated.Use alternate mutation accessors instead. -
putComponentStates
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; -
putAllComponentStates
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; -
putComponentStatesBuilderIfAbsent
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; -
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:
getStateValuein interfaceMembershipStateOrBuilder- Returns:
- The enum numeric value on the wire for state.
-
setStateValue
The overall Policy Controller lifecycle state observed by the Hub Feature controller.
.google.cloud.gkehub.policycontroller.v1beta.MembershipState.LifecycleState state = 4;- Parameters:
value- The enum numeric value on the wire for state to set.- Returns:
- This builder for chaining.
-
getState
The overall Policy Controller lifecycle state observed by the Hub Feature controller.
.google.cloud.gkehub.policycontroller.v1beta.MembershipState.LifecycleState state = 4;- Specified by:
getStatein interfaceMembershipStateOrBuilder- Returns:
- The state.
-
setState
The overall Policy Controller lifecycle state observed by the Hub Feature controller.
.google.cloud.gkehub.policycontroller.v1beta.MembershipState.LifecycleState state = 4;- Parameters:
value- The state to set.- Returns:
- This builder for chaining.
-
clearState
The overall Policy Controller lifecycle state observed by the Hub Feature controller.
.google.cloud.gkehub.policycontroller.v1beta.MembershipState.LifecycleState state = 4;- Returns:
- This builder for chaining.
-
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:
hasPolicyContentStatein interfaceMembershipStateOrBuilder- Returns:
- Whether the policyContentState field is set.
-
getPolicyContentState
The overall content state observed by the Hub Feature controller.
.google.cloud.gkehub.policycontroller.v1beta.PolicyContentState policy_content_state = 6;- Specified by:
getPolicyContentStatein interfaceMembershipStateOrBuilder- Returns:
- The policyContentState.
-
setPolicyContentState
The overall content state observed by the Hub Feature controller.
.google.cloud.gkehub.policycontroller.v1beta.PolicyContentState policy_content_state = 6; -
setPolicyContentState
The overall content state observed by the Hub Feature controller.
.google.cloud.gkehub.policycontroller.v1beta.PolicyContentState policy_content_state = 6; -
mergePolicyContentState
The overall content state observed by the Hub Feature controller.
.google.cloud.gkehub.policycontroller.v1beta.PolicyContentState policy_content_state = 6; -
clearPolicyContentState
The overall content state observed by the Hub Feature controller.
.google.cloud.gkehub.policycontroller.v1beta.PolicyContentState policy_content_state = 6; -
getPolicyContentStateBuilder
The overall content state observed by the Hub Feature controller.
.google.cloud.gkehub.policycontroller.v1beta.PolicyContentState policy_content_state = 6; -
getPolicyContentStateOrBuilder
The overall content state observed by the Hub Feature controller.
.google.cloud.gkehub.policycontroller.v1beta.PolicyContentState policy_content_state = 6;- Specified by:
getPolicyContentStateOrBuilderin interfaceMembershipStateOrBuilder
-