public final class Decision extends com.google.protobuf.GeneratedMessageV3 implements DecisionOrBuilder
represents a decision that an authorizer performed in the pastProtobuf type
aserto.authorizer.v2.api.Decision| Modifier and Type | Class and Description |
|---|---|
static class |
Decision.Builder
represents a decision that an authorizer performed in the past
|
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| Modifier and Type | Field and Description |
|---|---|
static int |
ANNOTATIONS_FIELD_NUMBER |
static int |
ID_FIELD_NUMBER |
static int |
OUTCOMES_FIELD_NUMBER |
static int |
PATH_FIELD_NUMBER |
static int |
POLICY_FIELD_NUMBER |
static int |
RESOURCE_FIELD_NUMBER |
static int |
TENANT_ID_FIELD_NUMBER |
static int |
TIMESTAMP_FIELD_NUMBER |
static int |
USER_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
containsAnnotations(String key)
annotations that may be added to a decision
|
boolean |
containsOutcomes(String key)
outcome of the decisions specified in the policy context
|
boolean |
equals(Object obj) |
Map<String,String> |
getAnnotations()
Deprecated.
|
int |
getAnnotationsCount()
annotations that may be added to a decision
|
Map<String,String> |
getAnnotationsMap()
annotations that may be added to a decision
|
String |
getAnnotationsOrDefault(String key,
String defaultValue)
annotations that may be added to a decision
|
String |
getAnnotationsOrThrow(String key)
annotations that may be added to a decision
|
static Decision |
getDefaultInstance() |
Decision |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
String |
getId()
unique id, replay a decision starting with this, also useful to de-dup
|
com.google.protobuf.ByteString |
getIdBytes()
unique id, replay a decision starting with this, also useful to de-dup
|
Map<String,Boolean> |
getOutcomes()
Deprecated.
|
int |
getOutcomesCount()
outcome of the decisions specified in the policy context
|
Map<String,Boolean> |
getOutcomesMap()
outcome of the decisions specified in the policy context
|
boolean |
getOutcomesOrDefault(String key,
boolean defaultValue)
outcome of the decisions specified in the policy context
|
boolean |
getOutcomesOrThrow(String key)
outcome of the decisions specified in the policy context
|
com.google.protobuf.Parser<Decision> |
getParserForType() |
String |
getPath()
Policy path used in decision
|
com.google.protobuf.ByteString |
getPathBytes()
Policy path used in decision
|
DecisionPolicy |
getPolicy()
info about policy used for the decision
|
DecisionPolicyOrBuilder |
getPolicyOrBuilder()
info about policy used for the decision
|
com.google.protobuf.Struct |
getResource()
the resource context used in a decision
|
com.google.protobuf.StructOrBuilder |
getResourceOrBuilder()
the resource context used in a decision
|
int |
getSerializedSize() |
String |
getTenantId()
id of the tenant that generated the decision
|
com.google.protobuf.ByteString |
getTenantIdBytes()
id of the tenant that generated the decision
|
com.google.protobuf.Timestamp |
getTimestamp()
UTC time when the decision was made
|
com.google.protobuf.TimestampOrBuilder |
getTimestampOrBuilder()
UTC time when the decision was made
|
DecisionUser |
getUser()
info about user for whom the decision as made
|
DecisionUserOrBuilder |
getUserOrBuilder()
info about user for whom the decision as made
|
int |
hashCode() |
boolean |
hasPolicy()
info about policy used for the decision
|
boolean |
hasResource()
the resource context used in a decision
|
boolean |
hasTenantId()
id of the tenant that generated the decision
|
boolean |
hasTimestamp()
UTC time when the decision was made
|
boolean |
hasUser()
info about user for whom the decision as made
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
protected com.google.protobuf.MapFieldReflectionAccessor |
internalGetMapFieldReflection(int number) |
boolean |
isInitialized() |
static Decision.Builder |
newBuilder() |
static Decision.Builder |
newBuilder(Decision prototype) |
Decision.Builder |
newBuilderForType() |
protected Decision.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
protected Object |
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
static Decision |
parseDelimitedFrom(InputStream input) |
static Decision |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Decision |
parseFrom(byte[] data) |
static Decision |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Decision |
parseFrom(ByteBuffer data) |
static Decision |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Decision |
parseFrom(com.google.protobuf.ByteString data) |
static Decision |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Decision |
parseFrom(com.google.protobuf.CodedInputStream input) |
static Decision |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Decision |
parseFrom(InputStream input) |
static Decision |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<Decision> |
parser() |
Decision.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, 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 ID_FIELD_NUMBER
public static final int TIMESTAMP_FIELD_NUMBER
public static final int PATH_FIELD_NUMBER
public static final int USER_FIELD_NUMBER
public static final int POLICY_FIELD_NUMBER
public static final int OUTCOMES_FIELD_NUMBER
public static final int RESOURCE_FIELD_NUMBER
public static final int ANNOTATIONS_FIELD_NUMBER
public static final int TENANT_ID_FIELD_NUMBER
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
internalGetMapFieldReflection in class com.google.protobuf.GeneratedMessageV3protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public String getId()
unique id, replay a decision starting with this, also useful to de-dup
string id = 1 [json_name = "id"];getId in interface DecisionOrBuilderpublic com.google.protobuf.ByteString getIdBytes()
unique id, replay a decision starting with this, also useful to de-dup
string id = 1 [json_name = "id"];getIdBytes in interface DecisionOrBuilderpublic boolean hasTimestamp()
UTC time when the decision was made
.google.protobuf.Timestamp timestamp = 2 [json_name = "timestamp"];hasTimestamp in interface DecisionOrBuilderpublic com.google.protobuf.Timestamp getTimestamp()
UTC time when the decision was made
.google.protobuf.Timestamp timestamp = 2 [json_name = "timestamp"];getTimestamp in interface DecisionOrBuilderpublic com.google.protobuf.TimestampOrBuilder getTimestampOrBuilder()
UTC time when the decision was made
.google.protobuf.Timestamp timestamp = 2 [json_name = "timestamp"];getTimestampOrBuilder in interface DecisionOrBuilderpublic String getPath()
Policy path used in decision
string path = 3 [json_name = "path"];getPath in interface DecisionOrBuilderpublic com.google.protobuf.ByteString getPathBytes()
Policy path used in decision
string path = 3 [json_name = "path"];getPathBytes in interface DecisionOrBuilderpublic boolean hasUser()
info about user for whom the decision as made
.aserto.authorizer.v2.api.DecisionUser user = 4 [json_name = "user"];hasUser in interface DecisionOrBuilderpublic DecisionUser getUser()
info about user for whom the decision as made
.aserto.authorizer.v2.api.DecisionUser user = 4 [json_name = "user"];getUser in interface DecisionOrBuilderpublic DecisionUserOrBuilder getUserOrBuilder()
info about user for whom the decision as made
.aserto.authorizer.v2.api.DecisionUser user = 4 [json_name = "user"];getUserOrBuilder in interface DecisionOrBuilderpublic boolean hasPolicy()
info about policy used for the decision
.aserto.authorizer.v2.api.DecisionPolicy policy = 5 [json_name = "policy"];hasPolicy in interface DecisionOrBuilderpublic DecisionPolicy getPolicy()
info about policy used for the decision
.aserto.authorizer.v2.api.DecisionPolicy policy = 5 [json_name = "policy"];getPolicy in interface DecisionOrBuilderpublic DecisionPolicyOrBuilder getPolicyOrBuilder()
info about policy used for the decision
.aserto.authorizer.v2.api.DecisionPolicy policy = 5 [json_name = "policy"];getPolicyOrBuilder in interface DecisionOrBuilderpublic int getOutcomesCount()
DecisionOrBuilderoutcome of the decisions specified in the policy context
map<string, bool> outcomes = 6 [json_name = "outcomes"];getOutcomesCount in interface DecisionOrBuilderpublic boolean containsOutcomes(String key)
outcome of the decisions specified in the policy context
map<string, bool> outcomes = 6 [json_name = "outcomes"];containsOutcomes in interface DecisionOrBuilder@Deprecated public Map<String,Boolean> getOutcomes()
getOutcomesMap() instead.getOutcomes in interface DecisionOrBuilderpublic Map<String,Boolean> getOutcomesMap()
outcome of the decisions specified in the policy context
map<string, bool> outcomes = 6 [json_name = "outcomes"];getOutcomesMap in interface DecisionOrBuilderpublic boolean getOutcomesOrDefault(String key, boolean defaultValue)
outcome of the decisions specified in the policy context
map<string, bool> outcomes = 6 [json_name = "outcomes"];getOutcomesOrDefault in interface DecisionOrBuilderpublic boolean getOutcomesOrThrow(String key)
outcome of the decisions specified in the policy context
map<string, bool> outcomes = 6 [json_name = "outcomes"];getOutcomesOrThrow in interface DecisionOrBuilderpublic boolean hasResource()
the resource context used in a decision
.google.protobuf.Struct resource = 7 [json_name = "resource"];hasResource in interface DecisionOrBuilderpublic com.google.protobuf.Struct getResource()
the resource context used in a decision
.google.protobuf.Struct resource = 7 [json_name = "resource"];getResource in interface DecisionOrBuilderpublic com.google.protobuf.StructOrBuilder getResourceOrBuilder()
the resource context used in a decision
.google.protobuf.Struct resource = 7 [json_name = "resource"];getResourceOrBuilder in interface DecisionOrBuilderpublic int getAnnotationsCount()
DecisionOrBuilderannotations that may be added to a decision
map<string, string> annotations = 8 [json_name = "annotations"];getAnnotationsCount in interface DecisionOrBuilderpublic boolean containsAnnotations(String key)
annotations that may be added to a decision
map<string, string> annotations = 8 [json_name = "annotations"];containsAnnotations in interface DecisionOrBuilder@Deprecated public Map<String,String> getAnnotations()
getAnnotationsMap() instead.getAnnotations in interface DecisionOrBuilderpublic Map<String,String> getAnnotationsMap()
annotations that may be added to a decision
map<string, string> annotations = 8 [json_name = "annotations"];getAnnotationsMap in interface DecisionOrBuilderpublic String getAnnotationsOrDefault(String key, String defaultValue)
annotations that may be added to a decision
map<string, string> annotations = 8 [json_name = "annotations"];getAnnotationsOrDefault in interface DecisionOrBuilderpublic String getAnnotationsOrThrow(String key)
annotations that may be added to a decision
map<string, string> annotations = 8 [json_name = "annotations"];getAnnotationsOrThrow in interface DecisionOrBuilderpublic boolean hasTenantId()
id of the tenant that generated the decision
optional string tenant_id = 9 [json_name = "tenantId"];hasTenantId in interface DecisionOrBuilderpublic String getTenantId()
id of the tenant that generated the decision
optional string tenant_id = 9 [json_name = "tenantId"];getTenantId in interface DecisionOrBuilderpublic com.google.protobuf.ByteString getTenantIdBytes()
id of the tenant that generated the decision
optional string tenant_id = 9 [json_name = "tenantId"];getTenantIdBytes in interface DecisionOrBuilderpublic 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 Decision parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Decision parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Decision parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Decision parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Decision parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Decision parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Decision parseFrom(InputStream input) throws IOException
IOExceptionpublic static Decision parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static Decision parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static Decision parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static Decision parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static Decision parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic Decision.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static Decision.Builder newBuilder()
public static Decision.Builder newBuilder(Decision prototype)
public Decision.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected Decision.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static Decision getDefaultInstance()
public static com.google.protobuf.Parser<Decision> parser()
public com.google.protobuf.Parser<Decision> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public Decision getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2024. All rights reserved.