Package io.kubernetes.client.proto
Class V1Admissionregistration.Rule.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<V1Admissionregistration.Rule.Builder>
io.kubernetes.client.proto.V1Admissionregistration.Rule.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,V1Admissionregistration.RuleOrBuilder,Cloneable
- Enclosing class:
- V1Admissionregistration.Rule
public static final class V1Admissionregistration.Rule.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<V1Admissionregistration.Rule.Builder>
implements V1Admissionregistration.RuleOrBuilder
Rule is a tuple of APIGroups, APIVersion, and Resources.It is recommended to make sure that all the tuple expansions are valid.Protobuf type
k8s.io.api.admissionregistration.v1.Rule-
Method Summary
Modifier and TypeMethodDescriptionaddAllApiGroups(Iterable<String> values) APIGroups is the API groups the resources belong to.addAllApiVersions(Iterable<String> values) APIVersions is the API versions the resources belong to.addAllResources(Iterable<String> values) Resources is a list of resources this rule applies to.addApiGroups(String value) APIGroups is the API groups the resources belong to.addApiGroupsBytes(com.google.protobuf.ByteString value) APIGroups is the API groups the resources belong to.addApiVersions(String value) APIVersions is the API versions the resources belong to.addApiVersionsBytes(com.google.protobuf.ByteString value) APIVersions is the API versions the resources belong to.addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) 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.build()clear()APIGroups is the API groups the resources belong to.APIVersions is the API versions the resources belong to.clearField(com.google.protobuf.Descriptors.FieldDescriptor field) clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) Resources is a list of resources this rule applies to.scope specifies the scope of this rule.clone()getApiGroups(int index) APIGroups is the API groups the resources belong to.com.google.protobuf.ByteStringgetApiGroupsBytes(int index) APIGroups is the API groups the resources belong to.intAPIGroups is the API groups the resources belong to.com.google.protobuf.ProtocolStringListAPIGroups is the API groups the resources belong to.getApiVersions(int index) APIVersions is the API versions the resources belong to.com.google.protobuf.ByteStringgetApiVersionsBytes(int index) APIVersions is the API versions the resources belong to.intAPIVersions is the API versions the resources belong to.com.google.protobuf.ProtocolStringListAPIVersions is the API versions the resources belong to.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetResources(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.getScope()scope specifies the scope of this rule.com.google.protobuf.ByteStringscope specifies the scope of this rule.booleanhasScope()scope specifies the scope of this rule.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 API groups the resources belong to.setApiVersions(int index, String value) APIVersions is the API versions the resources belong to.setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) setResources(int index, String value) Resources is a list of resources this rule applies to.scope specifies the scope of this rule.setScopeBytes(com.google.protobuf.ByteString value) scope specifies the scope of this rule.setUnknownFields(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<V1Admissionregistration.Rule.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<V1Admissionregistration.Rule.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<V1Admissionregistration.Rule.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<V1Admissionregistration.Rule.Builder>
-
setField
public V1Admissionregistration.Rule.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<V1Admissionregistration.Rule.Builder>
-
clearField
public V1Admissionregistration.Rule.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) - Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<V1Admissionregistration.Rule.Builder>
-
clearOneof
public V1Admissionregistration.Rule.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) - Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<V1Admissionregistration.Rule.Builder>
-
setRepeatedField
public V1Admissionregistration.Rule.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<V1Admissionregistration.Rule.Builder>
-
addRepeatedField
public V1Admissionregistration.Rule.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<V1Admissionregistration.Rule.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<V1Admissionregistration.Rule.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<V1Admissionregistration.Rule.Builder>
-
mergeFrom
public V1Admissionregistration.Rule.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<V1Admissionregistration.Rule.Builder>- Throws:
IOException
-
getApiGroupsList
public com.google.protobuf.ProtocolStringList getApiGroupsList()APIGroups is the API groups the resources belong to. '*' is all groups. If '*' is present, the length of the slice must be one. Required.
repeated string apiGroups = 1;- Specified by:
getApiGroupsListin interfaceV1Admissionregistration.RuleOrBuilder
-
getApiGroupsCount
public int getApiGroupsCount()APIGroups is the API groups the resources belong to. '*' is all groups. If '*' is present, the length of the slice must be one. Required.
repeated string apiGroups = 1;- Specified by:
getApiGroupsCountin interfaceV1Admissionregistration.RuleOrBuilder
-
getApiGroups
APIGroups is the API groups the resources belong to. '*' is all groups. If '*' is present, the length of the slice must be one. Required.
repeated string apiGroups = 1;- Specified by:
getApiGroupsin interfaceV1Admissionregistration.RuleOrBuilder
-
getApiGroupsBytes
public com.google.protobuf.ByteString getApiGroupsBytes(int index) APIGroups is the API groups the resources belong to. '*' is all groups. If '*' is present, the length of the slice must be one. Required.
repeated string apiGroups = 1;- Specified by:
getApiGroupsBytesin interfaceV1Admissionregistration.RuleOrBuilder
-
setApiGroups
APIGroups is the API groups the resources belong to. '*' is all groups. If '*' is present, the length of the slice must be one. Required.
repeated string apiGroups = 1; -
addApiGroups
APIGroups is the API groups the resources belong to. '*' is all groups. If '*' is present, the length of the slice must be one. Required.
repeated string apiGroups = 1; -
addAllApiGroups
APIGroups is the API groups the resources belong to. '*' is all groups. If '*' is present, the length of the slice must be one. Required.
repeated string apiGroups = 1; -
clearApiGroups
APIGroups is the API groups the resources belong to. '*' is all groups. If '*' is present, the length of the slice must be one. Required.
repeated string apiGroups = 1; -
addApiGroupsBytes
APIGroups is the API groups the resources belong to. '*' is all groups. If '*' is present, the length of the slice must be one. Required.
repeated string apiGroups = 1; -
getApiVersionsList
public com.google.protobuf.ProtocolStringList getApiVersionsList()APIVersions is the API versions the resources belong to. '*' is all versions. If '*' is present, the length of the slice must be one. Required.
repeated string apiVersions = 2;- Specified by:
getApiVersionsListin interfaceV1Admissionregistration.RuleOrBuilder
-
getApiVersionsCount
public int getApiVersionsCount()APIVersions is the API versions the resources belong to. '*' is all versions. If '*' is present, the length of the slice must be one. Required.
repeated string apiVersions = 2;- Specified by:
getApiVersionsCountin interfaceV1Admissionregistration.RuleOrBuilder
-
getApiVersions
APIVersions is the API versions the resources belong to. '*' is all versions. If '*' is present, the length of the slice must be one. Required.
repeated string apiVersions = 2;- Specified by:
getApiVersionsin interfaceV1Admissionregistration.RuleOrBuilder
-
getApiVersionsBytes
public com.google.protobuf.ByteString getApiVersionsBytes(int index) APIVersions is the API versions the resources belong to. '*' is all versions. If '*' is present, the length of the slice must be one. Required.
repeated string apiVersions = 2;- Specified by:
getApiVersionsBytesin interfaceV1Admissionregistration.RuleOrBuilder
-
setApiVersions
APIVersions is the API versions the resources belong to. '*' is all versions. If '*' is present, the length of the slice must be one. Required.
repeated string apiVersions = 2; -
addApiVersions
APIVersions is the API versions the resources belong to. '*' is all versions. If '*' is present, the length of the slice must be one. Required.
repeated string apiVersions = 2; -
addAllApiVersions
APIVersions is the API versions the resources belong to. '*' is all versions. If '*' is present, the length of the slice must be one. Required.
repeated string apiVersions = 2; -
clearApiVersions
APIVersions is the API versions the resources belong to. '*' is all versions. If '*' is present, the length of the slice must be one. Required.
repeated string apiVersions = 2; -
addApiVersionsBytes
public V1Admissionregistration.Rule.Builder addApiVersionsBytes(com.google.protobuf.ByteString value) APIVersions is the API versions the resources belong to. '*' is all versions. If '*' is present, the length of the slice must be one. Required.
repeated string apiVersions = 2; -
getResourcesList
public com.google.protobuf.ProtocolStringList getResourcesList()Resources is a list of resources this rule applies to. For example: 'pods' means pods. 'pods/log' means the log subresource of pods. '*' means all resources, but not subresources. 'pods/*' means all subresources of pods. '*/scale' means all scale subresources. '*/*' means all resources and their subresources. If wildcard is present, the validation rule will ensure resources do not overlap with each other. Depending on the enclosing object, subresources might not be allowed. Required.
repeated string resources = 3;- Specified by:
getResourcesListin interfaceV1Admissionregistration.RuleOrBuilder
-
getResourcesCount
public int getResourcesCount()Resources is a list of resources this rule applies to. For example: 'pods' means pods. 'pods/log' means the log subresource of pods. '*' means all resources, but not subresources. 'pods/*' means all subresources of pods. '*/scale' means all scale subresources. '*/*' means all resources and their subresources. If wildcard is present, the validation rule will ensure resources do not overlap with each other. Depending on the enclosing object, subresources might not be allowed. Required.
repeated string resources = 3;- Specified by:
getResourcesCountin interfaceV1Admissionregistration.RuleOrBuilder
-
getResources
Resources is a list of resources this rule applies to. For example: 'pods' means pods. 'pods/log' means the log subresource of pods. '*' means all resources, but not subresources. 'pods/*' means all subresources of pods. '*/scale' means all scale subresources. '*/*' means all resources and their subresources. If wildcard is present, the validation rule will ensure resources do not overlap with each other. Depending on the enclosing object, subresources might not be allowed. Required.
repeated string resources = 3;- Specified by:
getResourcesin interfaceV1Admissionregistration.RuleOrBuilder
-
getResourcesBytes
public com.google.protobuf.ByteString getResourcesBytes(int index) Resources is a list of resources this rule applies to. For example: 'pods' means pods. 'pods/log' means the log subresource of pods. '*' means all resources, but not subresources. 'pods/*' means all subresources of pods. '*/scale' means all scale subresources. '*/*' means all resources and their subresources. If wildcard is present, the validation rule will ensure resources do not overlap with each other. Depending on the enclosing object, subresources might not be allowed. Required.
repeated string resources = 3;- Specified by:
getResourcesBytesin interfaceV1Admissionregistration.RuleOrBuilder
-
setResources
Resources is a list of resources this rule applies to. For example: 'pods' means pods. 'pods/log' means the log subresource of pods. '*' means all resources, but not subresources. 'pods/*' means all subresources of pods. '*/scale' means all scale subresources. '*/*' means all resources and their subresources. If wildcard is present, the validation rule will ensure resources do not overlap with each other. Depending on the enclosing object, subresources might not be allowed. Required.
repeated string resources = 3; -
addResources
Resources is a list of resources this rule applies to. For example: 'pods' means pods. 'pods/log' means the log subresource of pods. '*' means all resources, but not subresources. 'pods/*' means all subresources of pods. '*/scale' means all scale subresources. '*/*' means all resources and their subresources. If wildcard is present, the validation rule will ensure resources do not overlap with each other. Depending on the enclosing object, subresources might not be allowed. Required.
repeated string resources = 3; -
addAllResources
Resources is a list of resources this rule applies to. For example: 'pods' means pods. 'pods/log' means the log subresource of pods. '*' means all resources, but not subresources. 'pods/*' means all subresources of pods. '*/scale' means all scale subresources. '*/*' means all resources and their subresources. If wildcard is present, the validation rule will ensure resources do not overlap with each other. Depending on the enclosing object, subresources might not be allowed. Required.
repeated string resources = 3; -
clearResources
Resources is a list of resources this rule applies to. For example: 'pods' means pods. 'pods/log' means the log subresource of pods. '*' means all resources, but not subresources. 'pods/*' means all subresources of pods. '*/scale' means all scale subresources. '*/*' means all resources and their subresources. If wildcard is present, the validation rule will ensure resources do not overlap with each other. Depending on the enclosing object, subresources might not be allowed. Required.
repeated string resources = 3; -
addResourcesBytes
Resources is a list of resources this rule applies to. For example: 'pods' means pods. 'pods/log' means the log subresource of pods. '*' means all resources, but not subresources. 'pods/*' means all subresources of pods. '*/scale' means all scale subresources. '*/*' means all resources and their subresources. If wildcard is present, the validation rule will ensure resources do not overlap with each other. Depending on the enclosing object, subresources might not be allowed. Required.
repeated string resources = 3; -
hasScope
public boolean hasScope()scope specifies the scope of this rule. Valid values are "Cluster", "Namespaced", and "*" "Cluster" means that only cluster-scoped resources will match this rule. Namespace API objects are cluster-scoped. "Namespaced" means that only namespaced resources will match this rule. "*" means that there are no scope restrictions. Subresources match the scope of their parent resource. Default is "*". +optional
optional string scope = 4;- Specified by:
hasScopein interfaceV1Admissionregistration.RuleOrBuilder
-
getScope
scope specifies the scope of this rule. Valid values are "Cluster", "Namespaced", and "*" "Cluster" means that only cluster-scoped resources will match this rule. Namespace API objects are cluster-scoped. "Namespaced" means that only namespaced resources will match this rule. "*" means that there are no scope restrictions. Subresources match the scope of their parent resource. Default is "*". +optional
optional string scope = 4;- Specified by:
getScopein interfaceV1Admissionregistration.RuleOrBuilder
-
getScopeBytes
public com.google.protobuf.ByteString getScopeBytes()scope specifies the scope of this rule. Valid values are "Cluster", "Namespaced", and "*" "Cluster" means that only cluster-scoped resources will match this rule. Namespace API objects are cluster-scoped. "Namespaced" means that only namespaced resources will match this rule. "*" means that there are no scope restrictions. Subresources match the scope of their parent resource. Default is "*". +optional
optional string scope = 4;- Specified by:
getScopeBytesin interfaceV1Admissionregistration.RuleOrBuilder
-
setScope
scope specifies the scope of this rule. Valid values are "Cluster", "Namespaced", and "*" "Cluster" means that only cluster-scoped resources will match this rule. Namespace API objects are cluster-scoped. "Namespaced" means that only namespaced resources will match this rule. "*" means that there are no scope restrictions. Subresources match the scope of their parent resource. Default is "*". +optional
optional string scope = 4; -
clearScope
scope specifies the scope of this rule. Valid values are "Cluster", "Namespaced", and "*" "Cluster" means that only cluster-scoped resources will match this rule. Namespace API objects are cluster-scoped. "Namespaced" means that only namespaced resources will match this rule. "*" means that there are no scope restrictions. Subresources match the scope of their parent resource. Default is "*". +optional
optional string scope = 4; -
setScopeBytes
scope specifies the scope of this rule. Valid values are "Cluster", "Namespaced", and "*" "Cluster" means that only cluster-scoped resources will match this rule. Namespace API objects are cluster-scoped. "Namespaced" means that only namespaced resources will match this rule. "*" means that there are no scope restrictions. Subresources match the scope of their parent resource. Default is "*". +optional
optional string scope = 4; -
setUnknownFields
public final V1Admissionregistration.Rule.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<V1Admissionregistration.Rule.Builder>
-
mergeUnknownFields
public final V1Admissionregistration.Rule.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<V1Admissionregistration.Rule.Builder>
-