Class FeatureSpec.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<FeatureSpec.Builder>
com.google.cloud.gkehub.rbacrolebindingactuation.v1.FeatureSpec.Builder
- All Implemented Interfaces:
FeatureSpecOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- FeatureSpec
public static final class FeatureSpec.Builder
extends com.google.protobuf.GeneratedMessage.Builder<FeatureSpec.Builder>
implements FeatureSpecOrBuilder
**RBAC RoleBinding Actuation**: The Hub-wide input for the RBACRoleBindingActuation feature.Protobuf type
google.cloud.gkehub.rbacrolebindingactuation.v1.FeatureSpec-
Method Summary
Modifier and TypeMethodDescriptionaddAllAllowedCustomRoles(Iterable<String> values) The list of allowed custom roles (ClusterRoles).addAllowedCustomRoles(String value) The list of allowed custom roles (ClusterRoles).addAllowedCustomRolesBytes(com.google.protobuf.ByteString value) The list of allowed custom roles (ClusterRoles).build()clear()The list of allowed custom roles (ClusterRoles).getAllowedCustomRoles(int index) The list of allowed custom roles (ClusterRoles).com.google.protobuf.ByteStringgetAllowedCustomRolesBytes(int index) The list of allowed custom roles (ClusterRoles).intThe list of allowed custom roles (ClusterRoles).com.google.protobuf.ProtocolStringListThe list of allowed custom roles (ClusterRoles).static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.Descriptorprotected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(FeatureSpec other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) setAllowedCustomRoles(int index, String value) The list of allowed custom roles (ClusterRoles).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, 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<FeatureSpec.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<FeatureSpec.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<FeatureSpec.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<FeatureSpec.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<FeatureSpec.Builder>
-
mergeFrom
public FeatureSpec.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<FeatureSpec.Builder>- Throws:
IOException
-
getAllowedCustomRolesList
public com.google.protobuf.ProtocolStringList getAllowedCustomRolesList()The list of allowed custom roles (ClusterRoles). If a ClusterRole is not part of this list, it cannot be used in a Scope RBACRoleBinding. If a ClusterRole in this list is in use, it cannot be removed from the list.
repeated string allowed_custom_roles = 2;- Specified by:
getAllowedCustomRolesListin interfaceFeatureSpecOrBuilder- Returns:
- A list containing the allowedCustomRoles.
-
getAllowedCustomRolesCount
public int getAllowedCustomRolesCount()The list of allowed custom roles (ClusterRoles). If a ClusterRole is not part of this list, it cannot be used in a Scope RBACRoleBinding. If a ClusterRole in this list is in use, it cannot be removed from the list.
repeated string allowed_custom_roles = 2;- Specified by:
getAllowedCustomRolesCountin interfaceFeatureSpecOrBuilder- Returns:
- The count of allowedCustomRoles.
-
getAllowedCustomRoles
The list of allowed custom roles (ClusterRoles). If a ClusterRole is not part of this list, it cannot be used in a Scope RBACRoleBinding. If a ClusterRole in this list is in use, it cannot be removed from the list.
repeated string allowed_custom_roles = 2;- Specified by:
getAllowedCustomRolesin interfaceFeatureSpecOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The allowedCustomRoles at the given index.
-
getAllowedCustomRolesBytes
public com.google.protobuf.ByteString getAllowedCustomRolesBytes(int index) The list of allowed custom roles (ClusterRoles). If a ClusterRole is not part of this list, it cannot be used in a Scope RBACRoleBinding. If a ClusterRole in this list is in use, it cannot be removed from the list.
repeated string allowed_custom_roles = 2;- Specified by:
getAllowedCustomRolesBytesin interfaceFeatureSpecOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the allowedCustomRoles at the given index.
-
setAllowedCustomRoles
The list of allowed custom roles (ClusterRoles). If a ClusterRole is not part of this list, it cannot be used in a Scope RBACRoleBinding. If a ClusterRole in this list is in use, it cannot be removed from the list.
repeated string allowed_custom_roles = 2;- Parameters:
index- The index to set the value at.value- The allowedCustomRoles to set.- Returns:
- This builder for chaining.
-
addAllowedCustomRoles
The list of allowed custom roles (ClusterRoles). If a ClusterRole is not part of this list, it cannot be used in a Scope RBACRoleBinding. If a ClusterRole in this list is in use, it cannot be removed from the list.
repeated string allowed_custom_roles = 2;- Parameters:
value- The allowedCustomRoles to add.- Returns:
- This builder for chaining.
-
addAllAllowedCustomRoles
The list of allowed custom roles (ClusterRoles). If a ClusterRole is not part of this list, it cannot be used in a Scope RBACRoleBinding. If a ClusterRole in this list is in use, it cannot be removed from the list.
repeated string allowed_custom_roles = 2;- Parameters:
values- The allowedCustomRoles to add.- Returns:
- This builder for chaining.
-
clearAllowedCustomRoles
The list of allowed custom roles (ClusterRoles). If a ClusterRole is not part of this list, it cannot be used in a Scope RBACRoleBinding. If a ClusterRole in this list is in use, it cannot be removed from the list.
repeated string allowed_custom_roles = 2;- Returns:
- This builder for chaining.
-
addAllowedCustomRolesBytes
The list of allowed custom roles (ClusterRoles). If a ClusterRole is not part of this list, it cannot be used in a Scope RBACRoleBinding. If a ClusterRole in this list is in use, it cannot be removed from the list.
repeated string allowed_custom_roles = 2;- Parameters:
value- The bytes of the allowedCustomRoles to add.- Returns:
- This builder for chaining.
-