Class V1beta1Rbac.Subject.Builder

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

public static final class V1beta1Rbac.Subject.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<V1beta1Rbac.Subject.Builder> implements V1beta1Rbac.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.
 
Protobuf type k8s.io.api.rbac.v1beta1.Subject
  • 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<V1beta1Rbac.Subject.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<V1beta1Rbac.Subject.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<V1beta1Rbac.Subject.Builder>
    • getDefaultInstanceForType

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

      public V1beta1Rbac.Subject build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public V1beta1Rbac.Subject 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<V1beta1Rbac.Subject.Builder>
    • setField

      public V1beta1Rbac.Subject.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<V1beta1Rbac.Subject.Builder>
    • clearField

      public V1beta1Rbac.Subject.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<V1beta1Rbac.Subject.Builder>
    • clearOneof

      public V1beta1Rbac.Subject.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<V1beta1Rbac.Subject.Builder>
    • setRepeatedField

      public V1beta1Rbac.Subject.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<V1beta1Rbac.Subject.Builder>
    • addRepeatedField

      public V1beta1Rbac.Subject.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<V1beta1Rbac.Subject.Builder>
    • mergeFrom

      public V1beta1Rbac.Subject.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<V1beta1Rbac.Subject.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<V1beta1Rbac.Subject.Builder>
    • mergeFrom

      public V1beta1Rbac.Subject.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<V1beta1Rbac.Subject.Builder>
      Throws:
      IOException
    • 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 V1beta1Rbac.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 V1beta1Rbac.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 V1beta1Rbac.SubjectOrBuilder
    • setKind

      public V1beta1Rbac.Subject.Builder setKind(String value)
       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;
    • clearKind

      public V1beta1Rbac.Subject.Builder clearKind()
       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;
    • setKindBytes

      public V1beta1Rbac.Subject.Builder setKindBytes(com.google.protobuf.ByteString value)
       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;
    • 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 V1beta1Rbac.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 V1beta1Rbac.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 V1beta1Rbac.SubjectOrBuilder
    • setApiGroup

      public V1beta1Rbac.Subject.Builder setApiGroup(String value)
       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;
    • clearApiGroup

      public V1beta1Rbac.Subject.Builder clearApiGroup()
       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;
    • setApiGroupBytes

      public V1beta1Rbac.Subject.Builder setApiGroupBytes(com.google.protobuf.ByteString value)
       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;
    • hasName

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

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

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

      public V1beta1Rbac.Subject.Builder setName(String value)
       Name of the object being referenced.
       
      optional string name = 3;
    • clearName

      public V1beta1Rbac.Subject.Builder clearName()
       Name of the object being referenced.
       
      optional string name = 3;
    • setNameBytes

      public V1beta1Rbac.Subject.Builder setNameBytes(com.google.protobuf.ByteString value)
       Name of the object being referenced.
       
      optional string name = 3;
    • 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 V1beta1Rbac.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 V1beta1Rbac.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 V1beta1Rbac.SubjectOrBuilder
    • setNamespace

      public V1beta1Rbac.Subject.Builder setNamespace(String value)
       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;
    • clearNamespace

      public V1beta1Rbac.Subject.Builder clearNamespace()
       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;
    • setNamespaceBytes

      public V1beta1Rbac.Subject.Builder setNamespaceBytes(com.google.protobuf.ByteString value)
       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;
    • setUnknownFields

      public final V1beta1Rbac.Subject.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<V1beta1Rbac.Subject.Builder>
    • mergeUnknownFields

      public final V1beta1Rbac.Subject.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<V1beta1Rbac.Subject.Builder>