Class V1Rbac.Subject

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessageV3
io.kubernetes.client.proto.V1Rbac.Subject
All Implemented Interfaces:
com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, V1Rbac.SubjectOrBuilder, Serializable
Enclosing class:
V1Rbac

public static final class V1Rbac.Subject extends com.google.protobuf.GeneratedMessageV3 implements V1Rbac.SubjectOrBuilder
 Subject contains a reference to the object or user identities a role binding applies to.  This can either hold a direct API object reference,
 or a value for non-objects such as user and group names.
 +structType=atomic
 
Protobuf type k8s.io.api.rbac.v1.Subject
See Also:
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static final class 
    Subject contains a reference to the object or user identities a role binding applies to.

    Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3

    com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter

    Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite

    com.google.protobuf.AbstractMessageLite.InternalOneOfEnum
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final com.google.protobuf.Parser<V1Rbac.Subject>
    Deprecated.

    Fields inherited from class com.google.protobuf.GeneratedMessageV3

    alwaysUseFieldBuilders, unknownFields

    Fields inherited from class com.google.protobuf.AbstractMessage

    memoizedSize

    Fields inherited from class com.google.protobuf.AbstractMessageLite

    memoizedHashCode
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
     
    APIGroup holds the API group of the referenced subject.
    com.google.protobuf.ByteString
    APIGroup holds the API group of the referenced subject.
     
     
    static final com.google.protobuf.Descriptors.Descriptor
     
    Kind of object being referenced.
    com.google.protobuf.ByteString
    Kind of object being referenced.
    Name of the object being referenced.
    com.google.protobuf.ByteString
    Name of the object being referenced.
    Namespace of the referenced object.
    com.google.protobuf.ByteString
    Namespace of the referenced object.
    com.google.protobuf.Parser<V1Rbac.Subject>
     
    int
     
    final com.google.protobuf.UnknownFieldSet
     
    boolean
    APIGroup holds the API group of the referenced subject.
    int
     
    boolean
    Kind of object being referenced.
    boolean
    Name of the object being referenced.
    boolean
    Namespace of the referenced object.
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
     
    final boolean
     
     
     
     
    newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
     
     
    parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    parseFrom(byte[] data)
     
    parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    parseFrom(com.google.protobuf.ByteString data)
     
    parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    parseFrom(com.google.protobuf.CodedInputStream input)
     
    parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
     
    parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
     
    parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    static com.google.protobuf.Parser<V1Rbac.Subject>
     
     
    void
    writeTo(com.google.protobuf.CodedOutputStream output)
     

    Methods inherited from class com.google.protobuf.GeneratedMessageV3

    canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newInstance, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag

    Methods inherited from class com.google.protobuf.AbstractMessage

    findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString

    Methods inherited from class com.google.protobuf.AbstractMessageLite

    addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait

    Methods inherited from interface com.google.protobuf.MessageLite

    toByteArray, toByteString, writeDelimitedTo, writeTo

    Methods inherited from interface com.google.protobuf.MessageOrBuilder

    findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof
  • Field Details

  • Method Details

    • getUnknownFields

      public final com.google.protobuf.UnknownFieldSet getUnknownFields()
      Specified by:
      getUnknownFields in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getUnknownFields in class com.google.protobuf.GeneratedMessageV3
    • 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
    • hasKind

      public boolean hasKind()
       Kind of object being referenced. Values defined by this API group are "User", "Group", and "ServiceAccount".
       If the Authorizer does not recognized the kind value, the Authorizer should report an error.
       
      optional string kind = 1;
      Specified by:
      hasKind in interface V1Rbac.SubjectOrBuilder
    • getKind

      public String getKind()
       Kind of object being referenced. Values defined by this API group are "User", "Group", and "ServiceAccount".
       If the Authorizer does not recognized the kind value, the Authorizer should report an error.
       
      optional string kind = 1;
      Specified by:
      getKind in interface V1Rbac.SubjectOrBuilder
    • getKindBytes

      public com.google.protobuf.ByteString getKindBytes()
       Kind of object being referenced. Values defined by this API group are "User", "Group", and "ServiceAccount".
       If the Authorizer does not recognized the kind value, the Authorizer should report an error.
       
      optional string kind = 1;
      Specified by:
      getKindBytes in interface V1Rbac.SubjectOrBuilder
    • hasApiGroup

      public boolean hasApiGroup()
       APIGroup holds the API group of the referenced subject.
       Defaults to "" for ServiceAccount subjects.
       Defaults to "rbac.authorization.k8s.io" for User and Group subjects.
       +optional
       
      optional string apiGroup = 2;
      Specified by:
      hasApiGroup in interface V1Rbac.SubjectOrBuilder
    • getApiGroup

      public String getApiGroup()
       APIGroup holds the API group of the referenced subject.
       Defaults to "" for ServiceAccount subjects.
       Defaults to "rbac.authorization.k8s.io" for User and Group subjects.
       +optional
       
      optional string apiGroup = 2;
      Specified by:
      getApiGroup in interface V1Rbac.SubjectOrBuilder
    • getApiGroupBytes

      public com.google.protobuf.ByteString getApiGroupBytes()
       APIGroup holds the API group of the referenced subject.
       Defaults to "" for ServiceAccount subjects.
       Defaults to "rbac.authorization.k8s.io" for User and Group subjects.
       +optional
       
      optional string apiGroup = 2;
      Specified by:
      getApiGroupBytes in interface V1Rbac.SubjectOrBuilder
    • hasName

      public boolean hasName()
       Name of the object being referenced.
       
      optional string name = 3;
      Specified by:
      hasName in interface V1Rbac.SubjectOrBuilder
    • getName

      public String getName()
       Name of the object being referenced.
       
      optional string name = 3;
      Specified by:
      getName in interface V1Rbac.SubjectOrBuilder
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       Name of the object being referenced.
       
      optional string name = 3;
      Specified by:
      getNameBytes in interface V1Rbac.SubjectOrBuilder
    • hasNamespace

      public boolean hasNamespace()
       Namespace of the referenced object.  If the object kind is non-namespace, such as "User" or "Group", and this value is not empty
       the Authorizer should report an error.
       +optional
       
      optional string namespace = 4;
      Specified by:
      hasNamespace in interface V1Rbac.SubjectOrBuilder
    • getNamespace

      public String getNamespace()
       Namespace of the referenced object.  If the object kind is non-namespace, such as "User" or "Group", and this value is not empty
       the Authorizer should report an error.
       +optional
       
      optional string namespace = 4;
      Specified by:
      getNamespace in interface V1Rbac.SubjectOrBuilder
    • getNamespaceBytes

      public com.google.protobuf.ByteString getNamespaceBytes()
       Namespace of the referenced object.  If the object kind is non-namespace, such as "User" or "Group", and this value is not empty
       the Authorizer should report an error.
       +optional
       
      optional string namespace = 4;
      Specified by:
      getNamespaceBytes in interface V1Rbac.SubjectOrBuilder
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessageV3
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessageV3
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessageV3
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.google.protobuf.AbstractMessage
    • parseFrom

      public static V1Rbac.Subject parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static V1Rbac.Subject parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static V1Rbac.Subject parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static V1Rbac.Subject parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static V1Rbac.Subject parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static V1Rbac.Subject parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static V1Rbac.Subject parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static V1Rbac.Subject parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static V1Rbac.Subject parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static V1Rbac.Subject parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static V1Rbac.Subject parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static V1Rbac.Subject parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

      public V1Rbac.Subject.Builder newBuilderForType()
      Specified by:
      newBuilderForType in interface com.google.protobuf.Message
      Specified by:
      newBuilderForType in interface com.google.protobuf.MessageLite
    • newBuilder

      public static V1Rbac.Subject.Builder newBuilder()
    • newBuilder

      public static V1Rbac.Subject.Builder newBuilder(V1Rbac.Subject prototype)
    • toBuilder

      public V1Rbac.Subject.Builder toBuilder()
      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

      protected V1Rbac.Subject.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
      Specified by:
      newBuilderForType in class com.google.protobuf.GeneratedMessageV3
    • getDefaultInstance

      public static V1Rbac.Subject getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<V1Rbac.Subject> parser()
    • getParserForType

      public com.google.protobuf.Parser<V1Rbac.Subject> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessageV3
    • getDefaultInstanceForType

      public V1Rbac.Subject getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder