Package io.kubernetes.client.proto
Class V1Authorization.ResourceRule.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
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.ByteString
getApiGroupsBytes
(int index) APIGroups is the name of the APIGroup that contains the resources.int
APIGroups is the name of the APIGroup that contains the resources.com.google.protobuf.ProtocolStringList
APIGroups is the name of the APIGroup that contains the resources.static final com.google.protobuf.Descriptors.Descriptor
com.google.protobuf.Descriptors.Descriptor
getResourceNames
(int index) ResourceNames is an optional white list of names that the rule applies to.com.google.protobuf.ByteString
getResourceNamesBytes
(int index) ResourceNames is an optional white list of names that the rule applies to.int
ResourceNames is an optional white list of names that the rule applies to.com.google.protobuf.ProtocolStringList
ResourceNames 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.ByteString
getResourcesBytes
(int index) Resources is a list of resources this rule applies to.int
Resources is a list of resources this rule applies to.com.google.protobuf.ProtocolStringList
Resources 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.ByteString
getVerbsBytes
(int index) Verb is a list of kubernetes resource API verbs, like: get, list, watch, create, update, delete, proxy.int
Verb is a list of kubernetes resource API verbs, like: get, list, watch, create, update, delete, proxy.com.google.protobuf.ProtocolStringList
Verb is a list of kubernetes resource API verbs, like: get, list, watch, create, update, delete, proxy.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
final boolean
mergeFrom
(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, setUnknownFieldsProto3
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFrom
Methods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFrom
Methods 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:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<V1Authorization.ResourceRule.Builder>
-
clear
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<V1Authorization.ResourceRule.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<V1Authorization.ResourceRule.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<V1Authorization.ResourceRule.Builder>
-
setField
public V1Authorization.ResourceRule.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<V1Authorization.ResourceRule.Builder>
-
clearField
public V1Authorization.ResourceRule.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) - Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<V1Authorization.ResourceRule.Builder>
-
clearOneof
public V1Authorization.ResourceRule.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) - Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in 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:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<V1Authorization.ResourceRule.Builder>
-
addRepeatedField
public V1Authorization.ResourceRule.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<V1Authorization.ResourceRule.Builder>
-
mergeFrom
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<V1Authorization.ResourceRule.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in 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:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in 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:
getVerbsList
in 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:
getVerbsCount
in 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:
getVerbs
in 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:
getVerbsBytes
in 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:
getApiGroupsList
in 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:
getApiGroupsCount
in 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:
getApiGroups
in 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:
getApiGroupsBytes
in 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:
getResourcesList
in 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:
getResourcesCount
in 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:
getResources
in 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:
getResourcesBytes
in 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:
getResourceNamesList
in 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:
getResourceNamesCount
in 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:
getResourceNames
in 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:
getResourceNamesBytes
in 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:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<V1Authorization.ResourceRule.Builder>
-
mergeUnknownFields
public final V1Authorization.ResourceRule.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<V1Authorization.ResourceRule.Builder>
-