Package io.kubernetes.client.proto
Class V1Authorization.ResourceRule.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderType>
com.google.protobuf.GeneratedMessageV3.Builder<V1Authorization.ResourceRule.Builder>
io.kubernetes.client.proto.V1Authorization.ResourceRule.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,V1Authorization.ResourceRuleOrBuilder,Cloneable
- Enclosing class:
- V1Authorization.ResourceRule
public static final class V1Authorization.ResourceRule.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<V1Authorization.ResourceRule.Builder>
implements V1Authorization.ResourceRuleOrBuilder
ResourceRule is the list of actions the subject is allowed to perform on resources. The list ordering isn't significant, may contain duplicates, and possibly be incomplete.Protobuf type
k8s.io.api.authorization.v1.ResourceRule-
Method Summary
Modifier and TypeMethodDescriptionaddAllApiGroups(Iterable<String> values) APIGroups is the name of the APIGroup that contains the resources.addAllResourceNames(Iterable<String> values) ResourceNames is an optional white list of names that the rule applies to.addAllResources(Iterable<String> values) Resources is a list of resources this rule applies to.addAllVerbs(Iterable<String> values) Verb is a list of kubernetes resource API verbs, like: get, list, watch, create, update, delete, proxy.addApiGroups(String value) APIGroups is the name of the APIGroup that contains the resources.addApiGroupsBytes(com.google.protobuf.ByteString value) APIGroups is the name of the APIGroup that contains the resources.addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) addResourceNames(String value) ResourceNames is an optional white list of names that the rule applies to.addResourceNamesBytes(com.google.protobuf.ByteString value) ResourceNames is an optional white list of names that the rule applies to.addResources(String value) Resources is a list of resources this rule applies to.addResourcesBytes(com.google.protobuf.ByteString value) Resources is a list of resources this rule applies to.Verb is a list of kubernetes resource API verbs, like: get, list, watch, create, update, delete, proxy.addVerbsBytes(com.google.protobuf.ByteString value) Verb is a list of kubernetes resource API verbs, like: get, list, watch, create, update, delete, proxy.build()clear()APIGroups is the name of the APIGroup that contains the resources.clearField(com.google.protobuf.Descriptors.FieldDescriptor field) clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) ResourceNames is an optional white list of names that the rule applies to.Resources is a list of resources this rule applies to.Verb is a list of kubernetes resource API verbs, like: get, list, watch, create, update, delete, proxy.clone()getApiGroups(int index) APIGroups is the name of the APIGroup that contains the resources.com.google.protobuf.ByteStringgetApiGroupsBytes(int index) APIGroups is the name of the APIGroup that contains the resources.intAPIGroups is the name of the APIGroup that contains the resources.com.google.protobuf.ProtocolStringListAPIGroups is the name of the APIGroup that contains the resources.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetResourceNames(int index) ResourceNames is an optional white list of names that the rule applies to.com.google.protobuf.ByteStringgetResourceNamesBytes(int index) ResourceNames is an optional white list of names that the rule applies to.intResourceNames is an optional white list of names that the rule applies to.com.google.protobuf.ProtocolStringListResourceNames is an optional white list of names that the rule applies to.getResources(int index) Resources is a list of resources this rule applies to.com.google.protobuf.ByteStringgetResourcesBytes(int index) Resources is a list of resources this rule applies to.intResources is a list of resources this rule applies to.com.google.protobuf.ProtocolStringListResources is a list of resources this rule applies to.getVerbs(int index) Verb is a list of kubernetes resource API verbs, like: get, list, watch, create, update, delete, proxy.com.google.protobuf.ByteStringgetVerbsBytes(int index) Verb is a list of kubernetes resource API verbs, like: get, list, watch, create, update, delete, proxy.intVerb is a list of kubernetes resource API verbs, like: get, list, watch, create, update, delete, proxy.com.google.protobuf.ProtocolStringListVerb is a list of kubernetes resource API verbs, like: get, list, watch, create, update, delete, proxy.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) setApiGroups(int index, String value) APIGroups is the name of the APIGroup that contains the resources.setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) setResourceNames(int index, String value) ResourceNames is an optional white list of names that the rule applies to.setResources(int index, String value) Resources is a list of resources this rule applies to.setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) Verb is a list of kubernetes resource API verbs, like: get, list, watch, create, update, delete, proxy.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<V1Authorization.ResourceRule.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<V1Authorization.ResourceRule.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<V1Authorization.ResourceRule.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<V1Authorization.ResourceRule.Builder>
-
setField
public V1Authorization.ResourceRule.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<V1Authorization.ResourceRule.Builder>
-
clearField
public V1Authorization.ResourceRule.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) - Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<V1Authorization.ResourceRule.Builder>
-
clearOneof
public V1Authorization.ResourceRule.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) - Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<V1Authorization.ResourceRule.Builder>
-
setRepeatedField
public V1Authorization.ResourceRule.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<V1Authorization.ResourceRule.Builder>
-
addRepeatedField
public V1Authorization.ResourceRule.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<V1Authorization.ResourceRule.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<V1Authorization.ResourceRule.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<V1Authorization.ResourceRule.Builder>
-
mergeFrom
public V1Authorization.ResourceRule.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<V1Authorization.ResourceRule.Builder>- Throws:
IOException
-
getVerbsList
public com.google.protobuf.ProtocolStringList getVerbsList()Verb is a list of kubernetes resource API verbs, like: get, list, watch, create, update, delete, proxy. "*" means all.
repeated string verbs = 1;- Specified by:
getVerbsListin interfaceV1Authorization.ResourceRuleOrBuilder
-
getVerbsCount
public int getVerbsCount()Verb is a list of kubernetes resource API verbs, like: get, list, watch, create, update, delete, proxy. "*" means all.
repeated string verbs = 1;- Specified by:
getVerbsCountin interfaceV1Authorization.ResourceRuleOrBuilder
-
getVerbs
Verb is a list of kubernetes resource API verbs, like: get, list, watch, create, update, delete, proxy. "*" means all.
repeated string verbs = 1;- Specified by:
getVerbsin interfaceV1Authorization.ResourceRuleOrBuilder
-
getVerbsBytes
public com.google.protobuf.ByteString getVerbsBytes(int index) Verb is a list of kubernetes resource API verbs, like: get, list, watch, create, update, delete, proxy. "*" means all.
repeated string verbs = 1;- Specified by:
getVerbsBytesin interfaceV1Authorization.ResourceRuleOrBuilder
-
setVerbs
Verb is a list of kubernetes resource API verbs, like: get, list, watch, create, update, delete, proxy. "*" means all.
repeated string verbs = 1; -
addVerbs
Verb is a list of kubernetes resource API verbs, like: get, list, watch, create, update, delete, proxy. "*" means all.
repeated string verbs = 1; -
addAllVerbs
Verb is a list of kubernetes resource API verbs, like: get, list, watch, create, update, delete, proxy. "*" means all.
repeated string verbs = 1; -
clearVerbs
Verb is a list of kubernetes resource API verbs, like: get, list, watch, create, update, delete, proxy. "*" means all.
repeated string verbs = 1; -
addVerbsBytes
Verb is a list of kubernetes resource API verbs, like: get, list, watch, create, update, delete, proxy. "*" means all.
repeated string verbs = 1; -
getApiGroupsList
public com.google.protobuf.ProtocolStringList getApiGroupsList()APIGroups is the name of the APIGroup that contains the resources. If multiple API groups are specified, any action requested against one of the enumerated resources in any API group will be allowed. "*" means all. +optional
repeated string apiGroups = 2;- Specified by:
getApiGroupsListin interfaceV1Authorization.ResourceRuleOrBuilder
-
getApiGroupsCount
public int getApiGroupsCount()APIGroups is the name of the APIGroup that contains the resources. If multiple API groups are specified, any action requested against one of the enumerated resources in any API group will be allowed. "*" means all. +optional
repeated string apiGroups = 2;- Specified by:
getApiGroupsCountin interfaceV1Authorization.ResourceRuleOrBuilder
-
getApiGroups
APIGroups is the name of the APIGroup that contains the resources. If multiple API groups are specified, any action requested against one of the enumerated resources in any API group will be allowed. "*" means all. +optional
repeated string apiGroups = 2;- Specified by:
getApiGroupsin interfaceV1Authorization.ResourceRuleOrBuilder
-
getApiGroupsBytes
public com.google.protobuf.ByteString getApiGroupsBytes(int index) APIGroups is the name of the APIGroup that contains the resources. If multiple API groups are specified, any action requested against one of the enumerated resources in any API group will be allowed. "*" means all. +optional
repeated string apiGroups = 2;- Specified by:
getApiGroupsBytesin interfaceV1Authorization.ResourceRuleOrBuilder
-
setApiGroups
APIGroups is the name of the APIGroup that contains the resources. If multiple API groups are specified, any action requested against one of the enumerated resources in any API group will be allowed. "*" means all. +optional
repeated string apiGroups = 2; -
addApiGroups
APIGroups is the name of the APIGroup that contains the resources. If multiple API groups are specified, any action requested against one of the enumerated resources in any API group will be allowed. "*" means all. +optional
repeated string apiGroups = 2; -
addAllApiGroups
APIGroups is the name of the APIGroup that contains the resources. If multiple API groups are specified, any action requested against one of the enumerated resources in any API group will be allowed. "*" means all. +optional
repeated string apiGroups = 2; -
clearApiGroups
APIGroups is the name of the APIGroup that contains the resources. If multiple API groups are specified, any action requested against one of the enumerated resources in any API group will be allowed. "*" means all. +optional
repeated string apiGroups = 2; -
addApiGroupsBytes
APIGroups is the name of the APIGroup that contains the resources. If multiple API groups are specified, any action requested against one of the enumerated resources in any API group will be allowed. "*" means all. +optional
repeated string apiGroups = 2; -
getResourcesList
public com.google.protobuf.ProtocolStringList getResourcesList()Resources is a list of resources this rule applies to. "*" means all in the specified apiGroups. "*/foo" represents the subresource 'foo' for all resources in the specified apiGroups. +optional
repeated string resources = 3;- Specified by:
getResourcesListin interfaceV1Authorization.ResourceRuleOrBuilder
-
getResourcesCount
public int getResourcesCount()Resources is a list of resources this rule applies to. "*" means all in the specified apiGroups. "*/foo" represents the subresource 'foo' for all resources in the specified apiGroups. +optional
repeated string resources = 3;- Specified by:
getResourcesCountin interfaceV1Authorization.ResourceRuleOrBuilder
-
getResources
Resources is a list of resources this rule applies to. "*" means all in the specified apiGroups. "*/foo" represents the subresource 'foo' for all resources in the specified apiGroups. +optional
repeated string resources = 3;- Specified by:
getResourcesin interfaceV1Authorization.ResourceRuleOrBuilder
-
getResourcesBytes
public com.google.protobuf.ByteString getResourcesBytes(int index) Resources is a list of resources this rule applies to. "*" means all in the specified apiGroups. "*/foo" represents the subresource 'foo' for all resources in the specified apiGroups. +optional
repeated string resources = 3;- Specified by:
getResourcesBytesin interfaceV1Authorization.ResourceRuleOrBuilder
-
setResources
Resources is a list of resources this rule applies to. "*" means all in the specified apiGroups. "*/foo" represents the subresource 'foo' for all resources in the specified apiGroups. +optional
repeated string resources = 3; -
addResources
Resources is a list of resources this rule applies to. "*" means all in the specified apiGroups. "*/foo" represents the subresource 'foo' for all resources in the specified apiGroups. +optional
repeated string resources = 3; -
addAllResources
Resources is a list of resources this rule applies to. "*" means all in the specified apiGroups. "*/foo" represents the subresource 'foo' for all resources in the specified apiGroups. +optional
repeated string resources = 3; -
clearResources
Resources is a list of resources this rule applies to. "*" means all in the specified apiGroups. "*/foo" represents the subresource 'foo' for all resources in the specified apiGroups. +optional
repeated string resources = 3; -
addResourcesBytes
Resources is a list of resources this rule applies to. "*" means all in the specified apiGroups. "*/foo" represents the subresource 'foo' for all resources in the specified apiGroups. +optional
repeated string resources = 3; -
getResourceNamesList
public com.google.protobuf.ProtocolStringList getResourceNamesList()ResourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed. "*" means all. +optional
repeated string resourceNames = 4;- Specified by:
getResourceNamesListin interfaceV1Authorization.ResourceRuleOrBuilder
-
getResourceNamesCount
public int getResourceNamesCount()ResourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed. "*" means all. +optional
repeated string resourceNames = 4;- Specified by:
getResourceNamesCountin interfaceV1Authorization.ResourceRuleOrBuilder
-
getResourceNames
ResourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed. "*" means all. +optional
repeated string resourceNames = 4;- Specified by:
getResourceNamesin interfaceV1Authorization.ResourceRuleOrBuilder
-
getResourceNamesBytes
public com.google.protobuf.ByteString getResourceNamesBytes(int index) ResourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed. "*" means all. +optional
repeated string resourceNames = 4;- Specified by:
getResourceNamesBytesin interfaceV1Authorization.ResourceRuleOrBuilder
-
setResourceNames
ResourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed. "*" means all. +optional
repeated string resourceNames = 4; -
addResourceNames
ResourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed. "*" means all. +optional
repeated string resourceNames = 4; -
addAllResourceNames
ResourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed. "*" means all. +optional
repeated string resourceNames = 4; -
clearResourceNames
ResourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed. "*" means all. +optional
repeated string resourceNames = 4; -
addResourceNamesBytes
public V1Authorization.ResourceRule.Builder addResourceNamesBytes(com.google.protobuf.ByteString value) ResourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed. "*" means all. +optional
repeated string resourceNames = 4; -
setUnknownFields
public final V1Authorization.ResourceRule.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<V1Authorization.ResourceRule.Builder>
-
mergeUnknownFields
public final V1Authorization.ResourceRule.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<V1Authorization.ResourceRule.Builder>
-