Package io.kubernetes.client.proto
Class V1beta1Rbac.ClusterRole.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderType>
com.google.protobuf.GeneratedMessageV3.Builder<V1beta1Rbac.ClusterRole.Builder>
io.kubernetes.client.proto.V1beta1Rbac.ClusterRole.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,V1beta1Rbac.ClusterRoleOrBuilder,Cloneable
- Enclosing class:
- V1beta1Rbac.ClusterRole
public static final class V1beta1Rbac.ClusterRole.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<V1beta1Rbac.ClusterRole.Builder>
implements V1beta1Rbac.ClusterRoleOrBuilder
ClusterRole is a cluster level, logical grouping of PolicyRules that can be referenced as a unit by a RoleBinding or ClusterRoleBinding. Deprecated in v1.17 in favor of rbac.authorization.k8s.io/v1 ClusterRole, and will no longer be served in v1.22.Protobuf type
k8s.io.api.rbac.v1beta1.ClusterRole-
Method Summary
Modifier and TypeMethodDescriptionaddAllRules(Iterable<? extends V1beta1Rbac.PolicyRule> values) Rules holds all the PolicyRules for this ClusterRole +optionaladdRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) addRules(int index, V1beta1Rbac.PolicyRule value) Rules holds all the PolicyRules for this ClusterRole +optionaladdRules(int index, V1beta1Rbac.PolicyRule.Builder builderForValue) Rules holds all the PolicyRules for this ClusterRole +optionaladdRules(V1beta1Rbac.PolicyRule value) Rules holds all the PolicyRules for this ClusterRole +optionaladdRules(V1beta1Rbac.PolicyRule.Builder builderForValue) Rules holds all the PolicyRules for this ClusterRole +optionalRules holds all the PolicyRules for this ClusterRole +optionaladdRulesBuilder(int index) Rules holds all the PolicyRules for this ClusterRole +optionalbuild()clear()AggregationRule is an optional field that describes how to build the Rules for this ClusterRole.clearField(com.google.protobuf.Descriptors.FieldDescriptor field) Standard object's metadata.clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) Rules holds all the PolicyRules for this ClusterRole +optionalclone()AggregationRule is an optional field that describes how to build the Rules for this ClusterRole.AggregationRule is an optional field that describes how to build the Rules for this ClusterRole.AggregationRule is an optional field that describes how to build the Rules for this ClusterRole.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorStandard object's metadata.Standard object's metadata.Standard object's metadata.getRules(int index) Rules holds all the PolicyRules for this ClusterRole +optionalgetRulesBuilder(int index) Rules holds all the PolicyRules for this ClusterRole +optionalRules holds all the PolicyRules for this ClusterRole +optionalintRules holds all the PolicyRules for this ClusterRole +optionalRules holds all the PolicyRules for this ClusterRole +optionalgetRulesOrBuilder(int index) Rules holds all the PolicyRules for this ClusterRole +optionalList<? extends V1beta1Rbac.PolicyRuleOrBuilder>Rules holds all the PolicyRules for this ClusterRole +optionalbooleanAggregationRule is an optional field that describes how to build the Rules for this ClusterRole.booleanStandard object's metadata.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanAggregationRule is an optional field that describes how to build the Rules for this ClusterRole.mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeFrom(V1beta1Rbac.ClusterRole other) mergeMetadata(Meta.ObjectMeta value) Standard object's metadata.mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) removeRules(int index) Rules holds all the PolicyRules for this ClusterRole +optionalAggregationRule is an optional field that describes how to build the Rules for this ClusterRole.setAggregationRule(V1beta1Rbac.AggregationRule.Builder builderForValue) AggregationRule is an optional field that describes how to build the Rules for this ClusterRole.setMetadata(Meta.ObjectMeta value) Standard object's metadata.setMetadata(Meta.ObjectMeta.Builder builderForValue) Standard object's metadata.setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) setRules(int index, V1beta1Rbac.PolicyRule value) Rules holds all the PolicyRules for this ClusterRole +optionalsetRules(int index, V1beta1Rbac.PolicyRule.Builder builderForValue) Rules holds all the PolicyRules for this ClusterRole +optionalsetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, 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.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<V1beta1Rbac.ClusterRole.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<V1beta1Rbac.ClusterRole.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.GeneratedMessageV3.Builder<V1beta1Rbac.ClusterRole.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
-
clone
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<V1beta1Rbac.ClusterRole.Builder>
-
setField
public V1beta1Rbac.ClusterRole.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<V1beta1Rbac.ClusterRole.Builder>
-
clearField
public V1beta1Rbac.ClusterRole.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) - Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<V1beta1Rbac.ClusterRole.Builder>
-
clearOneof
public V1beta1Rbac.ClusterRole.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) - Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<V1beta1Rbac.ClusterRole.Builder>
-
setRepeatedField
public V1beta1Rbac.ClusterRole.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) - Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<V1beta1Rbac.ClusterRole.Builder>
-
addRepeatedField
public V1beta1Rbac.ClusterRole.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<V1beta1Rbac.ClusterRole.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<V1beta1Rbac.ClusterRole.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<V1beta1Rbac.ClusterRole.Builder>
-
mergeFrom
public V1beta1Rbac.ClusterRole.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<V1beta1Rbac.ClusterRole.Builder>- Throws:
IOException
-
hasMetadata
public boolean hasMetadata()Standard object's metadata. +optional
optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1;- Specified by:
hasMetadatain interfaceV1beta1Rbac.ClusterRoleOrBuilder
-
getMetadata
Standard object's metadata. +optional
optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1;- Specified by:
getMetadatain interfaceV1beta1Rbac.ClusterRoleOrBuilder
-
setMetadata
Standard object's metadata. +optional
optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; -
setMetadata
Standard object's metadata. +optional
optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; -
mergeMetadata
Standard object's metadata. +optional
optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; -
clearMetadata
Standard object's metadata. +optional
optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; -
getMetadataBuilder
Standard object's metadata. +optional
optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; -
getMetadataOrBuilder
Standard object's metadata. +optional
optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1;- Specified by:
getMetadataOrBuilderin interfaceV1beta1Rbac.ClusterRoleOrBuilder
-
getRulesList
Rules holds all the PolicyRules for this ClusterRole +optional
repeated .k8s.io.api.rbac.v1beta1.PolicyRule rules = 2;- Specified by:
getRulesListin interfaceV1beta1Rbac.ClusterRoleOrBuilder
-
getRulesCount
public int getRulesCount()Rules holds all the PolicyRules for this ClusterRole +optional
repeated .k8s.io.api.rbac.v1beta1.PolicyRule rules = 2;- Specified by:
getRulesCountin interfaceV1beta1Rbac.ClusterRoleOrBuilder
-
getRules
Rules holds all the PolicyRules for this ClusterRole +optional
repeated .k8s.io.api.rbac.v1beta1.PolicyRule rules = 2;- Specified by:
getRulesin interfaceV1beta1Rbac.ClusterRoleOrBuilder
-
setRules
Rules holds all the PolicyRules for this ClusterRole +optional
repeated .k8s.io.api.rbac.v1beta1.PolicyRule rules = 2; -
setRules
public V1beta1Rbac.ClusterRole.Builder setRules(int index, V1beta1Rbac.PolicyRule.Builder builderForValue) Rules holds all the PolicyRules for this ClusterRole +optional
repeated .k8s.io.api.rbac.v1beta1.PolicyRule rules = 2; -
addRules
Rules holds all the PolicyRules for this ClusterRole +optional
repeated .k8s.io.api.rbac.v1beta1.PolicyRule rules = 2; -
addRules
Rules holds all the PolicyRules for this ClusterRole +optional
repeated .k8s.io.api.rbac.v1beta1.PolicyRule rules = 2; -
addRules
Rules holds all the PolicyRules for this ClusterRole +optional
repeated .k8s.io.api.rbac.v1beta1.PolicyRule rules = 2; -
addRules
public V1beta1Rbac.ClusterRole.Builder addRules(int index, V1beta1Rbac.PolicyRule.Builder builderForValue) Rules holds all the PolicyRules for this ClusterRole +optional
repeated .k8s.io.api.rbac.v1beta1.PolicyRule rules = 2; -
addAllRules
public V1beta1Rbac.ClusterRole.Builder addAllRules(Iterable<? extends V1beta1Rbac.PolicyRule> values) Rules holds all the PolicyRules for this ClusterRole +optional
repeated .k8s.io.api.rbac.v1beta1.PolicyRule rules = 2; -
clearRules
Rules holds all the PolicyRules for this ClusterRole +optional
repeated .k8s.io.api.rbac.v1beta1.PolicyRule rules = 2; -
removeRules
Rules holds all the PolicyRules for this ClusterRole +optional
repeated .k8s.io.api.rbac.v1beta1.PolicyRule rules = 2; -
getRulesBuilder
Rules holds all the PolicyRules for this ClusterRole +optional
repeated .k8s.io.api.rbac.v1beta1.PolicyRule rules = 2; -
getRulesOrBuilder
Rules holds all the PolicyRules for this ClusterRole +optional
repeated .k8s.io.api.rbac.v1beta1.PolicyRule rules = 2;- Specified by:
getRulesOrBuilderin interfaceV1beta1Rbac.ClusterRoleOrBuilder
-
getRulesOrBuilderList
Rules holds all the PolicyRules for this ClusterRole +optional
repeated .k8s.io.api.rbac.v1beta1.PolicyRule rules = 2;- Specified by:
getRulesOrBuilderListin interfaceV1beta1Rbac.ClusterRoleOrBuilder
-
addRulesBuilder
Rules holds all the PolicyRules for this ClusterRole +optional
repeated .k8s.io.api.rbac.v1beta1.PolicyRule rules = 2; -
addRulesBuilder
Rules holds all the PolicyRules for this ClusterRole +optional
repeated .k8s.io.api.rbac.v1beta1.PolicyRule rules = 2; -
getRulesBuilderList
Rules holds all the PolicyRules for this ClusterRole +optional
repeated .k8s.io.api.rbac.v1beta1.PolicyRule rules = 2; -
hasAggregationRule
public boolean hasAggregationRule()AggregationRule is an optional field that describes how to build the Rules for this ClusterRole. If AggregationRule is set, then the Rules are controller managed and direct changes to Rules will be stomped by the controller. +optional
optional .k8s.io.api.rbac.v1beta1.AggregationRule aggregationRule = 3;- Specified by:
hasAggregationRulein interfaceV1beta1Rbac.ClusterRoleOrBuilder
-
getAggregationRule
AggregationRule is an optional field that describes how to build the Rules for this ClusterRole. If AggregationRule is set, then the Rules are controller managed and direct changes to Rules will be stomped by the controller. +optional
optional .k8s.io.api.rbac.v1beta1.AggregationRule aggregationRule = 3;- Specified by:
getAggregationRulein interfaceV1beta1Rbac.ClusterRoleOrBuilder
-
setAggregationRule
AggregationRule is an optional field that describes how to build the Rules for this ClusterRole. If AggregationRule is set, then the Rules are controller managed and direct changes to Rules will be stomped by the controller. +optional
optional .k8s.io.api.rbac.v1beta1.AggregationRule aggregationRule = 3; -
setAggregationRule
public V1beta1Rbac.ClusterRole.Builder setAggregationRule(V1beta1Rbac.AggregationRule.Builder builderForValue) AggregationRule is an optional field that describes how to build the Rules for this ClusterRole. If AggregationRule is set, then the Rules are controller managed and direct changes to Rules will be stomped by the controller. +optional
optional .k8s.io.api.rbac.v1beta1.AggregationRule aggregationRule = 3; -
mergeAggregationRule
AggregationRule is an optional field that describes how to build the Rules for this ClusterRole. If AggregationRule is set, then the Rules are controller managed and direct changes to Rules will be stomped by the controller. +optional
optional .k8s.io.api.rbac.v1beta1.AggregationRule aggregationRule = 3; -
clearAggregationRule
AggregationRule is an optional field that describes how to build the Rules for this ClusterRole. If AggregationRule is set, then the Rules are controller managed and direct changes to Rules will be stomped by the controller. +optional
optional .k8s.io.api.rbac.v1beta1.AggregationRule aggregationRule = 3; -
getAggregationRuleBuilder
AggregationRule is an optional field that describes how to build the Rules for this ClusterRole. If AggregationRule is set, then the Rules are controller managed and direct changes to Rules will be stomped by the controller. +optional
optional .k8s.io.api.rbac.v1beta1.AggregationRule aggregationRule = 3; -
getAggregationRuleOrBuilder
AggregationRule is an optional field that describes how to build the Rules for this ClusterRole. If AggregationRule is set, then the Rules are controller managed and direct changes to Rules will be stomped by the controller. +optional
optional .k8s.io.api.rbac.v1beta1.AggregationRule aggregationRule = 3;- Specified by:
getAggregationRuleOrBuilderin interfaceV1beta1Rbac.ClusterRoleOrBuilder
-
setUnknownFields
public final V1beta1Rbac.ClusterRole.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<V1beta1Rbac.ClusterRole.Builder>
-
mergeUnknownFields
public final V1beta1Rbac.ClusterRole.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<V1beta1Rbac.ClusterRole.Builder>
-