# frozen_string_literal: true # Generated by the protocol buffer compiler. DO NOT EDIT! # source: aserto/authorizer/v2/api/decision_logs.proto require 'google/protobuf' require 'google/protobuf/struct_pb' require 'google/protobuf/timestamp_pb' require 'aserto/authorizer/v2/api/policy_context_pb' require 'aserto/authorizer/v2/api/identity_context_pb' require 'aserto/authorizer/v2/api/policy_instance_pb' descriptor_data = "\n,aserto/authorizer/v2/api/decision_logs.proto\x12\x18\x61serto.authorizer.v2.api\x1a\x1cgoogle/protobuf/struct.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a-aserto/authorizer/v2/api/policy_context.proto\x1a/aserto/authorizer/v2/api/identity_context.proto\x1a.aserto/authorizer/v2/api/policy_instance.proto\"\xed\x04\n\x08\x44\x65\x63ision\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id\x12\x38\n\ttimestamp\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\ttimestamp\x12\x12\n\x04path\x18\x03 \x01(\tR\x04path\x12:\n\x04user\x18\x04 \x01(\x0b\x32&.aserto.authorizer.v2.api.DecisionUserR\x04user\x12@\n\x06policy\x18\x05 \x01(\x0b\x32(.aserto.authorizer.v2.api.DecisionPolicyR\x06policy\x12L\n\x08outcomes\x18\x06 \x03(\x0b\x32\x30.aserto.authorizer.v2.api.Decision.OutcomesEntryR\x08outcomes\x12\x33\n\x08resource\x18\x07 \x01(\x0b\x32\x17.google.protobuf.StructR\x08resource\x12U\n\x0b\x61nnotations\x18\x08 \x03(\x0b\x32\x33.aserto.authorizer.v2.api.Decision.AnnotationsEntryR\x0b\x61nnotations\x12 \n\ttenant_id\x18\t \x01(\tH\x00R\x08tenantId\x88\x01\x01\x1a;\n\rOutcomesEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n\x05value\x18\x02 \x01(\x08R\x05value:\x02\x38\x01\x1a>\n\x10\x41nnotationsEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n\x05value\x18\x02 \x01(\tR\x05value:\x02\x38\x01\x42\x0c\n\n_tenant_id\"y\n\x0c\x44\x65\x63isionUser\x12\x43\n\x07\x63ontext\x18\x01 \x01(\x0b\x32).aserto.authorizer.v2.api.IdentityContextR\x07\x63ontext\x12\x0e\n\x02id\x18\x02 \x01(\tR\x02id\x12\x14\n\x05\x65mail\x18\x03 \x01(\tR\x05\x65mail\"\xc4\x02\n\x0e\x44\x65\x63isionPolicy\x12\x41\n\x07\x63ontext\x18\x01 \x01(\x0b\x32\'.aserto.authorizer.v2.api.PolicyContextR\x07\x63ontext\x12)\n\x10registry_service\x18\x02 \x01(\tR\x0fregistryService\x12%\n\x0eregistry_image\x18\x03 \x01(\tR\rregistryImage\x12!\n\x0cregistry_tag\x18\x04 \x01(\tR\x0bregistryTag\x12\'\n\x0fregistry_digest\x18\x05 \x01(\tR\x0eregistryDigest\x12Q\n\x0fpolicy_instance\x18\x06 \x01(\x0b\x32(.aserto.authorizer.v2.api.PolicyInstanceR\x0epolicyInstanceB\xf7\x01\n\x1c\x63om.aserto.authorizer.v2.apiB\x11\x44\x65\x63isionLogsProtoP\x01Z@github.com/aserto-dev/go-authorizer/aserto/authorizer/v2/api;api\xa2\x02\x04\x41\x41VA\xaa\x02\x18\x41serto.Authorizer.V2.Api\xca\x02\x18\x41serto\\Authorizer\\V2\\Api\xe2\x02$Aserto\\Authorizer\\V2\\Api\\GPBMetadata\xea\x02\x1b\x41serto::Authorizer::V2::Apib\x06proto3" pool = Google::Protobuf::DescriptorPool.generated_pool begin pool.add_serialized_file(descriptor_data) rescue TypeError => e # Compatibility code: will be removed in the next major version. require 'google/protobuf/descriptor_pb' parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) parsed.clear_dependency serialized = parsed.class.encode(parsed) file = pool.add_serialized_file(serialized) warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" imports = [ ["google.protobuf.Timestamp", "google/protobuf/timestamp.proto"], ["google.protobuf.Struct", "google/protobuf/struct.proto"], ["aserto.authorizer.v2.api.IdentityContext", "aserto/authorizer/v2/api/identity_context.proto"], ["aserto.authorizer.v2.api.PolicyContext", "aserto/authorizer/v2/api/policy_context.proto"], ["aserto.authorizer.v2.api.PolicyInstance", "aserto/authorizer/v2/api/policy_instance.proto"], ] imports.each do |type_name, expected_filename| import_file = pool.lookup(type_name).file_descriptor if import_file.name != expected_filename warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" end end warn "Each proto file must use a consistent fully-qualified name." warn "This will become an error in the next major version." end module Aserto module Authorizer module V2 module Api Decision = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("aserto.authorizer.v2.api.Decision").msgclass DecisionUser = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("aserto.authorizer.v2.api.DecisionUser").msgclass DecisionPolicy = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("aserto.authorizer.v2.api.DecisionPolicy").msgclass end end end end