entityresolutionv2

package
v0.16.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 17, 2026 License: BSD-3-Clause-Clear Imports: 13 Imported by: 5

Documentation

Index

Constants

View Source
const (
	EntityResolutionService_ResolveEntities_FullMethodName              = "/entityresolution.v2.EntityResolutionService/ResolveEntities"
	EntityResolutionService_CreateEntityChainsFromTokens_FullMethodName = "/entityresolution.v2.EntityResolutionService/CreateEntityChainsFromTokens"
)

Variables

View Source
var EntityResolutionService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "entityresolution.v2.EntityResolutionService",
	HandlerType: (*EntityResolutionServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "ResolveEntities",
			Handler:    _EntityResolutionService_ResolveEntities_Handler,
		},
		{
			MethodName: "CreateEntityChainsFromTokens",
			Handler:    _EntityResolutionService_CreateEntityChainsFromTokens_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "entityresolution/v2/entity_resolution.proto",
}

EntityResolutionService_ServiceDesc is the grpc.ServiceDesc for EntityResolutionService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

View Source
var File_entityresolution_v2_entity_resolution_proto protoreflect.FileDescriptor

Functions

func RegisterEntityResolutionServiceServer

func RegisterEntityResolutionServiceServer(s grpc.ServiceRegistrar, srv EntityResolutionServiceServer)

Types

type CreateEntityChainsFromTokensRequest

type CreateEntityChainsFromTokensRequest struct {
	Tokens []*entity.Token `protobuf:"bytes,1,rep,name=tokens,proto3" json:"tokens,omitempty"`
	// resources to consider for direct entitlements (experimental)
	Resources []*v2.Resource `protobuf:"bytes,2,rep,name=resources,proto3" json:"resources,omitempty"`
	// contains filtered or unexported fields
}

Create an entity chain for each token (JWT) in the request.

func (*CreateEntityChainsFromTokensRequest) Descriptor deprecated

func (*CreateEntityChainsFromTokensRequest) Descriptor() ([]byte, []int)

Deprecated: Use CreateEntityChainsFromTokensRequest.ProtoReflect.Descriptor instead.

func (*CreateEntityChainsFromTokensRequest) GetResources added in v0.15.0

func (x *CreateEntityChainsFromTokensRequest) GetResources() []*v2.Resource

func (*CreateEntityChainsFromTokensRequest) GetTokens

func (*CreateEntityChainsFromTokensRequest) ProtoMessage

func (*CreateEntityChainsFromTokensRequest) ProtoMessage()

func (*CreateEntityChainsFromTokensRequest) ProtoReflect

func (*CreateEntityChainsFromTokensRequest) Reset

func (*CreateEntityChainsFromTokensRequest) String

type CreateEntityChainsFromTokensResponse

type CreateEntityChainsFromTokensResponse struct {
	EntityChains []*entity.EntityChain `protobuf:"bytes,1,rep,name=entity_chains,json=entityChains,proto3" json:"entity_chains,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateEntityChainsFromTokensResponse) Descriptor deprecated

func (*CreateEntityChainsFromTokensResponse) Descriptor() ([]byte, []int)

Deprecated: Use CreateEntityChainsFromTokensResponse.ProtoReflect.Descriptor instead.

func (*CreateEntityChainsFromTokensResponse) GetEntityChains

func (*CreateEntityChainsFromTokensResponse) ProtoMessage

func (*CreateEntityChainsFromTokensResponse) ProtoMessage()

func (*CreateEntityChainsFromTokensResponse) ProtoReflect

func (*CreateEntityChainsFromTokensResponse) Reset

func (*CreateEntityChainsFromTokensResponse) String

type DirectEntitlement added in v0.15.0

type DirectEntitlement struct {
	AttributeValueFqn string   `protobuf:"bytes,1,opt,name=attribute_value_fqn,json=attributeValueFqn,proto3" json:"attribute_value_fqn,omitempty"`
	Actions           []string `protobuf:"bytes,2,rep,name=actions,proto3" json:"actions,omitempty"`
	// contains filtered or unexported fields
}

Entity Entitlements that do not require subject mappings (experimental)

func (*DirectEntitlement) Descriptor deprecated added in v0.15.0

func (*DirectEntitlement) Descriptor() ([]byte, []int)

Deprecated: Use DirectEntitlement.ProtoReflect.Descriptor instead.

func (*DirectEntitlement) GetActions added in v0.15.0

func (x *DirectEntitlement) GetActions() []string

func (*DirectEntitlement) GetAttributeValueFqn added in v0.15.0

func (x *DirectEntitlement) GetAttributeValueFqn() string

func (*DirectEntitlement) ProtoMessage added in v0.15.0

func (*DirectEntitlement) ProtoMessage()

func (*DirectEntitlement) ProtoReflect added in v0.15.0

func (x *DirectEntitlement) ProtoReflect() protoreflect.Message

func (*DirectEntitlement) Reset added in v0.15.0

func (x *DirectEntitlement) Reset()

func (*DirectEntitlement) String added in v0.15.0

func (x *DirectEntitlement) String() string

type EntityNotFoundError

type EntityNotFoundError struct {
	Code    int32        `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"`
	Message string       `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
	Details []*anypb.Any `protobuf:"bytes,3,rep,name=details,proto3" json:"details,omitempty"`
	Entity  string       `protobuf:"bytes,4,opt,name=entity,proto3" json:"entity,omitempty"`
	// contains filtered or unexported fields
}

func (*EntityNotFoundError) Descriptor deprecated

func (*EntityNotFoundError) Descriptor() ([]byte, []int)

Deprecated: Use EntityNotFoundError.ProtoReflect.Descriptor instead.

func (*EntityNotFoundError) GetCode

func (x *EntityNotFoundError) GetCode() int32

func (*EntityNotFoundError) GetDetails

func (x *EntityNotFoundError) GetDetails() []*anypb.Any

func (*EntityNotFoundError) GetEntity

func (x *EntityNotFoundError) GetEntity() string

func (*EntityNotFoundError) GetMessage

func (x *EntityNotFoundError) GetMessage() string

func (*EntityNotFoundError) ProtoMessage

func (*EntityNotFoundError) ProtoMessage()

func (*EntityNotFoundError) ProtoReflect

func (x *EntityNotFoundError) ProtoReflect() protoreflect.Message

func (*EntityNotFoundError) Reset

func (x *EntityNotFoundError) Reset()

func (*EntityNotFoundError) String

func (x *EntityNotFoundError) String() string

type EntityRepresentation

type EntityRepresentation struct {

	// ephemeral entity id from the request
	OriginalId      string             `protobuf:"bytes,1,opt,name=original_id,json=originalId,proto3" json:"original_id,omitempty"`
	AdditionalProps []*structpb.Struct `protobuf:"bytes,2,rep,name=additional_props,json=additionalProps,proto3" json:"additional_props,omitempty"`
	// direct entitlements applied to Entity (experimental)
	DirectEntitlements []*DirectEntitlement `protobuf:"bytes,3,rep,name=direct_entitlements,json=directEntitlements,proto3" json:"direct_entitlements,omitempty"`
	// contains filtered or unexported fields
}

func (*EntityRepresentation) Descriptor deprecated

func (*EntityRepresentation) Descriptor() ([]byte, []int)

Deprecated: Use EntityRepresentation.ProtoReflect.Descriptor instead.

func (*EntityRepresentation) GetAdditionalProps

func (x *EntityRepresentation) GetAdditionalProps() []*structpb.Struct

func (*EntityRepresentation) GetDirectEntitlements added in v0.15.0

func (x *EntityRepresentation) GetDirectEntitlements() []*DirectEntitlement

func (*EntityRepresentation) GetOriginalId

func (x *EntityRepresentation) GetOriginalId() string

func (*EntityRepresentation) ProtoMessage

func (*EntityRepresentation) ProtoMessage()

func (*EntityRepresentation) ProtoReflect

func (x *EntityRepresentation) ProtoReflect() protoreflect.Message

func (*EntityRepresentation) Reset

func (x *EntityRepresentation) Reset()

func (*EntityRepresentation) String

func (x *EntityRepresentation) String() string

type EntityResolutionServiceClient

type EntityResolutionServiceClient interface {
	ResolveEntities(ctx context.Context, in *ResolveEntitiesRequest, opts ...grpc.CallOption) (*ResolveEntitiesResponse, error)
	CreateEntityChainsFromTokens(ctx context.Context, in *CreateEntityChainsFromTokensRequest, opts ...grpc.CallOption) (*CreateEntityChainsFromTokensResponse, error)
}

EntityResolutionServiceClient is the client API for EntityResolutionService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

type EntityResolutionServiceServer

type EntityResolutionServiceServer interface {
	ResolveEntities(context.Context, *ResolveEntitiesRequest) (*ResolveEntitiesResponse, error)
	CreateEntityChainsFromTokens(context.Context, *CreateEntityChainsFromTokensRequest) (*CreateEntityChainsFromTokensResponse, error)
	// contains filtered or unexported methods
}

EntityResolutionServiceServer is the server API for EntityResolutionService service. All implementations must embed UnimplementedEntityResolutionServiceServer for forward compatibility

type ResolveEntitiesRequest

type ResolveEntitiesRequest struct {
	Entities []*entity.Entity `protobuf:"bytes,1,rep,name=entities,proto3" json:"entities,omitempty"`
	// contains filtered or unexported fields
}

Resolve a set of entities to their representations.

func (*ResolveEntitiesRequest) Descriptor deprecated

func (*ResolveEntitiesRequest) Descriptor() ([]byte, []int)

Deprecated: Use ResolveEntitiesRequest.ProtoReflect.Descriptor instead.

func (*ResolveEntitiesRequest) GetEntities

func (x *ResolveEntitiesRequest) GetEntities() []*entity.Entity

func (*ResolveEntitiesRequest) ProtoMessage

func (*ResolveEntitiesRequest) ProtoMessage()

func (*ResolveEntitiesRequest) ProtoReflect

func (x *ResolveEntitiesRequest) ProtoReflect() protoreflect.Message

func (*ResolveEntitiesRequest) Reset

func (x *ResolveEntitiesRequest) Reset()

func (*ResolveEntitiesRequest) String

func (x *ResolveEntitiesRequest) String() string

type ResolveEntitiesResponse

type ResolveEntitiesResponse struct {
	EntityRepresentations []*EntityRepresentation `protobuf:"bytes,1,rep,name=entity_representations,json=entityRepresentations,proto3" json:"entity_representations,omitempty"`
	// contains filtered or unexported fields
}

func (*ResolveEntitiesResponse) Descriptor deprecated

func (*ResolveEntitiesResponse) Descriptor() ([]byte, []int)

Deprecated: Use ResolveEntitiesResponse.ProtoReflect.Descriptor instead.

func (*ResolveEntitiesResponse) GetEntityRepresentations

func (x *ResolveEntitiesResponse) GetEntityRepresentations() []*EntityRepresentation

func (*ResolveEntitiesResponse) ProtoMessage

func (*ResolveEntitiesResponse) ProtoMessage()

func (*ResolveEntitiesResponse) ProtoReflect

func (x *ResolveEntitiesResponse) ProtoReflect() protoreflect.Message

func (*ResolveEntitiesResponse) Reset

func (x *ResolveEntitiesResponse) Reset()

func (*ResolveEntitiesResponse) String

func (x *ResolveEntitiesResponse) String() string

type UnimplementedEntityResolutionServiceServer

type UnimplementedEntityResolutionServiceServer struct {
}

UnimplementedEntityResolutionServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedEntityResolutionServiceServer) ResolveEntities

type UnsafeEntityResolutionServiceServer

type UnsafeEntityResolutionServiceServer interface {
	// contains filtered or unexported methods
}

UnsafeEntityResolutionServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to EntityResolutionServiceServer will result in compilation errors.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL