Class V1Authorization.ResourceAttributes.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderType>
com.google.protobuf.GeneratedMessageV3.Builder<V1Authorization.ResourceAttributes.Builder>
io.kubernetes.client.proto.V1Authorization.ResourceAttributes.Builder
All Implemented Interfaces:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, V1Authorization.ResourceAttributesOrBuilder, Cloneable
Enclosing class:
V1Authorization.ResourceAttributes

public static final class V1Authorization.ResourceAttributes.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<V1Authorization.ResourceAttributes.Builder> implements V1Authorization.ResourceAttributesOrBuilder
 ResourceAttributes includes the authorization attributes available for resource requests to the Authorizer interface
 
Protobuf type k8s.io.api.authorization.v1.ResourceAttributes
  • 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<V1Authorization.ResourceAttributes.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<V1Authorization.ResourceAttributes.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<V1Authorization.ResourceAttributes.Builder>
    • getDefaultInstanceForType

      public V1Authorization.ResourceAttributes 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 V1Authorization.ResourceAttributes 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<V1Authorization.ResourceAttributes.Builder>
    • setField

      public V1Authorization.ResourceAttributes.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<V1Authorization.ResourceAttributes.Builder>
    • clearField

      public V1Authorization.ResourceAttributes.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<V1Authorization.ResourceAttributes.Builder>
    • clearOneof

      public V1Authorization.ResourceAttributes.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<V1Authorization.ResourceAttributes.Builder>
    • setRepeatedField

      public V1Authorization.ResourceAttributes.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<V1Authorization.ResourceAttributes.Builder>
    • addRepeatedField

      public V1Authorization.ResourceAttributes.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<V1Authorization.ResourceAttributes.Builder>
    • mergeFrom

      public V1Authorization.ResourceAttributes.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<V1Authorization.ResourceAttributes.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<V1Authorization.ResourceAttributes.Builder>
    • mergeFrom

      public V1Authorization.ResourceAttributes.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<V1Authorization.ResourceAttributes.Builder>
      Throws:
      IOException
    • hasNamespace

      public boolean hasNamespace()
       Namespace is the namespace of the action being requested.  Currently, there is no distinction between no namespace and all namespaces
       "" (empty) is defaulted for LocalSubjectAccessReviews
       "" (empty) is empty for cluster-scoped resources
       "" (empty) means "all" for namespace scoped resources from a SubjectAccessReview or SelfSubjectAccessReview
       +optional
       
      optional string namespace = 1;
      Specified by:
      hasNamespace in interface V1Authorization.ResourceAttributesOrBuilder
    • getNamespace

      public String getNamespace()
       Namespace is the namespace of the action being requested.  Currently, there is no distinction between no namespace and all namespaces
       "" (empty) is defaulted for LocalSubjectAccessReviews
       "" (empty) is empty for cluster-scoped resources
       "" (empty) means "all" for namespace scoped resources from a SubjectAccessReview or SelfSubjectAccessReview
       +optional
       
      optional string namespace = 1;
      Specified by:
      getNamespace in interface V1Authorization.ResourceAttributesOrBuilder
    • getNamespaceBytes

      public com.google.protobuf.ByteString getNamespaceBytes()
       Namespace is the namespace of the action being requested.  Currently, there is no distinction between no namespace and all namespaces
       "" (empty) is defaulted for LocalSubjectAccessReviews
       "" (empty) is empty for cluster-scoped resources
       "" (empty) means "all" for namespace scoped resources from a SubjectAccessReview or SelfSubjectAccessReview
       +optional
       
      optional string namespace = 1;
      Specified by:
      getNamespaceBytes in interface V1Authorization.ResourceAttributesOrBuilder
    • setNamespace

       Namespace is the namespace of the action being requested.  Currently, there is no distinction between no namespace and all namespaces
       "" (empty) is defaulted for LocalSubjectAccessReviews
       "" (empty) is empty for cluster-scoped resources
       "" (empty) means "all" for namespace scoped resources from a SubjectAccessReview or SelfSubjectAccessReview
       +optional
       
      optional string namespace = 1;
    • clearNamespace

       Namespace is the namespace of the action being requested.  Currently, there is no distinction between no namespace and all namespaces
       "" (empty) is defaulted for LocalSubjectAccessReviews
       "" (empty) is empty for cluster-scoped resources
       "" (empty) means "all" for namespace scoped resources from a SubjectAccessReview or SelfSubjectAccessReview
       +optional
       
      optional string namespace = 1;
    • setNamespaceBytes

      public V1Authorization.ResourceAttributes.Builder setNamespaceBytes(com.google.protobuf.ByteString value)
       Namespace is the namespace of the action being requested.  Currently, there is no distinction between no namespace and all namespaces
       "" (empty) is defaulted for LocalSubjectAccessReviews
       "" (empty) is empty for cluster-scoped resources
       "" (empty) means "all" for namespace scoped resources from a SubjectAccessReview or SelfSubjectAccessReview
       +optional
       
      optional string namespace = 1;
    • hasVerb

      public boolean hasVerb()
       Verb is a kubernetes resource API verb, like: get, list, watch, create, update, delete, proxy.  "*" means all.
       +optional
       
      optional string verb = 2;
      Specified by:
      hasVerb in interface V1Authorization.ResourceAttributesOrBuilder
    • getVerb

      public String getVerb()
       Verb is a kubernetes resource API verb, like: get, list, watch, create, update, delete, proxy.  "*" means all.
       +optional
       
      optional string verb = 2;
      Specified by:
      getVerb in interface V1Authorization.ResourceAttributesOrBuilder
    • getVerbBytes

      public com.google.protobuf.ByteString getVerbBytes()
       Verb is a kubernetes resource API verb, like: get, list, watch, create, update, delete, proxy.  "*" means all.
       +optional
       
      optional string verb = 2;
      Specified by:
      getVerbBytes in interface V1Authorization.ResourceAttributesOrBuilder
    • setVerb

       Verb is a kubernetes resource API verb, like: get, list, watch, create, update, delete, proxy.  "*" means all.
       +optional
       
      optional string verb = 2;
    • clearVerb

       Verb is a kubernetes resource API verb, like: get, list, watch, create, update, delete, proxy.  "*" means all.
       +optional
       
      optional string verb = 2;
    • setVerbBytes

      public V1Authorization.ResourceAttributes.Builder setVerbBytes(com.google.protobuf.ByteString value)
       Verb is a kubernetes resource API verb, like: get, list, watch, create, update, delete, proxy.  "*" means all.
       +optional
       
      optional string verb = 2;
    • hasGroup

      public boolean hasGroup()
       Group is the API Group of the Resource.  "*" means all.
       +optional
       
      optional string group = 3;
      Specified by:
      hasGroup in interface V1Authorization.ResourceAttributesOrBuilder
    • getGroup

      public String getGroup()
       Group is the API Group of the Resource.  "*" means all.
       +optional
       
      optional string group = 3;
      Specified by:
      getGroup in interface V1Authorization.ResourceAttributesOrBuilder
    • getGroupBytes

      public com.google.protobuf.ByteString getGroupBytes()
       Group is the API Group of the Resource.  "*" means all.
       +optional
       
      optional string group = 3;
      Specified by:
      getGroupBytes in interface V1Authorization.ResourceAttributesOrBuilder
    • setGroup

       Group is the API Group of the Resource.  "*" means all.
       +optional
       
      optional string group = 3;
    • clearGroup

       Group is the API Group of the Resource.  "*" means all.
       +optional
       
      optional string group = 3;
    • setGroupBytes

      public V1Authorization.ResourceAttributes.Builder setGroupBytes(com.google.protobuf.ByteString value)
       Group is the API Group of the Resource.  "*" means all.
       +optional
       
      optional string group = 3;
    • hasVersion

      public boolean hasVersion()
       Version is the API Version of the Resource.  "*" means all.
       +optional
       
      optional string version = 4;
      Specified by:
      hasVersion in interface V1Authorization.ResourceAttributesOrBuilder
    • getVersion

      public String getVersion()
       Version is the API Version of the Resource.  "*" means all.
       +optional
       
      optional string version = 4;
      Specified by:
      getVersion in interface V1Authorization.ResourceAttributesOrBuilder
    • getVersionBytes

      public com.google.protobuf.ByteString getVersionBytes()
       Version is the API Version of the Resource.  "*" means all.
       +optional
       
      optional string version = 4;
      Specified by:
      getVersionBytes in interface V1Authorization.ResourceAttributesOrBuilder
    • setVersion

       Version is the API Version of the Resource.  "*" means all.
       +optional
       
      optional string version = 4;
    • clearVersion

       Version is the API Version of the Resource.  "*" means all.
       +optional
       
      optional string version = 4;
    • setVersionBytes

      public V1Authorization.ResourceAttributes.Builder setVersionBytes(com.google.protobuf.ByteString value)
       Version is the API Version of the Resource.  "*" means all.
       +optional
       
      optional string version = 4;
    • hasResource

      public boolean hasResource()
       Resource is one of the existing resource types.  "*" means all.
       +optional
       
      optional string resource = 5;
      Specified by:
      hasResource in interface V1Authorization.ResourceAttributesOrBuilder
    • getResource

      public String getResource()
       Resource is one of the existing resource types.  "*" means all.
       +optional
       
      optional string resource = 5;
      Specified by:
      getResource in interface V1Authorization.ResourceAttributesOrBuilder
    • getResourceBytes

      public com.google.protobuf.ByteString getResourceBytes()
       Resource is one of the existing resource types.  "*" means all.
       +optional
       
      optional string resource = 5;
      Specified by:
      getResourceBytes in interface V1Authorization.ResourceAttributesOrBuilder
    • setResource

       Resource is one of the existing resource types.  "*" means all.
       +optional
       
      optional string resource = 5;
    • clearResource

       Resource is one of the existing resource types.  "*" means all.
       +optional
       
      optional string resource = 5;
    • setResourceBytes

      public V1Authorization.ResourceAttributes.Builder setResourceBytes(com.google.protobuf.ByteString value)
       Resource is one of the existing resource types.  "*" means all.
       +optional
       
      optional string resource = 5;
    • hasSubresource

      public boolean hasSubresource()
       Subresource is one of the existing resource types.  "" means none.
       +optional
       
      optional string subresource = 6;
      Specified by:
      hasSubresource in interface V1Authorization.ResourceAttributesOrBuilder
    • getSubresource

      public String getSubresource()
       Subresource is one of the existing resource types.  "" means none.
       +optional
       
      optional string subresource = 6;
      Specified by:
      getSubresource in interface V1Authorization.ResourceAttributesOrBuilder
    • getSubresourceBytes

      public com.google.protobuf.ByteString getSubresourceBytes()
       Subresource is one of the existing resource types.  "" means none.
       +optional
       
      optional string subresource = 6;
      Specified by:
      getSubresourceBytes in interface V1Authorization.ResourceAttributesOrBuilder
    • setSubresource

      public V1Authorization.ResourceAttributes.Builder setSubresource(String value)
       Subresource is one of the existing resource types.  "" means none.
       +optional
       
      optional string subresource = 6;
    • clearSubresource

      public V1Authorization.ResourceAttributes.Builder clearSubresource()
       Subresource is one of the existing resource types.  "" means none.
       +optional
       
      optional string subresource = 6;
    • setSubresourceBytes

      public V1Authorization.ResourceAttributes.Builder setSubresourceBytes(com.google.protobuf.ByteString value)
       Subresource is one of the existing resource types.  "" means none.
       +optional
       
      optional string subresource = 6;
    • hasName

      public boolean hasName()
       Name is the name of the resource being requested for a "get" or deleted for a "delete". "" (empty) means all.
       +optional
       
      optional string name = 7;
      Specified by:
      hasName in interface V1Authorization.ResourceAttributesOrBuilder
    • getName

      public String getName()
       Name is the name of the resource being requested for a "get" or deleted for a "delete". "" (empty) means all.
       +optional
       
      optional string name = 7;
      Specified by:
      getName in interface V1Authorization.ResourceAttributesOrBuilder
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       Name is the name of the resource being requested for a "get" or deleted for a "delete". "" (empty) means all.
       +optional
       
      optional string name = 7;
      Specified by:
      getNameBytes in interface V1Authorization.ResourceAttributesOrBuilder
    • setName

       Name is the name of the resource being requested for a "get" or deleted for a "delete". "" (empty) means all.
       +optional
       
      optional string name = 7;
    • clearName

       Name is the name of the resource being requested for a "get" or deleted for a "delete". "" (empty) means all.
       +optional
       
      optional string name = 7;
    • setNameBytes

      public V1Authorization.ResourceAttributes.Builder setNameBytes(com.google.protobuf.ByteString value)
       Name is the name of the resource being requested for a "get" or deleted for a "delete". "" (empty) means all.
       +optional
       
      optional string name = 7;
    • setUnknownFields

      public final V1Authorization.ResourceAttributes.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<V1Authorization.ResourceAttributes.Builder>
    • mergeUnknownFields

      public final V1Authorization.ResourceAttributes.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<V1Authorization.ResourceAttributes.Builder>