public static final class V1Rbac.Subject.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<V1Rbac.Subject.Builder> 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.Protobuf type
k8s.io.api.rbac.v1.Subject| Modifier and Type | Method and Description |
|---|---|
V1Rbac.Subject.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
V1Rbac.Subject |
build() |
V1Rbac.Subject |
buildPartial() |
V1Rbac.Subject.Builder |
clear() |
V1Rbac.Subject.Builder |
clearApiGroup()
APIGroup holds the API group of the referenced subject.
|
V1Rbac.Subject.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
V1Rbac.Subject.Builder |
clearKind()
Kind of object being referenced.
|
V1Rbac.Subject.Builder |
clearName()
Name of the object being referenced.
|
V1Rbac.Subject.Builder |
clearNamespace()
Namespace of the referenced object.
|
V1Rbac.Subject.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
V1Rbac.Subject.Builder |
clone() |
String |
getApiGroup()
APIGroup holds the API group of the referenced subject.
|
com.google.protobuf.ByteString |
getApiGroupBytes()
APIGroup holds the API group of the referenced subject.
|
V1Rbac.Subject |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
String |
getKind()
Kind of object being referenced.
|
com.google.protobuf.ByteString |
getKindBytes()
Kind of object being referenced.
|
String |
getName()
Name of the object being referenced.
|
com.google.protobuf.ByteString |
getNameBytes()
Name of the object being referenced.
|
String |
getNamespace()
Namespace of the referenced object.
|
com.google.protobuf.ByteString |
getNamespaceBytes()
Namespace of the referenced object.
|
boolean |
hasApiGroup()
APIGroup holds the API group of the referenced subject.
|
boolean |
hasKind()
Kind of object being referenced.
|
boolean |
hasName()
Name of the object being referenced.
|
boolean |
hasNamespace()
Namespace of the referenced object.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
V1Rbac.Subject.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
V1Rbac.Subject.Builder |
mergeFrom(com.google.protobuf.Message other) |
V1Rbac.Subject.Builder |
mergeFrom(V1Rbac.Subject other) |
V1Rbac.Subject.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
V1Rbac.Subject.Builder |
setApiGroup(String value)
APIGroup holds the API group of the referenced subject.
|
V1Rbac.Subject.Builder |
setApiGroupBytes(com.google.protobuf.ByteString value)
APIGroup holds the API group of the referenced subject.
|
V1Rbac.Subject.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
V1Rbac.Subject.Builder |
setKind(String value)
Kind of object being referenced.
|
V1Rbac.Subject.Builder |
setKindBytes(com.google.protobuf.ByteString value)
Kind of object being referenced.
|
V1Rbac.Subject.Builder |
setName(String value)
Name of the object being referenced.
|
V1Rbac.Subject.Builder |
setNameBytes(com.google.protobuf.ByteString value)
Name of the object being referenced.
|
V1Rbac.Subject.Builder |
setNamespace(String value)
Namespace of the referenced object.
|
V1Rbac.Subject.Builder |
setNamespaceBytes(com.google.protobuf.ByteString value)
Namespace of the referenced object.
|
V1Rbac.Subject.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
V1Rbac.Subject.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<V1Rbac.Subject.Builder>public V1Rbac.Subject.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<V1Rbac.Subject.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<V1Rbac.Subject.Builder>public V1Rbac.Subject getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic V1Rbac.Subject build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic V1Rbac.Subject buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic V1Rbac.Subject.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<V1Rbac.Subject.Builder>public V1Rbac.Subject.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<V1Rbac.Subject.Builder>public V1Rbac.Subject.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<V1Rbac.Subject.Builder>public V1Rbac.Subject.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<V1Rbac.Subject.Builder>public V1Rbac.Subject.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<V1Rbac.Subject.Builder>public V1Rbac.Subject.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<V1Rbac.Subject.Builder>public V1Rbac.Subject.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<V1Rbac.Subject.Builder>public V1Rbac.Subject.Builder mergeFrom(V1Rbac.Subject other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<V1Rbac.Subject.Builder>public V1Rbac.Subject.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<V1Rbac.Subject.Builder>IOExceptionpublic 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;hasKind in interface V1Rbac.SubjectOrBuilderpublic 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;getKind in interface V1Rbac.SubjectOrBuilderpublic 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;getKindBytes in interface V1Rbac.SubjectOrBuilderpublic V1Rbac.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;public V1Rbac.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;public V1Rbac.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;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;hasApiGroup in interface V1Rbac.SubjectOrBuilderpublic 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;getApiGroup in interface V1Rbac.SubjectOrBuilderpublic 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;getApiGroupBytes in interface V1Rbac.SubjectOrBuilderpublic V1Rbac.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;public V1Rbac.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;public V1Rbac.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;public boolean hasName()
Name of the object being referenced.
optional string name = 3;hasName in interface V1Rbac.SubjectOrBuilderpublic String getName()
Name of the object being referenced.
optional string name = 3;getName in interface V1Rbac.SubjectOrBuilderpublic com.google.protobuf.ByteString getNameBytes()
Name of the object being referenced.
optional string name = 3;getNameBytes in interface V1Rbac.SubjectOrBuilderpublic V1Rbac.Subject.Builder setName(String value)
Name of the object being referenced.
optional string name = 3;public V1Rbac.Subject.Builder clearName()
Name of the object being referenced.
optional string name = 3;public V1Rbac.Subject.Builder setNameBytes(com.google.protobuf.ByteString value)
Name of the object being referenced.
optional string name = 3;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;hasNamespace in interface V1Rbac.SubjectOrBuilderpublic 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;getNamespace in interface V1Rbac.SubjectOrBuilderpublic 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;getNamespaceBytes in interface V1Rbac.SubjectOrBuilderpublic V1Rbac.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;public V1Rbac.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;public V1Rbac.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;public final V1Rbac.Subject.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<V1Rbac.Subject.Builder>public final V1Rbac.Subject.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<V1Rbac.Subject.Builder>Copyright © 2018. All rights reserved.