public static final class Rbac.Policy extends com.google.protobuf.GeneratedMessageV3 implements Rbac.PolicyOrBuilder
Policy specifies a role and the principals that are assigned/denied the role. A policy matches if and only if at least one of its permissions match the action taking place AND at least one of its principals match the downstream.Protobuf type
envoy.config.rbac.v2alpha.Policy| Modifier and Type | Class and Description |
|---|---|
static class |
Rbac.Policy.Builder
Policy specifies a role and the principals that are assigned/denied the role.
|
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage,BuilderType extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable| Modifier and Type | Field and Description |
|---|---|
static int |
PERMISSIONS_FIELD_NUMBER |
static int |
PRINCIPALS_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
static Rbac.Policy |
getDefaultInstance() |
Rbac.Policy |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Parser<Rbac.Policy> |
getParserForType() |
Rbac.Permission |
getPermissions(int index)
Required.
|
int |
getPermissionsCount()
Required.
|
List<Rbac.Permission> |
getPermissionsList()
Required.
|
Rbac.PermissionOrBuilder |
getPermissionsOrBuilder(int index)
Required.
|
List<? extends Rbac.PermissionOrBuilder> |
getPermissionsOrBuilderList()
Required.
|
Rbac.Principal |
getPrincipals(int index)
Required.
|
int |
getPrincipalsCount()
Required.
|
List<Rbac.Principal> |
getPrincipalsList()
Required.
|
Rbac.PrincipalOrBuilder |
getPrincipalsOrBuilder(int index)
Required.
|
List<? extends Rbac.PrincipalOrBuilder> |
getPrincipalsOrBuilderList()
Required.
|
int |
getSerializedSize() |
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
int |
hashCode() |
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static Rbac.Policy.Builder |
newBuilder() |
static Rbac.Policy.Builder |
newBuilder(Rbac.Policy prototype) |
Rbac.Policy.Builder |
newBuilderForType() |
protected Rbac.Policy.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
static Rbac.Policy |
parseDelimitedFrom(InputStream input) |
static Rbac.Policy |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Rbac.Policy |
parseFrom(byte[] data) |
static Rbac.Policy |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Rbac.Policy |
parseFrom(ByteBuffer data) |
static Rbac.Policy |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Rbac.Policy |
parseFrom(com.google.protobuf.ByteString data) |
static Rbac.Policy |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Rbac.Policy |
parseFrom(com.google.protobuf.CodedInputStream input) |
static Rbac.Policy |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Rbac.Policy |
parseFrom(InputStream input) |
static Rbac.Policy |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<Rbac.Policy> |
parser() |
Rbac.Policy.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, makeExtensionsImmutable, newBuilderForType, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static final int PERMISSIONS_FIELD_NUMBER
public static final int PRINCIPALS_FIELD_NUMBER
public final com.google.protobuf.UnknownFieldSet getUnknownFields()
getUnknownFields in interface com.google.protobuf.MessageOrBuildergetUnknownFields in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public List<Rbac.Permission> getPermissionsList()
Required. The set of permissions that define a role. Each permission is matched with OR semantics. To match all actions for this policy, a single Permission with the `any` field set to true should be used.
repeated .envoy.config.rbac.v2alpha.Permission permissions = 1 [(.validate.rules) = { ... }getPermissionsList in interface Rbac.PolicyOrBuilderpublic List<? extends Rbac.PermissionOrBuilder> getPermissionsOrBuilderList()
Required. The set of permissions that define a role. Each permission is matched with OR semantics. To match all actions for this policy, a single Permission with the `any` field set to true should be used.
repeated .envoy.config.rbac.v2alpha.Permission permissions = 1 [(.validate.rules) = { ... }getPermissionsOrBuilderList in interface Rbac.PolicyOrBuilderpublic int getPermissionsCount()
Required. The set of permissions that define a role. Each permission is matched with OR semantics. To match all actions for this policy, a single Permission with the `any` field set to true should be used.
repeated .envoy.config.rbac.v2alpha.Permission permissions = 1 [(.validate.rules) = { ... }getPermissionsCount in interface Rbac.PolicyOrBuilderpublic Rbac.Permission getPermissions(int index)
Required. The set of permissions that define a role. Each permission is matched with OR semantics. To match all actions for this policy, a single Permission with the `any` field set to true should be used.
repeated .envoy.config.rbac.v2alpha.Permission permissions = 1 [(.validate.rules) = { ... }getPermissions in interface Rbac.PolicyOrBuilderpublic Rbac.PermissionOrBuilder getPermissionsOrBuilder(int index)
Required. The set of permissions that define a role. Each permission is matched with OR semantics. To match all actions for this policy, a single Permission with the `any` field set to true should be used.
repeated .envoy.config.rbac.v2alpha.Permission permissions = 1 [(.validate.rules) = { ... }getPermissionsOrBuilder in interface Rbac.PolicyOrBuilderpublic List<Rbac.Principal> getPrincipalsList()
Required. The set of principals that are assigned/denied the role based on “action”. Each principal is matched with OR semantics. To match all downstreams for this policy, a single Principal with the `any` field set to true should be used.
repeated .envoy.config.rbac.v2alpha.Principal principals = 2 [(.validate.rules) = { ... }getPrincipalsList in interface Rbac.PolicyOrBuilderpublic List<? extends Rbac.PrincipalOrBuilder> getPrincipalsOrBuilderList()
Required. The set of principals that are assigned/denied the role based on “action”. Each principal is matched with OR semantics. To match all downstreams for this policy, a single Principal with the `any` field set to true should be used.
repeated .envoy.config.rbac.v2alpha.Principal principals = 2 [(.validate.rules) = { ... }getPrincipalsOrBuilderList in interface Rbac.PolicyOrBuilderpublic int getPrincipalsCount()
Required. The set of principals that are assigned/denied the role based on “action”. Each principal is matched with OR semantics. To match all downstreams for this policy, a single Principal with the `any` field set to true should be used.
repeated .envoy.config.rbac.v2alpha.Principal principals = 2 [(.validate.rules) = { ... }getPrincipalsCount in interface Rbac.PolicyOrBuilderpublic Rbac.Principal getPrincipals(int index)
Required. The set of principals that are assigned/denied the role based on “action”. Each principal is matched with OR semantics. To match all downstreams for this policy, a single Principal with the `any` field set to true should be used.
repeated .envoy.config.rbac.v2alpha.Principal principals = 2 [(.validate.rules) = { ... }getPrincipals in interface Rbac.PolicyOrBuilderpublic Rbac.PrincipalOrBuilder getPrincipalsOrBuilder(int index)
Required. The set of principals that are assigned/denied the role based on “action”. Each principal is matched with OR semantics. To match all downstreams for this policy, a single Principal with the `any` field set to true should be used.
repeated .envoy.config.rbac.v2alpha.Principal principals = 2 [(.validate.rules) = { ... }getPrincipalsOrBuilder in interface Rbac.PolicyOrBuilderpublic final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static Rbac.Policy parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Rbac.Policy parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Rbac.Policy parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Rbac.Policy parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Rbac.Policy parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Rbac.Policy parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Rbac.Policy parseFrom(InputStream input) throws IOException
IOExceptionpublic static Rbac.Policy parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static Rbac.Policy parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static Rbac.Policy parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static Rbac.Policy parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static Rbac.Policy parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic Rbac.Policy.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static Rbac.Policy.Builder newBuilder()
public static Rbac.Policy.Builder newBuilder(Rbac.Policy prototype)
public Rbac.Policy.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected Rbac.Policy.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static Rbac.Policy getDefaultInstance()
public static com.google.protobuf.Parser<Rbac.Policy> parser()
public com.google.protobuf.Parser<Rbac.Policy> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public Rbac.Policy getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2018 The Envoy Project. All rights reserved.