Class V1alpha1Admissionregistration.Rule.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<V1alpha1Admissionregistration.Rule.Builder>
io.kubernetes.client.proto.V1alpha1Admissionregistration.Rule.Builder
All Implemented Interfaces:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, V1alpha1Admissionregistration.RuleOrBuilder, Cloneable
Enclosing class:
V1alpha1Admissionregistration.Rule

public static final class V1alpha1Admissionregistration.Rule.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<V1alpha1Admissionregistration.Rule.Builder> implements V1alpha1Admissionregistration.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.v1alpha1.Rule
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<V1alpha1Admissionregistration.Rule.Builder>
    • clear

      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessageV3.Builder<V1alpha1Admissionregistration.Rule.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<V1alpha1Admissionregistration.Rule.Builder>
    • getDefaultInstanceForType

      public V1alpha1Admissionregistration.Rule getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public V1alpha1Admissionregistration.Rule buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • clone

      Specified by:
      clone in interface com.google.protobuf.Message.Builder
      Specified by:
      clone in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clone in class com.google.protobuf.GeneratedMessageV3.Builder<V1alpha1Admissionregistration.Rule.Builder>
    • setField

      public V1alpha1Admissionregistration.Rule.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      setField in interface com.google.protobuf.Message.Builder
      Overrides:
      setField in class com.google.protobuf.GeneratedMessageV3.Builder<V1alpha1Admissionregistration.Rule.Builder>
    • clearField

      public V1alpha1Admissionregistration.Rule.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
      Specified by:
      clearField in interface com.google.protobuf.Message.Builder
      Overrides:
      clearField in class com.google.protobuf.GeneratedMessageV3.Builder<V1alpha1Admissionregistration.Rule.Builder>
    • clearOneof

      public V1alpha1Admissionregistration.Rule.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
      Specified by:
      clearOneof in interface com.google.protobuf.Message.Builder
      Overrides:
      clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<V1alpha1Admissionregistration.Rule.Builder>
    • setRepeatedField

      public V1alpha1Admissionregistration.Rule.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
      Specified by:
      setRepeatedField in interface com.google.protobuf.Message.Builder
      Overrides:
      setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<V1alpha1Admissionregistration.Rule.Builder>
    • addRepeatedField

      public V1alpha1Admissionregistration.Rule.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      addRepeatedField in interface com.google.protobuf.Message.Builder
      Overrides:
      addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<V1alpha1Admissionregistration.Rule.Builder>
    • mergeFrom

      public V1alpha1Admissionregistration.Rule.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<V1alpha1Admissionregistration.Rule.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<V1alpha1Admissionregistration.Rule.Builder>
    • mergeFrom

      public V1alpha1Admissionregistration.Rule.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<V1alpha1Admissionregistration.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:
      getApiGroupsList in interface V1alpha1Admissionregistration.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:
      getApiGroupsCount in interface V1alpha1Admissionregistration.RuleOrBuilder
    • getApiGroups

      public String getApiGroups(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:
      getApiGroups in interface V1alpha1Admissionregistration.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:
      getApiGroupsBytes in interface V1alpha1Admissionregistration.RuleOrBuilder
    • setApiGroups

      public V1alpha1Admissionregistration.Rule.Builder setApiGroups(int index, String value)
       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

      public V1alpha1Admissionregistration.Rule.Builder addApiGroupsBytes(com.google.protobuf.ByteString value)
       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:
      getApiVersionsList in interface V1alpha1Admissionregistration.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:
      getApiVersionsCount in interface V1alpha1Admissionregistration.RuleOrBuilder
    • getApiVersions

      public String getApiVersions(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:
      getApiVersions in interface V1alpha1Admissionregistration.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:
      getApiVersionsBytes in interface V1alpha1Admissionregistration.RuleOrBuilder
    • setApiVersions

      public V1alpha1Admissionregistration.Rule.Builder setApiVersions(int index, String 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;
    • addApiVersions

      public V1alpha1Admissionregistration.Rule.Builder addApiVersions(String 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;
    • addAllApiVersions

      public V1alpha1Admissionregistration.Rule.Builder addAllApiVersions(Iterable<String> values)
       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

      public V1alpha1Admissionregistration.Rule.Builder 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 V1alpha1Admissionregistration.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:
      getResourcesList in interface V1alpha1Admissionregistration.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:
      getResourcesCount in interface V1alpha1Admissionregistration.RuleOrBuilder
    • getResources

      public String getResources(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:
      getResources in interface V1alpha1Admissionregistration.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:
      getResourcesBytes in interface V1alpha1Admissionregistration.RuleOrBuilder
    • setResources

      public V1alpha1Admissionregistration.Rule.Builder setResources(int index, String value)
       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

      public V1alpha1Admissionregistration.Rule.Builder addResourcesBytes(com.google.protobuf.ByteString value)
       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;
    • setUnknownFields

      public final V1alpha1Admissionregistration.Rule.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
      Specified by:
      setUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<V1alpha1Admissionregistration.Rule.Builder>
    • mergeUnknownFields

      public final V1alpha1Admissionregistration.Rule.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
      Specified by:
      mergeUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<V1alpha1Admissionregistration.Rule.Builder>