apiv1

package
v1.36.10-2025102115461... Latest Latest
Warning

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

Go to latest
Published: unknown License: Apache-2.0 Imports: 12 Imported by: 3

Documentation

Index

Constants

View Source
const BulkCheckPermissionPair_Error_case case_BulkCheckPermissionPair_Response = 3
View Source
const BulkCheckPermissionPair_Item_case case_BulkCheckPermissionPair_Response = 2
View Source
const BulkCheckPermissionPair_Response_not_set_case case_BulkCheckPermissionPair_Response = 0
View Source
const CheckBulkPermissionsPair_Error_case case_CheckBulkPermissionsPair_Response = 3
View Source
const CheckBulkPermissionsPair_Item_case case_CheckBulkPermissionsPair_Response = 2
View Source
const CheckBulkPermissionsPair_Response_not_set_case case_CheckBulkPermissionsPair_Response = 0
View Source
const CheckDebugTrace_Resolution_not_set_case case_CheckDebugTrace_Resolution = 0
View Source
const CheckDebugTrace_SubProblems_case case_CheckDebugTrace_Resolution = 7
View Source
const CheckDebugTrace_WasCachedResult_case case_CheckDebugTrace_Resolution = 6
View Source
const Consistency_AtExactSnapshot_case case_Consistency_Requirement = 3
View Source
const Consistency_AtLeastAsFresh_case case_Consistency_Requirement = 2
View Source
const Consistency_FullyConsistent_case case_Consistency_Requirement = 4
View Source
const Consistency_MinimizeLatency_case case_Consistency_Requirement = 1
View Source
const Consistency_Requirement_not_set_case case_Consistency_Requirement = 0
View Source
const ExpSchemaDiff_CaveatAdded_case case_ExpSchemaDiff_Diff = 13
View Source
const ExpSchemaDiff_CaveatDocCommentChanged_case case_ExpSchemaDiff_Diff = 15
View Source
const ExpSchemaDiff_CaveatExprChanged_case case_ExpSchemaDiff_Diff = 16
View Source
const ExpSchemaDiff_CaveatParameterAdded_case case_ExpSchemaDiff_Diff = 17
View Source
const ExpSchemaDiff_CaveatParameterRemoved_case case_ExpSchemaDiff_Diff = 18
View Source
const ExpSchemaDiff_CaveatParameterTypeChanged_case case_ExpSchemaDiff_Diff = 19
View Source
const ExpSchemaDiff_CaveatRemoved_case case_ExpSchemaDiff_Diff = 14
View Source
const ExpSchemaDiff_DefinitionAdded_case case_ExpSchemaDiff_Diff = 1
View Source
const ExpSchemaDiff_DefinitionDocCommentChanged_case case_ExpSchemaDiff_Diff = 3
View Source
const ExpSchemaDiff_DefinitionRemoved_case case_ExpSchemaDiff_Diff = 2
View Source
const ExpSchemaDiff_Diff_not_set_case case_ExpSchemaDiff_Diff = 0
View Source
const ExpSchemaDiff_PermissionAdded_case case_ExpSchemaDiff_Diff = 9
View Source
const ExpSchemaDiff_PermissionDocCommentChanged_case case_ExpSchemaDiff_Diff = 11
View Source
const ExpSchemaDiff_PermissionExprChanged_case case_ExpSchemaDiff_Diff = 12
View Source
const ExpSchemaDiff_PermissionRemoved_case case_ExpSchemaDiff_Diff = 10
View Source
const ExpSchemaDiff_RelationAdded_case case_ExpSchemaDiff_Diff = 4
View Source
const ExpSchemaDiff_RelationDocCommentChanged_case case_ExpSchemaDiff_Diff = 6
View Source
const ExpSchemaDiff_RelationRemoved_case case_ExpSchemaDiff_Diff = 5
View Source
const ExpSchemaDiff_RelationSubjectTypeAdded_case case_ExpSchemaDiff_Diff = 7
View Source
const ExpSchemaDiff_RelationSubjectTypeRemoved_case case_ExpSchemaDiff_Diff = 8
View Source
const ExpTypeReference_IsPublicWildcard_case case_ExpTypeReference_Typeref = 5
View Source
const ExpTypeReference_IsTerminalSubject_case case_ExpTypeReference_Typeref = 3
View Source
const ExpTypeReference_OptionalRelationName_case case_ExpTypeReference_Typeref = 4
View Source
const ExpTypeReference_Typeref_not_set_case case_ExpTypeReference_Typeref = 0
View Source
const ExperimentalCountRelationshipsResponse_CounterResult_not_set_case case_ExperimentalCountRelationshipsResponse_CounterResult = 0
View Source
const ExperimentalCountRelationshipsResponse_CounterStillCalculating_case case_ExperimentalCountRelationshipsResponse_CounterResult = 1
View Source
const ExperimentalCountRelationshipsResponse_ReadCounterValue_case case_ExperimentalCountRelationshipsResponse_CounterResult = 2
View Source
const PermissionRelationshipTree_Intermediate_case case_PermissionRelationshipTree_TreeType = 1
View Source
const PermissionRelationshipTree_Leaf_case case_PermissionRelationshipTree_TreeType = 2
View Source
const PermissionRelationshipTree_TreeType_not_set_case case_PermissionRelationshipTree_TreeType = 0
View Source
const ReflectionSchemaDiff_CaveatAdded_case case_ReflectionSchemaDiff_Diff = 13
View Source
const ReflectionSchemaDiff_CaveatDocCommentChanged_case case_ReflectionSchemaDiff_Diff = 15
View Source
const ReflectionSchemaDiff_CaveatExprChanged_case case_ReflectionSchemaDiff_Diff = 16
View Source
const ReflectionSchemaDiff_CaveatParameterAdded_case case_ReflectionSchemaDiff_Diff = 17
View Source
const ReflectionSchemaDiff_CaveatParameterRemoved_case case_ReflectionSchemaDiff_Diff = 18
View Source
const ReflectionSchemaDiff_CaveatParameterTypeChanged_case case_ReflectionSchemaDiff_Diff = 19
View Source
const ReflectionSchemaDiff_CaveatRemoved_case case_ReflectionSchemaDiff_Diff = 14
View Source
const ReflectionSchemaDiff_DefinitionAdded_case case_ReflectionSchemaDiff_Diff = 1
View Source
const ReflectionSchemaDiff_DefinitionDocCommentChanged_case case_ReflectionSchemaDiff_Diff = 3
View Source
const ReflectionSchemaDiff_DefinitionRemoved_case case_ReflectionSchemaDiff_Diff = 2
View Source
const ReflectionSchemaDiff_Diff_not_set_case case_ReflectionSchemaDiff_Diff = 0
View Source
const ReflectionSchemaDiff_PermissionAdded_case case_ReflectionSchemaDiff_Diff = 9
View Source
const ReflectionSchemaDiff_PermissionDocCommentChanged_case case_ReflectionSchemaDiff_Diff = 11
View Source
const ReflectionSchemaDiff_PermissionExprChanged_case case_ReflectionSchemaDiff_Diff = 12
View Source
const ReflectionSchemaDiff_PermissionRemoved_case case_ReflectionSchemaDiff_Diff = 10
View Source
const ReflectionSchemaDiff_RelationAdded_case case_ReflectionSchemaDiff_Diff = 4
View Source
const ReflectionSchemaDiff_RelationDocCommentChanged_case case_ReflectionSchemaDiff_Diff = 6
View Source
const ReflectionSchemaDiff_RelationRemoved_case case_ReflectionSchemaDiff_Diff = 5
View Source
const ReflectionSchemaDiff_RelationSubjectTypeAdded_case case_ReflectionSchemaDiff_Diff = 7
View Source
const ReflectionSchemaDiff_RelationSubjectTypeRemoved_case case_ReflectionSchemaDiff_Diff = 8
View Source
const ReflectionTypeReference_IsPublicWildcard_case case_ReflectionTypeReference_Typeref = 5
View Source
const ReflectionTypeReference_IsTerminalSubject_case case_ReflectionTypeReference_Typeref = 3
View Source
const ReflectionTypeReference_OptionalRelationName_case case_ReflectionTypeReference_Typeref = 4
View Source
const ReflectionTypeReference_Typeref_not_set_case case_ReflectionTypeReference_Typeref = 0

Variables

View Source
var (
	RelationshipUpdate_Operation_name = map[int32]string{
		0: "OPERATION_UNSPECIFIED",
		1: "OPERATION_CREATE",
		2: "OPERATION_TOUCH",
		3: "OPERATION_DELETE",
	}
	RelationshipUpdate_Operation_value = map[string]int32{
		"OPERATION_UNSPECIFIED": 0,
		"OPERATION_CREATE":      1,
		"OPERATION_TOUCH":       2,
		"OPERATION_DELETE":      3,
	}
)

Enum value maps for RelationshipUpdate_Operation.

View Source
var (
	AlgebraicSubjectSet_Operation_name = map[int32]string{
		0: "OPERATION_UNSPECIFIED",
		1: "OPERATION_UNION",
		2: "OPERATION_INTERSECTION",
		3: "OPERATION_EXCLUSION",
	}
	AlgebraicSubjectSet_Operation_value = map[string]int32{
		"OPERATION_UNSPECIFIED":  0,
		"OPERATION_UNION":        1,
		"OPERATION_INTERSECTION": 2,
		"OPERATION_EXCLUSION":    3,
	}
)

Enum value maps for AlgebraicSubjectSet_Operation.

View Source
var (
	CheckDebugTrace_PermissionType_name = map[int32]string{
		0: "PERMISSION_TYPE_UNSPECIFIED",
		1: "PERMISSION_TYPE_RELATION",
		2: "PERMISSION_TYPE_PERMISSION",
	}
	CheckDebugTrace_PermissionType_value = map[string]int32{
		"PERMISSION_TYPE_UNSPECIFIED": 0,
		"PERMISSION_TYPE_RELATION":    1,
		"PERMISSION_TYPE_PERMISSION":  2,
	}
)

Enum value maps for CheckDebugTrace_PermissionType.

View Source
var (
	CheckDebugTrace_Permissionship_name = map[int32]string{
		0: "PERMISSIONSHIP_UNSPECIFIED",
		1: "PERMISSIONSHIP_NO_PERMISSION",
		2: "PERMISSIONSHIP_HAS_PERMISSION",
		3: "PERMISSIONSHIP_CONDITIONAL_PERMISSION",
	}
	CheckDebugTrace_Permissionship_value = map[string]int32{
		"PERMISSIONSHIP_UNSPECIFIED":            0,
		"PERMISSIONSHIP_NO_PERMISSION":          1,
		"PERMISSIONSHIP_HAS_PERMISSION":         2,
		"PERMISSIONSHIP_CONDITIONAL_PERMISSION": 3,
	}
)

Enum value maps for CheckDebugTrace_Permissionship.

View Source
var (
	CaveatEvalInfo_Result_name = map[int32]string{
		0: "RESULT_UNSPECIFIED",
		1: "RESULT_UNEVALUATED",
		2: "RESULT_FALSE",
		3: "RESULT_TRUE",
		4: "RESULT_MISSING_SOME_CONTEXT",
	}
	CaveatEvalInfo_Result_value = map[string]int32{
		"RESULT_UNSPECIFIED":          0,
		"RESULT_UNEVALUATED":          1,
		"RESULT_FALSE":                2,
		"RESULT_TRUE":                 3,
		"RESULT_MISSING_SOME_CONTEXT": 4,
	}
)

Enum value maps for CaveatEvalInfo_Result.

View Source
var (
	ErrorReason_name = map[int32]string{
		0:  "ERROR_REASON_UNSPECIFIED",
		1:  "ERROR_REASON_SCHEMA_PARSE_ERROR",
		2:  "ERROR_REASON_SCHEMA_TYPE_ERROR",
		3:  "ERROR_REASON_UNKNOWN_DEFINITION",
		4:  "ERROR_REASON_UNKNOWN_RELATION_OR_PERMISSION",
		5:  "ERROR_REASON_TOO_MANY_UPDATES_IN_REQUEST",
		6:  "ERROR_REASON_TOO_MANY_PRECONDITIONS_IN_REQUEST",
		7:  "ERROR_REASON_WRITE_OR_DELETE_PRECONDITION_FAILURE",
		8:  "ERROR_REASON_SERVICE_READ_ONLY",
		9:  "ERROR_REASON_UNKNOWN_CAVEAT",
		10: "ERROR_REASON_INVALID_SUBJECT_TYPE",
		11: "ERROR_REASON_CAVEAT_PARAMETER_TYPE_ERROR",
		12: "ERROR_REASON_UPDATES_ON_SAME_RELATIONSHIP",
		13: "ERROR_REASON_CANNOT_UPDATE_PERMISSION",
		14: "ERROR_REASON_CAVEAT_EVALUATION_ERROR",
		15: "ERROR_REASON_INVALID_CURSOR",
		16: "ERROR_REASON_TOO_MANY_RELATIONSHIPS_FOR_TRANSACTIONAL_DELETE",
		17: "ERROR_REASON_MAX_RELATIONSHIP_CONTEXT_SIZE",
		18: "ERROR_REASON_ATTEMPT_TO_RECREATE_RELATIONSHIP",
		19: "ERROR_REASON_MAXIMUM_DEPTH_EXCEEDED",
		20: "ERROR_REASON_SERIALIZATION_FAILURE",
		21: "ERROR_REASON_TOO_MANY_CHECKS_IN_REQUEST",
		22: "ERROR_REASON_EXCEEDS_MAXIMUM_ALLOWABLE_LIMIT",
		23: "ERROR_REASON_INVALID_FILTER",
		24: "ERROR_REASON_INMEMORY_TOO_MANY_CONCURRENT_UPDATES",
		25: "ERROR_REASON_EMPTY_PRECONDITION",
		26: "ERROR_REASON_COUNTER_ALREADY_REGISTERED",
		27: "ERROR_REASON_COUNTER_NOT_REGISTERED",
		28: "ERROR_REASON_WILDCARD_NOT_ALLOWED",
		29: "ERROR_REASON_TRANSACTION_METADATA_TOO_LARGE",
	}
	ErrorReason_value = map[string]int32{
		"ERROR_REASON_UNSPECIFIED":                                     0,
		"ERROR_REASON_SCHEMA_PARSE_ERROR":                              1,
		"ERROR_REASON_SCHEMA_TYPE_ERROR":                               2,
		"ERROR_REASON_UNKNOWN_DEFINITION":                              3,
		"ERROR_REASON_UNKNOWN_RELATION_OR_PERMISSION":                  4,
		"ERROR_REASON_TOO_MANY_UPDATES_IN_REQUEST":                     5,
		"ERROR_REASON_TOO_MANY_PRECONDITIONS_IN_REQUEST":               6,
		"ERROR_REASON_WRITE_OR_DELETE_PRECONDITION_FAILURE":            7,
		"ERROR_REASON_SERVICE_READ_ONLY":                               8,
		"ERROR_REASON_UNKNOWN_CAVEAT":                                  9,
		"ERROR_REASON_INVALID_SUBJECT_TYPE":                            10,
		"ERROR_REASON_CAVEAT_PARAMETER_TYPE_ERROR":                     11,
		"ERROR_REASON_UPDATES_ON_SAME_RELATIONSHIP":                    12,
		"ERROR_REASON_CANNOT_UPDATE_PERMISSION":                        13,
		"ERROR_REASON_CAVEAT_EVALUATION_ERROR":                         14,
		"ERROR_REASON_INVALID_CURSOR":                                  15,
		"ERROR_REASON_TOO_MANY_RELATIONSHIPS_FOR_TRANSACTIONAL_DELETE": 16,
		"ERROR_REASON_MAX_RELATIONSHIP_CONTEXT_SIZE":                   17,
		"ERROR_REASON_ATTEMPT_TO_RECREATE_RELATIONSHIP":                18,
		"ERROR_REASON_MAXIMUM_DEPTH_EXCEEDED":                          19,
		"ERROR_REASON_SERIALIZATION_FAILURE":                           20,
		"ERROR_REASON_TOO_MANY_CHECKS_IN_REQUEST":                      21,
		"ERROR_REASON_EXCEEDS_MAXIMUM_ALLOWABLE_LIMIT":                 22,
		"ERROR_REASON_INVALID_FILTER":                                  23,
		"ERROR_REASON_INMEMORY_TOO_MANY_CONCURRENT_UPDATES":            24,
		"ERROR_REASON_EMPTY_PRECONDITION":                              25,
		"ERROR_REASON_COUNTER_ALREADY_REGISTERED":                      26,
		"ERROR_REASON_COUNTER_NOT_REGISTERED":                          27,
		"ERROR_REASON_WILDCARD_NOT_ALLOWED":                            28,
		"ERROR_REASON_TRANSACTION_METADATA_TOO_LARGE":                  29,
	}
)

Enum value maps for ErrorReason.

View Source
var (
	LookupPermissionship_name = map[int32]string{
		0: "LOOKUP_PERMISSIONSHIP_UNSPECIFIED",
		1: "LOOKUP_PERMISSIONSHIP_HAS_PERMISSION",
		2: "LOOKUP_PERMISSIONSHIP_CONDITIONAL_PERMISSION",
	}
	LookupPermissionship_value = map[string]int32{
		"LOOKUP_PERMISSIONSHIP_UNSPECIFIED":            0,
		"LOOKUP_PERMISSIONSHIP_HAS_PERMISSION":         1,
		"LOOKUP_PERMISSIONSHIP_CONDITIONAL_PERMISSION": 2,
	}
)

Enum value maps for LookupPermissionship.

View Source
var (
	Precondition_Operation_name = map[int32]string{
		0: "OPERATION_UNSPECIFIED",
		1: "OPERATION_MUST_NOT_MATCH",
		2: "OPERATION_MUST_MATCH",
	}
	Precondition_Operation_value = map[string]int32{
		"OPERATION_UNSPECIFIED":    0,
		"OPERATION_MUST_NOT_MATCH": 1,
		"OPERATION_MUST_MATCH":     2,
	}
)

Enum value maps for Precondition_Operation.

View Source
var (
	DeleteRelationshipsResponse_DeletionProgress_name = map[int32]string{
		0: "DELETION_PROGRESS_UNSPECIFIED",
		1: "DELETION_PROGRESS_COMPLETE",
		2: "DELETION_PROGRESS_PARTIAL",
	}
	DeleteRelationshipsResponse_DeletionProgress_value = map[string]int32{
		"DELETION_PROGRESS_UNSPECIFIED": 0,
		"DELETION_PROGRESS_COMPLETE":    1,
		"DELETION_PROGRESS_PARTIAL":     2,
	}
)

Enum value maps for DeleteRelationshipsResponse_DeletionProgress.

View Source
var (
	CheckPermissionResponse_Permissionship_name = map[int32]string{
		0: "PERMISSIONSHIP_UNSPECIFIED",
		1: "PERMISSIONSHIP_NO_PERMISSION",
		2: "PERMISSIONSHIP_HAS_PERMISSION",
		3: "PERMISSIONSHIP_CONDITIONAL_PERMISSION",
	}
	CheckPermissionResponse_Permissionship_value = map[string]int32{
		"PERMISSIONSHIP_UNSPECIFIED":            0,
		"PERMISSIONSHIP_NO_PERMISSION":          1,
		"PERMISSIONSHIP_HAS_PERMISSION":         2,
		"PERMISSIONSHIP_CONDITIONAL_PERMISSION": 3,
	}
)

Enum value maps for CheckPermissionResponse_Permissionship.

View Source
var (
	LookupSubjectsRequest_WildcardOption_name = map[int32]string{
		0: "WILDCARD_OPTION_UNSPECIFIED",
		1: "WILDCARD_OPTION_INCLUDE_WILDCARDS",
		2: "WILDCARD_OPTION_EXCLUDE_WILDCARDS",
	}
	LookupSubjectsRequest_WildcardOption_value = map[string]int32{
		"WILDCARD_OPTION_UNSPECIFIED":       0,
		"WILDCARD_OPTION_INCLUDE_WILDCARDS": 1,
		"WILDCARD_OPTION_EXCLUDE_WILDCARDS": 2,
	}
)

Enum value maps for LookupSubjectsRequest_WildcardOption.

View Source
var (
	WatchKind_name = map[int32]string{
		0: "WATCH_KIND_UNSPECIFIED",
		1: "WATCH_KIND_INCLUDE_RELATIONSHIP_UPDATES",
		2: "WATCH_KIND_INCLUDE_SCHEMA_UPDATES",
		3: "WATCH_KIND_INCLUDE_CHECKPOINTS",
	}
	WatchKind_value = map[string]int32{
		"WATCH_KIND_UNSPECIFIED":                  0,
		"WATCH_KIND_INCLUDE_RELATIONSHIP_UPDATES": 1,
		"WATCH_KIND_INCLUDE_SCHEMA_UPDATES":       2,
		"WATCH_KIND_INCLUDE_CHECKPOINTS":          3,
	}
)

Enum value maps for WatchKind.

View Source
var File_authzed_api_v1_core_proto protoreflect.FileDescriptor
View Source
var File_authzed_api_v1_debug_proto protoreflect.FileDescriptor
View Source
var File_authzed_api_v1_error_reason_proto protoreflect.FileDescriptor
View Source
var File_authzed_api_v1_experimental_service_proto protoreflect.FileDescriptor
View Source
var File_authzed_api_v1_openapi_proto protoreflect.FileDescriptor
View Source
var File_authzed_api_v1_permission_service_proto protoreflect.FileDescriptor
View Source
var File_authzed_api_v1_schema_service_proto protoreflect.FileDescriptor
View Source
var File_authzed_api_v1_watch_service_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type AlgebraicSubjectSet

type AlgebraicSubjectSet struct {
	Operation AlgebraicSubjectSet_Operation `protobuf:"varint,1,opt,name=operation,proto3,enum=authzed.api.v1.AlgebraicSubjectSet_Operation" json:"operation,omitempty"`
	Children  []*PermissionRelationshipTree `protobuf:"bytes,2,rep,name=children,proto3" json:"children,omitempty"`
	// contains filtered or unexported fields
}

AlgebraicSubjectSet is a subject set which is computed based on applying the specified operation to the operands according to the algebra of sets.

UNION is a logical set containing the subject members from all operands.

INTERSECTION is a logical set containing only the subject members which are present in all operands.

EXCLUSION is a logical set containing only the subject members which are present in the first operand, and none of the other operands.

func (*AlgebraicSubjectSet) GetChildren

func (x *AlgebraicSubjectSet) GetChildren() []*PermissionRelationshipTree

func (*AlgebraicSubjectSet) GetOperation

func (*AlgebraicSubjectSet) ProtoMessage

func (*AlgebraicSubjectSet) ProtoMessage()

func (*AlgebraicSubjectSet) ProtoReflect

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

func (*AlgebraicSubjectSet) Reset

func (x *AlgebraicSubjectSet) Reset()

func (*AlgebraicSubjectSet) SetChildren

func (x *AlgebraicSubjectSet) SetChildren(v []*PermissionRelationshipTree)

func (*AlgebraicSubjectSet) SetOperation

func (*AlgebraicSubjectSet) String

func (x *AlgebraicSubjectSet) String() string

type AlgebraicSubjectSet_Operation

type AlgebraicSubjectSet_Operation int32
const (
	AlgebraicSubjectSet_OPERATION_UNSPECIFIED  AlgebraicSubjectSet_Operation = 0
	AlgebraicSubjectSet_OPERATION_UNION        AlgebraicSubjectSet_Operation = 1
	AlgebraicSubjectSet_OPERATION_INTERSECTION AlgebraicSubjectSet_Operation = 2
	AlgebraicSubjectSet_OPERATION_EXCLUSION    AlgebraicSubjectSet_Operation = 3
)

func (AlgebraicSubjectSet_Operation) Descriptor

func (AlgebraicSubjectSet_Operation) Enum

func (AlgebraicSubjectSet_Operation) Number

func (AlgebraicSubjectSet_Operation) String

func (AlgebraicSubjectSet_Operation) Type

type AlgebraicSubjectSet_builder

type AlgebraicSubjectSet_builder struct {
	Operation AlgebraicSubjectSet_Operation
	Children  []*PermissionRelationshipTree
	// contains filtered or unexported fields
}

func (AlgebraicSubjectSet_builder) Build

type BulkCheckPermissionPair

type BulkCheckPermissionPair struct {
	Request *BulkCheckPermissionRequestItem `protobuf:"bytes,1,opt,name=request,proto3" json:"request,omitempty"`
	// Types that are valid to be assigned to Response:
	//
	//	*BulkCheckPermissionPair_Item
	//	*BulkCheckPermissionPair_Error
	Response isBulkCheckPermissionPair_Response `protobuf_oneof:"response"`
	// contains filtered or unexported fields
}

func (*BulkCheckPermissionPair) ClearError

func (x *BulkCheckPermissionPair) ClearError()

func (*BulkCheckPermissionPair) ClearItem

func (x *BulkCheckPermissionPair) ClearItem()

func (*BulkCheckPermissionPair) ClearRequest

func (x *BulkCheckPermissionPair) ClearRequest()

func (*BulkCheckPermissionPair) ClearResponse

func (x *BulkCheckPermissionPair) ClearResponse()

func (*BulkCheckPermissionPair) GetError

func (x *BulkCheckPermissionPair) GetError() *status.Status

func (*BulkCheckPermissionPair) GetItem

func (*BulkCheckPermissionPair) GetRequest

func (*BulkCheckPermissionPair) GetResponse

func (x *BulkCheckPermissionPair) GetResponse() isBulkCheckPermissionPair_Response

func (*BulkCheckPermissionPair) HasError

func (x *BulkCheckPermissionPair) HasError() bool

func (*BulkCheckPermissionPair) HasItem

func (x *BulkCheckPermissionPair) HasItem() bool

func (*BulkCheckPermissionPair) HasRequest

func (x *BulkCheckPermissionPair) HasRequest() bool

func (*BulkCheckPermissionPair) HasResponse

func (x *BulkCheckPermissionPair) HasResponse() bool

func (*BulkCheckPermissionPair) ProtoMessage

func (*BulkCheckPermissionPair) ProtoMessage()

func (*BulkCheckPermissionPair) ProtoReflect

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

func (*BulkCheckPermissionPair) Reset

func (x *BulkCheckPermissionPair) Reset()

func (*BulkCheckPermissionPair) SetError

func (x *BulkCheckPermissionPair) SetError(v *status.Status)

func (*BulkCheckPermissionPair) SetItem

func (*BulkCheckPermissionPair) SetRequest

func (*BulkCheckPermissionPair) String

func (x *BulkCheckPermissionPair) String() string

func (*BulkCheckPermissionPair) WhichResponse

func (x *BulkCheckPermissionPair) WhichResponse() case_BulkCheckPermissionPair_Response

type BulkCheckPermissionPair_Error

type BulkCheckPermissionPair_Error struct {
	Error *status.Status `protobuf:"bytes,3,opt,name=error,proto3,oneof"`
}

type BulkCheckPermissionPair_Item

type BulkCheckPermissionPair_Item struct {
	Item *BulkCheckPermissionResponseItem `protobuf:"bytes,2,opt,name=item,proto3,oneof"`
}

type BulkCheckPermissionPair_builder

type BulkCheckPermissionPair_builder struct {
	Request *BulkCheckPermissionRequestItem
	// Fields of oneof Response:
	Item  *BulkCheckPermissionResponseItem
	Error *status.Status
	// contains filtered or unexported fields
}

func (BulkCheckPermissionPair_builder) Build

type BulkCheckPermissionRequest

type BulkCheckPermissionRequest struct {
	Consistency *Consistency `protobuf:"bytes,1,opt,name=consistency,proto3" json:"consistency,omitempty"`
	// Deprecated: Marked as deprecated in authzed/api/v1/experimental_service.proto.
	Items []*BulkCheckPermissionRequestItem `protobuf:"bytes,2,rep,name=items,proto3" json:"items,omitempty"`
	// contains filtered or unexported fields
}

NOTE: Deprecated now that BulkCheckPermission has been promoted to the stable API as "CheckBulkPermission".

func (*BulkCheckPermissionRequest) ClearConsistency

func (x *BulkCheckPermissionRequest) ClearConsistency()

func (*BulkCheckPermissionRequest) GetConsistency

func (x *BulkCheckPermissionRequest) GetConsistency() *Consistency

func (*BulkCheckPermissionRequest) GetItems deprecated

Deprecated: Marked as deprecated in authzed/api/v1/experimental_service.proto.

func (*BulkCheckPermissionRequest) HasConsistency

func (x *BulkCheckPermissionRequest) HasConsistency() bool

func (*BulkCheckPermissionRequest) ProtoMessage

func (*BulkCheckPermissionRequest) ProtoMessage()

func (*BulkCheckPermissionRequest) ProtoReflect

func (*BulkCheckPermissionRequest) Reset

func (x *BulkCheckPermissionRequest) Reset()

func (*BulkCheckPermissionRequest) SetConsistency

func (x *BulkCheckPermissionRequest) SetConsistency(v *Consistency)

func (*BulkCheckPermissionRequest) SetItems deprecated

Deprecated: Marked as deprecated in authzed/api/v1/experimental_service.proto.

func (*BulkCheckPermissionRequest) String

func (x *BulkCheckPermissionRequest) String() string

type BulkCheckPermissionRequestItem

type BulkCheckPermissionRequestItem struct {
	Resource   *ObjectReference  `protobuf:"bytes,1,opt,name=resource,proto3" json:"resource,omitempty"`
	Permission string            `protobuf:"bytes,2,opt,name=permission,proto3" json:"permission,omitempty"`
	Subject    *SubjectReference `protobuf:"bytes,3,opt,name=subject,proto3" json:"subject,omitempty"`
	Context    *structpb.Struct  `protobuf:"bytes,4,opt,name=context,proto3" json:"context,omitempty"`
	// contains filtered or unexported fields
}

func (*BulkCheckPermissionRequestItem) ClearContext

func (x *BulkCheckPermissionRequestItem) ClearContext()

func (*BulkCheckPermissionRequestItem) ClearResource

func (x *BulkCheckPermissionRequestItem) ClearResource()

func (*BulkCheckPermissionRequestItem) ClearSubject

func (x *BulkCheckPermissionRequestItem) ClearSubject()

func (*BulkCheckPermissionRequestItem) GetContext

func (*BulkCheckPermissionRequestItem) GetPermission

func (x *BulkCheckPermissionRequestItem) GetPermission() string

func (*BulkCheckPermissionRequestItem) GetResource

func (*BulkCheckPermissionRequestItem) GetSubject

func (*BulkCheckPermissionRequestItem) HasContext

func (x *BulkCheckPermissionRequestItem) HasContext() bool

func (*BulkCheckPermissionRequestItem) HasResource

func (x *BulkCheckPermissionRequestItem) HasResource() bool

func (*BulkCheckPermissionRequestItem) HasSubject

func (x *BulkCheckPermissionRequestItem) HasSubject() bool

func (*BulkCheckPermissionRequestItem) ProtoMessage

func (*BulkCheckPermissionRequestItem) ProtoMessage()

func (*BulkCheckPermissionRequestItem) ProtoReflect

func (*BulkCheckPermissionRequestItem) Reset

func (x *BulkCheckPermissionRequestItem) Reset()

func (*BulkCheckPermissionRequestItem) SetContext

func (*BulkCheckPermissionRequestItem) SetPermission

func (x *BulkCheckPermissionRequestItem) SetPermission(v string)

func (*BulkCheckPermissionRequestItem) SetResource

func (*BulkCheckPermissionRequestItem) SetSubject

func (*BulkCheckPermissionRequestItem) String

type BulkCheckPermissionRequestItem_builder

type BulkCheckPermissionRequestItem_builder struct {
	Resource   *ObjectReference
	Permission string
	Subject    *SubjectReference
	Context    *structpb.Struct
	// contains filtered or unexported fields
}

func (BulkCheckPermissionRequestItem_builder) Build

type BulkCheckPermissionRequest_builder

type BulkCheckPermissionRequest_builder struct {
	Consistency *Consistency
	// Deprecated: Marked as deprecated in authzed/api/v1/experimental_service.proto.
	Items []*BulkCheckPermissionRequestItem
	// contains filtered or unexported fields
}

func (BulkCheckPermissionRequest_builder) Build

type BulkCheckPermissionResponse

type BulkCheckPermissionResponse struct {
	CheckedAt *ZedToken                  `protobuf:"bytes,1,opt,name=checked_at,json=checkedAt,proto3" json:"checked_at,omitempty"`
	Pairs     []*BulkCheckPermissionPair `protobuf:"bytes,2,rep,name=pairs,proto3" json:"pairs,omitempty"`
	// contains filtered or unexported fields
}

func (*BulkCheckPermissionResponse) ClearCheckedAt

func (x *BulkCheckPermissionResponse) ClearCheckedAt()

func (*BulkCheckPermissionResponse) GetCheckedAt

func (x *BulkCheckPermissionResponse) GetCheckedAt() *ZedToken

func (*BulkCheckPermissionResponse) GetPairs

func (*BulkCheckPermissionResponse) HasCheckedAt

func (x *BulkCheckPermissionResponse) HasCheckedAt() bool

func (*BulkCheckPermissionResponse) ProtoMessage

func (*BulkCheckPermissionResponse) ProtoMessage()

func (*BulkCheckPermissionResponse) ProtoReflect

func (*BulkCheckPermissionResponse) Reset

func (x *BulkCheckPermissionResponse) Reset()

func (*BulkCheckPermissionResponse) SetCheckedAt

func (x *BulkCheckPermissionResponse) SetCheckedAt(v *ZedToken)

func (*BulkCheckPermissionResponse) SetPairs

func (*BulkCheckPermissionResponse) String

func (x *BulkCheckPermissionResponse) String() string

type BulkCheckPermissionResponseItem

type BulkCheckPermissionResponseItem struct {
	Permissionship    CheckPermissionResponse_Permissionship `` /* 141-byte string literal not displayed */
	PartialCaveatInfo *PartialCaveatInfo                     `protobuf:"bytes,2,opt,name=partial_caveat_info,json=partialCaveatInfo,proto3" json:"partial_caveat_info,omitempty"`
	// contains filtered or unexported fields
}

func (*BulkCheckPermissionResponseItem) ClearPartialCaveatInfo

func (x *BulkCheckPermissionResponseItem) ClearPartialCaveatInfo()

func (*BulkCheckPermissionResponseItem) GetPartialCaveatInfo

func (x *BulkCheckPermissionResponseItem) GetPartialCaveatInfo() *PartialCaveatInfo

func (*BulkCheckPermissionResponseItem) GetPermissionship

func (*BulkCheckPermissionResponseItem) HasPartialCaveatInfo

func (x *BulkCheckPermissionResponseItem) HasPartialCaveatInfo() bool

func (*BulkCheckPermissionResponseItem) ProtoMessage

func (*BulkCheckPermissionResponseItem) ProtoMessage()

func (*BulkCheckPermissionResponseItem) ProtoReflect

func (*BulkCheckPermissionResponseItem) Reset

func (*BulkCheckPermissionResponseItem) SetPartialCaveatInfo

func (x *BulkCheckPermissionResponseItem) SetPartialCaveatInfo(v *PartialCaveatInfo)

func (*BulkCheckPermissionResponseItem) SetPermissionship

func (*BulkCheckPermissionResponseItem) String

type BulkCheckPermissionResponseItem_builder

type BulkCheckPermissionResponseItem_builder struct {
	Permissionship    CheckPermissionResponse_Permissionship
	PartialCaveatInfo *PartialCaveatInfo
	// contains filtered or unexported fields
}

func (BulkCheckPermissionResponseItem_builder) Build

type BulkCheckPermissionResponse_builder

type BulkCheckPermissionResponse_builder struct {
	CheckedAt *ZedToken
	Pairs     []*BulkCheckPermissionPair
	// contains filtered or unexported fields
}

func (BulkCheckPermissionResponse_builder) Build

type BulkExportRelationshipsRequest

type BulkExportRelationshipsRequest struct {
	Consistency *Consistency `protobuf:"bytes,1,opt,name=consistency,proto3" json:"consistency,omitempty"`
	// optional_limit, if non-zero, specifies the limit on the number of
	// relationships the server can return in one page. By default, the server
	// will pick a page size, and the server is free to choose a smaller size
	// at will.
	OptionalLimit uint32 `protobuf:"varint,2,opt,name=optional_limit,json=optionalLimit,proto3" json:"optional_limit,omitempty"`
	// optional_cursor, if specified, indicates the cursor after which results
	// should resume being returned. The cursor can be found on the
	// BulkExportRelationshipsResponse object.
	OptionalCursor *Cursor `protobuf:"bytes,3,opt,name=optional_cursor,json=optionalCursor,proto3" json:"optional_cursor,omitempty"`
	// optional_relationship_filter, if specified, indicates the
	// filter to apply to each relationship to be exported.
	OptionalRelationshipFilter *RelationshipFilter `` /* 141-byte string literal not displayed */
	// contains filtered or unexported fields
}

BulkExportRelationshipsRequest represents a resumable request for all relationships from the server.

func (*BulkExportRelationshipsRequest) ClearConsistency

func (x *BulkExportRelationshipsRequest) ClearConsistency()

func (*BulkExportRelationshipsRequest) ClearOptionalCursor

func (x *BulkExportRelationshipsRequest) ClearOptionalCursor()

func (*BulkExportRelationshipsRequest) ClearOptionalRelationshipFilter

func (x *BulkExportRelationshipsRequest) ClearOptionalRelationshipFilter()

func (*BulkExportRelationshipsRequest) GetConsistency

func (x *BulkExportRelationshipsRequest) GetConsistency() *Consistency

func (*BulkExportRelationshipsRequest) GetOptionalCursor

func (x *BulkExportRelationshipsRequest) GetOptionalCursor() *Cursor

func (*BulkExportRelationshipsRequest) GetOptionalLimit

func (x *BulkExportRelationshipsRequest) GetOptionalLimit() uint32

func (*BulkExportRelationshipsRequest) GetOptionalRelationshipFilter

func (x *BulkExportRelationshipsRequest) GetOptionalRelationshipFilter() *RelationshipFilter

func (*BulkExportRelationshipsRequest) HasConsistency

func (x *BulkExportRelationshipsRequest) HasConsistency() bool

func (*BulkExportRelationshipsRequest) HasOptionalCursor

func (x *BulkExportRelationshipsRequest) HasOptionalCursor() bool

func (*BulkExportRelationshipsRequest) HasOptionalRelationshipFilter

func (x *BulkExportRelationshipsRequest) HasOptionalRelationshipFilter() bool

func (*BulkExportRelationshipsRequest) ProtoMessage

func (*BulkExportRelationshipsRequest) ProtoMessage()

func (*BulkExportRelationshipsRequest) ProtoReflect

func (*BulkExportRelationshipsRequest) Reset

func (x *BulkExportRelationshipsRequest) Reset()

func (*BulkExportRelationshipsRequest) SetConsistency

func (x *BulkExportRelationshipsRequest) SetConsistency(v *Consistency)

func (*BulkExportRelationshipsRequest) SetOptionalCursor

func (x *BulkExportRelationshipsRequest) SetOptionalCursor(v *Cursor)

func (*BulkExportRelationshipsRequest) SetOptionalLimit

func (x *BulkExportRelationshipsRequest) SetOptionalLimit(v uint32)

func (*BulkExportRelationshipsRequest) SetOptionalRelationshipFilter

func (x *BulkExportRelationshipsRequest) SetOptionalRelationshipFilter(v *RelationshipFilter)

func (*BulkExportRelationshipsRequest) String

type BulkExportRelationshipsRequest_builder

type BulkExportRelationshipsRequest_builder struct {
	Consistency *Consistency
	// optional_limit, if non-zero, specifies the limit on the number of
	// relationships the server can return in one page. By default, the server
	// will pick a page size, and the server is free to choose a smaller size
	// at will.
	OptionalLimit uint32
	// optional_cursor, if specified, indicates the cursor after which results
	// should resume being returned. The cursor can be found on the
	// BulkExportRelationshipsResponse object.
	OptionalCursor *Cursor
	// optional_relationship_filter, if specified, indicates the
	// filter to apply to each relationship to be exported.
	OptionalRelationshipFilter *RelationshipFilter
	// contains filtered or unexported fields
}

func (BulkExportRelationshipsRequest_builder) Build

type BulkExportRelationshipsResponse

type BulkExportRelationshipsResponse struct {
	AfterResultCursor *Cursor         `protobuf:"bytes,1,opt,name=after_result_cursor,json=afterResultCursor,proto3" json:"after_result_cursor,omitempty"`
	Relationships     []*Relationship `protobuf:"bytes,2,rep,name=relationships,proto3" json:"relationships,omitempty"`
	// contains filtered or unexported fields
}

BulkExportRelationshipsResponse is one page in a stream of relationship groups that meet the criteria specified by the originating request. The server will continue to stream back relationship groups as quickly as it can until all relationships have been transmitted back.

func (*BulkExportRelationshipsResponse) ClearAfterResultCursor

func (x *BulkExportRelationshipsResponse) ClearAfterResultCursor()

func (*BulkExportRelationshipsResponse) GetAfterResultCursor

func (x *BulkExportRelationshipsResponse) GetAfterResultCursor() *Cursor

func (*BulkExportRelationshipsResponse) GetRelationships

func (x *BulkExportRelationshipsResponse) GetRelationships() []*Relationship

func (*BulkExportRelationshipsResponse) HasAfterResultCursor

func (x *BulkExportRelationshipsResponse) HasAfterResultCursor() bool

func (*BulkExportRelationshipsResponse) ProtoMessage

func (*BulkExportRelationshipsResponse) ProtoMessage()

func (*BulkExportRelationshipsResponse) ProtoReflect

func (*BulkExportRelationshipsResponse) Reset

func (*BulkExportRelationshipsResponse) SetAfterResultCursor

func (x *BulkExportRelationshipsResponse) SetAfterResultCursor(v *Cursor)

func (*BulkExportRelationshipsResponse) SetRelationships

func (x *BulkExportRelationshipsResponse) SetRelationships(v []*Relationship)

func (*BulkExportRelationshipsResponse) String

type BulkExportRelationshipsResponse_builder

type BulkExportRelationshipsResponse_builder struct {
	AfterResultCursor *Cursor
	Relationships     []*Relationship
	// contains filtered or unexported fields
}

func (BulkExportRelationshipsResponse_builder) Build

type BulkImportRelationshipsRequest

type BulkImportRelationshipsRequest struct {
	Relationships []*Relationship `protobuf:"bytes,1,rep,name=relationships,proto3" json:"relationships,omitempty"`
	// contains filtered or unexported fields
}

BulkImportRelationshipsRequest represents one batch of the streaming BulkImportRelationships API. The maximum size is only limited by the backing datastore, and optimal size should be determined by the calling client experimentally. When BulkImport is invoked and receives its first request message, a transaction is opened to import the relationships. All requests sent to the same invocation are executed under this single transaction. If a relationship already exists within the datastore, the entire transaction will fail with an error.

func (*BulkImportRelationshipsRequest) GetRelationships

func (x *BulkImportRelationshipsRequest) GetRelationships() []*Relationship

func (*BulkImportRelationshipsRequest) ProtoMessage

func (*BulkImportRelationshipsRequest) ProtoMessage()

func (*BulkImportRelationshipsRequest) ProtoReflect

func (*BulkImportRelationshipsRequest) Reset

func (x *BulkImportRelationshipsRequest) Reset()

func (*BulkImportRelationshipsRequest) SetRelationships

func (x *BulkImportRelationshipsRequest) SetRelationships(v []*Relationship)

func (*BulkImportRelationshipsRequest) String

type BulkImportRelationshipsRequest_builder

type BulkImportRelationshipsRequest_builder struct {
	Relationships []*Relationship
	// contains filtered or unexported fields
}

func (BulkImportRelationshipsRequest_builder) Build

type BulkImportRelationshipsResponse

type BulkImportRelationshipsResponse struct {
	NumLoaded uint64 `protobuf:"varint,1,opt,name=num_loaded,json=numLoaded,proto3" json:"num_loaded,omitempty"`
	// contains filtered or unexported fields
}

BulkImportRelationshipsResponse is returned on successful completion of the bulk load stream, and contains the total number of relationships loaded.

func (*BulkImportRelationshipsResponse) GetNumLoaded

func (x *BulkImportRelationshipsResponse) GetNumLoaded() uint64

func (*BulkImportRelationshipsResponse) ProtoMessage

func (*BulkImportRelationshipsResponse) ProtoMessage()

func (*BulkImportRelationshipsResponse) ProtoReflect

func (*BulkImportRelationshipsResponse) Reset

func (*BulkImportRelationshipsResponse) SetNumLoaded

func (x *BulkImportRelationshipsResponse) SetNumLoaded(v uint64)

func (*BulkImportRelationshipsResponse) String

type BulkImportRelationshipsResponse_builder

type BulkImportRelationshipsResponse_builder struct {
	NumLoaded uint64
	// contains filtered or unexported fields
}

func (BulkImportRelationshipsResponse_builder) Build

type CaveatEvalInfo

type CaveatEvalInfo struct {

	// expression is the expression that was evaluated.
	Expression string `protobuf:"bytes,1,opt,name=expression,proto3" json:"expression,omitempty"`
	// result is the result of the evaluation.
	Result CaveatEvalInfo_Result `protobuf:"varint,2,opt,name=result,proto3,enum=authzed.api.v1.CaveatEvalInfo_Result" json:"result,omitempty"`
	// context consists of any named values that were used for evaluating the caveat expression.
	Context *structpb.Struct `protobuf:"bytes,3,opt,name=context,proto3" json:"context,omitempty"`
	// partial_caveat_info holds information of a partially-evaluated caveated response, if applicable.
	PartialCaveatInfo *PartialCaveatInfo `protobuf:"bytes,4,opt,name=partial_caveat_info,json=partialCaveatInfo,proto3" json:"partial_caveat_info,omitempty"`
	// caveat_name is the name of the caveat that was executed, if applicable.
	CaveatName string `protobuf:"bytes,5,opt,name=caveat_name,json=caveatName,proto3" json:"caveat_name,omitempty"`
	// contains filtered or unexported fields
}

CaveatEvalInfo holds information about a caveat expression that was evaluated.

func (*CaveatEvalInfo) ClearContext

func (x *CaveatEvalInfo) ClearContext()

func (*CaveatEvalInfo) ClearPartialCaveatInfo

func (x *CaveatEvalInfo) ClearPartialCaveatInfo()

func (*CaveatEvalInfo) GetCaveatName

func (x *CaveatEvalInfo) GetCaveatName() string

func (*CaveatEvalInfo) GetContext

func (x *CaveatEvalInfo) GetContext() *structpb.Struct

func (*CaveatEvalInfo) GetExpression

func (x *CaveatEvalInfo) GetExpression() string

func (*CaveatEvalInfo) GetPartialCaveatInfo

func (x *CaveatEvalInfo) GetPartialCaveatInfo() *PartialCaveatInfo

func (*CaveatEvalInfo) GetResult

func (x *CaveatEvalInfo) GetResult() CaveatEvalInfo_Result

func (*CaveatEvalInfo) HasContext

func (x *CaveatEvalInfo) HasContext() bool

func (*CaveatEvalInfo) HasPartialCaveatInfo

func (x *CaveatEvalInfo) HasPartialCaveatInfo() bool

func (*CaveatEvalInfo) ProtoMessage

func (*CaveatEvalInfo) ProtoMessage()

func (*CaveatEvalInfo) ProtoReflect

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

func (*CaveatEvalInfo) Reset

func (x *CaveatEvalInfo) Reset()

func (*CaveatEvalInfo) SetCaveatName

func (x *CaveatEvalInfo) SetCaveatName(v string)

func (*CaveatEvalInfo) SetContext

func (x *CaveatEvalInfo) SetContext(v *structpb.Struct)

func (*CaveatEvalInfo) SetExpression

func (x *CaveatEvalInfo) SetExpression(v string)

func (*CaveatEvalInfo) SetPartialCaveatInfo

func (x *CaveatEvalInfo) SetPartialCaveatInfo(v *PartialCaveatInfo)

func (*CaveatEvalInfo) SetResult

func (x *CaveatEvalInfo) SetResult(v CaveatEvalInfo_Result)

func (*CaveatEvalInfo) String

func (x *CaveatEvalInfo) String() string

type CaveatEvalInfo_Result

type CaveatEvalInfo_Result int32
const (
	CaveatEvalInfo_RESULT_UNSPECIFIED          CaveatEvalInfo_Result = 0
	CaveatEvalInfo_RESULT_UNEVALUATED          CaveatEvalInfo_Result = 1
	CaveatEvalInfo_RESULT_FALSE                CaveatEvalInfo_Result = 2
	CaveatEvalInfo_RESULT_TRUE                 CaveatEvalInfo_Result = 3
	CaveatEvalInfo_RESULT_MISSING_SOME_CONTEXT CaveatEvalInfo_Result = 4
)

func (CaveatEvalInfo_Result) Descriptor

func (CaveatEvalInfo_Result) Enum

func (CaveatEvalInfo_Result) Number

func (CaveatEvalInfo_Result) String

func (x CaveatEvalInfo_Result) String() string

func (CaveatEvalInfo_Result) Type

type CaveatEvalInfo_builder

type CaveatEvalInfo_builder struct {

	// expression is the expression that was evaluated.
	Expression string
	// result is the result of the evaluation.
	Result CaveatEvalInfo_Result
	// context consists of any named values that were used for evaluating the caveat expression.
	Context *structpb.Struct
	// partial_caveat_info holds information of a partially-evaluated caveated response, if applicable.
	PartialCaveatInfo *PartialCaveatInfo
	// caveat_name is the name of the caveat that was executed, if applicable.
	CaveatName string
	// contains filtered or unexported fields
}

func (CaveatEvalInfo_builder) Build

type CheckBulkPermissionsPair

type CheckBulkPermissionsPair struct {
	Request *CheckBulkPermissionsRequestItem `protobuf:"bytes,1,opt,name=request,proto3" json:"request,omitempty"`
	// Types that are valid to be assigned to Response:
	//
	//	*CheckBulkPermissionsPair_Item
	//	*CheckBulkPermissionsPair_Error
	Response isCheckBulkPermissionsPair_Response `protobuf_oneof:"response"`
	// contains filtered or unexported fields
}

func (*CheckBulkPermissionsPair) ClearError

func (x *CheckBulkPermissionsPair) ClearError()

func (*CheckBulkPermissionsPair) ClearItem

func (x *CheckBulkPermissionsPair) ClearItem()

func (*CheckBulkPermissionsPair) ClearRequest

func (x *CheckBulkPermissionsPair) ClearRequest()

func (*CheckBulkPermissionsPair) ClearResponse

func (x *CheckBulkPermissionsPair) ClearResponse()

func (*CheckBulkPermissionsPair) GetError

func (x *CheckBulkPermissionsPair) GetError() *status.Status

func (*CheckBulkPermissionsPair) GetItem

func (*CheckBulkPermissionsPair) GetRequest

func (*CheckBulkPermissionsPair) GetResponse

func (x *CheckBulkPermissionsPair) GetResponse() isCheckBulkPermissionsPair_Response

func (*CheckBulkPermissionsPair) HasError

func (x *CheckBulkPermissionsPair) HasError() bool

func (*CheckBulkPermissionsPair) HasItem

func (x *CheckBulkPermissionsPair) HasItem() bool

func (*CheckBulkPermissionsPair) HasRequest

func (x *CheckBulkPermissionsPair) HasRequest() bool

func (*CheckBulkPermissionsPair) HasResponse

func (x *CheckBulkPermissionsPair) HasResponse() bool

func (*CheckBulkPermissionsPair) ProtoMessage

func (*CheckBulkPermissionsPair) ProtoMessage()

func (*CheckBulkPermissionsPair) ProtoReflect

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

func (*CheckBulkPermissionsPair) Reset

func (x *CheckBulkPermissionsPair) Reset()

func (*CheckBulkPermissionsPair) SetError

func (x *CheckBulkPermissionsPair) SetError(v *status.Status)

func (*CheckBulkPermissionsPair) SetItem

func (*CheckBulkPermissionsPair) SetRequest

func (*CheckBulkPermissionsPair) String

func (x *CheckBulkPermissionsPair) String() string

func (*CheckBulkPermissionsPair) WhichResponse

func (x *CheckBulkPermissionsPair) WhichResponse() case_CheckBulkPermissionsPair_Response

type CheckBulkPermissionsPair_Error

type CheckBulkPermissionsPair_Error struct {
	Error *status.Status `protobuf:"bytes,3,opt,name=error,proto3,oneof"`
}

type CheckBulkPermissionsPair_Item

type CheckBulkPermissionsPair_Item struct {
	Item *CheckBulkPermissionsResponseItem `protobuf:"bytes,2,opt,name=item,proto3,oneof"`
}

type CheckBulkPermissionsPair_builder

type CheckBulkPermissionsPair_builder struct {
	Request *CheckBulkPermissionsRequestItem
	// Fields of oneof Response:
	Item  *CheckBulkPermissionsResponseItem
	Error *status.Status
	// contains filtered or unexported fields
}

func (CheckBulkPermissionsPair_builder) Build

type CheckBulkPermissionsRequest

type CheckBulkPermissionsRequest struct {
	Consistency *Consistency                       `protobuf:"bytes,1,opt,name=consistency,proto3" json:"consistency,omitempty"`
	Items       []*CheckBulkPermissionsRequestItem `protobuf:"bytes,2,rep,name=items,proto3" json:"items,omitempty"`
	// with_tracing, if true, indicates that each response should include a debug trace.
	// This can be useful for debugging and performance analysis, but adds a small amount
	// of compute overhead to the request.
	WithTracing bool `protobuf:"varint,3,opt,name=with_tracing,json=withTracing,proto3" json:"with_tracing,omitempty"`
	// contains filtered or unexported fields
}

CheckBulkPermissionsRequest issues a check on whether a subject has permission or is a member of a relation on a specific resource for each item in the list.

The ordering of the items in the response is maintained in the response. Checks with the same subject/permission will automatically be batched for performance optimization.

func (*CheckBulkPermissionsRequest) ClearConsistency

func (x *CheckBulkPermissionsRequest) ClearConsistency()

func (*CheckBulkPermissionsRequest) GetConsistency

func (x *CheckBulkPermissionsRequest) GetConsistency() *Consistency

func (*CheckBulkPermissionsRequest) GetItems

func (*CheckBulkPermissionsRequest) GetWithTracing

func (x *CheckBulkPermissionsRequest) GetWithTracing() bool

func (*CheckBulkPermissionsRequest) HasConsistency

func (x *CheckBulkPermissionsRequest) HasConsistency() bool

func (*CheckBulkPermissionsRequest) ProtoMessage

func (*CheckBulkPermissionsRequest) ProtoMessage()

func (*CheckBulkPermissionsRequest) ProtoReflect

func (*CheckBulkPermissionsRequest) Reset

func (x *CheckBulkPermissionsRequest) Reset()

func (*CheckBulkPermissionsRequest) SetConsistency

func (x *CheckBulkPermissionsRequest) SetConsistency(v *Consistency)

func (*CheckBulkPermissionsRequest) SetItems

func (*CheckBulkPermissionsRequest) SetWithTracing

func (x *CheckBulkPermissionsRequest) SetWithTracing(v bool)

func (*CheckBulkPermissionsRequest) String

func (x *CheckBulkPermissionsRequest) String() string

type CheckBulkPermissionsRequestItem

type CheckBulkPermissionsRequestItem struct {
	Resource   *ObjectReference  `protobuf:"bytes,1,opt,name=resource,proto3" json:"resource,omitempty"`
	Permission string            `protobuf:"bytes,2,opt,name=permission,proto3" json:"permission,omitempty"`
	Subject    *SubjectReference `protobuf:"bytes,3,opt,name=subject,proto3" json:"subject,omitempty"`
	Context    *structpb.Struct  `protobuf:"bytes,4,opt,name=context,proto3" json:"context,omitempty"`
	// contains filtered or unexported fields
}

func (*CheckBulkPermissionsRequestItem) ClearContext

func (x *CheckBulkPermissionsRequestItem) ClearContext()

func (*CheckBulkPermissionsRequestItem) ClearResource

func (x *CheckBulkPermissionsRequestItem) ClearResource()

func (*CheckBulkPermissionsRequestItem) ClearSubject

func (x *CheckBulkPermissionsRequestItem) ClearSubject()

func (*CheckBulkPermissionsRequestItem) GetContext

func (*CheckBulkPermissionsRequestItem) GetPermission

func (x *CheckBulkPermissionsRequestItem) GetPermission() string

func (*CheckBulkPermissionsRequestItem) GetResource

func (*CheckBulkPermissionsRequestItem) GetSubject

func (*CheckBulkPermissionsRequestItem) HasContext

func (x *CheckBulkPermissionsRequestItem) HasContext() bool

func (*CheckBulkPermissionsRequestItem) HasResource

func (x *CheckBulkPermissionsRequestItem) HasResource() bool

func (*CheckBulkPermissionsRequestItem) HasSubject

func (x *CheckBulkPermissionsRequestItem) HasSubject() bool

func (*CheckBulkPermissionsRequestItem) ProtoMessage

func (*CheckBulkPermissionsRequestItem) ProtoMessage()

func (*CheckBulkPermissionsRequestItem) ProtoReflect

func (*CheckBulkPermissionsRequestItem) Reset

func (*CheckBulkPermissionsRequestItem) SetContext

func (*CheckBulkPermissionsRequestItem) SetPermission

func (x *CheckBulkPermissionsRequestItem) SetPermission(v string)

func (*CheckBulkPermissionsRequestItem) SetResource

func (*CheckBulkPermissionsRequestItem) SetSubject

func (*CheckBulkPermissionsRequestItem) String

type CheckBulkPermissionsRequestItem_builder

type CheckBulkPermissionsRequestItem_builder struct {
	Resource   *ObjectReference
	Permission string
	Subject    *SubjectReference
	Context    *structpb.Struct
	// contains filtered or unexported fields
}

func (CheckBulkPermissionsRequestItem_builder) Build

type CheckBulkPermissionsRequest_builder

type CheckBulkPermissionsRequest_builder struct {
	Consistency *Consistency
	Items       []*CheckBulkPermissionsRequestItem
	// with_tracing, if true, indicates that each response should include a debug trace.
	// This can be useful for debugging and performance analysis, but adds a small amount
	// of compute overhead to the request.
	WithTracing bool
	// contains filtered or unexported fields
}

func (CheckBulkPermissionsRequest_builder) Build

type CheckBulkPermissionsResponse

type CheckBulkPermissionsResponse struct {
	CheckedAt *ZedToken                   `protobuf:"bytes,1,opt,name=checked_at,json=checkedAt,proto3" json:"checked_at,omitempty"`
	Pairs     []*CheckBulkPermissionsPair `protobuf:"bytes,2,rep,name=pairs,proto3" json:"pairs,omitempty"`
	// contains filtered or unexported fields
}

func (*CheckBulkPermissionsResponse) ClearCheckedAt

func (x *CheckBulkPermissionsResponse) ClearCheckedAt()

func (*CheckBulkPermissionsResponse) GetCheckedAt

func (x *CheckBulkPermissionsResponse) GetCheckedAt() *ZedToken

func (*CheckBulkPermissionsResponse) GetPairs

func (*CheckBulkPermissionsResponse) HasCheckedAt

func (x *CheckBulkPermissionsResponse) HasCheckedAt() bool

func (*CheckBulkPermissionsResponse) ProtoMessage

func (*CheckBulkPermissionsResponse) ProtoMessage()

func (*CheckBulkPermissionsResponse) ProtoReflect

func (*CheckBulkPermissionsResponse) Reset

func (x *CheckBulkPermissionsResponse) Reset()

func (*CheckBulkPermissionsResponse) SetCheckedAt

func (x *CheckBulkPermissionsResponse) SetCheckedAt(v *ZedToken)

func (*CheckBulkPermissionsResponse) SetPairs

func (*CheckBulkPermissionsResponse) String

type CheckBulkPermissionsResponseItem

type CheckBulkPermissionsResponseItem struct {
	Permissionship    CheckPermissionResponse_Permissionship `` /* 141-byte string literal not displayed */
	PartialCaveatInfo *PartialCaveatInfo                     `protobuf:"bytes,2,opt,name=partial_caveat_info,json=partialCaveatInfo,proto3" json:"partial_caveat_info,omitempty"`
	// debug_trace is the debugging trace of this check, if requested.
	DebugTrace *DebugInformation `protobuf:"bytes,3,opt,name=debug_trace,json=debugTrace,proto3" json:"debug_trace,omitempty"`
	// contains filtered or unexported fields
}

func (*CheckBulkPermissionsResponseItem) ClearDebugTrace

func (x *CheckBulkPermissionsResponseItem) ClearDebugTrace()

func (*CheckBulkPermissionsResponseItem) ClearPartialCaveatInfo

func (x *CheckBulkPermissionsResponseItem) ClearPartialCaveatInfo()

func (*CheckBulkPermissionsResponseItem) GetDebugTrace

func (*CheckBulkPermissionsResponseItem) GetPartialCaveatInfo

func (x *CheckBulkPermissionsResponseItem) GetPartialCaveatInfo() *PartialCaveatInfo

func (*CheckBulkPermissionsResponseItem) GetPermissionship

func (*CheckBulkPermissionsResponseItem) HasDebugTrace

func (x *CheckBulkPermissionsResponseItem) HasDebugTrace() bool

func (*CheckBulkPermissionsResponseItem) HasPartialCaveatInfo

func (x *CheckBulkPermissionsResponseItem) HasPartialCaveatInfo() bool

func (*CheckBulkPermissionsResponseItem) ProtoMessage

func (*CheckBulkPermissionsResponseItem) ProtoMessage()

func (*CheckBulkPermissionsResponseItem) ProtoReflect

func (*CheckBulkPermissionsResponseItem) Reset

func (*CheckBulkPermissionsResponseItem) SetDebugTrace

func (*CheckBulkPermissionsResponseItem) SetPartialCaveatInfo

func (x *CheckBulkPermissionsResponseItem) SetPartialCaveatInfo(v *PartialCaveatInfo)

func (*CheckBulkPermissionsResponseItem) SetPermissionship

func (*CheckBulkPermissionsResponseItem) String

type CheckBulkPermissionsResponseItem_builder

type CheckBulkPermissionsResponseItem_builder struct {
	Permissionship    CheckPermissionResponse_Permissionship
	PartialCaveatInfo *PartialCaveatInfo
	// debug_trace is the debugging trace of this check, if requested.
	DebugTrace *DebugInformation
	// contains filtered or unexported fields
}

func (CheckBulkPermissionsResponseItem_builder) Build

type CheckBulkPermissionsResponse_builder

type CheckBulkPermissionsResponse_builder struct {
	CheckedAt *ZedToken
	Pairs     []*CheckBulkPermissionsPair
	// contains filtered or unexported fields
}

func (CheckBulkPermissionsResponse_builder) Build

type CheckDebugTrace

type CheckDebugTrace struct {

	// resource holds the resource on which the Check was performed.
	// for batched calls, the object_id field contains a comma-separated list of object IDs
	// for all the resources checked in the batch.
	Resource *ObjectReference `protobuf:"bytes,1,opt,name=resource,proto3" json:"resource,omitempty"`
	// permission holds the name of the permission or relation on which the Check was performed.
	Permission string `protobuf:"bytes,2,opt,name=permission,proto3" json:"permission,omitempty"`
	// permission_type holds information indicating whether it was a permission or relation.
	PermissionType CheckDebugTrace_PermissionType `` /* 155-byte string literal not displayed */
	// subject holds the subject on which the Check was performed. This will be static across all calls within
	// the same Check tree.
	Subject *SubjectReference `protobuf:"bytes,4,opt,name=subject,proto3" json:"subject,omitempty"`
	// result holds the result of the Check call.
	Result CheckDebugTrace_Permissionship `protobuf:"varint,5,opt,name=result,proto3,enum=authzed.api.v1.CheckDebugTrace_Permissionship" json:"result,omitempty"`
	// caveat_evaluation_info holds information about the caveat evaluated for this step of the trace.
	CaveatEvaluationInfo *CaveatEvalInfo `protobuf:"bytes,8,opt,name=caveat_evaluation_info,json=caveatEvaluationInfo,proto3" json:"caveat_evaluation_info,omitempty"`
	// duration holds the time spent executing this Check operation.
	Duration *durationpb.Duration `protobuf:"bytes,9,opt,name=duration,proto3" json:"duration,omitempty"`
	// resolution holds information about how the problem was resolved.
	//
	// Types that are valid to be assigned to Resolution:
	//
	//	*CheckDebugTrace_WasCachedResult
	//	*CheckDebugTrace_SubProblems_
	Resolution isCheckDebugTrace_Resolution `protobuf_oneof:"resolution"`
	// optional_expires_at is the time at which at least one of the relationships used to
	// compute this result, expires (if any). This is *not* related to the caching window.
	OptionalExpiresAt *timestamppb.Timestamp `protobuf:"bytes,10,opt,name=optional_expires_at,json=optionalExpiresAt,proto3" json:"optional_expires_at,omitempty"`
	// trace_operation_id is a unique identifier for this trace's operation, that will
	// be shared for all traces created for the same check operation in SpiceDB.
	//
	// In cases where SpiceDB performs automatic batching of subproblems, this ID can be used
	// to correlate work that was shared across multiple traces.
	//
	// This identifier is generated by SpiceDB, is to be considered opaque to the caller
	// and only guaranteed to be unique within the same overall Check or CheckBulk operation.
	TraceOperationId string `protobuf:"bytes,11,opt,name=trace_operation_id,json=traceOperationId,proto3" json:"trace_operation_id,omitempty"`
	// source holds the source of the result. It is of the form:
	// `<sourcetype>:<sourceid>`, where sourcetype can be, among others:
	// `spicedb`, `materialize`, etc.
	Source string `protobuf:"bytes,12,opt,name=source,proto3" json:"source,omitempty"`
	// contains filtered or unexported fields
}

CheckDebugTrace is a recursive trace of the requests made for resolving a CheckPermission API call.

func (*CheckDebugTrace) ClearCaveatEvaluationInfo

func (x *CheckDebugTrace) ClearCaveatEvaluationInfo()

func (*CheckDebugTrace) ClearDuration

func (x *CheckDebugTrace) ClearDuration()

func (*CheckDebugTrace) ClearOptionalExpiresAt

func (x *CheckDebugTrace) ClearOptionalExpiresAt()

func (*CheckDebugTrace) ClearResolution

func (x *CheckDebugTrace) ClearResolution()

func (*CheckDebugTrace) ClearResource

func (x *CheckDebugTrace) ClearResource()

func (*CheckDebugTrace) ClearSubProblems

func (x *CheckDebugTrace) ClearSubProblems()

func (*CheckDebugTrace) ClearSubject

func (x *CheckDebugTrace) ClearSubject()

func (*CheckDebugTrace) ClearWasCachedResult

func (x *CheckDebugTrace) ClearWasCachedResult()

func (*CheckDebugTrace) GetCaveatEvaluationInfo

func (x *CheckDebugTrace) GetCaveatEvaluationInfo() *CaveatEvalInfo

func (*CheckDebugTrace) GetDuration

func (x *CheckDebugTrace) GetDuration() *durationpb.Duration

func (*CheckDebugTrace) GetOptionalExpiresAt

func (x *CheckDebugTrace) GetOptionalExpiresAt() *timestamppb.Timestamp

func (*CheckDebugTrace) GetPermission

func (x *CheckDebugTrace) GetPermission() string

func (*CheckDebugTrace) GetPermissionType

func (x *CheckDebugTrace) GetPermissionType() CheckDebugTrace_PermissionType

func (*CheckDebugTrace) GetResolution

func (x *CheckDebugTrace) GetResolution() isCheckDebugTrace_Resolution

func (*CheckDebugTrace) GetResource

func (x *CheckDebugTrace) GetResource() *ObjectReference

func (*CheckDebugTrace) GetResult

func (*CheckDebugTrace) GetSource

func (x *CheckDebugTrace) GetSource() string

func (*CheckDebugTrace) GetSubProblems

func (x *CheckDebugTrace) GetSubProblems() *CheckDebugTrace_SubProblems

func (*CheckDebugTrace) GetSubject

func (x *CheckDebugTrace) GetSubject() *SubjectReference

func (*CheckDebugTrace) GetTraceOperationId

func (x *CheckDebugTrace) GetTraceOperationId() string

func (*CheckDebugTrace) GetWasCachedResult

func (x *CheckDebugTrace) GetWasCachedResult() bool

func (*CheckDebugTrace) HasCaveatEvaluationInfo

func (x *CheckDebugTrace) HasCaveatEvaluationInfo() bool

func (*CheckDebugTrace) HasDuration

func (x *CheckDebugTrace) HasDuration() bool

func (*CheckDebugTrace) HasOptionalExpiresAt

func (x *CheckDebugTrace) HasOptionalExpiresAt() bool

func (*CheckDebugTrace) HasResolution

func (x *CheckDebugTrace) HasResolution() bool

func (*CheckDebugTrace) HasResource

func (x *CheckDebugTrace) HasResource() bool

func (*CheckDebugTrace) HasSubProblems

func (x *CheckDebugTrace) HasSubProblems() bool

func (*CheckDebugTrace) HasSubject

func (x *CheckDebugTrace) HasSubject() bool

func (*CheckDebugTrace) HasWasCachedResult

func (x *CheckDebugTrace) HasWasCachedResult() bool

func (*CheckDebugTrace) ProtoMessage

func (*CheckDebugTrace) ProtoMessage()

func (*CheckDebugTrace) ProtoReflect

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

func (*CheckDebugTrace) Reset

func (x *CheckDebugTrace) Reset()

func (*CheckDebugTrace) SetCaveatEvaluationInfo

func (x *CheckDebugTrace) SetCaveatEvaluationInfo(v *CaveatEvalInfo)

func (*CheckDebugTrace) SetDuration

func (x *CheckDebugTrace) SetDuration(v *durationpb.Duration)

func (*CheckDebugTrace) SetOptionalExpiresAt

func (x *CheckDebugTrace) SetOptionalExpiresAt(v *timestamppb.Timestamp)

func (*CheckDebugTrace) SetPermission

func (x *CheckDebugTrace) SetPermission(v string)

func (*CheckDebugTrace) SetPermissionType

func (x *CheckDebugTrace) SetPermissionType(v CheckDebugTrace_PermissionType)

func (*CheckDebugTrace) SetResource

func (x *CheckDebugTrace) SetResource(v *ObjectReference)

func (*CheckDebugTrace) SetResult

func (*CheckDebugTrace) SetSource

func (x *CheckDebugTrace) SetSource(v string)

func (*CheckDebugTrace) SetSubProblems

func (x *CheckDebugTrace) SetSubProblems(v *CheckDebugTrace_SubProblems)

func (*CheckDebugTrace) SetSubject

func (x *CheckDebugTrace) SetSubject(v *SubjectReference)

func (*CheckDebugTrace) SetTraceOperationId

func (x *CheckDebugTrace) SetTraceOperationId(v string)

func (*CheckDebugTrace) SetWasCachedResult

func (x *CheckDebugTrace) SetWasCachedResult(v bool)

func (*CheckDebugTrace) String

func (x *CheckDebugTrace) String() string

func (*CheckDebugTrace) WhichResolution

func (x *CheckDebugTrace) WhichResolution() case_CheckDebugTrace_Resolution

type CheckDebugTrace_PermissionType

type CheckDebugTrace_PermissionType int32
const (
	CheckDebugTrace_PERMISSION_TYPE_UNSPECIFIED CheckDebugTrace_PermissionType = 0
	CheckDebugTrace_PERMISSION_TYPE_RELATION    CheckDebugTrace_PermissionType = 1
	CheckDebugTrace_PERMISSION_TYPE_PERMISSION  CheckDebugTrace_PermissionType = 2
)

func (CheckDebugTrace_PermissionType) Descriptor

func (CheckDebugTrace_PermissionType) Enum

func (CheckDebugTrace_PermissionType) Number

func (CheckDebugTrace_PermissionType) String

func (CheckDebugTrace_PermissionType) Type

type CheckDebugTrace_Permissionship

type CheckDebugTrace_Permissionship int32
const (
	CheckDebugTrace_PERMISSIONSHIP_UNSPECIFIED            CheckDebugTrace_Permissionship = 0
	CheckDebugTrace_PERMISSIONSHIP_NO_PERMISSION          CheckDebugTrace_Permissionship = 1
	CheckDebugTrace_PERMISSIONSHIP_HAS_PERMISSION         CheckDebugTrace_Permissionship = 2
	CheckDebugTrace_PERMISSIONSHIP_CONDITIONAL_PERMISSION CheckDebugTrace_Permissionship = 3
)

func (CheckDebugTrace_Permissionship) Descriptor

func (CheckDebugTrace_Permissionship) Enum

func (CheckDebugTrace_Permissionship) Number

func (CheckDebugTrace_Permissionship) String

func (CheckDebugTrace_Permissionship) Type

type CheckDebugTrace_SubProblems

type CheckDebugTrace_SubProblems struct {
	Traces []*CheckDebugTrace `protobuf:"bytes,1,rep,name=traces,proto3" json:"traces,omitempty"`
	// contains filtered or unexported fields
}

func (*CheckDebugTrace_SubProblems) GetTraces

func (x *CheckDebugTrace_SubProblems) GetTraces() []*CheckDebugTrace

func (*CheckDebugTrace_SubProblems) ProtoMessage

func (*CheckDebugTrace_SubProblems) ProtoMessage()

func (*CheckDebugTrace_SubProblems) ProtoReflect

func (*CheckDebugTrace_SubProblems) Reset

func (x *CheckDebugTrace_SubProblems) Reset()

func (*CheckDebugTrace_SubProblems) SetTraces

func (x *CheckDebugTrace_SubProblems) SetTraces(v []*CheckDebugTrace)

func (*CheckDebugTrace_SubProblems) String

func (x *CheckDebugTrace_SubProblems) String() string

type CheckDebugTrace_SubProblems_

type CheckDebugTrace_SubProblems_ struct {
	// sub_problems holds the sub problems that were executed to resolve the answer to this Check. An empty list
	// and a permissionship of PERMISSIONSHIP_HAS_PERMISSION indicates the subject was found within this relation.
	SubProblems *CheckDebugTrace_SubProblems `protobuf:"bytes,7,opt,name=sub_problems,json=subProblems,proto3,oneof"`
}

type CheckDebugTrace_SubProblems_builder

type CheckDebugTrace_SubProblems_builder struct {
	Traces []*CheckDebugTrace
	// contains filtered or unexported fields
}

func (CheckDebugTrace_SubProblems_builder) Build

type CheckDebugTrace_WasCachedResult

type CheckDebugTrace_WasCachedResult struct {
	// was_cached_result, if true, indicates that the result was found in the cache and returned directly.
	WasCachedResult bool `protobuf:"varint,6,opt,name=was_cached_result,json=wasCachedResult,proto3,oneof"`
}

type CheckDebugTrace_builder

type CheckDebugTrace_builder struct {

	// resource holds the resource on which the Check was performed.
	// for batched calls, the object_id field contains a comma-separated list of object IDs
	// for all the resources checked in the batch.
	Resource *ObjectReference
	// permission holds the name of the permission or relation on which the Check was performed.
	Permission string
	// permission_type holds information indicating whether it was a permission or relation.
	PermissionType CheckDebugTrace_PermissionType
	// subject holds the subject on which the Check was performed. This will be static across all calls within
	// the same Check tree.
	Subject *SubjectReference
	// result holds the result of the Check call.
	Result CheckDebugTrace_Permissionship
	// caveat_evaluation_info holds information about the caveat evaluated for this step of the trace.
	CaveatEvaluationInfo *CaveatEvalInfo
	// duration holds the time spent executing this Check operation.
	Duration *durationpb.Duration

	// Fields of oneof Resolution:
	// was_cached_result, if true, indicates that the result was found in the cache and returned directly.
	WasCachedResult *bool
	// sub_problems holds the sub problems that were executed to resolve the answer to this Check. An empty list
	// and a permissionship of PERMISSIONSHIP_HAS_PERMISSION indicates the subject was found within this relation.
	SubProblems *CheckDebugTrace_SubProblems
	// -- end of Resolution
	// optional_expires_at is the time at which at least one of the relationships used to
	// compute this result, expires (if any). This is *not* related to the caching window.
	OptionalExpiresAt *timestamppb.Timestamp
	// trace_operation_id is a unique identifier for this trace's operation, that will
	// be shared for all traces created for the same check operation in SpiceDB.
	//
	// In cases where SpiceDB performs automatic batching of subproblems, this ID can be used
	// to correlate work that was shared across multiple traces.
	//
	// This identifier is generated by SpiceDB, is to be considered opaque to the caller
	// and only guaranteed to be unique within the same overall Check or CheckBulk operation.
	TraceOperationId string
	// source holds the source of the result. It is of the form:
	// `<sourcetype>:<sourceid>`, where sourcetype can be, among others:
	// `spicedb`, `materialize`, etc.
	Source string
	// contains filtered or unexported fields
}

func (CheckDebugTrace_builder) Build

type CheckPermissionRequest

type CheckPermissionRequest struct {
	Consistency *Consistency `protobuf:"bytes,1,opt,name=consistency,proto3" json:"consistency,omitempty"`
	// resource is the resource on which to check the permission or relation.
	Resource *ObjectReference `protobuf:"bytes,2,opt,name=resource,proto3" json:"resource,omitempty"`
	// permission is the name of the permission (or relation) on which to execute
	// the check.
	Permission string `protobuf:"bytes,3,opt,name=permission,proto3" json:"permission,omitempty"`
	// subject is the subject that will be checked for the permission or relation.
	Subject *SubjectReference `protobuf:"bytes,4,opt,name=subject,proto3" json:"subject,omitempty"`
	// context consists of named values that are injected into the caveat evaluation context
	Context *structpb.Struct `protobuf:"bytes,5,opt,name=context,proto3" json:"context,omitempty"`
	// with_tracing, if true, indicates that the response should include a debug trace.
	// This can be useful for debugging and performance analysis, but adds a small amount
	// of compute overhead to the request.
	WithTracing bool `protobuf:"varint,6,opt,name=with_tracing,json=withTracing,proto3" json:"with_tracing,omitempty"`
	// contains filtered or unexported fields
}

CheckPermissionRequest issues a check on whether a subject has a permission or is a member of a relation, on a specific resource.

func (*CheckPermissionRequest) ClearConsistency

func (x *CheckPermissionRequest) ClearConsistency()

func (*CheckPermissionRequest) ClearContext

func (x *CheckPermissionRequest) ClearContext()

func (*CheckPermissionRequest) ClearResource

func (x *CheckPermissionRequest) ClearResource()

func (*CheckPermissionRequest) ClearSubject

func (x *CheckPermissionRequest) ClearSubject()

func (*CheckPermissionRequest) GetConsistency

func (x *CheckPermissionRequest) GetConsistency() *Consistency

func (*CheckPermissionRequest) GetContext

func (x *CheckPermissionRequest) GetContext() *structpb.Struct

func (*CheckPermissionRequest) GetPermission

func (x *CheckPermissionRequest) GetPermission() string

func (*CheckPermissionRequest) GetResource

func (x *CheckPermissionRequest) GetResource() *ObjectReference

func (*CheckPermissionRequest) GetSubject

func (x *CheckPermissionRequest) GetSubject() *SubjectReference

func (*CheckPermissionRequest) GetWithTracing

func (x *CheckPermissionRequest) GetWithTracing() bool

func (*CheckPermissionRequest) HasConsistency

func (x *CheckPermissionRequest) HasConsistency() bool

func (*CheckPermissionRequest) HasContext

func (x *CheckPermissionRequest) HasContext() bool

func (*CheckPermissionRequest) HasResource

func (x *CheckPermissionRequest) HasResource() bool

func (*CheckPermissionRequest) HasSubject

func (x *CheckPermissionRequest) HasSubject() bool

func (*CheckPermissionRequest) ProtoMessage

func (*CheckPermissionRequest) ProtoMessage()

func (*CheckPermissionRequest) ProtoReflect

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

func (*CheckPermissionRequest) Reset

func (x *CheckPermissionRequest) Reset()

func (*CheckPermissionRequest) SetConsistency

func (x *CheckPermissionRequest) SetConsistency(v *Consistency)

func (*CheckPermissionRequest) SetContext

func (x *CheckPermissionRequest) SetContext(v *structpb.Struct)

func (*CheckPermissionRequest) SetPermission

func (x *CheckPermissionRequest) SetPermission(v string)

func (*CheckPermissionRequest) SetResource

func (x *CheckPermissionRequest) SetResource(v *ObjectReference)

func (*CheckPermissionRequest) SetSubject

func (x *CheckPermissionRequest) SetSubject(v *SubjectReference)

func (*CheckPermissionRequest) SetWithTracing

func (x *CheckPermissionRequest) SetWithTracing(v bool)

func (*CheckPermissionRequest) String

func (x *CheckPermissionRequest) String() string

type CheckPermissionRequest_builder

type CheckPermissionRequest_builder struct {
	Consistency *Consistency
	// resource is the resource on which to check the permission or relation.
	Resource *ObjectReference
	// permission is the name of the permission (or relation) on which to execute
	// the check.
	Permission string
	// subject is the subject that will be checked for the permission or relation.
	Subject *SubjectReference
	// context consists of named values that are injected into the caveat evaluation context
	Context *structpb.Struct
	// with_tracing, if true, indicates that the response should include a debug trace.
	// This can be useful for debugging and performance analysis, but adds a small amount
	// of compute overhead to the request.
	WithTracing bool
	// contains filtered or unexported fields
}

func (CheckPermissionRequest_builder) Build

type CheckPermissionResponse

type CheckPermissionResponse struct {
	CheckedAt *ZedToken `protobuf:"bytes,1,opt,name=checked_at,json=checkedAt,proto3" json:"checked_at,omitempty"`
	// Permissionship communicates whether or not the subject has the requested
	// permission or has a relationship with the given resource, over the given
	// relation.
	//
	// This value will be authzed.api.v1.PERMISSIONSHIP_HAS_PERMISSION if the
	// requested subject is a member of the computed permission set or there
	// exists a relationship with the requested relation from the given resource
	// to the given subject.
	Permissionship CheckPermissionResponse_Permissionship `` /* 141-byte string literal not displayed */
	// partial_caveat_info holds information of a partially-evaluated caveated response
	PartialCaveatInfo *PartialCaveatInfo `protobuf:"bytes,3,opt,name=partial_caveat_info,json=partialCaveatInfo,proto3" json:"partial_caveat_info,omitempty"`
	// debug_trace is the debugging trace of this check, if requested.
	DebugTrace *DebugInformation `protobuf:"bytes,4,opt,name=debug_trace,json=debugTrace,proto3" json:"debug_trace,omitempty"`
	// optional_expires_at is the time at which at least one of the relationships used to
	// compute this result, expires (if any). This is *not* related to the caching window.
	OptionalExpiresAt *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=optional_expires_at,json=optionalExpiresAt,proto3" json:"optional_expires_at,omitempty"`
	// contains filtered or unexported fields
}

func (*CheckPermissionResponse) ClearCheckedAt

func (x *CheckPermissionResponse) ClearCheckedAt()

func (*CheckPermissionResponse) ClearDebugTrace

func (x *CheckPermissionResponse) ClearDebugTrace()

func (*CheckPermissionResponse) ClearOptionalExpiresAt

func (x *CheckPermissionResponse) ClearOptionalExpiresAt()

func (*CheckPermissionResponse) ClearPartialCaveatInfo

func (x *CheckPermissionResponse) ClearPartialCaveatInfo()

func (*CheckPermissionResponse) GetCheckedAt

func (x *CheckPermissionResponse) GetCheckedAt() *ZedToken

func (*CheckPermissionResponse) GetDebugTrace

func (x *CheckPermissionResponse) GetDebugTrace() *DebugInformation

func (*CheckPermissionResponse) GetOptionalExpiresAt

func (x *CheckPermissionResponse) GetOptionalExpiresAt() *timestamppb.Timestamp

func (*CheckPermissionResponse) GetPartialCaveatInfo

func (x *CheckPermissionResponse) GetPartialCaveatInfo() *PartialCaveatInfo

func (*CheckPermissionResponse) GetPermissionship

func (*CheckPermissionResponse) HasCheckedAt

func (x *CheckPermissionResponse) HasCheckedAt() bool

func (*CheckPermissionResponse) HasDebugTrace

func (x *CheckPermissionResponse) HasDebugTrace() bool

func (*CheckPermissionResponse) HasOptionalExpiresAt

func (x *CheckPermissionResponse) HasOptionalExpiresAt() bool

func (*CheckPermissionResponse) HasPartialCaveatInfo

func (x *CheckPermissionResponse) HasPartialCaveatInfo() bool

func (*CheckPermissionResponse) ProtoMessage

func (*CheckPermissionResponse) ProtoMessage()

func (*CheckPermissionResponse) ProtoReflect

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

func (*CheckPermissionResponse) Reset

func (x *CheckPermissionResponse) Reset()

func (*CheckPermissionResponse) SetCheckedAt

func (x *CheckPermissionResponse) SetCheckedAt(v *ZedToken)

func (*CheckPermissionResponse) SetDebugTrace

func (x *CheckPermissionResponse) SetDebugTrace(v *DebugInformation)

func (*CheckPermissionResponse) SetOptionalExpiresAt

func (x *CheckPermissionResponse) SetOptionalExpiresAt(v *timestamppb.Timestamp)

func (*CheckPermissionResponse) SetPartialCaveatInfo

func (x *CheckPermissionResponse) SetPartialCaveatInfo(v *PartialCaveatInfo)

func (*CheckPermissionResponse) SetPermissionship

func (*CheckPermissionResponse) String

func (x *CheckPermissionResponse) String() string

type CheckPermissionResponse_Permissionship

type CheckPermissionResponse_Permissionship int32
const (
	CheckPermissionResponse_PERMISSIONSHIP_UNSPECIFIED            CheckPermissionResponse_Permissionship = 0
	CheckPermissionResponse_PERMISSIONSHIP_NO_PERMISSION          CheckPermissionResponse_Permissionship = 1
	CheckPermissionResponse_PERMISSIONSHIP_HAS_PERMISSION         CheckPermissionResponse_Permissionship = 2
	CheckPermissionResponse_PERMISSIONSHIP_CONDITIONAL_PERMISSION CheckPermissionResponse_Permissionship = 3
)

func (CheckPermissionResponse_Permissionship) Descriptor

func (CheckPermissionResponse_Permissionship) Enum

func (CheckPermissionResponse_Permissionship) Number

func (CheckPermissionResponse_Permissionship) String

func (CheckPermissionResponse_Permissionship) Type

type CheckPermissionResponse_builder

type CheckPermissionResponse_builder struct {
	CheckedAt *ZedToken
	// Permissionship communicates whether or not the subject has the requested
	// permission or has a relationship with the given resource, over the given
	// relation.
	//
	// This value will be authzed.api.v1.PERMISSIONSHIP_HAS_PERMISSION if the
	// requested subject is a member of the computed permission set or there
	// exists a relationship with the requested relation from the given resource
	// to the given subject.
	Permissionship CheckPermissionResponse_Permissionship
	// partial_caveat_info holds information of a partially-evaluated caveated response
	PartialCaveatInfo *PartialCaveatInfo
	// debug_trace is the debugging trace of this check, if requested.
	DebugTrace *DebugInformation
	// optional_expires_at is the time at which at least one of the relationships used to
	// compute this result, expires (if any). This is *not* related to the caching window.
	OptionalExpiresAt *timestamppb.Timestamp
	// contains filtered or unexported fields
}

func (CheckPermissionResponse_builder) Build

type ComputablePermissionsRequest

type ComputablePermissionsRequest struct {
	Consistency    *Consistency `protobuf:"bytes,1,opt,name=consistency,proto3" json:"consistency,omitempty"`
	DefinitionName string       `protobuf:"bytes,2,opt,name=definition_name,json=definitionName,proto3" json:"definition_name,omitempty"`
	RelationName   string       `protobuf:"bytes,3,opt,name=relation_name,json=relationName,proto3" json:"relation_name,omitempty"`
	// optional_definition_name_match is a prefix that is matched against the definition name(s)
	// for the permissions returned.
	// If not specified, will be ignored.
	OptionalDefinitionNameFilter string `` /* 149-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*ComputablePermissionsRequest) ClearConsistency

func (x *ComputablePermissionsRequest) ClearConsistency()

func (*ComputablePermissionsRequest) GetConsistency

func (x *ComputablePermissionsRequest) GetConsistency() *Consistency

func (*ComputablePermissionsRequest) GetDefinitionName

func (x *ComputablePermissionsRequest) GetDefinitionName() string

func (*ComputablePermissionsRequest) GetOptionalDefinitionNameFilter

func (x *ComputablePermissionsRequest) GetOptionalDefinitionNameFilter() string

func (*ComputablePermissionsRequest) GetRelationName

func (x *ComputablePermissionsRequest) GetRelationName() string

func (*ComputablePermissionsRequest) HasConsistency

func (x *ComputablePermissionsRequest) HasConsistency() bool

func (*ComputablePermissionsRequest) ProtoMessage

func (*ComputablePermissionsRequest) ProtoMessage()

func (*ComputablePermissionsRequest) ProtoReflect

func (*ComputablePermissionsRequest) Reset

func (x *ComputablePermissionsRequest) Reset()

func (*ComputablePermissionsRequest) SetConsistency

func (x *ComputablePermissionsRequest) SetConsistency(v *Consistency)

func (*ComputablePermissionsRequest) SetDefinitionName

func (x *ComputablePermissionsRequest) SetDefinitionName(v string)

func (*ComputablePermissionsRequest) SetOptionalDefinitionNameFilter

func (x *ComputablePermissionsRequest) SetOptionalDefinitionNameFilter(v string)

func (*ComputablePermissionsRequest) SetRelationName

func (x *ComputablePermissionsRequest) SetRelationName(v string)

func (*ComputablePermissionsRequest) String

type ComputablePermissionsRequest_builder

type ComputablePermissionsRequest_builder struct {
	Consistency    *Consistency
	DefinitionName string
	RelationName   string
	// optional_definition_name_match is a prefix that is matched against the definition name(s)
	// for the permissions returned.
	// If not specified, will be ignored.
	OptionalDefinitionNameFilter string
	// contains filtered or unexported fields
}

func (ComputablePermissionsRequest_builder) Build

type ComputablePermissionsResponse

type ComputablePermissionsResponse struct {
	Permissions []*ReflectionRelationReference `protobuf:"bytes,1,rep,name=permissions,proto3" json:"permissions,omitempty"`
	// read_at is the ZedToken at which the schema was read.
	ReadAt *ZedToken `protobuf:"bytes,2,opt,name=read_at,json=readAt,proto3" json:"read_at,omitempty"`
	// contains filtered or unexported fields
}

func (*ComputablePermissionsResponse) ClearReadAt

func (x *ComputablePermissionsResponse) ClearReadAt()

func (*ComputablePermissionsResponse) GetPermissions

func (*ComputablePermissionsResponse) GetReadAt

func (x *ComputablePermissionsResponse) GetReadAt() *ZedToken

func (*ComputablePermissionsResponse) HasReadAt

func (x *ComputablePermissionsResponse) HasReadAt() bool

func (*ComputablePermissionsResponse) ProtoMessage

func (*ComputablePermissionsResponse) ProtoMessage()

func (*ComputablePermissionsResponse) ProtoReflect

func (*ComputablePermissionsResponse) Reset

func (x *ComputablePermissionsResponse) Reset()

func (*ComputablePermissionsResponse) SetPermissions

func (*ComputablePermissionsResponse) SetReadAt

func (x *ComputablePermissionsResponse) SetReadAt(v *ZedToken)

func (*ComputablePermissionsResponse) String

type ComputablePermissionsResponse_builder

type ComputablePermissionsResponse_builder struct {
	Permissions []*ReflectionRelationReference
	// read_at is the ZedToken at which the schema was read.
	ReadAt *ZedToken
	// contains filtered or unexported fields
}

func (ComputablePermissionsResponse_builder) Build

type Consistency

type Consistency struct {

	// Types that are valid to be assigned to Requirement:
	//
	//	*Consistency_MinimizeLatency
	//	*Consistency_AtLeastAsFresh
	//	*Consistency_AtExactSnapshot
	//	*Consistency_FullyConsistent
	Requirement isConsistency_Requirement `protobuf_oneof:"requirement"`
	// contains filtered or unexported fields
}

Consistency will define how a request is handled by the backend. By defining a consistency requirement, and a token at which those requirements should be applied, where applicable.

func (*Consistency) ClearAtExactSnapshot

func (x *Consistency) ClearAtExactSnapshot()

func (*Consistency) ClearAtLeastAsFresh

func (x *Consistency) ClearAtLeastAsFresh()

func (*Consistency) ClearFullyConsistent

func (x *Consistency) ClearFullyConsistent()

func (*Consistency) ClearMinimizeLatency

func (x *Consistency) ClearMinimizeLatency()

func (*Consistency) ClearRequirement

func (x *Consistency) ClearRequirement()

func (*Consistency) GetAtExactSnapshot

func (x *Consistency) GetAtExactSnapshot() *ZedToken

func (*Consistency) GetAtLeastAsFresh

func (x *Consistency) GetAtLeastAsFresh() *ZedToken

func (*Consistency) GetFullyConsistent

func (x *Consistency) GetFullyConsistent() bool

func (*Consistency) GetMinimizeLatency

func (x *Consistency) GetMinimizeLatency() bool

func (*Consistency) GetRequirement

func (x *Consistency) GetRequirement() isConsistency_Requirement

func (*Consistency) HasAtExactSnapshot

func (x *Consistency) HasAtExactSnapshot() bool

func (*Consistency) HasAtLeastAsFresh

func (x *Consistency) HasAtLeastAsFresh() bool

func (*Consistency) HasFullyConsistent

func (x *Consistency) HasFullyConsistent() bool

func (*Consistency) HasMinimizeLatency

func (x *Consistency) HasMinimizeLatency() bool

func (*Consistency) HasRequirement

func (x *Consistency) HasRequirement() bool

func (*Consistency) ProtoMessage

func (*Consistency) ProtoMessage()

func (*Consistency) ProtoReflect

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

func (*Consistency) Reset

func (x *Consistency) Reset()

func (*Consistency) SetAtExactSnapshot

func (x *Consistency) SetAtExactSnapshot(v *ZedToken)

func (*Consistency) SetAtLeastAsFresh

func (x *Consistency) SetAtLeastAsFresh(v *ZedToken)

func (*Consistency) SetFullyConsistent

func (x *Consistency) SetFullyConsistent(v bool)

func (*Consistency) SetMinimizeLatency

func (x *Consistency) SetMinimizeLatency(v bool)

func (*Consistency) String

func (x *Consistency) String() string

func (*Consistency) WhichRequirement

func (x *Consistency) WhichRequirement() case_Consistency_Requirement

type Consistency_AtExactSnapshot

type Consistency_AtExactSnapshot struct {
	// at_exact_snapshot indicates that all data used in the API call must be
	// *at the given* snapshot in time; if the snapshot is no longer available,
	// an error will be returned to the caller.
	AtExactSnapshot *ZedToken `protobuf:"bytes,3,opt,name=at_exact_snapshot,json=atExactSnapshot,proto3,oneof"`
}

type Consistency_AtLeastAsFresh

type Consistency_AtLeastAsFresh struct {
	// at_least_as_fresh indicates that all data used in the API call must be
	// *at least as fresh* as that found in the ZedToken; more recent data might
	// be used if available or faster.
	AtLeastAsFresh *ZedToken `protobuf:"bytes,2,opt,name=at_least_as_fresh,json=atLeastAsFresh,proto3,oneof"`
}

type Consistency_FullyConsistent

type Consistency_FullyConsistent struct {
	// fully_consistent indicates that all data used in the API call *must* be
	// at the most recent snapshot found.
	//
	// NOTE: using this method can be *quite slow*, so unless there is a need to
	// do so, it is recommended to use `at_least_as_fresh` with a stored
	// ZedToken.
	FullyConsistent bool `protobuf:"varint,4,opt,name=fully_consistent,json=fullyConsistent,proto3,oneof"`
}

type Consistency_MinimizeLatency

type Consistency_MinimizeLatency struct {
	// minimize_latency indicates that the latency for the call should be
	// minimized by having the system select the fastest snapshot available.
	MinimizeLatency bool `protobuf:"varint,1,opt,name=minimize_latency,json=minimizeLatency,proto3,oneof"`
}

type Consistency_builder

type Consistency_builder struct {

	// Fields of oneof Requirement:
	// minimize_latency indicates that the latency for the call should be
	// minimized by having the system select the fastest snapshot available.
	MinimizeLatency *bool
	// at_least_as_fresh indicates that all data used in the API call must be
	// *at least as fresh* as that found in the ZedToken; more recent data might
	// be used if available or faster.
	AtLeastAsFresh *ZedToken
	// at_exact_snapshot indicates that all data used in the API call must be
	// *at the given* snapshot in time; if the snapshot is no longer available,
	// an error will be returned to the caller.
	AtExactSnapshot *ZedToken
	// fully_consistent indicates that all data used in the API call *must* be
	// at the most recent snapshot found.
	//
	// NOTE: using this method can be *quite slow*, so unless there is a need to
	// do so, it is recommended to use `at_least_as_fresh` with a stored
	// ZedToken.
	FullyConsistent *bool
	// contains filtered or unexported fields
}

func (Consistency_builder) Build

func (b0 Consistency_builder) Build() *Consistency

type ContextualizedCaveat

type ContextualizedCaveat struct {

	// caveat_name is the name of the caveat expression to use, as defined in the schema
	CaveatName string `protobuf:"bytes,1,opt,name=caveat_name,json=caveatName,proto3" json:"caveat_name,omitempty"`
	// context consists of any named values that are defined at write time for the caveat expression
	Context *structpb.Struct `protobuf:"bytes,2,opt,name=context,proto3" json:"context,omitempty"`
	// contains filtered or unexported fields
}

ContextualizedCaveat represents a reference to a caveat to be used by caveated relationships. The context consists of key-value pairs that will be injected at evaluation time. The keys must match the arguments defined on the caveat in the schema.

func (*ContextualizedCaveat) ClearContext

func (x *ContextualizedCaveat) ClearContext()

func (*ContextualizedCaveat) GetCaveatName

func (x *ContextualizedCaveat) GetCaveatName() string

func (*ContextualizedCaveat) GetContext

func (x *ContextualizedCaveat) GetContext() *structpb.Struct

func (*ContextualizedCaveat) HasContext

func (x *ContextualizedCaveat) HasContext() bool

func (*ContextualizedCaveat) ProtoMessage

func (*ContextualizedCaveat) ProtoMessage()

func (*ContextualizedCaveat) ProtoReflect

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

func (*ContextualizedCaveat) Reset

func (x *ContextualizedCaveat) Reset()

func (*ContextualizedCaveat) SetCaveatName

func (x *ContextualizedCaveat) SetCaveatName(v string)

func (*ContextualizedCaveat) SetContext

func (x *ContextualizedCaveat) SetContext(v *structpb.Struct)

func (*ContextualizedCaveat) String

func (x *ContextualizedCaveat) String() string

type ContextualizedCaveat_builder

type ContextualizedCaveat_builder struct {

	// caveat_name is the name of the caveat expression to use, as defined in the schema
	CaveatName string
	// context consists of any named values that are defined at write time for the caveat expression
	Context *structpb.Struct
	// contains filtered or unexported fields
}

func (ContextualizedCaveat_builder) Build

type Cursor

type Cursor struct {
	Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"`
	// contains filtered or unexported fields
}

Cursor is used to provide resumption of listing between calls to APIs such as LookupResources.

func (*Cursor) GetToken

func (x *Cursor) GetToken() string

func (*Cursor) ProtoMessage

func (*Cursor) ProtoMessage()

func (*Cursor) ProtoReflect

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

func (*Cursor) Reset

func (x *Cursor) Reset()

func (*Cursor) SetToken

func (x *Cursor) SetToken(v string)

func (*Cursor) String

func (x *Cursor) String() string

type Cursor_builder

type Cursor_builder struct {
	Token string
	// contains filtered or unexported fields
}

func (Cursor_builder) Build

func (b0 Cursor_builder) Build() *Cursor

type DebugInformation

type DebugInformation struct {

	// check holds debug information about a check request.
	Check *CheckDebugTrace `protobuf:"bytes,1,opt,name=check,proto3" json:"check,omitempty"`
	// schema_used holds the schema used for the request.
	SchemaUsed string `protobuf:"bytes,2,opt,name=schema_used,json=schemaUsed,proto3" json:"schema_used,omitempty"`
	// contains filtered or unexported fields
}

DebugInformation defines debug information returned by an API call in a footer when requested with a specific debugging header.

The specific debug information returned will depend on the type of the API call made.

See the github.com/authzed/authzed-go project for the specific header and footer names.

func (*DebugInformation) ClearCheck

func (x *DebugInformation) ClearCheck()

func (*DebugInformation) GetCheck

func (x *DebugInformation) GetCheck() *CheckDebugTrace

func (*DebugInformation) GetSchemaUsed

func (x *DebugInformation) GetSchemaUsed() string

func (*DebugInformation) HasCheck

func (x *DebugInformation) HasCheck() bool

func (*DebugInformation) ProtoMessage

func (*DebugInformation) ProtoMessage()

func (*DebugInformation) ProtoReflect

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

func (*DebugInformation) Reset

func (x *DebugInformation) Reset()

func (*DebugInformation) SetCheck

func (x *DebugInformation) SetCheck(v *CheckDebugTrace)

func (*DebugInformation) SetSchemaUsed

func (x *DebugInformation) SetSchemaUsed(v string)

func (*DebugInformation) String

func (x *DebugInformation) String() string

type DebugInformation_builder

type DebugInformation_builder struct {

	// check holds debug information about a check request.
	Check *CheckDebugTrace
	// schema_used holds the schema used for the request.
	SchemaUsed string
	// contains filtered or unexported fields
}

func (DebugInformation_builder) Build

type DeleteRelationshipsRequest

type DeleteRelationshipsRequest struct {
	RelationshipFilter    *RelationshipFilter `protobuf:"bytes,1,opt,name=relationship_filter,json=relationshipFilter,proto3" json:"relationship_filter,omitempty"`
	OptionalPreconditions []*Precondition     `protobuf:"bytes,2,rep,name=optional_preconditions,json=optionalPreconditions,proto3" json:"optional_preconditions,omitempty"` // To be bounded by configuration
	// optional_limit, if non-zero, specifies the limit on the number of relationships to be deleted.
	// If there are more matching relationships found to be deleted than the limit specified here,
	// the deletion call will fail with an error to prevent partial deletion. If partial deletion
	// is needed, specify below that partial deletion is allowed. Partial deletions can be used
	// in a loop to delete large amounts of relationships in a *non-transactional* manner.
	OptionalLimit uint32 `protobuf:"varint,3,opt,name=optional_limit,json=optionalLimit,proto3" json:"optional_limit,omitempty"`
	// optional_allow_partial_deletions, if true and a limit is specified, will delete matching found
	// relationships up to the count specified in optional_limit, and no more.
	OptionalAllowPartialDeletions bool `` /* 153-byte string literal not displayed */
	// optional_transaction_metadata is an optional field that can be used to store metadata about the transaction.
	// If specified, this metadata will be supplied in the WatchResponse for the deletions associated with
	// this transaction.
	OptionalTransactionMetadata *structpb.Struct `` /* 144-byte string literal not displayed */
	// contains filtered or unexported fields
}

DeleteRelationshipsRequest specifies which Relationships should be deleted, requesting the delete of *ALL* relationships that match the specified filters. If the optional_preconditions parameter is included, all of the specified preconditions must also be satisfied before the delete will be executed.

func (*DeleteRelationshipsRequest) ClearOptionalTransactionMetadata

func (x *DeleteRelationshipsRequest) ClearOptionalTransactionMetadata()

func (*DeleteRelationshipsRequest) ClearRelationshipFilter

func (x *DeleteRelationshipsRequest) ClearRelationshipFilter()

func (*DeleteRelationshipsRequest) GetOptionalAllowPartialDeletions

func (x *DeleteRelationshipsRequest) GetOptionalAllowPartialDeletions() bool

func (*DeleteRelationshipsRequest) GetOptionalLimit

func (x *DeleteRelationshipsRequest) GetOptionalLimit() uint32

func (*DeleteRelationshipsRequest) GetOptionalPreconditions

func (x *DeleteRelationshipsRequest) GetOptionalPreconditions() []*Precondition

func (*DeleteRelationshipsRequest) GetOptionalTransactionMetadata

func (x *DeleteRelationshipsRequest) GetOptionalTransactionMetadata() *structpb.Struct

func (*DeleteRelationshipsRequest) GetRelationshipFilter

func (x *DeleteRelationshipsRequest) GetRelationshipFilter() *RelationshipFilter

func (*DeleteRelationshipsRequest) HasOptionalTransactionMetadata

func (x *DeleteRelationshipsRequest) HasOptionalTransactionMetadata() bool

func (*DeleteRelationshipsRequest) HasRelationshipFilter

func (x *DeleteRelationshipsRequest) HasRelationshipFilter() bool

func (*DeleteRelationshipsRequest) ProtoMessage

func (*DeleteRelationshipsRequest) ProtoMessage()

func (*DeleteRelationshipsRequest) ProtoReflect

func (*DeleteRelationshipsRequest) Reset

func (x *DeleteRelationshipsRequest) Reset()

func (*DeleteRelationshipsRequest) SetOptionalAllowPartialDeletions

func (x *DeleteRelationshipsRequest) SetOptionalAllowPartialDeletions(v bool)

func (*DeleteRelationshipsRequest) SetOptionalLimit

func (x *DeleteRelationshipsRequest) SetOptionalLimit(v uint32)

func (*DeleteRelationshipsRequest) SetOptionalPreconditions

func (x *DeleteRelationshipsRequest) SetOptionalPreconditions(v []*Precondition)

func (*DeleteRelationshipsRequest) SetOptionalTransactionMetadata

func (x *DeleteRelationshipsRequest) SetOptionalTransactionMetadata(v *structpb.Struct)

func (*DeleteRelationshipsRequest) SetRelationshipFilter

func (x *DeleteRelationshipsRequest) SetRelationshipFilter(v *RelationshipFilter)

func (*DeleteRelationshipsRequest) String

func (x *DeleteRelationshipsRequest) String() string

type DeleteRelationshipsRequest_builder

type DeleteRelationshipsRequest_builder struct {
	RelationshipFilter    *RelationshipFilter
	OptionalPreconditions []*Precondition
	// optional_limit, if non-zero, specifies the limit on the number of relationships to be deleted.
	// If there are more matching relationships found to be deleted than the limit specified here,
	// the deletion call will fail with an error to prevent partial deletion. If partial deletion
	// is needed, specify below that partial deletion is allowed. Partial deletions can be used
	// in a loop to delete large amounts of relationships in a *non-transactional* manner.
	OptionalLimit uint32
	// optional_allow_partial_deletions, if true and a limit is specified, will delete matching found
	// relationships up to the count specified in optional_limit, and no more.
	OptionalAllowPartialDeletions bool
	// optional_transaction_metadata is an optional field that can be used to store metadata about the transaction.
	// If specified, this metadata will be supplied in the WatchResponse for the deletions associated with
	// this transaction.
	OptionalTransactionMetadata *structpb.Struct
	// contains filtered or unexported fields
}

func (DeleteRelationshipsRequest_builder) Build

type DeleteRelationshipsResponse

type DeleteRelationshipsResponse struct {

	// deleted_at is the revision at which the relationships were deleted.
	DeletedAt *ZedToken `protobuf:"bytes,1,opt,name=deleted_at,json=deletedAt,proto3" json:"deleted_at,omitempty"`
	// deletion_progress is an enumeration of the possible outcomes that occurred when attempting to delete the specified relationships.
	DeletionProgress DeleteRelationshipsResponse_DeletionProgress `` /* 175-byte string literal not displayed */
	// relationships_deleted_count is the number of relationships that were deleted.
	RelationshipsDeletedCount uint64 `` /* 139-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*DeleteRelationshipsResponse) ClearDeletedAt

func (x *DeleteRelationshipsResponse) ClearDeletedAt()

func (*DeleteRelationshipsResponse) GetDeletedAt

func (x *DeleteRelationshipsResponse) GetDeletedAt() *ZedToken

func (*DeleteRelationshipsResponse) GetDeletionProgress

func (*DeleteRelationshipsResponse) GetRelationshipsDeletedCount

func (x *DeleteRelationshipsResponse) GetRelationshipsDeletedCount() uint64

func (*DeleteRelationshipsResponse) HasDeletedAt

func (x *DeleteRelationshipsResponse) HasDeletedAt() bool

func (*DeleteRelationshipsResponse) ProtoMessage

func (*DeleteRelationshipsResponse) ProtoMessage()

func (*DeleteRelationshipsResponse) ProtoReflect

func (*DeleteRelationshipsResponse) Reset

func (x *DeleteRelationshipsResponse) Reset()

func (*DeleteRelationshipsResponse) SetDeletedAt

func (x *DeleteRelationshipsResponse) SetDeletedAt(v *ZedToken)

func (*DeleteRelationshipsResponse) SetDeletionProgress

func (*DeleteRelationshipsResponse) SetRelationshipsDeletedCount

func (x *DeleteRelationshipsResponse) SetRelationshipsDeletedCount(v uint64)

func (*DeleteRelationshipsResponse) String

func (x *DeleteRelationshipsResponse) String() string

type DeleteRelationshipsResponse_DeletionProgress

type DeleteRelationshipsResponse_DeletionProgress int32
const (
	DeleteRelationshipsResponse_DELETION_PROGRESS_UNSPECIFIED DeleteRelationshipsResponse_DeletionProgress = 0
	// DELETION_PROGRESS_COMPLETE indicates that all remaining relationships matching the filter
	// were deleted. Will be returned even if no relationships were deleted.
	DeleteRelationshipsResponse_DELETION_PROGRESS_COMPLETE DeleteRelationshipsResponse_DeletionProgress = 1
	// DELETION_PROGRESS_PARTIAL indicates that a subset of the relationships matching the filter
	// were deleted. Only returned if optional_allow_partial_deletions was true, an optional_limit was
	// specified, and there existed more relationships matching the filter than optional_limit would allow.
	// Once all remaining relationships have been deleted, DELETION_PROGRESS_COMPLETE will be returned.
	DeleteRelationshipsResponse_DELETION_PROGRESS_PARTIAL DeleteRelationshipsResponse_DeletionProgress = 2
)

func (DeleteRelationshipsResponse_DeletionProgress) Descriptor

func (DeleteRelationshipsResponse_DeletionProgress) Enum

func (DeleteRelationshipsResponse_DeletionProgress) Number

func (DeleteRelationshipsResponse_DeletionProgress) String

func (DeleteRelationshipsResponse_DeletionProgress) Type

type DeleteRelationshipsResponse_builder

type DeleteRelationshipsResponse_builder struct {

	// deleted_at is the revision at which the relationships were deleted.
	DeletedAt *ZedToken
	// deletion_progress is an enumeration of the possible outcomes that occurred when attempting to delete the specified relationships.
	DeletionProgress DeleteRelationshipsResponse_DeletionProgress
	// relationships_deleted_count is the number of relationships that were deleted.
	RelationshipsDeletedCount uint64
	// contains filtered or unexported fields
}

func (DeleteRelationshipsResponse_builder) Build

type DependentRelationsRequest

type DependentRelationsRequest struct {
	Consistency    *Consistency `protobuf:"bytes,1,opt,name=consistency,proto3" json:"consistency,omitempty"`
	DefinitionName string       `protobuf:"bytes,2,opt,name=definition_name,json=definitionName,proto3" json:"definition_name,omitempty"`
	PermissionName string       `protobuf:"bytes,3,opt,name=permission_name,json=permissionName,proto3" json:"permission_name,omitempty"`
	// contains filtered or unexported fields
}

func (*DependentRelationsRequest) ClearConsistency

func (x *DependentRelationsRequest) ClearConsistency()

func (*DependentRelationsRequest) GetConsistency

func (x *DependentRelationsRequest) GetConsistency() *Consistency

func (*DependentRelationsRequest) GetDefinitionName

func (x *DependentRelationsRequest) GetDefinitionName() string

func (*DependentRelationsRequest) GetPermissionName

func (x *DependentRelationsRequest) GetPermissionName() string

func (*DependentRelationsRequest) HasConsistency

func (x *DependentRelationsRequest) HasConsistency() bool

func (*DependentRelationsRequest) ProtoMessage

func (*DependentRelationsRequest) ProtoMessage()

func (*DependentRelationsRequest) ProtoReflect

func (*DependentRelationsRequest) Reset

func (x *DependentRelationsRequest) Reset()

func (*DependentRelationsRequest) SetConsistency

func (x *DependentRelationsRequest) SetConsistency(v *Consistency)

func (*DependentRelationsRequest) SetDefinitionName

func (x *DependentRelationsRequest) SetDefinitionName(v string)

func (*DependentRelationsRequest) SetPermissionName

func (x *DependentRelationsRequest) SetPermissionName(v string)

func (*DependentRelationsRequest) String

func (x *DependentRelationsRequest) String() string

type DependentRelationsRequest_builder

type DependentRelationsRequest_builder struct {
	Consistency    *Consistency
	DefinitionName string
	PermissionName string
	// contains filtered or unexported fields
}

func (DependentRelationsRequest_builder) Build

type DependentRelationsResponse

type DependentRelationsResponse struct {
	Relations []*ReflectionRelationReference `protobuf:"bytes,1,rep,name=relations,proto3" json:"relations,omitempty"`
	// read_at is the ZedToken at which the schema was read.
	ReadAt *ZedToken `protobuf:"bytes,2,opt,name=read_at,json=readAt,proto3" json:"read_at,omitempty"`
	// contains filtered or unexported fields
}

func (*DependentRelationsResponse) ClearReadAt

func (x *DependentRelationsResponse) ClearReadAt()

func (*DependentRelationsResponse) GetReadAt

func (x *DependentRelationsResponse) GetReadAt() *ZedToken

func (*DependentRelationsResponse) GetRelations

func (*DependentRelationsResponse) HasReadAt

func (x *DependentRelationsResponse) HasReadAt() bool

func (*DependentRelationsResponse) ProtoMessage

func (*DependentRelationsResponse) ProtoMessage()

func (*DependentRelationsResponse) ProtoReflect

func (*DependentRelationsResponse) Reset

func (x *DependentRelationsResponse) Reset()

func (*DependentRelationsResponse) SetReadAt

func (x *DependentRelationsResponse) SetReadAt(v *ZedToken)

func (*DependentRelationsResponse) SetRelations

func (*DependentRelationsResponse) String

func (x *DependentRelationsResponse) String() string

type DependentRelationsResponse_builder

type DependentRelationsResponse_builder struct {
	Relations []*ReflectionRelationReference
	// read_at is the ZedToken at which the schema was read.
	ReadAt *ZedToken
	// contains filtered or unexported fields
}

func (DependentRelationsResponse_builder) Build

type DiffSchemaRequest

type DiffSchemaRequest struct {
	Consistency      *Consistency `protobuf:"bytes,1,opt,name=consistency,proto3" json:"consistency,omitempty"`
	ComparisonSchema string       `protobuf:"bytes,2,opt,name=comparison_schema,json=comparisonSchema,proto3" json:"comparison_schema,omitempty"`
	// contains filtered or unexported fields
}

func (*DiffSchemaRequest) ClearConsistency

func (x *DiffSchemaRequest) ClearConsistency()

func (*DiffSchemaRequest) GetComparisonSchema

func (x *DiffSchemaRequest) GetComparisonSchema() string

func (*DiffSchemaRequest) GetConsistency

func (x *DiffSchemaRequest) GetConsistency() *Consistency

func (*DiffSchemaRequest) HasConsistency

func (x *DiffSchemaRequest) HasConsistency() bool

func (*DiffSchemaRequest) ProtoMessage

func (*DiffSchemaRequest) ProtoMessage()

func (*DiffSchemaRequest) ProtoReflect

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

func (*DiffSchemaRequest) Reset

func (x *DiffSchemaRequest) Reset()

func (*DiffSchemaRequest) SetComparisonSchema

func (x *DiffSchemaRequest) SetComparisonSchema(v string)

func (*DiffSchemaRequest) SetConsistency

func (x *DiffSchemaRequest) SetConsistency(v *Consistency)

func (*DiffSchemaRequest) String

func (x *DiffSchemaRequest) String() string

type DiffSchemaRequest_builder

type DiffSchemaRequest_builder struct {
	Consistency      *Consistency
	ComparisonSchema string
	// contains filtered or unexported fields
}

func (DiffSchemaRequest_builder) Build

type DiffSchemaResponse

type DiffSchemaResponse struct {
	Diffs []*ReflectionSchemaDiff `protobuf:"bytes,1,rep,name=diffs,proto3" json:"diffs,omitempty"`
	// read_at is the ZedToken at which the schema was read.
	ReadAt *ZedToken `protobuf:"bytes,2,opt,name=read_at,json=readAt,proto3" json:"read_at,omitempty"`
	// contains filtered or unexported fields
}

func (*DiffSchemaResponse) ClearReadAt

func (x *DiffSchemaResponse) ClearReadAt()

func (*DiffSchemaResponse) GetDiffs

func (x *DiffSchemaResponse) GetDiffs() []*ReflectionSchemaDiff

func (*DiffSchemaResponse) GetReadAt

func (x *DiffSchemaResponse) GetReadAt() *ZedToken

func (*DiffSchemaResponse) HasReadAt

func (x *DiffSchemaResponse) HasReadAt() bool

func (*DiffSchemaResponse) ProtoMessage

func (*DiffSchemaResponse) ProtoMessage()

func (*DiffSchemaResponse) ProtoReflect

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

func (*DiffSchemaResponse) Reset

func (x *DiffSchemaResponse) Reset()

func (*DiffSchemaResponse) SetDiffs

func (x *DiffSchemaResponse) SetDiffs(v []*ReflectionSchemaDiff)

func (*DiffSchemaResponse) SetReadAt

func (x *DiffSchemaResponse) SetReadAt(v *ZedToken)

func (*DiffSchemaResponse) String

func (x *DiffSchemaResponse) String() string

type DiffSchemaResponse_builder

type DiffSchemaResponse_builder struct {
	Diffs []*ReflectionSchemaDiff
	// read_at is the ZedToken at which the schema was read.
	ReadAt *ZedToken
	// contains filtered or unexported fields
}

func (DiffSchemaResponse_builder) Build

type DirectSubjectSet

type DirectSubjectSet struct {
	Subjects []*SubjectReference `protobuf:"bytes,1,rep,name=subjects,proto3" json:"subjects,omitempty"`
	// contains filtered or unexported fields
}

DirectSubjectSet is a subject set which is simply a collection of subjects.

func (*DirectSubjectSet) GetSubjects

func (x *DirectSubjectSet) GetSubjects() []*SubjectReference

func (*DirectSubjectSet) ProtoMessage

func (*DirectSubjectSet) ProtoMessage()

func (*DirectSubjectSet) ProtoReflect

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

func (*DirectSubjectSet) Reset

func (x *DirectSubjectSet) Reset()

func (*DirectSubjectSet) SetSubjects

func (x *DirectSubjectSet) SetSubjects(v []*SubjectReference)

func (*DirectSubjectSet) String

func (x *DirectSubjectSet) String() string

type DirectSubjectSet_builder

type DirectSubjectSet_builder struct {
	Subjects []*SubjectReference
	// contains filtered or unexported fields
}

func (DirectSubjectSet_builder) Build

type ErrorReason

type ErrorReason int32

Defines the supported values for `google.rpc.ErrorInfo.reason` for the `authzed.com` error domain.

const (
	// Do not use this default value.
	ErrorReason_ERROR_REASON_UNSPECIFIED ErrorReason = 0
	// The request gave a schema that could not be parsed.
	//
	// Example of an ErrorInfo:
	//
	//	{
	//	  "reason": "ERROR_REASON_SCHEMA_PARSE_ERROR",
	//	  "domain": "authzed.com",
	//	  "metadata": {
	//	    "start_line_number": "1",
	//	    "start_column_position": "19",
	//	    "end_line_number": "1",
	//	    "end_column_position": "19",
	//	    "source_code": "somedefinition",
	//	  }
	//	}
	//
	// The line numbers and column positions are 0-indexed and may not be present.
	ErrorReason_ERROR_REASON_SCHEMA_PARSE_ERROR ErrorReason = 1
	// The request contains a schema with a type error.
	//
	// Example of an ErrorInfo:
	//
	//	{
	//	  "reason": "ERROR_REASON_SCHEMA_TYPE_ERROR",
	//	  "domain": "authzed.com",
	//	  "metadata": {
	//	    "definition_name": "somedefinition",
	//	    ... additional keys based on the kind of type error ...
	//	  }
	//	}
	ErrorReason_ERROR_REASON_SCHEMA_TYPE_ERROR ErrorReason = 2
	// The request referenced an unknown object definition in the schema.
	//
	// Example of an ErrorInfo:
	//
	//	{
	//	  "reason": "ERROR_REASON_UNKNOWN_DEFINITION",
	//	  "domain": "authzed.com",
	//	  "metadata": {
	//	    "definition_name": "somedefinition"
	//	  }
	//	}
	ErrorReason_ERROR_REASON_UNKNOWN_DEFINITION ErrorReason = 3
	// The request referenced an unknown relation or permission under a definition in the schema.
	//
	// Example of an ErrorInfo:
	//
	//	{
	//	  "reason": "ERROR_REASON_UNKNOWN_RELATION_OR_PERMISSION",
	//	  "domain": "authzed.com",
	//	  "metadata": {
	//	    "definition_name": "somedefinition",
	//	    "relation_or_permission_name": "somepermission"
	//	  }
	//	}
	ErrorReason_ERROR_REASON_UNKNOWN_RELATION_OR_PERMISSION ErrorReason = 4
	// The WriteRelationships request contained more updates than the maximum configured.
	//
	// Example of an ErrorInfo:
	//
	//	{ "reason": "ERROR_REASON_TOO_MANY_UPDATES_IN_REQUEST",
	//	  "domain": "authzed.com",
	//	  "metadata": {
	//	    "update_count": "525",
	//	    "maximum_updates_allowed": "500",
	//	  }
	//	}
	ErrorReason_ERROR_REASON_TOO_MANY_UPDATES_IN_REQUEST ErrorReason = 5
	// The request contained more preconditions than the maximum configured.
	//
	// Example of an ErrorInfo:
	//
	//	{
	//	  "reason": "ERROR_REASON_TOO_MANY_PRECONDITIONS_IN_REQUEST",
	//	  "domain": "authzed.com",
	//	  "metadata": {
	//	    "precondition_count": "525",
	//	    "maximum_preconditions_allowed": "500",
	//	  }
	//	}
	ErrorReason_ERROR_REASON_TOO_MANY_PRECONDITIONS_IN_REQUEST ErrorReason = 6
	// The request contained a precondition that failed.
	//
	// Example of an ErrorInfo:
	//
	//	{
	//	  "reason": "ERROR_REASON_WRITE_OR_DELETE_PRECONDITION_FAILURE",
	//	  "domain": "authzed.com",
	//	  "metadata": {
	//	    "precondition_resource_type": "document",
	//	    ... other fields for the filter ...
	//	    "precondition_operation": "MUST_EXIST",
	//	  }
	//	}
	ErrorReason_ERROR_REASON_WRITE_OR_DELETE_PRECONDITION_FAILURE ErrorReason = 7
	// A write or delete request was made to an instance that is deployed in read-only mode.
	//
	// Example of an ErrorInfo:
	//
	//	{
	//	  "reason": "ERROR_REASON_SERVICE_READ_ONLY",
	//	  "domain": "authzed.com"
	//	}
	ErrorReason_ERROR_REASON_SERVICE_READ_ONLY ErrorReason = 8
	// The request referenced an unknown caveat in the schema.
	//
	// Example of an ErrorInfo:
	//
	//	{
	//	  "reason": "ERROR_REASON_UNKNOWN_CAVEAT",
	//	  "domain": "authzed.com",
	//	  "metadata": {
	//	    "caveat_name": "somecaveat"
	//	  }
	//	}
	ErrorReason_ERROR_REASON_UNKNOWN_CAVEAT ErrorReason = 9
	// The request tries to use a subject type that was not valid for a relation.
	//
	// Example of an ErrorInfo:
	//
	//	{
	//	  "reason": "ERROR_REASON_INVALID_SUBJECT_TYPE",
	//	  "domain": "authzed.com",
	//	  "metadata": {
	//	    "definition_name": "somedefinition",
	//	    "relation_name": "somerelation",
	//	    "subject_type": "user:*"
	//	  }
	//	}
	ErrorReason_ERROR_REASON_INVALID_SUBJECT_TYPE ErrorReason = 10
	// The request tries to specify a caveat parameter value with the wrong type.
	//
	// Example of an ErrorInfo:
	//
	//	{
	//	  "reason": "ERROR_REASON_CAVEAT_PARAMETER_TYPE_ERROR",
	//	  "domain": "authzed.com",
	//	  "metadata": {
	//	    "definition_name": "somedefinition",
	//	    "relation_name": "somerelation",
	//	    "caveat_name": "somecaveat",
	//	    "parameter_name": "someparameter",
	//	    "expected_type": "int",
	//	  }
	//	}
	ErrorReason_ERROR_REASON_CAVEAT_PARAMETER_TYPE_ERROR ErrorReason = 11
	// The request tries to perform two or more updates on the same relationship in the same WriteRelationships call.
	//
	// Example of an ErrorInfo:
	//
	//	{
	//	  "reason": "ERROR_REASON_UPDATES_ON_SAME_RELATIONSHIP",
	//	  "domain": "authzed.com",
	//	  "metadata": {
	//	    "definition_name": "somedefinition",
	//	    "relationship": "somerelationship",
	//	  }
	//	}
	ErrorReason_ERROR_REASON_UPDATES_ON_SAME_RELATIONSHIP ErrorReason = 12
	// The request tries to write a relationship on a permission instead of a relation.
	//
	// Example of an ErrorInfo:
	//
	//	{
	//	  "reason": "ERROR_REASON_CANNOT_UPDATE_PERMISSION",
	//	  "domain": "authzed.com",
	//	  "metadata": {
	//	    "definition_name": "somedefinition",
	//	    "permission_name": "somerelation",
	//	  }
	//	}
	ErrorReason_ERROR_REASON_CANNOT_UPDATE_PERMISSION ErrorReason = 13
	// The request failed to evaluate a caveat expression due to an error.
	//
	// Example of an ErrorInfo:
	//
	//	{
	//	  "reason": "ERROR_REASON_CAVEAT_EVALUATION_ERROR",
	//	  "domain": "authzed.com",
	//	  "metadata": {
	//	    "caveat_name": "somecaveat",
	//	  }
	//	}
	ErrorReason_ERROR_REASON_CAVEAT_EVALUATION_ERROR ErrorReason = 14
	// The request failed because the provided cursor was invalid in some way.
	//
	// Example of an ErrorInfo:
	//
	//	{
	//	  "reason": "ERROR_REASON_INVALID_CURSOR",
	//	  "domain": "authzed.com",
	//	  "metadata": {
	//	     ... additional keys based on the kind of cursor error ...
	//	  }
	//	}
	ErrorReason_ERROR_REASON_INVALID_CURSOR ErrorReason = 15
	// The request failed because there are too many matching relationships to be
	// deleted within a single transactional deletion call. To avoid, set
	// `optional_allow_partial_deletions` to true on the DeleteRelationships call.
	//
	// Example of an ErrorInfo:
	//
	//	{
	//	  "reason": "ERROR_REASON_TOO_MANY_RELATIONSHIPS_FOR_TRANSACTIONAL_DELETE",
	//	  "domain": "authzed.com",
	//	  "metadata": {
	//	     ... fields for the filter ...
	//	  }
	//	}
	ErrorReason_ERROR_REASON_TOO_MANY_RELATIONSHIPS_FOR_TRANSACTIONAL_DELETE ErrorReason = 16
	// The request failed because the client attempted to write a relationship
	// with a context that exceeded the configured server limit.
	//
	// Example of an ErrorInfo:
	//
	//	{
	//	  "reason": "ERROR_REASON_MAX_RELATIONSHIP_CONTEXT_SIZE",
	//	  "domain": "authzed.com",
	//	  "metadata": {
	//	    "relationship":     "relationship_exceeding_the_limit",
	//	    "max_allowed_size": "server_max_allowed_context_size",
	//	    "context_size":     "actual_relationship_context_size" ,
	//	  }
	//	}
	ErrorReason_ERROR_REASON_MAX_RELATIONSHIP_CONTEXT_SIZE ErrorReason = 17
	// The request failed because a relationship marked to be CREATEd
	// was already present within the datastore.
	//
	// Example of an ErrorInfo:
	//
	//	{
	//	  "reason": "ERROR_REASON_ATTEMPT_TO_RECREATE_RELATIONSHIP",
	//	  "domain": "authzed.com",
	//	  "metadata": {
	//	    "relationship":          "relationship_that_already_existed",
	//	    "resource_type":         "resource type",
	//	    "resource_object_id":    "resource object id",
	//	    ... additional decomposed relationship fields ...
	//	  }
	//	}
	ErrorReason_ERROR_REASON_ATTEMPT_TO_RECREATE_RELATIONSHIP ErrorReason = 18
	// The request failed because it caused the maximum depth allowed to be
	// exceeded. This typically indicates that there is a circular data traversal
	// somewhere in the schema, but can also be raised if the data traversal is simply
	// too deep.
	//
	// Example of an ErrorInfo:
	//
	//	{
	//	  "reason": "ERROR_REASON_MAXIMUM_DEPTH_EXCEEDED",
	//	  "domain": "authzed.com",
	//	  "metadata": {
	//	    "maximum_depth_allowed": "50",
	//	    ... additional fields based on request type ...
	//	  }
	//	}
	ErrorReason_ERROR_REASON_MAXIMUM_DEPTH_EXCEEDED ErrorReason = 19
	// The request failed due to a serialization error in the backend database.
	// This typically indicates that various in flight transactions conflicted with each other
	// and the database had to abort one or more of them. SpiceDB will retry a few times before returning
	// the error to the client.
	//
	// Example of an ErrorInfo:
	//
	//	{
	//	  "reason": "ERROR_REASON_SERIALIZATION_FAILURE",
	//	  "domain": "authzed.com",
	//	  "metadata": {}
	//	}
	ErrorReason_ERROR_REASON_SERIALIZATION_FAILURE ErrorReason = 20
	// The request contained more check items than the maximum configured.
	//
	// Example of an ErrorInfo:
	//
	//	{
	//	  "reason": "ERROR_REASON_TOO_MANY_CHECKS_IN_REQUEST",
	//	  "domain": "authzed.com",
	//	  "metadata": {
	//	    "check_count": "525",
	//	    "maximum_checks_allowed": "500",
	//	  }
	//	}
	ErrorReason_ERROR_REASON_TOO_MANY_CHECKS_IN_REQUEST ErrorReason = 21
	// The request's specified limit is too large.
	//
	// Example of an ErrorInfo:
	//
	//	{
	//	  "reason": "ERROR_REASON_EXCEEDS_MAXIMUM_ALLOWABLE_LIMIT",
	//	  "domain": "authzed.com",
	//	  "metadata": {
	//	    "limit_provided": "525",
	//	    "maximum_limit_allowed": "500",
	//	  }
	//	}
	ErrorReason_ERROR_REASON_EXCEEDS_MAXIMUM_ALLOWABLE_LIMIT ErrorReason = 22
	// The request failed because the provided filter was invalid in some way.
	//
	// Example of an ErrorInfo:
	//
	//	{
	//	  "reason": "ERROR_REASON_INVALID_FILTER",
	//	  "domain": "authzed.com",
	//	  "metadata": {
	//	    "filter": "...",
	//	  }
	//	}
	ErrorReason_ERROR_REASON_INVALID_FILTER ErrorReason = 23
	// The request failed because too many concurrent updates were attempted
	// against the in-memory datastore.
	//
	// Example of an ErrorInfo:
	//
	//	{
	//	  "reason": "ERROR_REASON_INMEMORY_TOO_MANY_CONCURRENT_UPDATES",
	//	  "domain": "authzed.com",
	//	  "metadata": {}
	//	}
	ErrorReason_ERROR_REASON_INMEMORY_TOO_MANY_CONCURRENT_UPDATES ErrorReason = 24
	// The request failed because the precondition specified is empty.
	//
	// Example of an ErrorInfo:
	//
	//	{
	//	  "reason": "ERROR_REASON_EMPTY_PRECONDITION",
	//	  "domain": "authzed.com",
	//	  "metadata": {}
	//	}
	ErrorReason_ERROR_REASON_EMPTY_PRECONDITION ErrorReason = 25
	// The request failed because the counter was already registered.
	//
	// Example of an ErrorInfo:
	//
	//	{
	//	  "reason": "ERROR_REASON_COUNTER_ALREADY_REGISTERED",
	//	  "domain": "authzed.com",
	//	  "metadata": { "counter_name": "name" }
	//	}
	ErrorReason_ERROR_REASON_COUNTER_ALREADY_REGISTERED ErrorReason = 26
	// The request failed because the counter was not registered.
	//
	// Example of an ErrorInfo:
	//
	//	{
	//	  "reason": "ERROR_REASON_COUNTER_NOT_REGISTERED",
	//	  "domain": "authzed.com",
	//	  "metadata": { "counter_name": "name"  }
	//	}
	ErrorReason_ERROR_REASON_COUNTER_NOT_REGISTERED ErrorReason = 27
	// The request failed because a wildcard was not allowed. For CheckPermission,
	// this means that the subject or resource ID was a wildcard. For LookupResources,
	// this means that the subject ID was a wildcard.
	//
	// Example of an ErrorInfo:
	//
	//	{
	//	  "reason": "ERROR_REASON_WILDCARD_NOT_ALLOWED",
	//	  "domain": "authzed.com",
	//	  "metadata": { "disallowed_field": "subject_id" }
	//	}
	ErrorReason_ERROR_REASON_WILDCARD_NOT_ALLOWED ErrorReason = 28
	// The request failed because the transaction metadata was too large.
	//
	// Example of an ErrorInfo:
	//
	//	{
	//	  "reason": "ERROR_REASON_TRANSACTION_METADATA_TOO_LARGE",
	//	  "domain": "authzed.com",
	//	  "metadata": {
	//	    "metadata_byte_size": "1024",
	//	    "maximum_allowed_metadata_byte_size": "512",
	//	  }
	//	}
	ErrorReason_ERROR_REASON_TRANSACTION_METADATA_TOO_LARGE ErrorReason = 29
)

func (ErrorReason) Descriptor

func (ErrorReason) Enum

func (x ErrorReason) Enum() *ErrorReason

func (ErrorReason) Number

func (x ErrorReason) Number() protoreflect.EnumNumber

func (ErrorReason) String

func (x ErrorReason) String() string

func (ErrorReason) Type

type ExpCaveat

type ExpCaveat struct {
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// comment is a human-readable comments on the caveat. Will include
	// delimiter characters.
	Comment    string                `protobuf:"bytes,2,opt,name=comment,proto3" json:"comment,omitempty"`
	Parameters []*ExpCaveatParameter `protobuf:"bytes,3,rep,name=parameters,proto3" json:"parameters,omitempty"`
	Expression string                `protobuf:"bytes,4,opt,name=expression,proto3" json:"expression,omitempty"`
	// contains filtered or unexported fields
}

ExpCaveat is the representation of a caveat in the schema.

func (*ExpCaveat) GetComment

func (x *ExpCaveat) GetComment() string

func (*ExpCaveat) GetExpression

func (x *ExpCaveat) GetExpression() string

func (*ExpCaveat) GetName

func (x *ExpCaveat) GetName() string

func (*ExpCaveat) GetParameters

func (x *ExpCaveat) GetParameters() []*ExpCaveatParameter

func (*ExpCaveat) ProtoMessage

func (*ExpCaveat) ProtoMessage()

func (*ExpCaveat) ProtoReflect

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

func (*ExpCaveat) Reset

func (x *ExpCaveat) Reset()

func (*ExpCaveat) SetComment

func (x *ExpCaveat) SetComment(v string)

func (*ExpCaveat) SetExpression

func (x *ExpCaveat) SetExpression(v string)

func (*ExpCaveat) SetName

func (x *ExpCaveat) SetName(v string)

func (*ExpCaveat) SetParameters

func (x *ExpCaveat) SetParameters(v []*ExpCaveatParameter)

func (*ExpCaveat) String

func (x *ExpCaveat) String() string

type ExpCaveatParameter

type ExpCaveatParameter struct {
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// type is the type of the parameter. Will be a string representing the
	// type, e.g. `int` or `list<string>`
	Type             string `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"`
	ParentCaveatName string `protobuf:"bytes,3,opt,name=parent_caveat_name,json=parentCaveatName,proto3" json:"parent_caveat_name,omitempty"`
	// contains filtered or unexported fields
}

ExpCaveatParameter is the representation of a parameter in a caveat.

func (*ExpCaveatParameter) GetName

func (x *ExpCaveatParameter) GetName() string

func (*ExpCaveatParameter) GetParentCaveatName

func (x *ExpCaveatParameter) GetParentCaveatName() string

func (*ExpCaveatParameter) GetType

func (x *ExpCaveatParameter) GetType() string

func (*ExpCaveatParameter) ProtoMessage

func (*ExpCaveatParameter) ProtoMessage()

func (*ExpCaveatParameter) ProtoReflect

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

func (*ExpCaveatParameter) Reset

func (x *ExpCaveatParameter) Reset()

func (*ExpCaveatParameter) SetName

func (x *ExpCaveatParameter) SetName(v string)

func (*ExpCaveatParameter) SetParentCaveatName

func (x *ExpCaveatParameter) SetParentCaveatName(v string)

func (*ExpCaveatParameter) SetType

func (x *ExpCaveatParameter) SetType(v string)

func (*ExpCaveatParameter) String

func (x *ExpCaveatParameter) String() string

type ExpCaveatParameterTypeChange

type ExpCaveatParameterTypeChange struct {
	Parameter    *ExpCaveatParameter `protobuf:"bytes,1,opt,name=parameter,proto3" json:"parameter,omitempty"`
	PreviousType string              `protobuf:"bytes,2,opt,name=previous_type,json=previousType,proto3" json:"previous_type,omitempty"`
	// contains filtered or unexported fields
}

func (*ExpCaveatParameterTypeChange) ClearParameter

func (x *ExpCaveatParameterTypeChange) ClearParameter()

func (*ExpCaveatParameterTypeChange) GetParameter

func (*ExpCaveatParameterTypeChange) GetPreviousType

func (x *ExpCaveatParameterTypeChange) GetPreviousType() string

func (*ExpCaveatParameterTypeChange) HasParameter

func (x *ExpCaveatParameterTypeChange) HasParameter() bool

func (*ExpCaveatParameterTypeChange) ProtoMessage

func (*ExpCaveatParameterTypeChange) ProtoMessage()

func (*ExpCaveatParameterTypeChange) ProtoReflect

func (*ExpCaveatParameterTypeChange) Reset

func (x *ExpCaveatParameterTypeChange) Reset()

func (*ExpCaveatParameterTypeChange) SetParameter

func (*ExpCaveatParameterTypeChange) SetPreviousType

func (x *ExpCaveatParameterTypeChange) SetPreviousType(v string)

func (*ExpCaveatParameterTypeChange) String

type ExpCaveatParameterTypeChange_builder

type ExpCaveatParameterTypeChange_builder struct {
	Parameter    *ExpCaveatParameter
	PreviousType string
	// contains filtered or unexported fields
}

func (ExpCaveatParameterTypeChange_builder) Build

type ExpCaveatParameter_builder

type ExpCaveatParameter_builder struct {
	Name string
	// type is the type of the parameter. Will be a string representing the
	// type, e.g. `int` or `list<string>`
	Type             string
	ParentCaveatName string
	// contains filtered or unexported fields
}

func (ExpCaveatParameter_builder) Build

type ExpCaveat_builder

type ExpCaveat_builder struct {
	Name string
	// comment is a human-readable comments on the caveat. Will include
	// delimiter characters.
	Comment    string
	Parameters []*ExpCaveatParameter
	Expression string
	// contains filtered or unexported fields
}

func (ExpCaveat_builder) Build

func (b0 ExpCaveat_builder) Build() *ExpCaveat

type ExpDefinition

type ExpDefinition struct {
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// comment is a human-readable comments on the definition. Will include
	// delimiter characters.
	Comment     string           `protobuf:"bytes,2,opt,name=comment,proto3" json:"comment,omitempty"`
	Relations   []*ExpRelation   `protobuf:"bytes,3,rep,name=relations,proto3" json:"relations,omitempty"`
	Permissions []*ExpPermission `protobuf:"bytes,4,rep,name=permissions,proto3" json:"permissions,omitempty"`
	// contains filtered or unexported fields
}

ExpDefinition is the representation of a definition in the schema.

func (*ExpDefinition) GetComment

func (x *ExpDefinition) GetComment() string

func (*ExpDefinition) GetName

func (x *ExpDefinition) GetName() string

func (*ExpDefinition) GetPermissions

func (x *ExpDefinition) GetPermissions() []*ExpPermission

func (*ExpDefinition) GetRelations

func (x *ExpDefinition) GetRelations() []*ExpRelation

func (*ExpDefinition) ProtoMessage

func (*ExpDefinition) ProtoMessage()

func (*ExpDefinition) ProtoReflect

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

func (*ExpDefinition) Reset

func (x *ExpDefinition) Reset()

func (*ExpDefinition) SetComment

func (x *ExpDefinition) SetComment(v string)

func (*ExpDefinition) SetName

func (x *ExpDefinition) SetName(v string)

func (*ExpDefinition) SetPermissions

func (x *ExpDefinition) SetPermissions(v []*ExpPermission)

func (*ExpDefinition) SetRelations

func (x *ExpDefinition) SetRelations(v []*ExpRelation)

func (*ExpDefinition) String

func (x *ExpDefinition) String() string

type ExpDefinition_builder

type ExpDefinition_builder struct {
	Name string
	// comment is a human-readable comments on the definition. Will include
	// delimiter characters.
	Comment     string
	Relations   []*ExpRelation
	Permissions []*ExpPermission
	// contains filtered or unexported fields
}

func (ExpDefinition_builder) Build

type ExpPermission

type ExpPermission struct {
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// comment is a human-readable comments on the permission. Will include
	// delimiter characters.
	Comment              string `protobuf:"bytes,2,opt,name=comment,proto3" json:"comment,omitempty"`
	ParentDefinitionName string `protobuf:"bytes,3,opt,name=parent_definition_name,json=parentDefinitionName,proto3" json:"parent_definition_name,omitempty"`
	// contains filtered or unexported fields
}

ExpPermission is the representation of a permission in the schema.

func (*ExpPermission) GetComment

func (x *ExpPermission) GetComment() string

func (*ExpPermission) GetName

func (x *ExpPermission) GetName() string

func (*ExpPermission) GetParentDefinitionName

func (x *ExpPermission) GetParentDefinitionName() string

func (*ExpPermission) ProtoMessage

func (*ExpPermission) ProtoMessage()

func (*ExpPermission) ProtoReflect

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

func (*ExpPermission) Reset

func (x *ExpPermission) Reset()

func (*ExpPermission) SetComment

func (x *ExpPermission) SetComment(v string)

func (*ExpPermission) SetName

func (x *ExpPermission) SetName(v string)

func (*ExpPermission) SetParentDefinitionName

func (x *ExpPermission) SetParentDefinitionName(v string)

func (*ExpPermission) String

func (x *ExpPermission) String() string

type ExpPermission_builder

type ExpPermission_builder struct {
	Name string
	// comment is a human-readable comments on the permission. Will include
	// delimiter characters.
	Comment              string
	ParentDefinitionName string
	// contains filtered or unexported fields
}

func (ExpPermission_builder) Build

type ExpRelation

type ExpRelation struct {
	Name                 string              `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Comment              string              `protobuf:"bytes,2,opt,name=comment,proto3" json:"comment,omitempty"`
	ParentDefinitionName string              `protobuf:"bytes,3,opt,name=parent_definition_name,json=parentDefinitionName,proto3" json:"parent_definition_name,omitempty"`
	SubjectTypes         []*ExpTypeReference `protobuf:"bytes,4,rep,name=subject_types,json=subjectTypes,proto3" json:"subject_types,omitempty"`
	// contains filtered or unexported fields
}

ExpRelation is the representation of a relation in the schema.

func (*ExpRelation) GetComment

func (x *ExpRelation) GetComment() string

func (*ExpRelation) GetName

func (x *ExpRelation) GetName() string

func (*ExpRelation) GetParentDefinitionName

func (x *ExpRelation) GetParentDefinitionName() string

func (*ExpRelation) GetSubjectTypes

func (x *ExpRelation) GetSubjectTypes() []*ExpTypeReference

func (*ExpRelation) ProtoMessage

func (*ExpRelation) ProtoMessage()

func (*ExpRelation) ProtoReflect

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

func (*ExpRelation) Reset

func (x *ExpRelation) Reset()

func (*ExpRelation) SetComment

func (x *ExpRelation) SetComment(v string)

func (*ExpRelation) SetName

func (x *ExpRelation) SetName(v string)

func (*ExpRelation) SetParentDefinitionName

func (x *ExpRelation) SetParentDefinitionName(v string)

func (*ExpRelation) SetSubjectTypes

func (x *ExpRelation) SetSubjectTypes(v []*ExpTypeReference)

func (*ExpRelation) String

func (x *ExpRelation) String() string

type ExpRelationReference

type ExpRelationReference struct {
	DefinitionName string `protobuf:"bytes,1,opt,name=definition_name,json=definitionName,proto3" json:"definition_name,omitempty"`
	RelationName   string `protobuf:"bytes,2,opt,name=relation_name,json=relationName,proto3" json:"relation_name,omitempty"`
	IsPermission   bool   `protobuf:"varint,3,opt,name=is_permission,json=isPermission,proto3" json:"is_permission,omitempty"`
	// contains filtered or unexported fields
}

ExpRelationReference is a reference to a relation or permission in the schema.

func (*ExpRelationReference) GetDefinitionName

func (x *ExpRelationReference) GetDefinitionName() string

func (*ExpRelationReference) GetIsPermission

func (x *ExpRelationReference) GetIsPermission() bool

func (*ExpRelationReference) GetRelationName

func (x *ExpRelationReference) GetRelationName() string

func (*ExpRelationReference) ProtoMessage

func (*ExpRelationReference) ProtoMessage()

func (*ExpRelationReference) ProtoReflect

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

func (*ExpRelationReference) Reset

func (x *ExpRelationReference) Reset()

func (*ExpRelationReference) SetDefinitionName

func (x *ExpRelationReference) SetDefinitionName(v string)

func (*ExpRelationReference) SetIsPermission

func (x *ExpRelationReference) SetIsPermission(v bool)

func (*ExpRelationReference) SetRelationName

func (x *ExpRelationReference) SetRelationName(v string)

func (*ExpRelationReference) String

func (x *ExpRelationReference) String() string

type ExpRelationReference_builder

type ExpRelationReference_builder struct {
	DefinitionName string
	RelationName   string
	IsPermission   bool
	// contains filtered or unexported fields
}

func (ExpRelationReference_builder) Build

type ExpRelationSubjectTypeChange

type ExpRelationSubjectTypeChange struct {
	Relation           *ExpRelation      `protobuf:"bytes,1,opt,name=relation,proto3" json:"relation,omitempty"`
	ChangedSubjectType *ExpTypeReference `protobuf:"bytes,2,opt,name=changed_subject_type,json=changedSubjectType,proto3" json:"changed_subject_type,omitempty"`
	// contains filtered or unexported fields
}

func (*ExpRelationSubjectTypeChange) ClearChangedSubjectType

func (x *ExpRelationSubjectTypeChange) ClearChangedSubjectType()

func (*ExpRelationSubjectTypeChange) ClearRelation

func (x *ExpRelationSubjectTypeChange) ClearRelation()

func (*ExpRelationSubjectTypeChange) GetChangedSubjectType

func (x *ExpRelationSubjectTypeChange) GetChangedSubjectType() *ExpTypeReference

func (*ExpRelationSubjectTypeChange) GetRelation

func (x *ExpRelationSubjectTypeChange) GetRelation() *ExpRelation

func (*ExpRelationSubjectTypeChange) HasChangedSubjectType

func (x *ExpRelationSubjectTypeChange) HasChangedSubjectType() bool

func (*ExpRelationSubjectTypeChange) HasRelation

func (x *ExpRelationSubjectTypeChange) HasRelation() bool

func (*ExpRelationSubjectTypeChange) ProtoMessage

func (*ExpRelationSubjectTypeChange) ProtoMessage()

func (*ExpRelationSubjectTypeChange) ProtoReflect

func (*ExpRelationSubjectTypeChange) Reset

func (x *ExpRelationSubjectTypeChange) Reset()

func (*ExpRelationSubjectTypeChange) SetChangedSubjectType

func (x *ExpRelationSubjectTypeChange) SetChangedSubjectType(v *ExpTypeReference)

func (*ExpRelationSubjectTypeChange) SetRelation

func (x *ExpRelationSubjectTypeChange) SetRelation(v *ExpRelation)

func (*ExpRelationSubjectTypeChange) String

type ExpRelationSubjectTypeChange_builder

type ExpRelationSubjectTypeChange_builder struct {
	Relation           *ExpRelation
	ChangedSubjectType *ExpTypeReference
	// contains filtered or unexported fields
}

func (ExpRelationSubjectTypeChange_builder) Build

type ExpRelation_builder

type ExpRelation_builder struct {
	Name                 string
	Comment              string
	ParentDefinitionName string
	SubjectTypes         []*ExpTypeReference
	// contains filtered or unexported fields
}

func (ExpRelation_builder) Build

func (b0 ExpRelation_builder) Build() *ExpRelation

type ExpSchemaDiff

type ExpSchemaDiff struct {

	// Types that are valid to be assigned to Diff:
	//
	//	*ExpSchemaDiff_DefinitionAdded
	//	*ExpSchemaDiff_DefinitionRemoved
	//	*ExpSchemaDiff_DefinitionDocCommentChanged
	//	*ExpSchemaDiff_RelationAdded
	//	*ExpSchemaDiff_RelationRemoved
	//	*ExpSchemaDiff_RelationDocCommentChanged
	//	*ExpSchemaDiff_RelationSubjectTypeAdded
	//	*ExpSchemaDiff_RelationSubjectTypeRemoved
	//	*ExpSchemaDiff_PermissionAdded
	//	*ExpSchemaDiff_PermissionRemoved
	//	*ExpSchemaDiff_PermissionDocCommentChanged
	//	*ExpSchemaDiff_PermissionExprChanged
	//	*ExpSchemaDiff_CaveatAdded
	//	*ExpSchemaDiff_CaveatRemoved
	//	*ExpSchemaDiff_CaveatDocCommentChanged
	//	*ExpSchemaDiff_CaveatExprChanged
	//	*ExpSchemaDiff_CaveatParameterAdded
	//	*ExpSchemaDiff_CaveatParameterRemoved
	//	*ExpSchemaDiff_CaveatParameterTypeChanged
	Diff isExpSchemaDiff_Diff `protobuf_oneof:"diff"`
	// contains filtered or unexported fields
}

ExpSchemaDiff is the representation of a diff between two schemas.

func (*ExpSchemaDiff) ClearCaveatAdded

func (x *ExpSchemaDiff) ClearCaveatAdded()

func (*ExpSchemaDiff) ClearCaveatDocCommentChanged

func (x *ExpSchemaDiff) ClearCaveatDocCommentChanged()

func (*ExpSchemaDiff) ClearCaveatExprChanged

func (x *ExpSchemaDiff) ClearCaveatExprChanged()

func (*ExpSchemaDiff) ClearCaveatParameterAdded

func (x *ExpSchemaDiff) ClearCaveatParameterAdded()

func (*ExpSchemaDiff) ClearCaveatParameterRemoved

func (x *ExpSchemaDiff) ClearCaveatParameterRemoved()

func (*ExpSchemaDiff) ClearCaveatParameterTypeChanged

func (x *ExpSchemaDiff) ClearCaveatParameterTypeChanged()

func (*ExpSchemaDiff) ClearCaveatRemoved

func (x *ExpSchemaDiff) ClearCaveatRemoved()

func (*ExpSchemaDiff) ClearDefinitionAdded

func (x *ExpSchemaDiff) ClearDefinitionAdded()

func (*ExpSchemaDiff) ClearDefinitionDocCommentChanged

func (x *ExpSchemaDiff) ClearDefinitionDocCommentChanged()

func (*ExpSchemaDiff) ClearDefinitionRemoved

func (x *ExpSchemaDiff) ClearDefinitionRemoved()

func (*ExpSchemaDiff) ClearDiff

func (x *ExpSchemaDiff) ClearDiff()

func (*ExpSchemaDiff) ClearPermissionAdded

func (x *ExpSchemaDiff) ClearPermissionAdded()

func (*ExpSchemaDiff) ClearPermissionDocCommentChanged

func (x *ExpSchemaDiff) ClearPermissionDocCommentChanged()

func (*ExpSchemaDiff) ClearPermissionExprChanged

func (x *ExpSchemaDiff) ClearPermissionExprChanged()

func (*ExpSchemaDiff) ClearPermissionRemoved

func (x *ExpSchemaDiff) ClearPermissionRemoved()

func (*ExpSchemaDiff) ClearRelationAdded

func (x *ExpSchemaDiff) ClearRelationAdded()

func (*ExpSchemaDiff) ClearRelationDocCommentChanged

func (x *ExpSchemaDiff) ClearRelationDocCommentChanged()

func (*ExpSchemaDiff) ClearRelationRemoved

func (x *ExpSchemaDiff) ClearRelationRemoved()

func (*ExpSchemaDiff) ClearRelationSubjectTypeAdded

func (x *ExpSchemaDiff) ClearRelationSubjectTypeAdded()

func (*ExpSchemaDiff) ClearRelationSubjectTypeRemoved

func (x *ExpSchemaDiff) ClearRelationSubjectTypeRemoved()

func (*ExpSchemaDiff) GetCaveatAdded

func (x *ExpSchemaDiff) GetCaveatAdded() *ExpCaveat

func (*ExpSchemaDiff) GetCaveatDocCommentChanged

func (x *ExpSchemaDiff) GetCaveatDocCommentChanged() *ExpCaveat

func (*ExpSchemaDiff) GetCaveatExprChanged

func (x *ExpSchemaDiff) GetCaveatExprChanged() *ExpCaveat

func (*ExpSchemaDiff) GetCaveatParameterAdded

func (x *ExpSchemaDiff) GetCaveatParameterAdded() *ExpCaveatParameter

func (*ExpSchemaDiff) GetCaveatParameterRemoved

func (x *ExpSchemaDiff) GetCaveatParameterRemoved() *ExpCaveatParameter

func (*ExpSchemaDiff) GetCaveatParameterTypeChanged

func (x *ExpSchemaDiff) GetCaveatParameterTypeChanged() *ExpCaveatParameterTypeChange

func (*ExpSchemaDiff) GetCaveatRemoved

func (x *ExpSchemaDiff) GetCaveatRemoved() *ExpCaveat

func (*ExpSchemaDiff) GetDefinitionAdded

func (x *ExpSchemaDiff) GetDefinitionAdded() *ExpDefinition

func (*ExpSchemaDiff) GetDefinitionDocCommentChanged

func (x *ExpSchemaDiff) GetDefinitionDocCommentChanged() *ExpDefinition

func (*ExpSchemaDiff) GetDefinitionRemoved

func (x *ExpSchemaDiff) GetDefinitionRemoved() *ExpDefinition

func (*ExpSchemaDiff) GetDiff

func (x *ExpSchemaDiff) GetDiff() isExpSchemaDiff_Diff

func (*ExpSchemaDiff) GetPermissionAdded

func (x *ExpSchemaDiff) GetPermissionAdded() *ExpPermission

func (*ExpSchemaDiff) GetPermissionDocCommentChanged

func (x *ExpSchemaDiff) GetPermissionDocCommentChanged() *ExpPermission

func (*ExpSchemaDiff) GetPermissionExprChanged

func (x *ExpSchemaDiff) GetPermissionExprChanged() *ExpPermission

func (*ExpSchemaDiff) GetPermissionRemoved

func (x *ExpSchemaDiff) GetPermissionRemoved() *ExpPermission

func (*ExpSchemaDiff) GetRelationAdded

func (x *ExpSchemaDiff) GetRelationAdded() *ExpRelation

func (*ExpSchemaDiff) GetRelationDocCommentChanged

func (x *ExpSchemaDiff) GetRelationDocCommentChanged() *ExpRelation

func (*ExpSchemaDiff) GetRelationRemoved

func (x *ExpSchemaDiff) GetRelationRemoved() *ExpRelation

func (*ExpSchemaDiff) GetRelationSubjectTypeAdded

func (x *ExpSchemaDiff) GetRelationSubjectTypeAdded() *ExpRelationSubjectTypeChange

func (*ExpSchemaDiff) GetRelationSubjectTypeRemoved

func (x *ExpSchemaDiff) GetRelationSubjectTypeRemoved() *ExpRelationSubjectTypeChange

func (*ExpSchemaDiff) HasCaveatAdded

func (x *ExpSchemaDiff) HasCaveatAdded() bool

func (*ExpSchemaDiff) HasCaveatDocCommentChanged

func (x *ExpSchemaDiff) HasCaveatDocCommentChanged() bool

func (*ExpSchemaDiff) HasCaveatExprChanged

func (x *ExpSchemaDiff) HasCaveatExprChanged() bool

func (*ExpSchemaDiff) HasCaveatParameterAdded

func (x *ExpSchemaDiff) HasCaveatParameterAdded() bool

func (*ExpSchemaDiff) HasCaveatParameterRemoved

func (x *ExpSchemaDiff) HasCaveatParameterRemoved() bool

func (*ExpSchemaDiff) HasCaveatParameterTypeChanged

func (x *ExpSchemaDiff) HasCaveatParameterTypeChanged() bool

func (*ExpSchemaDiff) HasCaveatRemoved

func (x *ExpSchemaDiff) HasCaveatRemoved() bool

func (*ExpSchemaDiff) HasDefinitionAdded

func (x *ExpSchemaDiff) HasDefinitionAdded() bool

func (*ExpSchemaDiff) HasDefinitionDocCommentChanged

func (x *ExpSchemaDiff) HasDefinitionDocCommentChanged() bool

func (*ExpSchemaDiff) HasDefinitionRemoved

func (x *ExpSchemaDiff) HasDefinitionRemoved() bool

func (*ExpSchemaDiff) HasDiff

func (x *ExpSchemaDiff) HasDiff() bool

func (*ExpSchemaDiff) HasPermissionAdded

func (x *ExpSchemaDiff) HasPermissionAdded() bool

func (*ExpSchemaDiff) HasPermissionDocCommentChanged

func (x *ExpSchemaDiff) HasPermissionDocCommentChanged() bool

func (*ExpSchemaDiff) HasPermissionExprChanged

func (x *ExpSchemaDiff) HasPermissionExprChanged() bool

func (*ExpSchemaDiff) HasPermissionRemoved

func (x *ExpSchemaDiff) HasPermissionRemoved() bool

func (*ExpSchemaDiff) HasRelationAdded

func (x *ExpSchemaDiff) HasRelationAdded() bool

func (*ExpSchemaDiff) HasRelationDocCommentChanged

func (x *ExpSchemaDiff) HasRelationDocCommentChanged() bool

func (*ExpSchemaDiff) HasRelationRemoved

func (x *ExpSchemaDiff) HasRelationRemoved() bool

func (*ExpSchemaDiff) HasRelationSubjectTypeAdded

func (x *ExpSchemaDiff) HasRelationSubjectTypeAdded() bool

func (*ExpSchemaDiff) HasRelationSubjectTypeRemoved

func (x *ExpSchemaDiff) HasRelationSubjectTypeRemoved() bool

func (*ExpSchemaDiff) ProtoMessage

func (*ExpSchemaDiff) ProtoMessage()

func (*ExpSchemaDiff) ProtoReflect

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

func (*ExpSchemaDiff) Reset

func (x *ExpSchemaDiff) Reset()

func (*ExpSchemaDiff) SetCaveatAdded

func (x *ExpSchemaDiff) SetCaveatAdded(v *ExpCaveat)

func (*ExpSchemaDiff) SetCaveatDocCommentChanged

func (x *ExpSchemaDiff) SetCaveatDocCommentChanged(v *ExpCaveat)

func (*ExpSchemaDiff) SetCaveatExprChanged

func (x *ExpSchemaDiff) SetCaveatExprChanged(v *ExpCaveat)

func (*ExpSchemaDiff) SetCaveatParameterAdded

func (x *ExpSchemaDiff) SetCaveatParameterAdded(v *ExpCaveatParameter)

func (*ExpSchemaDiff) SetCaveatParameterRemoved

func (x *ExpSchemaDiff) SetCaveatParameterRemoved(v *ExpCaveatParameter)

func (*ExpSchemaDiff) SetCaveatParameterTypeChanged

func (x *ExpSchemaDiff) SetCaveatParameterTypeChanged(v *ExpCaveatParameterTypeChange)

func (*ExpSchemaDiff) SetCaveatRemoved

func (x *ExpSchemaDiff) SetCaveatRemoved(v *ExpCaveat)

func (*ExpSchemaDiff) SetDefinitionAdded

func (x *ExpSchemaDiff) SetDefinitionAdded(v *ExpDefinition)

func (*ExpSchemaDiff) SetDefinitionDocCommentChanged

func (x *ExpSchemaDiff) SetDefinitionDocCommentChanged(v *ExpDefinition)

func (*ExpSchemaDiff) SetDefinitionRemoved

func (x *ExpSchemaDiff) SetDefinitionRemoved(v *ExpDefinition)

func (*ExpSchemaDiff) SetPermissionAdded

func (x *ExpSchemaDiff) SetPermissionAdded(v *ExpPermission)

func (*ExpSchemaDiff) SetPermissionDocCommentChanged

func (x *ExpSchemaDiff) SetPermissionDocCommentChanged(v *ExpPermission)

func (*ExpSchemaDiff) SetPermissionExprChanged

func (x *ExpSchemaDiff) SetPermissionExprChanged(v *ExpPermission)

func (*ExpSchemaDiff) SetPermissionRemoved

func (x *ExpSchemaDiff) SetPermissionRemoved(v *ExpPermission)

func (*ExpSchemaDiff) SetRelationAdded

func (x *ExpSchemaDiff) SetRelationAdded(v *ExpRelation)

func (*ExpSchemaDiff) SetRelationDocCommentChanged

func (x *ExpSchemaDiff) SetRelationDocCommentChanged(v *ExpRelation)

func (*ExpSchemaDiff) SetRelationRemoved

func (x *ExpSchemaDiff) SetRelationRemoved(v *ExpRelation)

func (*ExpSchemaDiff) SetRelationSubjectTypeAdded

func (x *ExpSchemaDiff) SetRelationSubjectTypeAdded(v *ExpRelationSubjectTypeChange)

func (*ExpSchemaDiff) SetRelationSubjectTypeRemoved

func (x *ExpSchemaDiff) SetRelationSubjectTypeRemoved(v *ExpRelationSubjectTypeChange)

func (*ExpSchemaDiff) String

func (x *ExpSchemaDiff) String() string

func (*ExpSchemaDiff) WhichDiff

func (x *ExpSchemaDiff) WhichDiff() case_ExpSchemaDiff_Diff

type ExpSchemaDiff_CaveatAdded

type ExpSchemaDiff_CaveatAdded struct {
	CaveatAdded *ExpCaveat `protobuf:"bytes,13,opt,name=caveat_added,json=caveatAdded,proto3,oneof"`
}

type ExpSchemaDiff_CaveatDocCommentChanged

type ExpSchemaDiff_CaveatDocCommentChanged struct {
	CaveatDocCommentChanged *ExpCaveat `protobuf:"bytes,15,opt,name=caveat_doc_comment_changed,json=caveatDocCommentChanged,proto3,oneof"`
}

type ExpSchemaDiff_CaveatExprChanged

type ExpSchemaDiff_CaveatExprChanged struct {
	CaveatExprChanged *ExpCaveat `protobuf:"bytes,16,opt,name=caveat_expr_changed,json=caveatExprChanged,proto3,oneof"`
}

type ExpSchemaDiff_CaveatParameterAdded

type ExpSchemaDiff_CaveatParameterAdded struct {
	CaveatParameterAdded *ExpCaveatParameter `protobuf:"bytes,17,opt,name=caveat_parameter_added,json=caveatParameterAdded,proto3,oneof"`
}

type ExpSchemaDiff_CaveatParameterRemoved

type ExpSchemaDiff_CaveatParameterRemoved struct {
	CaveatParameterRemoved *ExpCaveatParameter `protobuf:"bytes,18,opt,name=caveat_parameter_removed,json=caveatParameterRemoved,proto3,oneof"`
}

type ExpSchemaDiff_CaveatParameterTypeChanged

type ExpSchemaDiff_CaveatParameterTypeChanged struct {
	CaveatParameterTypeChanged *ExpCaveatParameterTypeChange `protobuf:"bytes,19,opt,name=caveat_parameter_type_changed,json=caveatParameterTypeChanged,proto3,oneof"`
}

type ExpSchemaDiff_CaveatRemoved

type ExpSchemaDiff_CaveatRemoved struct {
	CaveatRemoved *ExpCaveat `protobuf:"bytes,14,opt,name=caveat_removed,json=caveatRemoved,proto3,oneof"`
}

type ExpSchemaDiff_DefinitionAdded

type ExpSchemaDiff_DefinitionAdded struct {
	DefinitionAdded *ExpDefinition `protobuf:"bytes,1,opt,name=definition_added,json=definitionAdded,proto3,oneof"`
}

type ExpSchemaDiff_DefinitionDocCommentChanged

type ExpSchemaDiff_DefinitionDocCommentChanged struct {
	DefinitionDocCommentChanged *ExpDefinition `protobuf:"bytes,3,opt,name=definition_doc_comment_changed,json=definitionDocCommentChanged,proto3,oneof"`
}

type ExpSchemaDiff_DefinitionRemoved

type ExpSchemaDiff_DefinitionRemoved struct {
	DefinitionRemoved *ExpDefinition `protobuf:"bytes,2,opt,name=definition_removed,json=definitionRemoved,proto3,oneof"`
}

type ExpSchemaDiff_PermissionAdded

type ExpSchemaDiff_PermissionAdded struct {
	PermissionAdded *ExpPermission `protobuf:"bytes,9,opt,name=permission_added,json=permissionAdded,proto3,oneof"`
}

type ExpSchemaDiff_PermissionDocCommentChanged

type ExpSchemaDiff_PermissionDocCommentChanged struct {
	PermissionDocCommentChanged *ExpPermission `protobuf:"bytes,11,opt,name=permission_doc_comment_changed,json=permissionDocCommentChanged,proto3,oneof"`
}

type ExpSchemaDiff_PermissionExprChanged

type ExpSchemaDiff_PermissionExprChanged struct {
	PermissionExprChanged *ExpPermission `protobuf:"bytes,12,opt,name=permission_expr_changed,json=permissionExprChanged,proto3,oneof"`
}

type ExpSchemaDiff_PermissionRemoved

type ExpSchemaDiff_PermissionRemoved struct {
	PermissionRemoved *ExpPermission `protobuf:"bytes,10,opt,name=permission_removed,json=permissionRemoved,proto3,oneof"`
}

type ExpSchemaDiff_RelationAdded

type ExpSchemaDiff_RelationAdded struct {
	RelationAdded *ExpRelation `protobuf:"bytes,4,opt,name=relation_added,json=relationAdded,proto3,oneof"`
}

type ExpSchemaDiff_RelationDocCommentChanged

type ExpSchemaDiff_RelationDocCommentChanged struct {
	RelationDocCommentChanged *ExpRelation `protobuf:"bytes,6,opt,name=relation_doc_comment_changed,json=relationDocCommentChanged,proto3,oneof"`
}

type ExpSchemaDiff_RelationRemoved

type ExpSchemaDiff_RelationRemoved struct {
	RelationRemoved *ExpRelation `protobuf:"bytes,5,opt,name=relation_removed,json=relationRemoved,proto3,oneof"`
}

type ExpSchemaDiff_RelationSubjectTypeAdded

type ExpSchemaDiff_RelationSubjectTypeAdded struct {
	RelationSubjectTypeAdded *ExpRelationSubjectTypeChange `protobuf:"bytes,7,opt,name=relation_subject_type_added,json=relationSubjectTypeAdded,proto3,oneof"`
}

type ExpSchemaDiff_RelationSubjectTypeRemoved

type ExpSchemaDiff_RelationSubjectTypeRemoved struct {
	RelationSubjectTypeRemoved *ExpRelationSubjectTypeChange `protobuf:"bytes,8,opt,name=relation_subject_type_removed,json=relationSubjectTypeRemoved,proto3,oneof"`
}

type ExpSchemaDiff_builder

type ExpSchemaDiff_builder struct {

	// Fields of oneof Diff:
	DefinitionAdded             *ExpDefinition
	DefinitionRemoved           *ExpDefinition
	DefinitionDocCommentChanged *ExpDefinition
	RelationAdded               *ExpRelation
	RelationRemoved             *ExpRelation
	RelationDocCommentChanged   *ExpRelation
	RelationSubjectTypeAdded    *ExpRelationSubjectTypeChange
	RelationSubjectTypeRemoved  *ExpRelationSubjectTypeChange
	PermissionAdded             *ExpPermission
	PermissionRemoved           *ExpPermission
	PermissionDocCommentChanged *ExpPermission
	PermissionExprChanged       *ExpPermission
	CaveatAdded                 *ExpCaveat
	CaveatRemoved               *ExpCaveat
	CaveatDocCommentChanged     *ExpCaveat
	CaveatExprChanged           *ExpCaveat
	CaveatParameterAdded        *ExpCaveatParameter
	CaveatParameterRemoved      *ExpCaveatParameter
	CaveatParameterTypeChanged  *ExpCaveatParameterTypeChange
	// contains filtered or unexported fields
}

func (ExpSchemaDiff_builder) Build

type ExpSchemaFilter

type ExpSchemaFilter struct {

	// optional_definition_name_filter is a prefix that is matched against the definition name.
	OptionalDefinitionNameFilter string `` /* 149-byte string literal not displayed */
	// optional_caveat_name_filter is a prefix that is matched against the caveat name.
	OptionalCaveatNameFilter string `` /* 137-byte string literal not displayed */
	// optional_relation_name_filter is a prefix that is matched against the relation name.
	OptionalRelationNameFilter string `` /* 143-byte string literal not displayed */
	// optional_permission_name_filter is a prefix that is matched against the permission name.
	OptionalPermissionNameFilter string `` /* 149-byte string literal not displayed */
	// contains filtered or unexported fields
}

ExpSchemaFilter is a filter that can be applied to the schema on reflection.

func (*ExpSchemaFilter) GetOptionalCaveatNameFilter

func (x *ExpSchemaFilter) GetOptionalCaveatNameFilter() string

func (*ExpSchemaFilter) GetOptionalDefinitionNameFilter

func (x *ExpSchemaFilter) GetOptionalDefinitionNameFilter() string

func (*ExpSchemaFilter) GetOptionalPermissionNameFilter

func (x *ExpSchemaFilter) GetOptionalPermissionNameFilter() string

func (*ExpSchemaFilter) GetOptionalRelationNameFilter

func (x *ExpSchemaFilter) GetOptionalRelationNameFilter() string

func (*ExpSchemaFilter) ProtoMessage

func (*ExpSchemaFilter) ProtoMessage()

func (*ExpSchemaFilter) ProtoReflect

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

func (*ExpSchemaFilter) Reset

func (x *ExpSchemaFilter) Reset()

func (*ExpSchemaFilter) SetOptionalCaveatNameFilter

func (x *ExpSchemaFilter) SetOptionalCaveatNameFilter(v string)

func (*ExpSchemaFilter) SetOptionalDefinitionNameFilter

func (x *ExpSchemaFilter) SetOptionalDefinitionNameFilter(v string)

func (*ExpSchemaFilter) SetOptionalPermissionNameFilter

func (x *ExpSchemaFilter) SetOptionalPermissionNameFilter(v string)

func (*ExpSchemaFilter) SetOptionalRelationNameFilter

func (x *ExpSchemaFilter) SetOptionalRelationNameFilter(v string)

func (*ExpSchemaFilter) String

func (x *ExpSchemaFilter) String() string

type ExpSchemaFilter_builder

type ExpSchemaFilter_builder struct {

	// optional_definition_name_filter is a prefix that is matched against the definition name.
	OptionalDefinitionNameFilter string
	// optional_caveat_name_filter is a prefix that is matched against the caveat name.
	OptionalCaveatNameFilter string
	// optional_relation_name_filter is a prefix that is matched against the relation name.
	OptionalRelationNameFilter string
	// optional_permission_name_filter is a prefix that is matched against the permission name.
	OptionalPermissionNameFilter string
	// contains filtered or unexported fields
}

func (ExpSchemaFilter_builder) Build

type ExpTypeReference

type ExpTypeReference struct {

	// subject_definition_name is the name of the subject's definition.
	SubjectDefinitionName string `` /* 126-byte string literal not displayed */
	// optional_caveat_name is the name of the caveat that is applied to the subject, if any.
	OptionalCaveatName string `protobuf:"bytes,2,opt,name=optional_caveat_name,json=optionalCaveatName,proto3" json:"optional_caveat_name,omitempty"`
	// Types that are valid to be assigned to Typeref:
	//
	//	*ExpTypeReference_IsTerminalSubject
	//	*ExpTypeReference_OptionalRelationName
	//	*ExpTypeReference_IsPublicWildcard
	Typeref isExpTypeReference_Typeref `protobuf_oneof:"typeref"`
	// contains filtered or unexported fields
}

ExpTypeReference is the representation of a type reference in the schema.

func (*ExpTypeReference) ClearIsPublicWildcard

func (x *ExpTypeReference) ClearIsPublicWildcard()

func (*ExpTypeReference) ClearIsTerminalSubject

func (x *ExpTypeReference) ClearIsTerminalSubject()

func (*ExpTypeReference) ClearOptionalRelationName

func (x *ExpTypeReference) ClearOptionalRelationName()

func (*ExpTypeReference) ClearTyperef

func (x *ExpTypeReference) ClearTyperef()

func (*ExpTypeReference) GetIsPublicWildcard

func (x *ExpTypeReference) GetIsPublicWildcard() bool

func (*ExpTypeReference) GetIsTerminalSubject

func (x *ExpTypeReference) GetIsTerminalSubject() bool

func (*ExpTypeReference) GetOptionalCaveatName

func (x *ExpTypeReference) GetOptionalCaveatName() string

func (*ExpTypeReference) GetOptionalRelationName

func (x *ExpTypeReference) GetOptionalRelationName() string

func (*ExpTypeReference) GetSubjectDefinitionName

func (x *ExpTypeReference) GetSubjectDefinitionName() string

func (*ExpTypeReference) GetTyperef

func (x *ExpTypeReference) GetTyperef() isExpTypeReference_Typeref

func (*ExpTypeReference) HasIsPublicWildcard

func (x *ExpTypeReference) HasIsPublicWildcard() bool

func (*ExpTypeReference) HasIsTerminalSubject

func (x *ExpTypeReference) HasIsTerminalSubject() bool

func (*ExpTypeReference) HasOptionalRelationName

func (x *ExpTypeReference) HasOptionalRelationName() bool

func (*ExpTypeReference) HasTyperef

func (x *ExpTypeReference) HasTyperef() bool

func (*ExpTypeReference) ProtoMessage

func (*ExpTypeReference) ProtoMessage()

func (*ExpTypeReference) ProtoReflect

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

func (*ExpTypeReference) Reset

func (x *ExpTypeReference) Reset()

func (*ExpTypeReference) SetIsPublicWildcard

func (x *ExpTypeReference) SetIsPublicWildcard(v bool)

func (*ExpTypeReference) SetIsTerminalSubject

func (x *ExpTypeReference) SetIsTerminalSubject(v bool)

func (*ExpTypeReference) SetOptionalCaveatName

func (x *ExpTypeReference) SetOptionalCaveatName(v string)

func (*ExpTypeReference) SetOptionalRelationName

func (x *ExpTypeReference) SetOptionalRelationName(v string)

func (*ExpTypeReference) SetSubjectDefinitionName

func (x *ExpTypeReference) SetSubjectDefinitionName(v string)

func (*ExpTypeReference) String

func (x *ExpTypeReference) String() string

func (*ExpTypeReference) WhichTyperef

func (x *ExpTypeReference) WhichTyperef() case_ExpTypeReference_Typeref

type ExpTypeReference_IsPublicWildcard

type ExpTypeReference_IsPublicWildcard struct {
	// is_public_wildcard is true if the subject is a public wildcard.
	IsPublicWildcard bool `protobuf:"varint,5,opt,name=is_public_wildcard,json=isPublicWildcard,proto3,oneof"`
}

type ExpTypeReference_IsTerminalSubject

type ExpTypeReference_IsTerminalSubject struct {
	// is_terminal_subject is true if the subject is terminal, meaning it is referenced directly vs a sub-relation.
	IsTerminalSubject bool `protobuf:"varint,3,opt,name=is_terminal_subject,json=isTerminalSubject,proto3,oneof"`
}

type ExpTypeReference_OptionalRelationName

type ExpTypeReference_OptionalRelationName struct {
	// optional_relation_name is the name of the relation that is applied to the subject, if any.
	OptionalRelationName string `protobuf:"bytes,4,opt,name=optional_relation_name,json=optionalRelationName,proto3,oneof"`
}

type ExpTypeReference_builder

type ExpTypeReference_builder struct {

	// subject_definition_name is the name of the subject's definition.
	SubjectDefinitionName string
	// optional_caveat_name is the name of the caveat that is applied to the subject, if any.
	OptionalCaveatName string
	// Fields of oneof Typeref:
	// is_terminal_subject is true if the subject is terminal, meaning it is referenced directly vs a sub-relation.
	IsTerminalSubject *bool
	// optional_relation_name is the name of the relation that is applied to the subject, if any.
	OptionalRelationName *string
	// is_public_wildcard is true if the subject is a public wildcard.
	IsPublicWildcard *bool
	// contains filtered or unexported fields
}

func (ExpTypeReference_builder) Build

type ExpandPermissionTreeRequest

type ExpandPermissionTreeRequest struct {
	Consistency *Consistency `protobuf:"bytes,1,opt,name=consistency,proto3" json:"consistency,omitempty"`
	// resource is the resource over which to run the expansion.
	Resource *ObjectReference `protobuf:"bytes,2,opt,name=resource,proto3" json:"resource,omitempty"`
	// permission is the name of the permission or relation over which to run the
	// expansion for the resource.
	Permission string `protobuf:"bytes,3,opt,name=permission,proto3" json:"permission,omitempty"`
	// contains filtered or unexported fields
}

ExpandPermissionTreeRequest returns a tree representing the expansion of all relationships found accessible from a permission or relation on a particular resource.

ExpandPermissionTreeRequest is typically used to determine the full set of subjects with a permission, along with the relationships that grant said access.

func (*ExpandPermissionTreeRequest) ClearConsistency

func (x *ExpandPermissionTreeRequest) ClearConsistency()

func (*ExpandPermissionTreeRequest) ClearResource

func (x *ExpandPermissionTreeRequest) ClearResource()

func (*ExpandPermissionTreeRequest) GetConsistency

func (x *ExpandPermissionTreeRequest) GetConsistency() *Consistency

func (*ExpandPermissionTreeRequest) GetPermission

func (x *ExpandPermissionTreeRequest) GetPermission() string

func (*ExpandPermissionTreeRequest) GetResource

func (x *ExpandPermissionTreeRequest) GetResource() *ObjectReference

func (*ExpandPermissionTreeRequest) HasConsistency

func (x *ExpandPermissionTreeRequest) HasConsistency() bool

func (*ExpandPermissionTreeRequest) HasResource

func (x *ExpandPermissionTreeRequest) HasResource() bool

func (*ExpandPermissionTreeRequest) ProtoMessage

func (*ExpandPermissionTreeRequest) ProtoMessage()

func (*ExpandPermissionTreeRequest) ProtoReflect

func (*ExpandPermissionTreeRequest) Reset

func (x *ExpandPermissionTreeRequest) Reset()

func (*ExpandPermissionTreeRequest) SetConsistency

func (x *ExpandPermissionTreeRequest) SetConsistency(v *Consistency)

func (*ExpandPermissionTreeRequest) SetPermission

func (x *ExpandPermissionTreeRequest) SetPermission(v string)

func (*ExpandPermissionTreeRequest) SetResource

func (x *ExpandPermissionTreeRequest) SetResource(v *ObjectReference)

func (*ExpandPermissionTreeRequest) String

func (x *ExpandPermissionTreeRequest) String() string

type ExpandPermissionTreeRequest_builder

type ExpandPermissionTreeRequest_builder struct {
	Consistency *Consistency
	// resource is the resource over which to run the expansion.
	Resource *ObjectReference
	// permission is the name of the permission or relation over which to run the
	// expansion for the resource.
	Permission string
	// contains filtered or unexported fields
}

func (ExpandPermissionTreeRequest_builder) Build

type ExpandPermissionTreeResponse

type ExpandPermissionTreeResponse struct {
	ExpandedAt *ZedToken `protobuf:"bytes,1,opt,name=expanded_at,json=expandedAt,proto3" json:"expanded_at,omitempty"`
	// tree_root is a tree structure whose leaf nodes are subjects, and
	// intermediate nodes represent the various operations (union, intersection,
	// exclusion) to reach those subjects.
	TreeRoot *PermissionRelationshipTree `protobuf:"bytes,2,opt,name=tree_root,json=treeRoot,proto3" json:"tree_root,omitempty"`
	// contains filtered or unexported fields
}

func (*ExpandPermissionTreeResponse) ClearExpandedAt

func (x *ExpandPermissionTreeResponse) ClearExpandedAt()

func (*ExpandPermissionTreeResponse) ClearTreeRoot

func (x *ExpandPermissionTreeResponse) ClearTreeRoot()

func (*ExpandPermissionTreeResponse) GetExpandedAt

func (x *ExpandPermissionTreeResponse) GetExpandedAt() *ZedToken

func (*ExpandPermissionTreeResponse) GetTreeRoot

func (*ExpandPermissionTreeResponse) HasExpandedAt

func (x *ExpandPermissionTreeResponse) HasExpandedAt() bool

func (*ExpandPermissionTreeResponse) HasTreeRoot

func (x *ExpandPermissionTreeResponse) HasTreeRoot() bool

func (*ExpandPermissionTreeResponse) ProtoMessage

func (*ExpandPermissionTreeResponse) ProtoMessage()

func (*ExpandPermissionTreeResponse) ProtoReflect

func (*ExpandPermissionTreeResponse) Reset

func (x *ExpandPermissionTreeResponse) Reset()

func (*ExpandPermissionTreeResponse) SetExpandedAt

func (x *ExpandPermissionTreeResponse) SetExpandedAt(v *ZedToken)

func (*ExpandPermissionTreeResponse) SetTreeRoot

func (*ExpandPermissionTreeResponse) String

type ExpandPermissionTreeResponse_builder

type ExpandPermissionTreeResponse_builder struct {
	ExpandedAt *ZedToken
	// tree_root is a tree structure whose leaf nodes are subjects, and
	// intermediate nodes represent the various operations (union, intersection,
	// exclusion) to reach those subjects.
	TreeRoot *PermissionRelationshipTree
	// contains filtered or unexported fields
}

func (ExpandPermissionTreeResponse_builder) Build

type ExperimentalComputablePermissionsRequest

type ExperimentalComputablePermissionsRequest struct {
	Consistency    *Consistency `protobuf:"bytes,1,opt,name=consistency,proto3" json:"consistency,omitempty"`
	DefinitionName string       `protobuf:"bytes,2,opt,name=definition_name,json=definitionName,proto3" json:"definition_name,omitempty"`
	RelationName   string       `protobuf:"bytes,3,opt,name=relation_name,json=relationName,proto3" json:"relation_name,omitempty"`
	// optional_definition_name_match is a prefix that is matched against the definition name(s)
	// for the permissions returned.
	// If not specified, will be ignored.
	OptionalDefinitionNameFilter string `` /* 149-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*ExperimentalComputablePermissionsRequest) ClearConsistency

func (x *ExperimentalComputablePermissionsRequest) ClearConsistency()

func (*ExperimentalComputablePermissionsRequest) GetConsistency

func (*ExperimentalComputablePermissionsRequest) GetDefinitionName

func (x *ExperimentalComputablePermissionsRequest) GetDefinitionName() string

func (*ExperimentalComputablePermissionsRequest) GetOptionalDefinitionNameFilter

func (x *ExperimentalComputablePermissionsRequest) GetOptionalDefinitionNameFilter() string

func (*ExperimentalComputablePermissionsRequest) GetRelationName

func (x *ExperimentalComputablePermissionsRequest) GetRelationName() string

func (*ExperimentalComputablePermissionsRequest) HasConsistency

func (x *ExperimentalComputablePermissionsRequest) HasConsistency() bool

func (*ExperimentalComputablePermissionsRequest) ProtoMessage

func (*ExperimentalComputablePermissionsRequest) ProtoReflect

func (*ExperimentalComputablePermissionsRequest) Reset

func (*ExperimentalComputablePermissionsRequest) SetConsistency

func (*ExperimentalComputablePermissionsRequest) SetDefinitionName

func (x *ExperimentalComputablePermissionsRequest) SetDefinitionName(v string)

func (*ExperimentalComputablePermissionsRequest) SetOptionalDefinitionNameFilter

func (x *ExperimentalComputablePermissionsRequest) SetOptionalDefinitionNameFilter(v string)

func (*ExperimentalComputablePermissionsRequest) SetRelationName

func (x *ExperimentalComputablePermissionsRequest) SetRelationName(v string)

func (*ExperimentalComputablePermissionsRequest) String

type ExperimentalComputablePermissionsRequest_builder

type ExperimentalComputablePermissionsRequest_builder struct {
	Consistency    *Consistency
	DefinitionName string
	RelationName   string
	// optional_definition_name_match is a prefix that is matched against the definition name(s)
	// for the permissions returned.
	// If not specified, will be ignored.
	OptionalDefinitionNameFilter string
	// contains filtered or unexported fields
}

func (ExperimentalComputablePermissionsRequest_builder) Build

type ExperimentalComputablePermissionsResponse

type ExperimentalComputablePermissionsResponse struct {
	Permissions []*ExpRelationReference `protobuf:"bytes,1,rep,name=permissions,proto3" json:"permissions,omitempty"`
	// read_at is the ZedToken at which the schema was read.
	ReadAt *ZedToken `protobuf:"bytes,2,opt,name=read_at,json=readAt,proto3" json:"read_at,omitempty"`
	// contains filtered or unexported fields
}

func (*ExperimentalComputablePermissionsResponse) ClearReadAt

func (*ExperimentalComputablePermissionsResponse) GetPermissions

func (*ExperimentalComputablePermissionsResponse) GetReadAt

func (*ExperimentalComputablePermissionsResponse) HasReadAt

func (*ExperimentalComputablePermissionsResponse) ProtoMessage

func (*ExperimentalComputablePermissionsResponse) ProtoReflect

func (*ExperimentalComputablePermissionsResponse) Reset

func (*ExperimentalComputablePermissionsResponse) SetPermissions

func (*ExperimentalComputablePermissionsResponse) SetReadAt

func (*ExperimentalComputablePermissionsResponse) String

type ExperimentalComputablePermissionsResponse_builder

type ExperimentalComputablePermissionsResponse_builder struct {
	Permissions []*ExpRelationReference
	// read_at is the ZedToken at which the schema was read.
	ReadAt *ZedToken
	// contains filtered or unexported fields
}

func (ExperimentalComputablePermissionsResponse_builder) Build

type ExperimentalCountRelationshipsRequest

type ExperimentalCountRelationshipsRequest struct {

	// name is the name of the counter whose count is being requested.
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

func (*ExperimentalCountRelationshipsRequest) GetName

func (*ExperimentalCountRelationshipsRequest) ProtoMessage

func (*ExperimentalCountRelationshipsRequest) ProtoMessage()

func (*ExperimentalCountRelationshipsRequest) ProtoReflect

func (*ExperimentalCountRelationshipsRequest) Reset

func (*ExperimentalCountRelationshipsRequest) SetName

func (*ExperimentalCountRelationshipsRequest) String

type ExperimentalCountRelationshipsRequest_builder

type ExperimentalCountRelationshipsRequest_builder struct {

	// name is the name of the counter whose count is being requested.
	Name string
	// contains filtered or unexported fields
}

func (ExperimentalCountRelationshipsRequest_builder) Build

type ExperimentalCountRelationshipsResponse

type ExperimentalCountRelationshipsResponse struct {

	// Types that are valid to be assigned to CounterResult:
	//
	//	*ExperimentalCountRelationshipsResponse_CounterStillCalculating
	//	*ExperimentalCountRelationshipsResponse_ReadCounterValue
	CounterResult isExperimentalCountRelationshipsResponse_CounterResult `protobuf_oneof:"counter_result"`
	// contains filtered or unexported fields
}

func (*ExperimentalCountRelationshipsResponse) ClearCounterResult

func (x *ExperimentalCountRelationshipsResponse) ClearCounterResult()

func (*ExperimentalCountRelationshipsResponse) ClearCounterStillCalculating

func (x *ExperimentalCountRelationshipsResponse) ClearCounterStillCalculating()

func (*ExperimentalCountRelationshipsResponse) ClearReadCounterValue

func (x *ExperimentalCountRelationshipsResponse) ClearReadCounterValue()

func (*ExperimentalCountRelationshipsResponse) GetCounterResult

func (x *ExperimentalCountRelationshipsResponse) GetCounterResult() isExperimentalCountRelationshipsResponse_CounterResult

func (*ExperimentalCountRelationshipsResponse) GetCounterStillCalculating

func (x *ExperimentalCountRelationshipsResponse) GetCounterStillCalculating() bool

func (*ExperimentalCountRelationshipsResponse) GetReadCounterValue

func (x *ExperimentalCountRelationshipsResponse) GetReadCounterValue() *ReadCounterValue

func (*ExperimentalCountRelationshipsResponse) HasCounterResult

func (x *ExperimentalCountRelationshipsResponse) HasCounterResult() bool

func (*ExperimentalCountRelationshipsResponse) HasCounterStillCalculating

func (x *ExperimentalCountRelationshipsResponse) HasCounterStillCalculating() bool

func (*ExperimentalCountRelationshipsResponse) HasReadCounterValue

func (x *ExperimentalCountRelationshipsResponse) HasReadCounterValue() bool

func (*ExperimentalCountRelationshipsResponse) ProtoMessage

func (*ExperimentalCountRelationshipsResponse) ProtoReflect

func (*ExperimentalCountRelationshipsResponse) Reset

func (*ExperimentalCountRelationshipsResponse) SetCounterStillCalculating

func (x *ExperimentalCountRelationshipsResponse) SetCounterStillCalculating(v bool)

func (*ExperimentalCountRelationshipsResponse) SetReadCounterValue

func (x *ExperimentalCountRelationshipsResponse) SetReadCounterValue(v *ReadCounterValue)

func (*ExperimentalCountRelationshipsResponse) String

func (*ExperimentalCountRelationshipsResponse) WhichCounterResult

func (x *ExperimentalCountRelationshipsResponse) WhichCounterResult() case_ExperimentalCountRelationshipsResponse_CounterResult

type ExperimentalCountRelationshipsResponse_CounterStillCalculating

type ExperimentalCountRelationshipsResponse_CounterStillCalculating struct {
	// counter_still_calculating is true if the counter is still calculating the count.
	CounterStillCalculating bool `protobuf:"varint,1,opt,name=counter_still_calculating,json=counterStillCalculating,proto3,oneof"`
}

type ExperimentalCountRelationshipsResponse_ReadCounterValue

type ExperimentalCountRelationshipsResponse_ReadCounterValue struct {
	// read_counter_value is the value of the counter at the time of the read.
	ReadCounterValue *ReadCounterValue `protobuf:"bytes,2,opt,name=read_counter_value,json=readCounterValue,proto3,oneof"`
}

type ExperimentalCountRelationshipsResponse_builder

type ExperimentalCountRelationshipsResponse_builder struct {

	// Fields of oneof CounterResult:
	// counter_still_calculating is true if the counter is still calculating the count.
	CounterStillCalculating *bool
	// read_counter_value is the value of the counter at the time of the read.
	ReadCounterValue *ReadCounterValue
	// contains filtered or unexported fields
}

func (ExperimentalCountRelationshipsResponse_builder) Build

type ExperimentalDependentRelationsRequest

type ExperimentalDependentRelationsRequest struct {
	Consistency    *Consistency `protobuf:"bytes,1,opt,name=consistency,proto3" json:"consistency,omitempty"`
	DefinitionName string       `protobuf:"bytes,2,opt,name=definition_name,json=definitionName,proto3" json:"definition_name,omitempty"`
	PermissionName string       `protobuf:"bytes,3,opt,name=permission_name,json=permissionName,proto3" json:"permission_name,omitempty"`
	// contains filtered or unexported fields
}

func (*ExperimentalDependentRelationsRequest) ClearConsistency

func (x *ExperimentalDependentRelationsRequest) ClearConsistency()

func (*ExperimentalDependentRelationsRequest) GetConsistency

func (*ExperimentalDependentRelationsRequest) GetDefinitionName

func (x *ExperimentalDependentRelationsRequest) GetDefinitionName() string

func (*ExperimentalDependentRelationsRequest) GetPermissionName

func (x *ExperimentalDependentRelationsRequest) GetPermissionName() string

func (*ExperimentalDependentRelationsRequest) HasConsistency

func (x *ExperimentalDependentRelationsRequest) HasConsistency() bool

func (*ExperimentalDependentRelationsRequest) ProtoMessage

func (*ExperimentalDependentRelationsRequest) ProtoMessage()

func (*ExperimentalDependentRelationsRequest) ProtoReflect

func (*ExperimentalDependentRelationsRequest) Reset

func (*ExperimentalDependentRelationsRequest) SetConsistency

func (x *ExperimentalDependentRelationsRequest) SetConsistency(v *Consistency)

func (*ExperimentalDependentRelationsRequest) SetDefinitionName

func (x *ExperimentalDependentRelationsRequest) SetDefinitionName(v string)

func (*ExperimentalDependentRelationsRequest) SetPermissionName

func (x *ExperimentalDependentRelationsRequest) SetPermissionName(v string)

func (*ExperimentalDependentRelationsRequest) String

type ExperimentalDependentRelationsRequest_builder

type ExperimentalDependentRelationsRequest_builder struct {
	Consistency    *Consistency
	DefinitionName string
	PermissionName string
	// contains filtered or unexported fields
}

func (ExperimentalDependentRelationsRequest_builder) Build

type ExperimentalDependentRelationsResponse

type ExperimentalDependentRelationsResponse struct {
	Relations []*ExpRelationReference `protobuf:"bytes,1,rep,name=relations,proto3" json:"relations,omitempty"`
	// read_at is the ZedToken at which the schema was read.
	ReadAt *ZedToken `protobuf:"bytes,2,opt,name=read_at,json=readAt,proto3" json:"read_at,omitempty"`
	// contains filtered or unexported fields
}

func (*ExperimentalDependentRelationsResponse) ClearReadAt

func (x *ExperimentalDependentRelationsResponse) ClearReadAt()

func (*ExperimentalDependentRelationsResponse) GetReadAt

func (*ExperimentalDependentRelationsResponse) GetRelations

func (*ExperimentalDependentRelationsResponse) HasReadAt

func (*ExperimentalDependentRelationsResponse) ProtoMessage

func (*ExperimentalDependentRelationsResponse) ProtoReflect

func (*ExperimentalDependentRelationsResponse) Reset

func (*ExperimentalDependentRelationsResponse) SetReadAt

func (*ExperimentalDependentRelationsResponse) SetRelations

func (*ExperimentalDependentRelationsResponse) String

type ExperimentalDependentRelationsResponse_builder

type ExperimentalDependentRelationsResponse_builder struct {
	Relations []*ExpRelationReference
	// read_at is the ZedToken at which the schema was read.
	ReadAt *ZedToken
	// contains filtered or unexported fields
}

func (ExperimentalDependentRelationsResponse_builder) Build

type ExperimentalDiffSchemaRequest

type ExperimentalDiffSchemaRequest struct {
	Consistency      *Consistency `protobuf:"bytes,1,opt,name=consistency,proto3" json:"consistency,omitempty"`
	ComparisonSchema string       `protobuf:"bytes,2,opt,name=comparison_schema,json=comparisonSchema,proto3" json:"comparison_schema,omitempty"`
	// contains filtered or unexported fields
}

func (*ExperimentalDiffSchemaRequest) ClearConsistency

func (x *ExperimentalDiffSchemaRequest) ClearConsistency()

func (*ExperimentalDiffSchemaRequest) GetComparisonSchema

func (x *ExperimentalDiffSchemaRequest) GetComparisonSchema() string

func (*ExperimentalDiffSchemaRequest) GetConsistency

func (x *ExperimentalDiffSchemaRequest) GetConsistency() *Consistency

func (*ExperimentalDiffSchemaRequest) HasConsistency

func (x *ExperimentalDiffSchemaRequest) HasConsistency() bool

func (*ExperimentalDiffSchemaRequest) ProtoMessage

func (*ExperimentalDiffSchemaRequest) ProtoMessage()

func (*ExperimentalDiffSchemaRequest) ProtoReflect

func (*ExperimentalDiffSchemaRequest) Reset

func (x *ExperimentalDiffSchemaRequest) Reset()

func (*ExperimentalDiffSchemaRequest) SetComparisonSchema

func (x *ExperimentalDiffSchemaRequest) SetComparisonSchema(v string)

func (*ExperimentalDiffSchemaRequest) SetConsistency

func (x *ExperimentalDiffSchemaRequest) SetConsistency(v *Consistency)

func (*ExperimentalDiffSchemaRequest) String

type ExperimentalDiffSchemaRequest_builder

type ExperimentalDiffSchemaRequest_builder struct {
	Consistency      *Consistency
	ComparisonSchema string
	// contains filtered or unexported fields
}

func (ExperimentalDiffSchemaRequest_builder) Build

type ExperimentalDiffSchemaResponse

type ExperimentalDiffSchemaResponse struct {
	Diffs []*ExpSchemaDiff `protobuf:"bytes,1,rep,name=diffs,proto3" json:"diffs,omitempty"`
	// read_at is the ZedToken at which the schema was read.
	ReadAt *ZedToken `protobuf:"bytes,2,opt,name=read_at,json=readAt,proto3" json:"read_at,omitempty"`
	// contains filtered or unexported fields
}

func (*ExperimentalDiffSchemaResponse) ClearReadAt

func (x *ExperimentalDiffSchemaResponse) ClearReadAt()

func (*ExperimentalDiffSchemaResponse) GetDiffs

func (*ExperimentalDiffSchemaResponse) GetReadAt

func (x *ExperimentalDiffSchemaResponse) GetReadAt() *ZedToken

func (*ExperimentalDiffSchemaResponse) HasReadAt

func (x *ExperimentalDiffSchemaResponse) HasReadAt() bool

func (*ExperimentalDiffSchemaResponse) ProtoMessage

func (*ExperimentalDiffSchemaResponse) ProtoMessage()

func (*ExperimentalDiffSchemaResponse) ProtoReflect

func (*ExperimentalDiffSchemaResponse) Reset

func (x *ExperimentalDiffSchemaResponse) Reset()

func (*ExperimentalDiffSchemaResponse) SetDiffs

func (*ExperimentalDiffSchemaResponse) SetReadAt

func (x *ExperimentalDiffSchemaResponse) SetReadAt(v *ZedToken)

func (*ExperimentalDiffSchemaResponse) String

type ExperimentalDiffSchemaResponse_builder

type ExperimentalDiffSchemaResponse_builder struct {
	Diffs []*ExpSchemaDiff
	// read_at is the ZedToken at which the schema was read.
	ReadAt *ZedToken
	// contains filtered or unexported fields
}

func (ExperimentalDiffSchemaResponse_builder) Build

type ExperimentalReflectSchemaRequest

type ExperimentalReflectSchemaRequest struct {
	Consistency *Consistency `protobuf:"bytes,1,opt,name=consistency,proto3" json:"consistency,omitempty"`
	// optional_filters defines optional filters that are applied in
	// an OR fashion to the schema, before being returned
	OptionalFilters []*ExpSchemaFilter `protobuf:"bytes,2,rep,name=optional_filters,json=optionalFilters,proto3" json:"optional_filters,omitempty"`
	// contains filtered or unexported fields
}

func (*ExperimentalReflectSchemaRequest) ClearConsistency

func (x *ExperimentalReflectSchemaRequest) ClearConsistency()

func (*ExperimentalReflectSchemaRequest) GetConsistency

func (x *ExperimentalReflectSchemaRequest) GetConsistency() *Consistency

func (*ExperimentalReflectSchemaRequest) GetOptionalFilters

func (x *ExperimentalReflectSchemaRequest) GetOptionalFilters() []*ExpSchemaFilter

func (*ExperimentalReflectSchemaRequest) HasConsistency

func (x *ExperimentalReflectSchemaRequest) HasConsistency() bool

func (*ExperimentalReflectSchemaRequest) ProtoMessage

func (*ExperimentalReflectSchemaRequest) ProtoMessage()

func (*ExperimentalReflectSchemaRequest) ProtoReflect

func (*ExperimentalReflectSchemaRequest) Reset

func (*ExperimentalReflectSchemaRequest) SetConsistency

func (x *ExperimentalReflectSchemaRequest) SetConsistency(v *Consistency)

func (*ExperimentalReflectSchemaRequest) SetOptionalFilters

func (x *ExperimentalReflectSchemaRequest) SetOptionalFilters(v []*ExpSchemaFilter)

func (*ExperimentalReflectSchemaRequest) String

type ExperimentalReflectSchemaRequest_builder

type ExperimentalReflectSchemaRequest_builder struct {
	Consistency *Consistency
	// optional_filters defines optional filters that are applied in
	// an OR fashion to the schema, before being returned
	OptionalFilters []*ExpSchemaFilter
	// contains filtered or unexported fields
}

func (ExperimentalReflectSchemaRequest_builder) Build

type ExperimentalReflectSchemaResponse

type ExperimentalReflectSchemaResponse struct {

	// definitions are the definitions defined in the schema.
	Definitions []*ExpDefinition `protobuf:"bytes,1,rep,name=definitions,proto3" json:"definitions,omitempty"`
	// caveats are the caveats defined in the schema.
	Caveats []*ExpCaveat `protobuf:"bytes,2,rep,name=caveats,proto3" json:"caveats,omitempty"`
	// read_at is the ZedToken at which the schema was read.
	ReadAt *ZedToken `protobuf:"bytes,3,opt,name=read_at,json=readAt,proto3" json:"read_at,omitempty"`
	// contains filtered or unexported fields
}

func (*ExperimentalReflectSchemaResponse) ClearReadAt

func (x *ExperimentalReflectSchemaResponse) ClearReadAt()

func (*ExperimentalReflectSchemaResponse) GetCaveats

func (x *ExperimentalReflectSchemaResponse) GetCaveats() []*ExpCaveat

func (*ExperimentalReflectSchemaResponse) GetDefinitions

func (x *ExperimentalReflectSchemaResponse) GetDefinitions() []*ExpDefinition

func (*ExperimentalReflectSchemaResponse) GetReadAt

func (*ExperimentalReflectSchemaResponse) HasReadAt

func (x *ExperimentalReflectSchemaResponse) HasReadAt() bool

func (*ExperimentalReflectSchemaResponse) ProtoMessage

func (*ExperimentalReflectSchemaResponse) ProtoMessage()

func (*ExperimentalReflectSchemaResponse) ProtoReflect

func (*ExperimentalReflectSchemaResponse) Reset

func (*ExperimentalReflectSchemaResponse) SetCaveats

func (x *ExperimentalReflectSchemaResponse) SetCaveats(v []*ExpCaveat)

func (*ExperimentalReflectSchemaResponse) SetDefinitions

func (x *ExperimentalReflectSchemaResponse) SetDefinitions(v []*ExpDefinition)

func (*ExperimentalReflectSchemaResponse) SetReadAt

func (*ExperimentalReflectSchemaResponse) String

type ExperimentalReflectSchemaResponse_builder

type ExperimentalReflectSchemaResponse_builder struct {

	// definitions are the definitions defined in the schema.
	Definitions []*ExpDefinition
	// caveats are the caveats defined in the schema.
	Caveats []*ExpCaveat
	// read_at is the ZedToken at which the schema was read.
	ReadAt *ZedToken
	// contains filtered or unexported fields
}

func (ExperimentalReflectSchemaResponse_builder) Build

type ExperimentalRegisterRelationshipCounterRequest

type ExperimentalRegisterRelationshipCounterRequest struct {

	// name is the name of the counter being registered.
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// relationship_filter defines the filter to be applied to the relationships
	// to be counted.
	RelationshipFilter *RelationshipFilter `protobuf:"bytes,2,opt,name=relationship_filter,json=relationshipFilter,proto3" json:"relationship_filter,omitempty"`
	// contains filtered or unexported fields
}

func (*ExperimentalRegisterRelationshipCounterRequest) ClearRelationshipFilter

func (x *ExperimentalRegisterRelationshipCounterRequest) ClearRelationshipFilter()

func (*ExperimentalRegisterRelationshipCounterRequest) GetName

func (*ExperimentalRegisterRelationshipCounterRequest) GetRelationshipFilter

func (*ExperimentalRegisterRelationshipCounterRequest) HasRelationshipFilter

func (x *ExperimentalRegisterRelationshipCounterRequest) HasRelationshipFilter() bool

func (*ExperimentalRegisterRelationshipCounterRequest) ProtoMessage

func (*ExperimentalRegisterRelationshipCounterRequest) ProtoReflect

func (*ExperimentalRegisterRelationshipCounterRequest) Reset

func (*ExperimentalRegisterRelationshipCounterRequest) SetName

func (*ExperimentalRegisterRelationshipCounterRequest) SetRelationshipFilter

func (*ExperimentalRegisterRelationshipCounterRequest) String

type ExperimentalRegisterRelationshipCounterRequest_builder

type ExperimentalRegisterRelationshipCounterRequest_builder struct {

	// name is the name of the counter being registered.
	Name string
	// relationship_filter defines the filter to be applied to the relationships
	// to be counted.
	RelationshipFilter *RelationshipFilter
	// contains filtered or unexported fields
}

func (ExperimentalRegisterRelationshipCounterRequest_builder) Build

type ExperimentalRegisterRelationshipCounterResponse

type ExperimentalRegisterRelationshipCounterResponse struct {
	// contains filtered or unexported fields
}

func (*ExperimentalRegisterRelationshipCounterResponse) ProtoMessage

func (*ExperimentalRegisterRelationshipCounterResponse) ProtoReflect

func (*ExperimentalRegisterRelationshipCounterResponse) Reset

func (*ExperimentalRegisterRelationshipCounterResponse) String

type ExperimentalRegisterRelationshipCounterResponse_builder

type ExperimentalRegisterRelationshipCounterResponse_builder struct {
	// contains filtered or unexported fields
}

func (ExperimentalRegisterRelationshipCounterResponse_builder) Build

type ExperimentalUnregisterRelationshipCounterRequest

type ExperimentalUnregisterRelationshipCounterRequest struct {

	// name is the name of the counter being unregistered.
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

func (*ExperimentalUnregisterRelationshipCounterRequest) GetName

func (*ExperimentalUnregisterRelationshipCounterRequest) ProtoMessage

func (*ExperimentalUnregisterRelationshipCounterRequest) ProtoReflect

func (*ExperimentalUnregisterRelationshipCounterRequest) Reset

func (*ExperimentalUnregisterRelationshipCounterRequest) SetName

func (*ExperimentalUnregisterRelationshipCounterRequest) String

type ExperimentalUnregisterRelationshipCounterRequest_builder

type ExperimentalUnregisterRelationshipCounterRequest_builder struct {

	// name is the name of the counter being unregistered.
	Name string
	// contains filtered or unexported fields
}

func (ExperimentalUnregisterRelationshipCounterRequest_builder) Build

type ExperimentalUnregisterRelationshipCounterResponse

type ExperimentalUnregisterRelationshipCounterResponse struct {
	// contains filtered or unexported fields
}

func (*ExperimentalUnregisterRelationshipCounterResponse) ProtoMessage

func (*ExperimentalUnregisterRelationshipCounterResponse) ProtoReflect

func (*ExperimentalUnregisterRelationshipCounterResponse) Reset

func (*ExperimentalUnregisterRelationshipCounterResponse) String

type ExperimentalUnregisterRelationshipCounterResponse_builder

type ExperimentalUnregisterRelationshipCounterResponse_builder struct {
	// contains filtered or unexported fields
}

func (ExperimentalUnregisterRelationshipCounterResponse_builder) Build

type ExportBulkRelationshipsRequest

type ExportBulkRelationshipsRequest struct {
	Consistency *Consistency `protobuf:"bytes,1,opt,name=consistency,proto3" json:"consistency,omitempty"`
	// optional_limit, if non-zero, specifies the limit on the number of
	// relationships the server can return in one page. By default, the server
	// will pick a page size, and the server is free to choose a smaller size
	// at will.
	OptionalLimit uint32 `protobuf:"varint,2,opt,name=optional_limit,json=optionalLimit,proto3" json:"optional_limit,omitempty"`
	// optional_cursor, if specified, indicates the cursor after which results
	// should resume being returned. The cursor can be found on the
	// BulkExportRelationshipsResponse object.
	OptionalCursor *Cursor `protobuf:"bytes,3,opt,name=optional_cursor,json=optionalCursor,proto3" json:"optional_cursor,omitempty"`
	// optional_relationship_filter, if specified, indicates the
	// filter to apply to each relationship to be exported.
	OptionalRelationshipFilter *RelationshipFilter `` /* 141-byte string literal not displayed */
	// contains filtered or unexported fields
}

ExportBulkRelationshipsRequest represents a resumable request for all relationships from the server.

func (*ExportBulkRelationshipsRequest) ClearConsistency

func (x *ExportBulkRelationshipsRequest) ClearConsistency()

func (*ExportBulkRelationshipsRequest) ClearOptionalCursor

func (x *ExportBulkRelationshipsRequest) ClearOptionalCursor()

func (*ExportBulkRelationshipsRequest) ClearOptionalRelationshipFilter

func (x *ExportBulkRelationshipsRequest) ClearOptionalRelationshipFilter()

func (*ExportBulkRelationshipsRequest) GetConsistency

func (x *ExportBulkRelationshipsRequest) GetConsistency() *Consistency

func (*ExportBulkRelationshipsRequest) GetOptionalCursor

func (x *ExportBulkRelationshipsRequest) GetOptionalCursor() *Cursor

func (*ExportBulkRelationshipsRequest) GetOptionalLimit

func (x *ExportBulkRelationshipsRequest) GetOptionalLimit() uint32

func (*ExportBulkRelationshipsRequest) GetOptionalRelationshipFilter

func (x *ExportBulkRelationshipsRequest) GetOptionalRelationshipFilter() *RelationshipFilter

func (*ExportBulkRelationshipsRequest) HasConsistency

func (x *ExportBulkRelationshipsRequest) HasConsistency() bool

func (*ExportBulkRelationshipsRequest) HasOptionalCursor

func (x *ExportBulkRelationshipsRequest) HasOptionalCursor() bool

func (*ExportBulkRelationshipsRequest) HasOptionalRelationshipFilter

func (x *ExportBulkRelationshipsRequest) HasOptionalRelationshipFilter() bool

func (*ExportBulkRelationshipsRequest) ProtoMessage

func (*ExportBulkRelationshipsRequest) ProtoMessage()

func (*ExportBulkRelationshipsRequest) ProtoReflect

func (*ExportBulkRelationshipsRequest) Reset

func (x *ExportBulkRelationshipsRequest) Reset()

func (*ExportBulkRelationshipsRequest) SetConsistency

func (x *ExportBulkRelationshipsRequest) SetConsistency(v *Consistency)

func (*ExportBulkRelationshipsRequest) SetOptionalCursor

func (x *ExportBulkRelationshipsRequest) SetOptionalCursor(v *Cursor)

func (*ExportBulkRelationshipsRequest) SetOptionalLimit

func (x *ExportBulkRelationshipsRequest) SetOptionalLimit(v uint32)

func (*ExportBulkRelationshipsRequest) SetOptionalRelationshipFilter

func (x *ExportBulkRelationshipsRequest) SetOptionalRelationshipFilter(v *RelationshipFilter)

func (*ExportBulkRelationshipsRequest) String

type ExportBulkRelationshipsRequest_builder

type ExportBulkRelationshipsRequest_builder struct {
	Consistency *Consistency
	// optional_limit, if non-zero, specifies the limit on the number of
	// relationships the server can return in one page. By default, the server
	// will pick a page size, and the server is free to choose a smaller size
	// at will.
	OptionalLimit uint32
	// optional_cursor, if specified, indicates the cursor after which results
	// should resume being returned. The cursor can be found on the
	// BulkExportRelationshipsResponse object.
	OptionalCursor *Cursor
	// optional_relationship_filter, if specified, indicates the
	// filter to apply to each relationship to be exported.
	OptionalRelationshipFilter *RelationshipFilter
	// contains filtered or unexported fields
}

func (ExportBulkRelationshipsRequest_builder) Build

type ExportBulkRelationshipsResponse

type ExportBulkRelationshipsResponse struct {
	AfterResultCursor *Cursor         `protobuf:"bytes,1,opt,name=after_result_cursor,json=afterResultCursor,proto3" json:"after_result_cursor,omitempty"`
	Relationships     []*Relationship `protobuf:"bytes,2,rep,name=relationships,proto3" json:"relationships,omitempty"`
	// contains filtered or unexported fields
}

ExportBulkRelationshipsResponse is one page in a stream of relationship groups that meet the criteria specified by the originating request. The server will continue to stream back relationship groups as quickly as it can until all relationships have been transmitted back.

func (*ExportBulkRelationshipsResponse) ClearAfterResultCursor

func (x *ExportBulkRelationshipsResponse) ClearAfterResultCursor()

func (*ExportBulkRelationshipsResponse) GetAfterResultCursor

func (x *ExportBulkRelationshipsResponse) GetAfterResultCursor() *Cursor

func (*ExportBulkRelationshipsResponse) GetRelationships

func (x *ExportBulkRelationshipsResponse) GetRelationships() []*Relationship

func (*ExportBulkRelationshipsResponse) HasAfterResultCursor

func (x *ExportBulkRelationshipsResponse) HasAfterResultCursor() bool

func (*ExportBulkRelationshipsResponse) ProtoMessage

func (*ExportBulkRelationshipsResponse) ProtoMessage()

func (*ExportBulkRelationshipsResponse) ProtoReflect

func (*ExportBulkRelationshipsResponse) Reset

func (*ExportBulkRelationshipsResponse) SetAfterResultCursor

func (x *ExportBulkRelationshipsResponse) SetAfterResultCursor(v *Cursor)

func (*ExportBulkRelationshipsResponse) SetRelationships

func (x *ExportBulkRelationshipsResponse) SetRelationships(v []*Relationship)

func (*ExportBulkRelationshipsResponse) String

type ExportBulkRelationshipsResponse_builder

type ExportBulkRelationshipsResponse_builder struct {
	AfterResultCursor *Cursor
	Relationships     []*Relationship
	// contains filtered or unexported fields
}

func (ExportBulkRelationshipsResponse_builder) Build

type ImportBulkRelationshipsRequest

type ImportBulkRelationshipsRequest struct {
	Relationships []*Relationship `protobuf:"bytes,1,rep,name=relationships,proto3" json:"relationships,omitempty"`
	// contains filtered or unexported fields
}

ImportBulkRelationshipsRequest represents one batch of the streaming ImportBulkRelationships API. The maximum size is only limited by the backing datastore, and optimal size should be determined by the calling client experimentally. When ImportBulk is invoked and receives its first request message, a transaction is opened to import the relationships. All requests sent to the same invocation are executed under this single transaction. If a relationship already exists within the datastore, the entire transaction will fail with an error.

func (*ImportBulkRelationshipsRequest) GetRelationships

func (x *ImportBulkRelationshipsRequest) GetRelationships() []*Relationship

func (*ImportBulkRelationshipsRequest) ProtoMessage

func (*ImportBulkRelationshipsRequest) ProtoMessage()

func (*ImportBulkRelationshipsRequest) ProtoReflect

func (*ImportBulkRelationshipsRequest) Reset

func (x *ImportBulkRelationshipsRequest) Reset()

func (*ImportBulkRelationshipsRequest) SetRelationships

func (x *ImportBulkRelationshipsRequest) SetRelationships(v []*Relationship)

func (*ImportBulkRelationshipsRequest) String

type ImportBulkRelationshipsRequest_builder

type ImportBulkRelationshipsRequest_builder struct {
	Relationships []*Relationship
	// contains filtered or unexported fields
}

func (ImportBulkRelationshipsRequest_builder) Build

type ImportBulkRelationshipsResponse

type ImportBulkRelationshipsResponse struct {
	NumLoaded uint64 `protobuf:"varint,1,opt,name=num_loaded,json=numLoaded,proto3" json:"num_loaded,omitempty"`
	// contains filtered or unexported fields
}

ImportBulkRelationshipsResponse is returned on successful completion of the bulk load stream, and contains the total number of relationships loaded.

func (*ImportBulkRelationshipsResponse) GetNumLoaded

func (x *ImportBulkRelationshipsResponse) GetNumLoaded() uint64

func (*ImportBulkRelationshipsResponse) ProtoMessage

func (*ImportBulkRelationshipsResponse) ProtoMessage()

func (*ImportBulkRelationshipsResponse) ProtoReflect

func (*ImportBulkRelationshipsResponse) Reset

func (*ImportBulkRelationshipsResponse) SetNumLoaded

func (x *ImportBulkRelationshipsResponse) SetNumLoaded(v uint64)

func (*ImportBulkRelationshipsResponse) String

type ImportBulkRelationshipsResponse_builder

type ImportBulkRelationshipsResponse_builder struct {
	NumLoaded uint64
	// contains filtered or unexported fields
}

func (ImportBulkRelationshipsResponse_builder) Build

type LookupPermissionship

type LookupPermissionship int32

LookupPermissionship represents whether a Lookup response was partially evaluated or not

const (
	LookupPermissionship_LOOKUP_PERMISSIONSHIP_UNSPECIFIED            LookupPermissionship = 0
	LookupPermissionship_LOOKUP_PERMISSIONSHIP_HAS_PERMISSION         LookupPermissionship = 1
	LookupPermissionship_LOOKUP_PERMISSIONSHIP_CONDITIONAL_PERMISSION LookupPermissionship = 2
)

func (LookupPermissionship) Descriptor

func (LookupPermissionship) Enum

func (LookupPermissionship) Number

func (LookupPermissionship) String

func (x LookupPermissionship) String() string

func (LookupPermissionship) Type

type LookupResourcesRequest

type LookupResourcesRequest struct {
	Consistency *Consistency `protobuf:"bytes,1,opt,name=consistency,proto3" json:"consistency,omitempty"`
	// resource_object_type is the type of resource object for which the IDs will
	// be returned.
	ResourceObjectType string `protobuf:"bytes,2,opt,name=resource_object_type,json=resourceObjectType,proto3" json:"resource_object_type,omitempty"`
	// permission is the name of the permission or relation for which the subject
	// must Check.
	Permission string `protobuf:"bytes,3,opt,name=permission,proto3" json:"permission,omitempty"`
	// subject is the subject with access to the resources.
	Subject *SubjectReference `protobuf:"bytes,4,opt,name=subject,proto3" json:"subject,omitempty"`
	// context consists of named values that are injected into the caveat evaluation context
	Context *structpb.Struct `protobuf:"bytes,5,opt,name=context,proto3" json:"context,omitempty"`
	// optional_limit, if non-zero, specifies the limit on the number of resources to return
	// before the stream is closed on the server side. By default, the stream will continue
	// resolving resources until exhausted or the stream is closed due to the client or a
	// network issue.
	OptionalLimit uint32 `protobuf:"varint,6,opt,name=optional_limit,json=optionalLimit,proto3" json:"optional_limit,omitempty"`
	// optional_cursor, if specified, indicates the cursor after which results should resume being returned.
	// The cursor can be found on the LookupResourcesResponse object.
	OptionalCursor *Cursor `protobuf:"bytes,7,opt,name=optional_cursor,json=optionalCursor,proto3" json:"optional_cursor,omitempty"`
	// contains filtered or unexported fields
}

LookupResourcesRequest performs a lookup of all resources of a particular kind on which the subject has the specified permission or the relation in which the subject exists, streaming back the IDs of those resources.

func (*LookupResourcesRequest) ClearConsistency

func (x *LookupResourcesRequest) ClearConsistency()

func (*LookupResourcesRequest) ClearContext

func (x *LookupResourcesRequest) ClearContext()

func (*LookupResourcesRequest) ClearOptionalCursor

func (x *LookupResourcesRequest) ClearOptionalCursor()

func (*LookupResourcesRequest) ClearSubject

func (x *LookupResourcesRequest) ClearSubject()

func (*LookupResourcesRequest) GetConsistency

func (x *LookupResourcesRequest) GetConsistency() *Consistency

func (*LookupResourcesRequest) GetContext

func (x *LookupResourcesRequest) GetContext() *structpb.Struct

func (*LookupResourcesRequest) GetOptionalCursor

func (x *LookupResourcesRequest) GetOptionalCursor() *Cursor

func (*LookupResourcesRequest) GetOptionalLimit

func (x *LookupResourcesRequest) GetOptionalLimit() uint32

func (*LookupResourcesRequest) GetPermission

func (x *LookupResourcesRequest) GetPermission() string

func (*LookupResourcesRequest) GetResourceObjectType

func (x *LookupResourcesRequest) GetResourceObjectType() string

func (*LookupResourcesRequest) GetSubject

func (x *LookupResourcesRequest) GetSubject() *SubjectReference

func (*LookupResourcesRequest) HasConsistency

func (x *LookupResourcesRequest) HasConsistency() bool

func (*LookupResourcesRequest) HasContext

func (x *LookupResourcesRequest) HasContext() bool

func (*LookupResourcesRequest) HasOptionalCursor

func (x *LookupResourcesRequest) HasOptionalCursor() bool

func (*LookupResourcesRequest) HasSubject

func (x *LookupResourcesRequest) HasSubject() bool

func (*LookupResourcesRequest) ProtoMessage

func (*LookupResourcesRequest) ProtoMessage()

func (*LookupResourcesRequest) ProtoReflect

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

func (*LookupResourcesRequest) Reset

func (x *LookupResourcesRequest) Reset()

func (*LookupResourcesRequest) SetConsistency

func (x *LookupResourcesRequest) SetConsistency(v *Consistency)

func (*LookupResourcesRequest) SetContext

func (x *LookupResourcesRequest) SetContext(v *structpb.Struct)

func (*LookupResourcesRequest) SetOptionalCursor

func (x *LookupResourcesRequest) SetOptionalCursor(v *Cursor)

func (*LookupResourcesRequest) SetOptionalLimit

func (x *LookupResourcesRequest) SetOptionalLimit(v uint32)

func (*LookupResourcesRequest) SetPermission

func (x *LookupResourcesRequest) SetPermission(v string)

func (*LookupResourcesRequest) SetResourceObjectType

func (x *LookupResourcesRequest) SetResourceObjectType(v string)

func (*LookupResourcesRequest) SetSubject

func (x *LookupResourcesRequest) SetSubject(v *SubjectReference)

func (*LookupResourcesRequest) String

func (x *LookupResourcesRequest) String() string

type LookupResourcesRequest_builder

type LookupResourcesRequest_builder struct {
	Consistency *Consistency
	// resource_object_type is the type of resource object for which the IDs will
	// be returned.
	ResourceObjectType string
	// permission is the name of the permission or relation for which the subject
	// must Check.
	Permission string
	// subject is the subject with access to the resources.
	Subject *SubjectReference
	// context consists of named values that are injected into the caveat evaluation context
	Context *structpb.Struct
	// optional_limit, if non-zero, specifies the limit on the number of resources to return
	// before the stream is closed on the server side. By default, the stream will continue
	// resolving resources until exhausted or the stream is closed due to the client or a
	// network issue.
	OptionalLimit uint32
	// optional_cursor, if specified, indicates the cursor after which results should resume being returned.
	// The cursor can be found on the LookupResourcesResponse object.
	OptionalCursor *Cursor
	// contains filtered or unexported fields
}

func (LookupResourcesRequest_builder) Build

type LookupResourcesResponse

type LookupResourcesResponse struct {

	// looked_up_at is the ZedToken at which the resource was found.
	LookedUpAt *ZedToken `protobuf:"bytes,1,opt,name=looked_up_at,json=lookedUpAt,proto3" json:"looked_up_at,omitempty"`
	// resource_object_id is the object ID of the found resource.
	ResourceObjectId string `protobuf:"bytes,2,opt,name=resource_object_id,json=resourceObjectId,proto3" json:"resource_object_id,omitempty"`
	// permissionship indicates whether the response was partially evaluated or not
	Permissionship LookupPermissionship `protobuf:"varint,3,opt,name=permissionship,proto3,enum=authzed.api.v1.LookupPermissionship" json:"permissionship,omitempty"`
	// partial_caveat_info holds information of a partially-evaluated caveated response
	PartialCaveatInfo *PartialCaveatInfo `protobuf:"bytes,4,opt,name=partial_caveat_info,json=partialCaveatInfo,proto3" json:"partial_caveat_info,omitempty"`
	// after_result_cursor holds a cursor that can be used to resume the LookupResources stream after this
	// result.
	AfterResultCursor *Cursor `protobuf:"bytes,5,opt,name=after_result_cursor,json=afterResultCursor,proto3" json:"after_result_cursor,omitempty"`
	// contains filtered or unexported fields
}

LookupResourcesResponse contains a single matching resource object ID for the requested object type, permission, and subject.

func (*LookupResourcesResponse) ClearAfterResultCursor

func (x *LookupResourcesResponse) ClearAfterResultCursor()

func (*LookupResourcesResponse) ClearLookedUpAt

func (x *LookupResourcesResponse) ClearLookedUpAt()

func (*LookupResourcesResponse) ClearPartialCaveatInfo

func (x *LookupResourcesResponse) ClearPartialCaveatInfo()

func (*LookupResourcesResponse) GetAfterResultCursor

func (x *LookupResourcesResponse) GetAfterResultCursor() *Cursor

func (*LookupResourcesResponse) GetLookedUpAt

func (x *LookupResourcesResponse) GetLookedUpAt() *ZedToken

func (*LookupResourcesResponse) GetPartialCaveatInfo

func (x *LookupResourcesResponse) GetPartialCaveatInfo() *PartialCaveatInfo

func (*LookupResourcesResponse) GetPermissionship

func (x *LookupResourcesResponse) GetPermissionship() LookupPermissionship

func (*LookupResourcesResponse) GetResourceObjectId

func (x *LookupResourcesResponse) GetResourceObjectId() string

func (*LookupResourcesResponse) HasAfterResultCursor

func (x *LookupResourcesResponse) HasAfterResultCursor() bool

func (*LookupResourcesResponse) HasLookedUpAt

func (x *LookupResourcesResponse) HasLookedUpAt() bool

func (*LookupResourcesResponse) HasPartialCaveatInfo

func (x *LookupResourcesResponse) HasPartialCaveatInfo() bool

func (*LookupResourcesResponse) ProtoMessage

func (*LookupResourcesResponse) ProtoMessage()

func (*LookupResourcesResponse) ProtoReflect

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

func (*LookupResourcesResponse) Reset

func (x *LookupResourcesResponse) Reset()

func (*LookupResourcesResponse) SetAfterResultCursor

func (x *LookupResourcesResponse) SetAfterResultCursor(v *Cursor)

func (*LookupResourcesResponse) SetLookedUpAt

func (x *LookupResourcesResponse) SetLookedUpAt(v *ZedToken)

func (*LookupResourcesResponse) SetPartialCaveatInfo

func (x *LookupResourcesResponse) SetPartialCaveatInfo(v *PartialCaveatInfo)

func (*LookupResourcesResponse) SetPermissionship

func (x *LookupResourcesResponse) SetPermissionship(v LookupPermissionship)

func (*LookupResourcesResponse) SetResourceObjectId

func (x *LookupResourcesResponse) SetResourceObjectId(v string)

func (*LookupResourcesResponse) String

func (x *LookupResourcesResponse) String() string

type LookupResourcesResponse_builder

type LookupResourcesResponse_builder struct {

	// looked_up_at is the ZedToken at which the resource was found.
	LookedUpAt *ZedToken
	// resource_object_id is the object ID of the found resource.
	ResourceObjectId string
	// permissionship indicates whether the response was partially evaluated or not
	Permissionship LookupPermissionship
	// partial_caveat_info holds information of a partially-evaluated caveated response
	PartialCaveatInfo *PartialCaveatInfo
	// after_result_cursor holds a cursor that can be used to resume the LookupResources stream after this
	// result.
	AfterResultCursor *Cursor
	// contains filtered or unexported fields
}

func (LookupResourcesResponse_builder) Build

type LookupSubjectsRequest

type LookupSubjectsRequest struct {
	Consistency *Consistency `protobuf:"bytes,1,opt,name=consistency,proto3" json:"consistency,omitempty"`
	// resource is the resource for which all matching subjects for the permission
	// or relation will be returned.
	Resource *ObjectReference `protobuf:"bytes,2,opt,name=resource,proto3" json:"resource,omitempty"`
	// permission is the name of the permission (or relation) for which to find
	// the subjects.
	Permission string `protobuf:"bytes,3,opt,name=permission,proto3" json:"permission,omitempty"`
	// subject_object_type is the type of subject object for which the IDs will
	// be returned.
	SubjectObjectType string `protobuf:"bytes,4,opt,name=subject_object_type,json=subjectObjectType,proto3" json:"subject_object_type,omitempty"`
	// optional_subject_relation is the optional relation for the subject.
	OptionalSubjectRelation string `` /* 132-byte string literal not displayed */
	// context consists of named values that are injected into the caveat evaluation context
	Context *structpb.Struct `protobuf:"bytes,6,opt,name=context,proto3" json:"context,omitempty"`
	// optional_concrete_limit is currently unimplemented for LookupSubjects
	// and will return an error as of SpiceDB version 1.40.1. This will
	// be implemented in a future version of SpiceDB.
	OptionalConcreteLimit uint32 `` /* 127-byte string literal not displayed */
	// optional_cursor is currently unimplemented for LookupSubjects
	// and will be ignored as of SpiceDB version 1.40.1. This will
	// be implemented in a future version of SpiceDB.
	OptionalCursor *Cursor `protobuf:"bytes,8,opt,name=optional_cursor,json=optionalCursor,proto3" json:"optional_cursor,omitempty"`
	// wildcard_option specifies whether wildcards should be returned by LookupSubjects.
	// For backwards compatibility, defaults to WILDCARD_OPTION_INCLUDE_WILDCARDS if unspecified.
	WildcardOption LookupSubjectsRequest_WildcardOption `` /* 161-byte string literal not displayed */
	// contains filtered or unexported fields
}

LookupSubjectsRequest performs a lookup of all subjects of a particular kind for which the subject has the specified permission or the relation in which the subject exists, streaming back the IDs of those subjects.

func (*LookupSubjectsRequest) ClearConsistency

func (x *LookupSubjectsRequest) ClearConsistency()

func (*LookupSubjectsRequest) ClearContext

func (x *LookupSubjectsRequest) ClearContext()

func (*LookupSubjectsRequest) ClearOptionalCursor

func (x *LookupSubjectsRequest) ClearOptionalCursor()

func (*LookupSubjectsRequest) ClearResource

func (x *LookupSubjectsRequest) ClearResource()

func (*LookupSubjectsRequest) GetConsistency

func (x *LookupSubjectsRequest) GetConsistency() *Consistency

func (*LookupSubjectsRequest) GetContext

func (x *LookupSubjectsRequest) GetContext() *structpb.Struct

func (*LookupSubjectsRequest) GetOptionalConcreteLimit

func (x *LookupSubjectsRequest) GetOptionalConcreteLimit() uint32

func (*LookupSubjectsRequest) GetOptionalCursor

func (x *LookupSubjectsRequest) GetOptionalCursor() *Cursor

func (*LookupSubjectsRequest) GetOptionalSubjectRelation

func (x *LookupSubjectsRequest) GetOptionalSubjectRelation() string

func (*LookupSubjectsRequest) GetPermission

func (x *LookupSubjectsRequest) GetPermission() string

func (*LookupSubjectsRequest) GetResource

func (x *LookupSubjectsRequest) GetResource() *ObjectReference

func (*LookupSubjectsRequest) GetSubjectObjectType

func (x *LookupSubjectsRequest) GetSubjectObjectType() string

func (*LookupSubjectsRequest) GetWildcardOption

func (*LookupSubjectsRequest) HasConsistency

func (x *LookupSubjectsRequest) HasConsistency() bool

func (*LookupSubjectsRequest) HasContext

func (x *LookupSubjectsRequest) HasContext() bool

func (*LookupSubjectsRequest) HasOptionalCursor

func (x *LookupSubjectsRequest) HasOptionalCursor() bool

func (*LookupSubjectsRequest) HasResource

func (x *LookupSubjectsRequest) HasResource() bool

func (*LookupSubjectsRequest) ProtoMessage

func (*LookupSubjectsRequest) ProtoMessage()

func (*LookupSubjectsRequest) ProtoReflect

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

func (*LookupSubjectsRequest) Reset

func (x *LookupSubjectsRequest) Reset()

func (*LookupSubjectsRequest) SetConsistency

func (x *LookupSubjectsRequest) SetConsistency(v *Consistency)

func (*LookupSubjectsRequest) SetContext

func (x *LookupSubjectsRequest) SetContext(v *structpb.Struct)

func (*LookupSubjectsRequest) SetOptionalConcreteLimit

func (x *LookupSubjectsRequest) SetOptionalConcreteLimit(v uint32)

func (*LookupSubjectsRequest) SetOptionalCursor

func (x *LookupSubjectsRequest) SetOptionalCursor(v *Cursor)

func (*LookupSubjectsRequest) SetOptionalSubjectRelation

func (x *LookupSubjectsRequest) SetOptionalSubjectRelation(v string)

func (*LookupSubjectsRequest) SetPermission

func (x *LookupSubjectsRequest) SetPermission(v string)

func (*LookupSubjectsRequest) SetResource

func (x *LookupSubjectsRequest) SetResource(v *ObjectReference)

func (*LookupSubjectsRequest) SetSubjectObjectType

func (x *LookupSubjectsRequest) SetSubjectObjectType(v string)

func (*LookupSubjectsRequest) SetWildcardOption

func (*LookupSubjectsRequest) String

func (x *LookupSubjectsRequest) String() string

type LookupSubjectsRequest_WildcardOption

type LookupSubjectsRequest_WildcardOption int32
const (
	LookupSubjectsRequest_WILDCARD_OPTION_UNSPECIFIED       LookupSubjectsRequest_WildcardOption = 0
	LookupSubjectsRequest_WILDCARD_OPTION_INCLUDE_WILDCARDS LookupSubjectsRequest_WildcardOption = 1
	LookupSubjectsRequest_WILDCARD_OPTION_EXCLUDE_WILDCARDS LookupSubjectsRequest_WildcardOption = 2
)

func (LookupSubjectsRequest_WildcardOption) Descriptor

func (LookupSubjectsRequest_WildcardOption) Enum

func (LookupSubjectsRequest_WildcardOption) Number

func (LookupSubjectsRequest_WildcardOption) String

func (LookupSubjectsRequest_WildcardOption) Type

type LookupSubjectsRequest_builder

type LookupSubjectsRequest_builder struct {
	Consistency *Consistency
	// resource is the resource for which all matching subjects for the permission
	// or relation will be returned.
	Resource *ObjectReference
	// permission is the name of the permission (or relation) for which to find
	// the subjects.
	Permission string
	// subject_object_type is the type of subject object for which the IDs will
	// be returned.
	SubjectObjectType string
	// optional_subject_relation is the optional relation for the subject.
	OptionalSubjectRelation string
	// context consists of named values that are injected into the caveat evaluation context
	Context *structpb.Struct
	// optional_concrete_limit is currently unimplemented for LookupSubjects
	// and will return an error as of SpiceDB version 1.40.1. This will
	// be implemented in a future version of SpiceDB.
	OptionalConcreteLimit uint32
	// optional_cursor is currently unimplemented for LookupSubjects
	// and will be ignored as of SpiceDB version 1.40.1. This will
	// be implemented in a future version of SpiceDB.
	OptionalCursor *Cursor
	// wildcard_option specifies whether wildcards should be returned by LookupSubjects.
	// For backwards compatibility, defaults to WILDCARD_OPTION_INCLUDE_WILDCARDS if unspecified.
	WildcardOption LookupSubjectsRequest_WildcardOption
	// contains filtered or unexported fields
}

func (LookupSubjectsRequest_builder) Build

type LookupSubjectsResponse

type LookupSubjectsResponse struct {
	LookedUpAt *ZedToken `protobuf:"bytes,1,opt,name=looked_up_at,json=lookedUpAt,proto3" json:"looked_up_at,omitempty"`
	// subject_object_id is the Object ID of the subject found. May be a `*` if
	// a wildcard was found.
	// deprecated: use `subject`
	//
	// Deprecated: Marked as deprecated in authzed/api/v1/permission_service.proto.
	SubjectObjectId string `protobuf:"bytes,2,opt,name=subject_object_id,json=subjectObjectId,proto3" json:"subject_object_id,omitempty"`
	// excluded_subject_ids are the Object IDs of the subjects excluded. This list
	// will only contain object IDs if `subject_object_id` is a wildcard (`*`) and
	// will only be populated if exclusions exist from the wildcard.
	// deprecated: use `excluded_subjects`
	//
	// Deprecated: Marked as deprecated in authzed/api/v1/permission_service.proto.
	ExcludedSubjectIds []string `protobuf:"bytes,3,rep,name=excluded_subject_ids,json=excludedSubjectIds,proto3" json:"excluded_subject_ids,omitempty"`
	// permissionship indicates whether the response was partially evaluated or not
	// deprecated: use `subject.permissionship`
	//
	// Deprecated: Marked as deprecated in authzed/api/v1/permission_service.proto.
	Permissionship LookupPermissionship `protobuf:"varint,4,opt,name=permissionship,proto3,enum=authzed.api.v1.LookupPermissionship" json:"permissionship,omitempty"`
	// partial_caveat_info holds information of a partially-evaluated caveated response
	// deprecated: use `subject.partial_caveat_info`
	//
	// Deprecated: Marked as deprecated in authzed/api/v1/permission_service.proto.
	PartialCaveatInfo *PartialCaveatInfo `protobuf:"bytes,5,opt,name=partial_caveat_info,json=partialCaveatInfo,proto3" json:"partial_caveat_info,omitempty"`
	// subject is the subject found, along with its permissionship.
	Subject *ResolvedSubject `protobuf:"bytes,6,opt,name=subject,proto3" json:"subject,omitempty"`
	// excluded_subjects are the subjects excluded. This list
	// will only contain subjects if `subject.subject_object_id` is a wildcard (`*`) and
	// will only be populated if exclusions exist from the wildcard.
	ExcludedSubjects []*ResolvedSubject `protobuf:"bytes,7,rep,name=excluded_subjects,json=excludedSubjects,proto3" json:"excluded_subjects,omitempty"`
	// after_result_cursor holds a cursor that can be used to resume the LookupSubjects stream after this
	// result.
	AfterResultCursor *Cursor `protobuf:"bytes,8,opt,name=after_result_cursor,json=afterResultCursor,proto3" json:"after_result_cursor,omitempty"`
	// contains filtered or unexported fields
}

LookupSubjectsResponse contains a single matching subject object ID for the requested subject object type on the permission or relation.

func (*LookupSubjectsResponse) ClearAfterResultCursor

func (x *LookupSubjectsResponse) ClearAfterResultCursor()

func (*LookupSubjectsResponse) ClearLookedUpAt

func (x *LookupSubjectsResponse) ClearLookedUpAt()

func (*LookupSubjectsResponse) ClearPartialCaveatInfo deprecated

func (x *LookupSubjectsResponse) ClearPartialCaveatInfo()

Deprecated: Marked as deprecated in authzed/api/v1/permission_service.proto.

func (*LookupSubjectsResponse) ClearSubject

func (x *LookupSubjectsResponse) ClearSubject()

func (*LookupSubjectsResponse) GetAfterResultCursor

func (x *LookupSubjectsResponse) GetAfterResultCursor() *Cursor

func (*LookupSubjectsResponse) GetExcludedSubjectIds deprecated

func (x *LookupSubjectsResponse) GetExcludedSubjectIds() []string

Deprecated: Marked as deprecated in authzed/api/v1/permission_service.proto.

func (*LookupSubjectsResponse) GetExcludedSubjects

func (x *LookupSubjectsResponse) GetExcludedSubjects() []*ResolvedSubject

func (*LookupSubjectsResponse) GetLookedUpAt

func (x *LookupSubjectsResponse) GetLookedUpAt() *ZedToken

func (*LookupSubjectsResponse) GetPartialCaveatInfo deprecated

func (x *LookupSubjectsResponse) GetPartialCaveatInfo() *PartialCaveatInfo

Deprecated: Marked as deprecated in authzed/api/v1/permission_service.proto.

func (*LookupSubjectsResponse) GetPermissionship deprecated

func (x *LookupSubjectsResponse) GetPermissionship() LookupPermissionship

Deprecated: Marked as deprecated in authzed/api/v1/permission_service.proto.

func (*LookupSubjectsResponse) GetSubject

func (x *LookupSubjectsResponse) GetSubject() *ResolvedSubject

func (*LookupSubjectsResponse) GetSubjectObjectId deprecated

func (x *LookupSubjectsResponse) GetSubjectObjectId() string

Deprecated: Marked as deprecated in authzed/api/v1/permission_service.proto.

func (*LookupSubjectsResponse) HasAfterResultCursor

func (x *LookupSubjectsResponse) HasAfterResultCursor() bool

func (*LookupSubjectsResponse) HasLookedUpAt

func (x *LookupSubjectsResponse) HasLookedUpAt() bool

func (*LookupSubjectsResponse) HasPartialCaveatInfo deprecated

func (x *LookupSubjectsResponse) HasPartialCaveatInfo() bool

Deprecated: Marked as deprecated in authzed/api/v1/permission_service.proto.

func (*LookupSubjectsResponse) HasSubject

func (x *LookupSubjectsResponse) HasSubject() bool

func (*LookupSubjectsResponse) ProtoMessage

func (*LookupSubjectsResponse) ProtoMessage()

func (*LookupSubjectsResponse) ProtoReflect

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

func (*LookupSubjectsResponse) Reset

func (x *LookupSubjectsResponse) Reset()

func (*LookupSubjectsResponse) SetAfterResultCursor

func (x *LookupSubjectsResponse) SetAfterResultCursor(v *Cursor)

func (*LookupSubjectsResponse) SetExcludedSubjectIds deprecated

func (x *LookupSubjectsResponse) SetExcludedSubjectIds(v []string)

Deprecated: Marked as deprecated in authzed/api/v1/permission_service.proto.

func (*LookupSubjectsResponse) SetExcludedSubjects

func (x *LookupSubjectsResponse) SetExcludedSubjects(v []*ResolvedSubject)

func (*LookupSubjectsResponse) SetLookedUpAt

func (x *LookupSubjectsResponse) SetLookedUpAt(v *ZedToken)

func (*LookupSubjectsResponse) SetPartialCaveatInfo deprecated

func (x *LookupSubjectsResponse) SetPartialCaveatInfo(v *PartialCaveatInfo)

Deprecated: Marked as deprecated in authzed/api/v1/permission_service.proto.

func (*LookupSubjectsResponse) SetPermissionship deprecated

func (x *LookupSubjectsResponse) SetPermissionship(v LookupPermissionship)

Deprecated: Marked as deprecated in authzed/api/v1/permission_service.proto.

func (*LookupSubjectsResponse) SetSubject

func (x *LookupSubjectsResponse) SetSubject(v *ResolvedSubject)

func (*LookupSubjectsResponse) SetSubjectObjectId deprecated

func (x *LookupSubjectsResponse) SetSubjectObjectId(v string)

Deprecated: Marked as deprecated in authzed/api/v1/permission_service.proto.

func (*LookupSubjectsResponse) String

func (x *LookupSubjectsResponse) String() string

type LookupSubjectsResponse_builder

type LookupSubjectsResponse_builder struct {
	LookedUpAt *ZedToken
	// subject_object_id is the Object ID of the subject found. May be a `*` if
	// a wildcard was found.
	// deprecated: use `subject`
	//
	// Deprecated: Marked as deprecated in authzed/api/v1/permission_service.proto.
	SubjectObjectId string
	// excluded_subject_ids are the Object IDs of the subjects excluded. This list
	// will only contain object IDs if `subject_object_id` is a wildcard (`*`) and
	// will only be populated if exclusions exist from the wildcard.
	// deprecated: use `excluded_subjects`
	//
	// Deprecated: Marked as deprecated in authzed/api/v1/permission_service.proto.
	ExcludedSubjectIds []string
	// permissionship indicates whether the response was partially evaluated or not
	// deprecated: use `subject.permissionship`
	//
	// Deprecated: Marked as deprecated in authzed/api/v1/permission_service.proto.
	Permissionship LookupPermissionship
	// partial_caveat_info holds information of a partially-evaluated caveated response
	// deprecated: use `subject.partial_caveat_info`
	//
	// Deprecated: Marked as deprecated in authzed/api/v1/permission_service.proto.
	PartialCaveatInfo *PartialCaveatInfo
	// subject is the subject found, along with its permissionship.
	Subject *ResolvedSubject
	// excluded_subjects are the subjects excluded. This list
	// will only contain subjects if `subject.subject_object_id` is a wildcard (`*`) and
	// will only be populated if exclusions exist from the wildcard.
	ExcludedSubjects []*ResolvedSubject
	// after_result_cursor holds a cursor that can be used to resume the LookupSubjects stream after this
	// result.
	AfterResultCursor *Cursor
	// contains filtered or unexported fields
}

func (LookupSubjectsResponse_builder) Build

type ObjectReference

type ObjectReference struct {
	ObjectType string `protobuf:"bytes,1,opt,name=object_type,json=objectType,proto3" json:"object_type,omitempty"`
	ObjectId   string `protobuf:"bytes,2,opt,name=object_id,json=objectId,proto3" json:"object_id,omitempty"`
	// contains filtered or unexported fields
}

ObjectReference is used to refer to a specific object in the system.

func (*ObjectReference) GetObjectId

func (x *ObjectReference) GetObjectId() string

func (*ObjectReference) GetObjectType

func (x *ObjectReference) GetObjectType() string

func (*ObjectReference) ProtoMessage

func (*ObjectReference) ProtoMessage()

func (*ObjectReference) ProtoReflect

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

func (*ObjectReference) Reset

func (x *ObjectReference) Reset()

func (*ObjectReference) SetObjectId

func (x *ObjectReference) SetObjectId(v string)

func (*ObjectReference) SetObjectType

func (x *ObjectReference) SetObjectType(v string)

func (*ObjectReference) String

func (x *ObjectReference) String() string

type ObjectReference_builder

type ObjectReference_builder struct {
	ObjectType string
	ObjectId   string
	// contains filtered or unexported fields
}

func (ObjectReference_builder) Build

type PartialCaveatInfo

type PartialCaveatInfo struct {

	// missing_required_context is a list of one or more fields that were missing and prevented caveats
	// from being fully evaluated
	MissingRequiredContext []string `` /* 129-byte string literal not displayed */
	// contains filtered or unexported fields
}

PartialCaveatInfo carries information necessary for the client to take action in the event a response contains a partially evaluated caveat

func (*PartialCaveatInfo) GetMissingRequiredContext

func (x *PartialCaveatInfo) GetMissingRequiredContext() []string

func (*PartialCaveatInfo) ProtoMessage

func (*PartialCaveatInfo) ProtoMessage()

func (*PartialCaveatInfo) ProtoReflect

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

func (*PartialCaveatInfo) Reset

func (x *PartialCaveatInfo) Reset()

func (*PartialCaveatInfo) SetMissingRequiredContext

func (x *PartialCaveatInfo) SetMissingRequiredContext(v []string)

func (*PartialCaveatInfo) String

func (x *PartialCaveatInfo) String() string

type PartialCaveatInfo_builder

type PartialCaveatInfo_builder struct {

	// missing_required_context is a list of one or more fields that were missing and prevented caveats
	// from being fully evaluated
	MissingRequiredContext []string
	// contains filtered or unexported fields
}

func (PartialCaveatInfo_builder) Build

type PermissionRelationshipTree

type PermissionRelationshipTree struct {

	// Types that are valid to be assigned to TreeType:
	//
	//	*PermissionRelationshipTree_Intermediate
	//	*PermissionRelationshipTree_Leaf
	TreeType         isPermissionRelationshipTree_TreeType `protobuf_oneof:"tree_type"`
	ExpandedObject   *ObjectReference                      `protobuf:"bytes,3,opt,name=expanded_object,json=expandedObject,proto3" json:"expanded_object,omitempty"`
	ExpandedRelation string                                `protobuf:"bytes,4,opt,name=expanded_relation,json=expandedRelation,proto3" json:"expanded_relation,omitempty"`
	// contains filtered or unexported fields
}

PermissionRelationshipTree is used for representing a tree of a resource and its permission relationships with other objects.

func (*PermissionRelationshipTree) ClearExpandedObject

func (x *PermissionRelationshipTree) ClearExpandedObject()

func (*PermissionRelationshipTree) ClearIntermediate

func (x *PermissionRelationshipTree) ClearIntermediate()

func (*PermissionRelationshipTree) ClearLeaf

func (x *PermissionRelationshipTree) ClearLeaf()

func (*PermissionRelationshipTree) ClearTreeType

func (x *PermissionRelationshipTree) ClearTreeType()

func (*PermissionRelationshipTree) GetExpandedObject

func (x *PermissionRelationshipTree) GetExpandedObject() *ObjectReference

func (*PermissionRelationshipTree) GetExpandedRelation

func (x *PermissionRelationshipTree) GetExpandedRelation() string

func (*PermissionRelationshipTree) GetIntermediate

func (x *PermissionRelationshipTree) GetIntermediate() *AlgebraicSubjectSet

func (*PermissionRelationshipTree) GetLeaf

func (*PermissionRelationshipTree) GetTreeType

func (x *PermissionRelationshipTree) GetTreeType() isPermissionRelationshipTree_TreeType

func (*PermissionRelationshipTree) HasExpandedObject

func (x *PermissionRelationshipTree) HasExpandedObject() bool

func (*PermissionRelationshipTree) HasIntermediate

func (x *PermissionRelationshipTree) HasIntermediate() bool

func (*PermissionRelationshipTree) HasLeaf

func (x *PermissionRelationshipTree) HasLeaf() bool

func (*PermissionRelationshipTree) HasTreeType

func (x *PermissionRelationshipTree) HasTreeType() bool

func (*PermissionRelationshipTree) ProtoMessage

func (*PermissionRelationshipTree) ProtoMessage()

func (*PermissionRelationshipTree) ProtoReflect

func (*PermissionRelationshipTree) Reset

func (x *PermissionRelationshipTree) Reset()

func (*PermissionRelationshipTree) SetExpandedObject

func (x *PermissionRelationshipTree) SetExpandedObject(v *ObjectReference)

func (*PermissionRelationshipTree) SetExpandedRelation

func (x *PermissionRelationshipTree) SetExpandedRelation(v string)

func (*PermissionRelationshipTree) SetIntermediate

func (x *PermissionRelationshipTree) SetIntermediate(v *AlgebraicSubjectSet)

func (*PermissionRelationshipTree) SetLeaf

func (*PermissionRelationshipTree) String

func (x *PermissionRelationshipTree) String() string

func (*PermissionRelationshipTree) WhichTreeType

func (x *PermissionRelationshipTree) WhichTreeType() case_PermissionRelationshipTree_TreeType

type PermissionRelationshipTree_Intermediate

type PermissionRelationshipTree_Intermediate struct {
	Intermediate *AlgebraicSubjectSet `protobuf:"bytes,1,opt,name=intermediate,proto3,oneof"`
}

type PermissionRelationshipTree_Leaf

type PermissionRelationshipTree_Leaf struct {
	Leaf *DirectSubjectSet `protobuf:"bytes,2,opt,name=leaf,proto3,oneof"`
}

type PermissionRelationshipTree_builder

type PermissionRelationshipTree_builder struct {

	// Fields of oneof TreeType:
	Intermediate *AlgebraicSubjectSet
	Leaf         *DirectSubjectSet
	// -- end of TreeType
	ExpandedObject   *ObjectReference
	ExpandedRelation string
	// contains filtered or unexported fields
}

func (PermissionRelationshipTree_builder) Build

type Precondition

type Precondition struct {
	Operation Precondition_Operation `protobuf:"varint,1,opt,name=operation,proto3,enum=authzed.api.v1.Precondition_Operation" json:"operation,omitempty"`
	Filter    *RelationshipFilter    `protobuf:"bytes,2,opt,name=filter,proto3" json:"filter,omitempty"`
	// contains filtered or unexported fields
}

Precondition specifies how and the existence or absence of certain relationships as expressed through the accompanying filter should affect whether or not the operation proceeds.

MUST_NOT_MATCH will fail the parent request if any relationships match the relationships filter. MUST_MATCH will fail the parent request if there are no relationships that match the filter.

func (*Precondition) ClearFilter

func (x *Precondition) ClearFilter()

func (*Precondition) GetFilter

func (x *Precondition) GetFilter() *RelationshipFilter

func (*Precondition) GetOperation

func (x *Precondition) GetOperation() Precondition_Operation

func (*Precondition) HasFilter

func (x *Precondition) HasFilter() bool

func (*Precondition) ProtoMessage

func (*Precondition) ProtoMessage()

func (*Precondition) ProtoReflect

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

func (*Precondition) Reset

func (x *Precondition) Reset()

func (*Precondition) SetFilter

func (x *Precondition) SetFilter(v *RelationshipFilter)

func (*Precondition) SetOperation

func (x *Precondition) SetOperation(v Precondition_Operation)

func (*Precondition) String

func (x *Precondition) String() string

type Precondition_Operation

type Precondition_Operation int32
const (
	Precondition_OPERATION_UNSPECIFIED    Precondition_Operation = 0
	Precondition_OPERATION_MUST_NOT_MATCH Precondition_Operation = 1
	Precondition_OPERATION_MUST_MATCH     Precondition_Operation = 2
)

func (Precondition_Operation) Descriptor

func (Precondition_Operation) Enum

func (Precondition_Operation) Number

func (Precondition_Operation) String

func (x Precondition_Operation) String() string

func (Precondition_Operation) Type

type Precondition_builder

type Precondition_builder struct {
	Operation Precondition_Operation
	Filter    *RelationshipFilter
	// contains filtered or unexported fields
}

func (Precondition_builder) Build

func (b0 Precondition_builder) Build() *Precondition

type ReadCounterValue

type ReadCounterValue struct {

	// relationship_count is the count of relationships that match the filter.
	RelationshipCount uint64 `protobuf:"varint,1,opt,name=relationship_count,json=relationshipCount,proto3" json:"relationship_count,omitempty"`
	// read_at is the ZedToken at which the relationship count applies.
	ReadAt *ZedToken `protobuf:"bytes,2,opt,name=read_at,json=readAt,proto3" json:"read_at,omitempty"`
	// contains filtered or unexported fields
}

func (*ReadCounterValue) ClearReadAt

func (x *ReadCounterValue) ClearReadAt()

func (*ReadCounterValue) GetReadAt

func (x *ReadCounterValue) GetReadAt() *ZedToken

func (*ReadCounterValue) GetRelationshipCount

func (x *ReadCounterValue) GetRelationshipCount() uint64

func (*ReadCounterValue) HasReadAt

func (x *ReadCounterValue) HasReadAt() bool

func (*ReadCounterValue) ProtoMessage

func (*ReadCounterValue) ProtoMessage()

func (*ReadCounterValue) ProtoReflect

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

func (*ReadCounterValue) Reset

func (x *ReadCounterValue) Reset()

func (*ReadCounterValue) SetReadAt

func (x *ReadCounterValue) SetReadAt(v *ZedToken)

func (*ReadCounterValue) SetRelationshipCount

func (x *ReadCounterValue) SetRelationshipCount(v uint64)

func (*ReadCounterValue) String

func (x *ReadCounterValue) String() string

type ReadCounterValue_builder

type ReadCounterValue_builder struct {

	// relationship_count is the count of relationships that match the filter.
	RelationshipCount uint64
	// read_at is the ZedToken at which the relationship count applies.
	ReadAt *ZedToken
	// contains filtered or unexported fields
}

func (ReadCounterValue_builder) Build

type ReadRelationshipsRequest

type ReadRelationshipsRequest struct {
	Consistency *Consistency `protobuf:"bytes,1,opt,name=consistency,proto3" json:"consistency,omitempty"`
	// relationship_filter defines the filter to be applied to the relationships
	// to be returned.
	RelationshipFilter *RelationshipFilter `protobuf:"bytes,2,opt,name=relationship_filter,json=relationshipFilter,proto3" json:"relationship_filter,omitempty"`
	// optional_limit, if non-zero, specifies the limit on the number of relationships to return
	// before the stream is closed on the server side. By default, the stream will continue
	// resolving relationships until exhausted or the stream is closed due to the client or a
	// network issue.
	OptionalLimit uint32 `protobuf:"varint,3,opt,name=optional_limit,json=optionalLimit,proto3" json:"optional_limit,omitempty"`
	// optional_cursor, if specified, indicates the cursor after which results should resume being returned.
	// The cursor can be found on the ReadRelationshipsResponse object.
	OptionalCursor *Cursor `protobuf:"bytes,4,opt,name=optional_cursor,json=optionalCursor,proto3" json:"optional_cursor,omitempty"`
	// contains filtered or unexported fields
}

ReadRelationshipsRequest specifies one or more filters used to read matching relationships within the system.

func (*ReadRelationshipsRequest) ClearConsistency

func (x *ReadRelationshipsRequest) ClearConsistency()

func (*ReadRelationshipsRequest) ClearOptionalCursor

func (x *ReadRelationshipsRequest) ClearOptionalCursor()

func (*ReadRelationshipsRequest) ClearRelationshipFilter

func (x *ReadRelationshipsRequest) ClearRelationshipFilter()

func (*ReadRelationshipsRequest) GetConsistency

func (x *ReadRelationshipsRequest) GetConsistency() *Consistency

func (*ReadRelationshipsRequest) GetOptionalCursor

func (x *ReadRelationshipsRequest) GetOptionalCursor() *Cursor

func (*ReadRelationshipsRequest) GetOptionalLimit

func (x *ReadRelationshipsRequest) GetOptionalLimit() uint32

func (*ReadRelationshipsRequest) GetRelationshipFilter

func (x *ReadRelationshipsRequest) GetRelationshipFilter() *RelationshipFilter

func (*ReadRelationshipsRequest) HasConsistency

func (x *ReadRelationshipsRequest) HasConsistency() bool

func (*ReadRelationshipsRequest) HasOptionalCursor

func (x *ReadRelationshipsRequest) HasOptionalCursor() bool

func (*ReadRelationshipsRequest) HasRelationshipFilter

func (x *ReadRelationshipsRequest) HasRelationshipFilter() bool

func (*ReadRelationshipsRequest) ProtoMessage

func (*ReadRelationshipsRequest) ProtoMessage()

func (*ReadRelationshipsRequest) ProtoReflect

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

func (*ReadRelationshipsRequest) Reset

func (x *ReadRelationshipsRequest) Reset()

func (*ReadRelationshipsRequest) SetConsistency

func (x *ReadRelationshipsRequest) SetConsistency(v *Consistency)

func (*ReadRelationshipsRequest) SetOptionalCursor

func (x *ReadRelationshipsRequest) SetOptionalCursor(v *Cursor)

func (*ReadRelationshipsRequest) SetOptionalLimit

func (x *ReadRelationshipsRequest) SetOptionalLimit(v uint32)

func (*ReadRelationshipsRequest) SetRelationshipFilter

func (x *ReadRelationshipsRequest) SetRelationshipFilter(v *RelationshipFilter)

func (*ReadRelationshipsRequest) String

func (x *ReadRelationshipsRequest) String() string

type ReadRelationshipsRequest_builder

type ReadRelationshipsRequest_builder struct {
	Consistency *Consistency
	// relationship_filter defines the filter to be applied to the relationships
	// to be returned.
	RelationshipFilter *RelationshipFilter
	// optional_limit, if non-zero, specifies the limit on the number of relationships to return
	// before the stream is closed on the server side. By default, the stream will continue
	// resolving relationships until exhausted or the stream is closed due to the client or a
	// network issue.
	OptionalLimit uint32
	// optional_cursor, if specified, indicates the cursor after which results should resume being returned.
	// The cursor can be found on the ReadRelationshipsResponse object.
	OptionalCursor *Cursor
	// contains filtered or unexported fields
}

func (ReadRelationshipsRequest_builder) Build

type ReadRelationshipsResponse

type ReadRelationshipsResponse struct {

	// read_at is the ZedToken at which the relationship was found.
	ReadAt *ZedToken `protobuf:"bytes,1,opt,name=read_at,json=readAt,proto3" json:"read_at,omitempty"`
	// relationship is the found relationship.
	Relationship *Relationship `protobuf:"bytes,2,opt,name=relationship,proto3" json:"relationship,omitempty"`
	// after_result_cursor holds a cursor that can be used to resume the ReadRelationships stream after this
	// result.
	AfterResultCursor *Cursor `protobuf:"bytes,3,opt,name=after_result_cursor,json=afterResultCursor,proto3" json:"after_result_cursor,omitempty"`
	// contains filtered or unexported fields
}

ReadRelationshipsResponse contains a Relationship found that matches the specified relationship filter(s). A instance of this response message will be streamed to the client for each relationship found.

func (*ReadRelationshipsResponse) ClearAfterResultCursor

func (x *ReadRelationshipsResponse) ClearAfterResultCursor()

func (*ReadRelationshipsResponse) ClearReadAt

func (x *ReadRelationshipsResponse) ClearReadAt()

func (*ReadRelationshipsResponse) ClearRelationship

func (x *ReadRelationshipsResponse) ClearRelationship()

func (*ReadRelationshipsResponse) GetAfterResultCursor

func (x *ReadRelationshipsResponse) GetAfterResultCursor() *Cursor

func (*ReadRelationshipsResponse) GetReadAt

func (x *ReadRelationshipsResponse) GetReadAt() *ZedToken

func (*ReadRelationshipsResponse) GetRelationship

func (x *ReadRelationshipsResponse) GetRelationship() *Relationship

func (*ReadRelationshipsResponse) HasAfterResultCursor

func (x *ReadRelationshipsResponse) HasAfterResultCursor() bool

func (*ReadRelationshipsResponse) HasReadAt

func (x *ReadRelationshipsResponse) HasReadAt() bool

func (*ReadRelationshipsResponse) HasRelationship

func (x *ReadRelationshipsResponse) HasRelationship() bool

func (*ReadRelationshipsResponse) ProtoMessage

func (*ReadRelationshipsResponse) ProtoMessage()

func (*ReadRelationshipsResponse) ProtoReflect

func (*ReadRelationshipsResponse) Reset

func (x *ReadRelationshipsResponse) Reset()

func (*ReadRelationshipsResponse) SetAfterResultCursor

func (x *ReadRelationshipsResponse) SetAfterResultCursor(v *Cursor)

func (*ReadRelationshipsResponse) SetReadAt

func (x *ReadRelationshipsResponse) SetReadAt(v *ZedToken)

func (*ReadRelationshipsResponse) SetRelationship

func (x *ReadRelationshipsResponse) SetRelationship(v *Relationship)

func (*ReadRelationshipsResponse) String

func (x *ReadRelationshipsResponse) String() string

type ReadRelationshipsResponse_builder

type ReadRelationshipsResponse_builder struct {

	// read_at is the ZedToken at which the relationship was found.
	ReadAt *ZedToken
	// relationship is the found relationship.
	Relationship *Relationship
	// after_result_cursor holds a cursor that can be used to resume the ReadRelationships stream after this
	// result.
	AfterResultCursor *Cursor
	// contains filtered or unexported fields
}

func (ReadRelationshipsResponse_builder) Build

type ReadSchemaRequest

type ReadSchemaRequest struct {
	// contains filtered or unexported fields
}

ReadSchemaRequest returns the schema from the database.

func (*ReadSchemaRequest) ProtoMessage

func (*ReadSchemaRequest) ProtoMessage()

func (*ReadSchemaRequest) ProtoReflect

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

func (*ReadSchemaRequest) Reset

func (x *ReadSchemaRequest) Reset()

func (*ReadSchemaRequest) String

func (x *ReadSchemaRequest) String() string

type ReadSchemaRequest_builder

type ReadSchemaRequest_builder struct {
	// contains filtered or unexported fields
}

func (ReadSchemaRequest_builder) Build

type ReadSchemaResponse

type ReadSchemaResponse struct {

	// schema_text is the textual form of the current schema in the system
	SchemaText string `protobuf:"bytes,1,opt,name=schema_text,json=schemaText,proto3" json:"schema_text,omitempty"`
	// read_at is the ZedToken at which the schema was read.
	ReadAt *ZedToken `protobuf:"bytes,2,opt,name=read_at,json=readAt,proto3" json:"read_at,omitempty"`
	// contains filtered or unexported fields
}

ReadSchemaResponse is the resulting data after having read the Object Definitions from a Schema.

func (*ReadSchemaResponse) ClearReadAt

func (x *ReadSchemaResponse) ClearReadAt()

func (*ReadSchemaResponse) GetReadAt

func (x *ReadSchemaResponse) GetReadAt() *ZedToken

func (*ReadSchemaResponse) GetSchemaText

func (x *ReadSchemaResponse) GetSchemaText() string

func (*ReadSchemaResponse) HasReadAt

func (x *ReadSchemaResponse) HasReadAt() bool

func (*ReadSchemaResponse) ProtoMessage

func (*ReadSchemaResponse) ProtoMessage()

func (*ReadSchemaResponse) ProtoReflect

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

func (*ReadSchemaResponse) Reset

func (x *ReadSchemaResponse) Reset()

func (*ReadSchemaResponse) SetReadAt

func (x *ReadSchemaResponse) SetReadAt(v *ZedToken)

func (*ReadSchemaResponse) SetSchemaText

func (x *ReadSchemaResponse) SetSchemaText(v string)

func (*ReadSchemaResponse) String

func (x *ReadSchemaResponse) String() string

type ReadSchemaResponse_builder

type ReadSchemaResponse_builder struct {

	// schema_text is the textual form of the current schema in the system
	SchemaText string
	// read_at is the ZedToken at which the schema was read.
	ReadAt *ZedToken
	// contains filtered or unexported fields
}

func (ReadSchemaResponse_builder) Build

type ReflectSchemaRequest

type ReflectSchemaRequest struct {
	Consistency *Consistency `protobuf:"bytes,1,opt,name=consistency,proto3" json:"consistency,omitempty"`
	// optional_filters defines optional filters that are applied in
	// an OR fashion to the schema, before being returned
	OptionalFilters []*ReflectionSchemaFilter `protobuf:"bytes,2,rep,name=optional_filters,json=optionalFilters,proto3" json:"optional_filters,omitempty"`
	// contains filtered or unexported fields
}

func (*ReflectSchemaRequest) ClearConsistency

func (x *ReflectSchemaRequest) ClearConsistency()

func (*ReflectSchemaRequest) GetConsistency

func (x *ReflectSchemaRequest) GetConsistency() *Consistency

func (*ReflectSchemaRequest) GetOptionalFilters

func (x *ReflectSchemaRequest) GetOptionalFilters() []*ReflectionSchemaFilter

func (*ReflectSchemaRequest) HasConsistency

func (x *ReflectSchemaRequest) HasConsistency() bool

func (*ReflectSchemaRequest) ProtoMessage

func (*ReflectSchemaRequest) ProtoMessage()

func (*ReflectSchemaRequest) ProtoReflect

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

func (*ReflectSchemaRequest) Reset

func (x *ReflectSchemaRequest) Reset()

func (*ReflectSchemaRequest) SetConsistency

func (x *ReflectSchemaRequest) SetConsistency(v *Consistency)

func (*ReflectSchemaRequest) SetOptionalFilters

func (x *ReflectSchemaRequest) SetOptionalFilters(v []*ReflectionSchemaFilter)

func (*ReflectSchemaRequest) String

func (x *ReflectSchemaRequest) String() string

type ReflectSchemaRequest_builder

type ReflectSchemaRequest_builder struct {
	Consistency *Consistency
	// optional_filters defines optional filters that are applied in
	// an OR fashion to the schema, before being returned
	OptionalFilters []*ReflectionSchemaFilter
	// contains filtered or unexported fields
}

func (ReflectSchemaRequest_builder) Build

type ReflectSchemaResponse

type ReflectSchemaResponse struct {

	// definitions are the definitions defined in the schema.
	Definitions []*ReflectionDefinition `protobuf:"bytes,1,rep,name=definitions,proto3" json:"definitions,omitempty"`
	// caveats are the caveats defined in the schema.
	Caveats []*ReflectionCaveat `protobuf:"bytes,2,rep,name=caveats,proto3" json:"caveats,omitempty"`
	// read_at is the ZedToken at which the schema was read.
	ReadAt *ZedToken `protobuf:"bytes,3,opt,name=read_at,json=readAt,proto3" json:"read_at,omitempty"`
	// contains filtered or unexported fields
}

func (*ReflectSchemaResponse) ClearReadAt

func (x *ReflectSchemaResponse) ClearReadAt()

func (*ReflectSchemaResponse) GetCaveats

func (x *ReflectSchemaResponse) GetCaveats() []*ReflectionCaveat

func (*ReflectSchemaResponse) GetDefinitions

func (x *ReflectSchemaResponse) GetDefinitions() []*ReflectionDefinition

func (*ReflectSchemaResponse) GetReadAt

func (x *ReflectSchemaResponse) GetReadAt() *ZedToken

func (*ReflectSchemaResponse) HasReadAt

func (x *ReflectSchemaResponse) HasReadAt() bool

func (*ReflectSchemaResponse) ProtoMessage

func (*ReflectSchemaResponse) ProtoMessage()

func (*ReflectSchemaResponse) ProtoReflect

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

func (*ReflectSchemaResponse) Reset

func (x *ReflectSchemaResponse) Reset()

func (*ReflectSchemaResponse) SetCaveats

func (x *ReflectSchemaResponse) SetCaveats(v []*ReflectionCaveat)

func (*ReflectSchemaResponse) SetDefinitions

func (x *ReflectSchemaResponse) SetDefinitions(v []*ReflectionDefinition)

func (*ReflectSchemaResponse) SetReadAt

func (x *ReflectSchemaResponse) SetReadAt(v *ZedToken)

func (*ReflectSchemaResponse) String

func (x *ReflectSchemaResponse) String() string

type ReflectSchemaResponse_builder

type ReflectSchemaResponse_builder struct {

	// definitions are the definitions defined in the schema.
	Definitions []*ReflectionDefinition
	// caveats are the caveats defined in the schema.
	Caveats []*ReflectionCaveat
	// read_at is the ZedToken at which the schema was read.
	ReadAt *ZedToken
	// contains filtered or unexported fields
}

func (ReflectSchemaResponse_builder) Build

type ReflectionCaveat

type ReflectionCaveat struct {
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// comment is a human-readable comments on the caveat. Will include
	// delimiter characters.
	Comment    string                       `protobuf:"bytes,2,opt,name=comment,proto3" json:"comment,omitempty"`
	Parameters []*ReflectionCaveatParameter `protobuf:"bytes,3,rep,name=parameters,proto3" json:"parameters,omitempty"`
	Expression string                       `protobuf:"bytes,4,opt,name=expression,proto3" json:"expression,omitempty"`
	// contains filtered or unexported fields
}

ReflectionCaveat is the representation of a caveat in the schema.

func (*ReflectionCaveat) GetComment

func (x *ReflectionCaveat) GetComment() string

func (*ReflectionCaveat) GetExpression

func (x *ReflectionCaveat) GetExpression() string

func (*ReflectionCaveat) GetName

func (x *ReflectionCaveat) GetName() string

func (*ReflectionCaveat) GetParameters

func (x *ReflectionCaveat) GetParameters() []*ReflectionCaveatParameter

func (*ReflectionCaveat) ProtoMessage

func (*ReflectionCaveat) ProtoMessage()

func (*ReflectionCaveat) ProtoReflect

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

func (*ReflectionCaveat) Reset

func (x *ReflectionCaveat) Reset()

func (*ReflectionCaveat) SetComment

func (x *ReflectionCaveat) SetComment(v string)

func (*ReflectionCaveat) SetExpression

func (x *ReflectionCaveat) SetExpression(v string)

func (*ReflectionCaveat) SetName

func (x *ReflectionCaveat) SetName(v string)

func (*ReflectionCaveat) SetParameters

func (x *ReflectionCaveat) SetParameters(v []*ReflectionCaveatParameter)

func (*ReflectionCaveat) String

func (x *ReflectionCaveat) String() string

type ReflectionCaveatParameter

type ReflectionCaveatParameter struct {
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// type is the type of the parameter. Will be a string representing the
	// type, e.g. `int` or `list<string>`
	Type             string `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"`
	ParentCaveatName string `protobuf:"bytes,3,opt,name=parent_caveat_name,json=parentCaveatName,proto3" json:"parent_caveat_name,omitempty"`
	// contains filtered or unexported fields
}

ReflectionCaveatParameter is the representation of a parameter in a caveat.

func (*ReflectionCaveatParameter) GetName

func (x *ReflectionCaveatParameter) GetName() string

func (*ReflectionCaveatParameter) GetParentCaveatName

func (x *ReflectionCaveatParameter) GetParentCaveatName() string

func (*ReflectionCaveatParameter) GetType

func (x *ReflectionCaveatParameter) GetType() string

func (*ReflectionCaveatParameter) ProtoMessage

func (*ReflectionCaveatParameter) ProtoMessage()

func (*ReflectionCaveatParameter) ProtoReflect

func (*ReflectionCaveatParameter) Reset

func (x *ReflectionCaveatParameter) Reset()

func (*ReflectionCaveatParameter) SetName

func (x *ReflectionCaveatParameter) SetName(v string)

func (*ReflectionCaveatParameter) SetParentCaveatName

func (x *ReflectionCaveatParameter) SetParentCaveatName(v string)

func (*ReflectionCaveatParameter) SetType

func (x *ReflectionCaveatParameter) SetType(v string)

func (*ReflectionCaveatParameter) String

func (x *ReflectionCaveatParameter) String() string

type ReflectionCaveatParameterTypeChange

type ReflectionCaveatParameterTypeChange struct {
	Parameter    *ReflectionCaveatParameter `protobuf:"bytes,1,opt,name=parameter,proto3" json:"parameter,omitempty"`
	PreviousType string                     `protobuf:"bytes,2,opt,name=previous_type,json=previousType,proto3" json:"previous_type,omitempty"`
	// contains filtered or unexported fields
}

func (*ReflectionCaveatParameterTypeChange) ClearParameter

func (x *ReflectionCaveatParameterTypeChange) ClearParameter()

func (*ReflectionCaveatParameterTypeChange) GetParameter

func (*ReflectionCaveatParameterTypeChange) GetPreviousType

func (x *ReflectionCaveatParameterTypeChange) GetPreviousType() string

func (*ReflectionCaveatParameterTypeChange) HasParameter

func (x *ReflectionCaveatParameterTypeChange) HasParameter() bool

func (*ReflectionCaveatParameterTypeChange) ProtoMessage

func (*ReflectionCaveatParameterTypeChange) ProtoMessage()

func (*ReflectionCaveatParameterTypeChange) ProtoReflect

func (*ReflectionCaveatParameterTypeChange) Reset

func (*ReflectionCaveatParameterTypeChange) SetParameter

func (*ReflectionCaveatParameterTypeChange) SetPreviousType

func (x *ReflectionCaveatParameterTypeChange) SetPreviousType(v string)

func (*ReflectionCaveatParameterTypeChange) String

type ReflectionCaveatParameterTypeChange_builder

type ReflectionCaveatParameterTypeChange_builder struct {
	Parameter    *ReflectionCaveatParameter
	PreviousType string
	// contains filtered or unexported fields
}

func (ReflectionCaveatParameterTypeChange_builder) Build

type ReflectionCaveatParameter_builder

type ReflectionCaveatParameter_builder struct {
	Name string
	// type is the type of the parameter. Will be a string representing the
	// type, e.g. `int` or `list<string>`
	Type             string
	ParentCaveatName string
	// contains filtered or unexported fields
}

func (ReflectionCaveatParameter_builder) Build

type ReflectionCaveat_builder

type ReflectionCaveat_builder struct {
	Name string
	// comment is a human-readable comments on the caveat. Will include
	// delimiter characters.
	Comment    string
	Parameters []*ReflectionCaveatParameter
	Expression string
	// contains filtered or unexported fields
}

func (ReflectionCaveat_builder) Build

type ReflectionDefinition

type ReflectionDefinition struct {
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// comment is a human-readable comments on the definition. Will include
	// delimiter characters.
	Comment     string                  `protobuf:"bytes,2,opt,name=comment,proto3" json:"comment,omitempty"`
	Relations   []*ReflectionRelation   `protobuf:"bytes,3,rep,name=relations,proto3" json:"relations,omitempty"`
	Permissions []*ReflectionPermission `protobuf:"bytes,4,rep,name=permissions,proto3" json:"permissions,omitempty"`
	// contains filtered or unexported fields
}

ReflectionDefinition is the representation of a definition in the schema.

func (*ReflectionDefinition) GetComment

func (x *ReflectionDefinition) GetComment() string

func (*ReflectionDefinition) GetName

func (x *ReflectionDefinition) GetName() string

func (*ReflectionDefinition) GetPermissions

func (x *ReflectionDefinition) GetPermissions() []*ReflectionPermission

func (*ReflectionDefinition) GetRelations

func (x *ReflectionDefinition) GetRelations() []*ReflectionRelation

func (*ReflectionDefinition) ProtoMessage

func (*ReflectionDefinition) ProtoMessage()

func (*ReflectionDefinition) ProtoReflect

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

func (*ReflectionDefinition) Reset

func (x *ReflectionDefinition) Reset()

func (*ReflectionDefinition) SetComment

func (x *ReflectionDefinition) SetComment(v string)

func (*ReflectionDefinition) SetName

func (x *ReflectionDefinition) SetName(v string)

func (*ReflectionDefinition) SetPermissions

func (x *ReflectionDefinition) SetPermissions(v []*ReflectionPermission)

func (*ReflectionDefinition) SetRelations

func (x *ReflectionDefinition) SetRelations(v []*ReflectionRelation)

func (*ReflectionDefinition) String

func (x *ReflectionDefinition) String() string

type ReflectionDefinition_builder

type ReflectionDefinition_builder struct {
	Name string
	// comment is a human-readable comments on the definition. Will include
	// delimiter characters.
	Comment     string
	Relations   []*ReflectionRelation
	Permissions []*ReflectionPermission
	// contains filtered or unexported fields
}

func (ReflectionDefinition_builder) Build

type ReflectionPermission

type ReflectionPermission struct {
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// comment is a human-readable comments on the permission. Will include
	// delimiter characters.
	Comment              string `protobuf:"bytes,2,opt,name=comment,proto3" json:"comment,omitempty"`
	ParentDefinitionName string `protobuf:"bytes,3,opt,name=parent_definition_name,json=parentDefinitionName,proto3" json:"parent_definition_name,omitempty"`
	// contains filtered or unexported fields
}

ReflectionPermission is the representation of a permission in the schema.

func (*ReflectionPermission) GetComment

func (x *ReflectionPermission) GetComment() string

func (*ReflectionPermission) GetName

func (x *ReflectionPermission) GetName() string

func (*ReflectionPermission) GetParentDefinitionName

func (x *ReflectionPermission) GetParentDefinitionName() string

func (*ReflectionPermission) ProtoMessage

func (*ReflectionPermission) ProtoMessage()

func (*ReflectionPermission) ProtoReflect

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

func (*ReflectionPermission) Reset

func (x *ReflectionPermission) Reset()

func (*ReflectionPermission) SetComment

func (x *ReflectionPermission) SetComment(v string)

func (*ReflectionPermission) SetName

func (x *ReflectionPermission) SetName(v string)

func (*ReflectionPermission) SetParentDefinitionName

func (x *ReflectionPermission) SetParentDefinitionName(v string)

func (*ReflectionPermission) String

func (x *ReflectionPermission) String() string

type ReflectionPermission_builder

type ReflectionPermission_builder struct {
	Name string
	// comment is a human-readable comments on the permission. Will include
	// delimiter characters.
	Comment              string
	ParentDefinitionName string
	// contains filtered or unexported fields
}

func (ReflectionPermission_builder) Build

type ReflectionRelation

type ReflectionRelation struct {
	Name                 string                     `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Comment              string                     `protobuf:"bytes,2,opt,name=comment,proto3" json:"comment,omitempty"`
	ParentDefinitionName string                     `protobuf:"bytes,3,opt,name=parent_definition_name,json=parentDefinitionName,proto3" json:"parent_definition_name,omitempty"`
	SubjectTypes         []*ReflectionTypeReference `protobuf:"bytes,4,rep,name=subject_types,json=subjectTypes,proto3" json:"subject_types,omitempty"`
	// contains filtered or unexported fields
}

ReflectionRelation is the representation of a relation in the schema.

func (*ReflectionRelation) GetComment

func (x *ReflectionRelation) GetComment() string

func (*ReflectionRelation) GetName

func (x *ReflectionRelation) GetName() string

func (*ReflectionRelation) GetParentDefinitionName

func (x *ReflectionRelation) GetParentDefinitionName() string

func (*ReflectionRelation) GetSubjectTypes

func (x *ReflectionRelation) GetSubjectTypes() []*ReflectionTypeReference

func (*ReflectionRelation) ProtoMessage

func (*ReflectionRelation) ProtoMessage()

func (*ReflectionRelation) ProtoReflect

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

func (*ReflectionRelation) Reset

func (x *ReflectionRelation) Reset()

func (*ReflectionRelation) SetComment

func (x *ReflectionRelation) SetComment(v string)

func (*ReflectionRelation) SetName

func (x *ReflectionRelation) SetName(v string)

func (*ReflectionRelation) SetParentDefinitionName

func (x *ReflectionRelation) SetParentDefinitionName(v string)

func (*ReflectionRelation) SetSubjectTypes

func (x *ReflectionRelation) SetSubjectTypes(v []*ReflectionTypeReference)

func (*ReflectionRelation) String

func (x *ReflectionRelation) String() string

type ReflectionRelationReference

type ReflectionRelationReference struct {
	DefinitionName string `protobuf:"bytes,1,opt,name=definition_name,json=definitionName,proto3" json:"definition_name,omitempty"`
	RelationName   string `protobuf:"bytes,2,opt,name=relation_name,json=relationName,proto3" json:"relation_name,omitempty"`
	IsPermission   bool   `protobuf:"varint,3,opt,name=is_permission,json=isPermission,proto3" json:"is_permission,omitempty"`
	// contains filtered or unexported fields
}

ReflectionRelationReference is a reference to a relation or permission in the schema.

func (*ReflectionRelationReference) GetDefinitionName

func (x *ReflectionRelationReference) GetDefinitionName() string

func (*ReflectionRelationReference) GetIsPermission

func (x *ReflectionRelationReference) GetIsPermission() bool

func (*ReflectionRelationReference) GetRelationName

func (x *ReflectionRelationReference) GetRelationName() string

func (*ReflectionRelationReference) ProtoMessage

func (*ReflectionRelationReference) ProtoMessage()

func (*ReflectionRelationReference) ProtoReflect

func (*ReflectionRelationReference) Reset

func (x *ReflectionRelationReference) Reset()

func (*ReflectionRelationReference) SetDefinitionName

func (x *ReflectionRelationReference) SetDefinitionName(v string)

func (*ReflectionRelationReference) SetIsPermission

func (x *ReflectionRelationReference) SetIsPermission(v bool)

func (*ReflectionRelationReference) SetRelationName

func (x *ReflectionRelationReference) SetRelationName(v string)

func (*ReflectionRelationReference) String

func (x *ReflectionRelationReference) String() string

type ReflectionRelationReference_builder

type ReflectionRelationReference_builder struct {
	DefinitionName string
	RelationName   string
	IsPermission   bool
	// contains filtered or unexported fields
}

func (ReflectionRelationReference_builder) Build

type ReflectionRelationSubjectTypeChange

type ReflectionRelationSubjectTypeChange struct {
	Relation           *ReflectionRelation      `protobuf:"bytes,1,opt,name=relation,proto3" json:"relation,omitempty"`
	ChangedSubjectType *ReflectionTypeReference `protobuf:"bytes,2,opt,name=changed_subject_type,json=changedSubjectType,proto3" json:"changed_subject_type,omitempty"`
	// contains filtered or unexported fields
}

func (*ReflectionRelationSubjectTypeChange) ClearChangedSubjectType

func (x *ReflectionRelationSubjectTypeChange) ClearChangedSubjectType()

func (*ReflectionRelationSubjectTypeChange) ClearRelation

func (x *ReflectionRelationSubjectTypeChange) ClearRelation()

func (*ReflectionRelationSubjectTypeChange) GetChangedSubjectType

func (*ReflectionRelationSubjectTypeChange) GetRelation

func (*ReflectionRelationSubjectTypeChange) HasChangedSubjectType

func (x *ReflectionRelationSubjectTypeChange) HasChangedSubjectType() bool

func (*ReflectionRelationSubjectTypeChange) HasRelation

func (x *ReflectionRelationSubjectTypeChange) HasRelation() bool

func (*ReflectionRelationSubjectTypeChange) ProtoMessage

func (*ReflectionRelationSubjectTypeChange) ProtoMessage()

func (*ReflectionRelationSubjectTypeChange) ProtoReflect

func (*ReflectionRelationSubjectTypeChange) Reset

func (*ReflectionRelationSubjectTypeChange) SetChangedSubjectType

func (x *ReflectionRelationSubjectTypeChange) SetChangedSubjectType(v *ReflectionTypeReference)

func (*ReflectionRelationSubjectTypeChange) SetRelation

func (*ReflectionRelationSubjectTypeChange) String

type ReflectionRelationSubjectTypeChange_builder

type ReflectionRelationSubjectTypeChange_builder struct {
	Relation           *ReflectionRelation
	ChangedSubjectType *ReflectionTypeReference
	// contains filtered or unexported fields
}

func (ReflectionRelationSubjectTypeChange_builder) Build

type ReflectionRelation_builder

type ReflectionRelation_builder struct {
	Name                 string
	Comment              string
	ParentDefinitionName string
	SubjectTypes         []*ReflectionTypeReference
	// contains filtered or unexported fields
}

func (ReflectionRelation_builder) Build

type ReflectionSchemaDiff

type ReflectionSchemaDiff struct {

	// Types that are valid to be assigned to Diff:
	//
	//	*ReflectionSchemaDiff_DefinitionAdded
	//	*ReflectionSchemaDiff_DefinitionRemoved
	//	*ReflectionSchemaDiff_DefinitionDocCommentChanged
	//	*ReflectionSchemaDiff_RelationAdded
	//	*ReflectionSchemaDiff_RelationRemoved
	//	*ReflectionSchemaDiff_RelationDocCommentChanged
	//	*ReflectionSchemaDiff_RelationSubjectTypeAdded
	//	*ReflectionSchemaDiff_RelationSubjectTypeRemoved
	//	*ReflectionSchemaDiff_PermissionAdded
	//	*ReflectionSchemaDiff_PermissionRemoved
	//	*ReflectionSchemaDiff_PermissionDocCommentChanged
	//	*ReflectionSchemaDiff_PermissionExprChanged
	//	*ReflectionSchemaDiff_CaveatAdded
	//	*ReflectionSchemaDiff_CaveatRemoved
	//	*ReflectionSchemaDiff_CaveatDocCommentChanged
	//	*ReflectionSchemaDiff_CaveatExprChanged
	//	*ReflectionSchemaDiff_CaveatParameterAdded
	//	*ReflectionSchemaDiff_CaveatParameterRemoved
	//	*ReflectionSchemaDiff_CaveatParameterTypeChanged
	Diff isReflectionSchemaDiff_Diff `protobuf_oneof:"diff"`
	// contains filtered or unexported fields
}

ReflectionSchemaDiff is the representation of a diff between two schemas.

func (*ReflectionSchemaDiff) ClearCaveatAdded

func (x *ReflectionSchemaDiff) ClearCaveatAdded()

func (*ReflectionSchemaDiff) ClearCaveatDocCommentChanged

func (x *ReflectionSchemaDiff) ClearCaveatDocCommentChanged()

func (*ReflectionSchemaDiff) ClearCaveatExprChanged

func (x *ReflectionSchemaDiff) ClearCaveatExprChanged()

func (*ReflectionSchemaDiff) ClearCaveatParameterAdded

func (x *ReflectionSchemaDiff) ClearCaveatParameterAdded()

func (*ReflectionSchemaDiff) ClearCaveatParameterRemoved

func (x *ReflectionSchemaDiff) ClearCaveatParameterRemoved()

func (*ReflectionSchemaDiff) ClearCaveatParameterTypeChanged

func (x *ReflectionSchemaDiff) ClearCaveatParameterTypeChanged()

func (*ReflectionSchemaDiff) ClearCaveatRemoved

func (x *ReflectionSchemaDiff) ClearCaveatRemoved()

func (*ReflectionSchemaDiff) ClearDefinitionAdded

func (x *ReflectionSchemaDiff) ClearDefinitionAdded()

func (*ReflectionSchemaDiff) ClearDefinitionDocCommentChanged

func (x *ReflectionSchemaDiff) ClearDefinitionDocCommentChanged()

func (*ReflectionSchemaDiff) ClearDefinitionRemoved

func (x *ReflectionSchemaDiff) ClearDefinitionRemoved()

func (*ReflectionSchemaDiff) ClearDiff

func (x *ReflectionSchemaDiff) ClearDiff()

func (*ReflectionSchemaDiff) ClearPermissionAdded

func (x *ReflectionSchemaDiff) ClearPermissionAdded()

func (*ReflectionSchemaDiff) ClearPermissionDocCommentChanged

func (x *ReflectionSchemaDiff) ClearPermissionDocCommentChanged()

func (*ReflectionSchemaDiff) ClearPermissionExprChanged

func (x *ReflectionSchemaDiff) ClearPermissionExprChanged()

func (*ReflectionSchemaDiff) ClearPermissionRemoved

func (x *ReflectionSchemaDiff) ClearPermissionRemoved()

func (*ReflectionSchemaDiff) ClearRelationAdded

func (x *ReflectionSchemaDiff) ClearRelationAdded()

func (*ReflectionSchemaDiff) ClearRelationDocCommentChanged

func (x *ReflectionSchemaDiff) ClearRelationDocCommentChanged()

func (*ReflectionSchemaDiff) ClearRelationRemoved

func (x *ReflectionSchemaDiff) ClearRelationRemoved()

func (*ReflectionSchemaDiff) ClearRelationSubjectTypeAdded

func (x *ReflectionSchemaDiff) ClearRelationSubjectTypeAdded()

func (*ReflectionSchemaDiff) ClearRelationSubjectTypeRemoved

func (x *ReflectionSchemaDiff) ClearRelationSubjectTypeRemoved()

func (*ReflectionSchemaDiff) GetCaveatAdded

func (x *ReflectionSchemaDiff) GetCaveatAdded() *ReflectionCaveat

func (*ReflectionSchemaDiff) GetCaveatDocCommentChanged

func (x *ReflectionSchemaDiff) GetCaveatDocCommentChanged() *ReflectionCaveat

func (*ReflectionSchemaDiff) GetCaveatExprChanged

func (x *ReflectionSchemaDiff) GetCaveatExprChanged() *ReflectionCaveat

func (*ReflectionSchemaDiff) GetCaveatParameterAdded

func (x *ReflectionSchemaDiff) GetCaveatParameterAdded() *ReflectionCaveatParameter

func (*ReflectionSchemaDiff) GetCaveatParameterRemoved

func (x *ReflectionSchemaDiff) GetCaveatParameterRemoved() *ReflectionCaveatParameter

func (*ReflectionSchemaDiff) GetCaveatParameterTypeChanged

func (x *ReflectionSchemaDiff) GetCaveatParameterTypeChanged() *ReflectionCaveatParameterTypeChange

func (*ReflectionSchemaDiff) GetCaveatRemoved

func (x *ReflectionSchemaDiff) GetCaveatRemoved() *ReflectionCaveat

func (*ReflectionSchemaDiff) GetDefinitionAdded

func (x *ReflectionSchemaDiff) GetDefinitionAdded() *ReflectionDefinition

func (*ReflectionSchemaDiff) GetDefinitionDocCommentChanged

func (x *ReflectionSchemaDiff) GetDefinitionDocCommentChanged() *ReflectionDefinition

func (*ReflectionSchemaDiff) GetDefinitionRemoved

func (x *ReflectionSchemaDiff) GetDefinitionRemoved() *ReflectionDefinition

func (*ReflectionSchemaDiff) GetDiff

func (x *ReflectionSchemaDiff) GetDiff() isReflectionSchemaDiff_Diff

func (*ReflectionSchemaDiff) GetPermissionAdded

func (x *ReflectionSchemaDiff) GetPermissionAdded() *ReflectionPermission

func (*ReflectionSchemaDiff) GetPermissionDocCommentChanged

func (x *ReflectionSchemaDiff) GetPermissionDocCommentChanged() *ReflectionPermission

func (*ReflectionSchemaDiff) GetPermissionExprChanged

func (x *ReflectionSchemaDiff) GetPermissionExprChanged() *ReflectionPermission

func (*ReflectionSchemaDiff) GetPermissionRemoved

func (x *ReflectionSchemaDiff) GetPermissionRemoved() *ReflectionPermission

func (*ReflectionSchemaDiff) GetRelationAdded

func (x *ReflectionSchemaDiff) GetRelationAdded() *ReflectionRelation

func (*ReflectionSchemaDiff) GetRelationDocCommentChanged

func (x *ReflectionSchemaDiff) GetRelationDocCommentChanged() *ReflectionRelation

func (*ReflectionSchemaDiff) GetRelationRemoved

func (x *ReflectionSchemaDiff) GetRelationRemoved() *ReflectionRelation

func (*ReflectionSchemaDiff) GetRelationSubjectTypeAdded

func (x *ReflectionSchemaDiff) GetRelationSubjectTypeAdded() *ReflectionRelationSubjectTypeChange

func (*ReflectionSchemaDiff) GetRelationSubjectTypeRemoved

func (x *ReflectionSchemaDiff) GetRelationSubjectTypeRemoved() *ReflectionRelationSubjectTypeChange

func (*ReflectionSchemaDiff) HasCaveatAdded

func (x *ReflectionSchemaDiff) HasCaveatAdded() bool

func (*ReflectionSchemaDiff) HasCaveatDocCommentChanged

func (x *ReflectionSchemaDiff) HasCaveatDocCommentChanged() bool

func (*ReflectionSchemaDiff) HasCaveatExprChanged

func (x *ReflectionSchemaDiff) HasCaveatExprChanged() bool

func (*ReflectionSchemaDiff) HasCaveatParameterAdded

func (x *ReflectionSchemaDiff) HasCaveatParameterAdded() bool

func (*ReflectionSchemaDiff) HasCaveatParameterRemoved

func (x *ReflectionSchemaDiff) HasCaveatParameterRemoved() bool

func (*ReflectionSchemaDiff) HasCaveatParameterTypeChanged

func (x *ReflectionSchemaDiff) HasCaveatParameterTypeChanged() bool

func (*ReflectionSchemaDiff) HasCaveatRemoved

func (x *ReflectionSchemaDiff) HasCaveatRemoved() bool

func (*ReflectionSchemaDiff) HasDefinitionAdded

func (x *ReflectionSchemaDiff) HasDefinitionAdded() bool

func (*ReflectionSchemaDiff) HasDefinitionDocCommentChanged

func (x *ReflectionSchemaDiff) HasDefinitionDocCommentChanged() bool

func (*ReflectionSchemaDiff) HasDefinitionRemoved

func (x *ReflectionSchemaDiff) HasDefinitionRemoved() bool

func (*ReflectionSchemaDiff) HasDiff

func (x *ReflectionSchemaDiff) HasDiff() bool

func (*ReflectionSchemaDiff) HasPermissionAdded

func (x *ReflectionSchemaDiff) HasPermissionAdded() bool

func (*ReflectionSchemaDiff) HasPermissionDocCommentChanged

func (x *ReflectionSchemaDiff) HasPermissionDocCommentChanged() bool

func (*ReflectionSchemaDiff) HasPermissionExprChanged

func (x *ReflectionSchemaDiff) HasPermissionExprChanged() bool

func (*ReflectionSchemaDiff) HasPermissionRemoved

func (x *ReflectionSchemaDiff) HasPermissionRemoved() bool

func (*ReflectionSchemaDiff) HasRelationAdded

func (x *ReflectionSchemaDiff) HasRelationAdded() bool

func (*ReflectionSchemaDiff) HasRelationDocCommentChanged

func (x *ReflectionSchemaDiff) HasRelationDocCommentChanged() bool

func (*ReflectionSchemaDiff) HasRelationRemoved

func (x *ReflectionSchemaDiff) HasRelationRemoved() bool

func (*ReflectionSchemaDiff) HasRelationSubjectTypeAdded

func (x *ReflectionSchemaDiff) HasRelationSubjectTypeAdded() bool

func (*ReflectionSchemaDiff) HasRelationSubjectTypeRemoved

func (x *ReflectionSchemaDiff) HasRelationSubjectTypeRemoved() bool

func (*ReflectionSchemaDiff) ProtoMessage

func (*ReflectionSchemaDiff) ProtoMessage()

func (*ReflectionSchemaDiff) ProtoReflect

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

func (*ReflectionSchemaDiff) Reset

func (x *ReflectionSchemaDiff) Reset()

func (*ReflectionSchemaDiff) SetCaveatAdded

func (x *ReflectionSchemaDiff) SetCaveatAdded(v *ReflectionCaveat)

func (*ReflectionSchemaDiff) SetCaveatDocCommentChanged

func (x *ReflectionSchemaDiff) SetCaveatDocCommentChanged(v *ReflectionCaveat)

func (*ReflectionSchemaDiff) SetCaveatExprChanged

func (x *ReflectionSchemaDiff) SetCaveatExprChanged(v *ReflectionCaveat)

func (*ReflectionSchemaDiff) SetCaveatParameterAdded

func (x *ReflectionSchemaDiff) SetCaveatParameterAdded(v *ReflectionCaveatParameter)

func (*ReflectionSchemaDiff) SetCaveatParameterRemoved

func (x *ReflectionSchemaDiff) SetCaveatParameterRemoved(v *ReflectionCaveatParameter)

func (*ReflectionSchemaDiff) SetCaveatParameterTypeChanged

func (x *ReflectionSchemaDiff) SetCaveatParameterTypeChanged(v *ReflectionCaveatParameterTypeChange)

func (*ReflectionSchemaDiff) SetCaveatRemoved

func (x *ReflectionSchemaDiff) SetCaveatRemoved(v *ReflectionCaveat)

func (*ReflectionSchemaDiff) SetDefinitionAdded

func (x *ReflectionSchemaDiff) SetDefinitionAdded(v *ReflectionDefinition)

func (*ReflectionSchemaDiff) SetDefinitionDocCommentChanged

func (x *ReflectionSchemaDiff) SetDefinitionDocCommentChanged(v *ReflectionDefinition)

func (*ReflectionSchemaDiff) SetDefinitionRemoved

func (x *ReflectionSchemaDiff) SetDefinitionRemoved(v *ReflectionDefinition)

func (*ReflectionSchemaDiff) SetPermissionAdded

func (x *ReflectionSchemaDiff) SetPermissionAdded(v *ReflectionPermission)

func (*ReflectionSchemaDiff) SetPermissionDocCommentChanged

func (x *ReflectionSchemaDiff) SetPermissionDocCommentChanged(v *ReflectionPermission)

func (*ReflectionSchemaDiff) SetPermissionExprChanged

func (x *ReflectionSchemaDiff) SetPermissionExprChanged(v *ReflectionPermission)

func (*ReflectionSchemaDiff) SetPermissionRemoved

func (x *ReflectionSchemaDiff) SetPermissionRemoved(v *ReflectionPermission)

func (*ReflectionSchemaDiff) SetRelationAdded

func (x *ReflectionSchemaDiff) SetRelationAdded(v *ReflectionRelation)

func (*ReflectionSchemaDiff) SetRelationDocCommentChanged

func (x *ReflectionSchemaDiff) SetRelationDocCommentChanged(v *ReflectionRelation)

func (*ReflectionSchemaDiff) SetRelationRemoved

func (x *ReflectionSchemaDiff) SetRelationRemoved(v *ReflectionRelation)

func (*ReflectionSchemaDiff) SetRelationSubjectTypeAdded

func (x *ReflectionSchemaDiff) SetRelationSubjectTypeAdded(v *ReflectionRelationSubjectTypeChange)

func (*ReflectionSchemaDiff) SetRelationSubjectTypeRemoved

func (x *ReflectionSchemaDiff) SetRelationSubjectTypeRemoved(v *ReflectionRelationSubjectTypeChange)

func (*ReflectionSchemaDiff) String

func (x *ReflectionSchemaDiff) String() string

func (*ReflectionSchemaDiff) WhichDiff

func (x *ReflectionSchemaDiff) WhichDiff() case_ReflectionSchemaDiff_Diff

type ReflectionSchemaDiff_CaveatAdded

type ReflectionSchemaDiff_CaveatAdded struct {
	CaveatAdded *ReflectionCaveat `protobuf:"bytes,13,opt,name=caveat_added,json=caveatAdded,proto3,oneof"`
}

type ReflectionSchemaDiff_CaveatDocCommentChanged

type ReflectionSchemaDiff_CaveatDocCommentChanged struct {
	CaveatDocCommentChanged *ReflectionCaveat `protobuf:"bytes,15,opt,name=caveat_doc_comment_changed,json=caveatDocCommentChanged,proto3,oneof"`
}

type ReflectionSchemaDiff_CaveatExprChanged

type ReflectionSchemaDiff_CaveatExprChanged struct {
	CaveatExprChanged *ReflectionCaveat `protobuf:"bytes,16,opt,name=caveat_expr_changed,json=caveatExprChanged,proto3,oneof"`
}

type ReflectionSchemaDiff_CaveatParameterAdded

type ReflectionSchemaDiff_CaveatParameterAdded struct {
	CaveatParameterAdded *ReflectionCaveatParameter `protobuf:"bytes,17,opt,name=caveat_parameter_added,json=caveatParameterAdded,proto3,oneof"`
}

type ReflectionSchemaDiff_CaveatParameterRemoved

type ReflectionSchemaDiff_CaveatParameterRemoved struct {
	CaveatParameterRemoved *ReflectionCaveatParameter `protobuf:"bytes,18,opt,name=caveat_parameter_removed,json=caveatParameterRemoved,proto3,oneof"`
}

type ReflectionSchemaDiff_CaveatParameterTypeChanged

type ReflectionSchemaDiff_CaveatParameterTypeChanged struct {
	CaveatParameterTypeChanged *ReflectionCaveatParameterTypeChange `protobuf:"bytes,19,opt,name=caveat_parameter_type_changed,json=caveatParameterTypeChanged,proto3,oneof"`
}

type ReflectionSchemaDiff_CaveatRemoved

type ReflectionSchemaDiff_CaveatRemoved struct {
	CaveatRemoved *ReflectionCaveat `protobuf:"bytes,14,opt,name=caveat_removed,json=caveatRemoved,proto3,oneof"`
}

type ReflectionSchemaDiff_DefinitionAdded

type ReflectionSchemaDiff_DefinitionAdded struct {
	DefinitionAdded *ReflectionDefinition `protobuf:"bytes,1,opt,name=definition_added,json=definitionAdded,proto3,oneof"`
}

type ReflectionSchemaDiff_DefinitionDocCommentChanged

type ReflectionSchemaDiff_DefinitionDocCommentChanged struct {
	DefinitionDocCommentChanged *ReflectionDefinition `protobuf:"bytes,3,opt,name=definition_doc_comment_changed,json=definitionDocCommentChanged,proto3,oneof"`
}

type ReflectionSchemaDiff_DefinitionRemoved

type ReflectionSchemaDiff_DefinitionRemoved struct {
	DefinitionRemoved *ReflectionDefinition `protobuf:"bytes,2,opt,name=definition_removed,json=definitionRemoved,proto3,oneof"`
}

type ReflectionSchemaDiff_PermissionAdded

type ReflectionSchemaDiff_PermissionAdded struct {
	PermissionAdded *ReflectionPermission `protobuf:"bytes,9,opt,name=permission_added,json=permissionAdded,proto3,oneof"`
}

type ReflectionSchemaDiff_PermissionDocCommentChanged

type ReflectionSchemaDiff_PermissionDocCommentChanged struct {
	PermissionDocCommentChanged *ReflectionPermission `protobuf:"bytes,11,opt,name=permission_doc_comment_changed,json=permissionDocCommentChanged,proto3,oneof"`
}

type ReflectionSchemaDiff_PermissionExprChanged

type ReflectionSchemaDiff_PermissionExprChanged struct {
	PermissionExprChanged *ReflectionPermission `protobuf:"bytes,12,opt,name=permission_expr_changed,json=permissionExprChanged,proto3,oneof"`
}

type ReflectionSchemaDiff_PermissionRemoved

type ReflectionSchemaDiff_PermissionRemoved struct {
	PermissionRemoved *ReflectionPermission `protobuf:"bytes,10,opt,name=permission_removed,json=permissionRemoved,proto3,oneof"`
}

type ReflectionSchemaDiff_RelationAdded

type ReflectionSchemaDiff_RelationAdded struct {
	RelationAdded *ReflectionRelation `protobuf:"bytes,4,opt,name=relation_added,json=relationAdded,proto3,oneof"`
}

type ReflectionSchemaDiff_RelationDocCommentChanged

type ReflectionSchemaDiff_RelationDocCommentChanged struct {
	RelationDocCommentChanged *ReflectionRelation `protobuf:"bytes,6,opt,name=relation_doc_comment_changed,json=relationDocCommentChanged,proto3,oneof"`
}

type ReflectionSchemaDiff_RelationRemoved

type ReflectionSchemaDiff_RelationRemoved struct {
	RelationRemoved *ReflectionRelation `protobuf:"bytes,5,opt,name=relation_removed,json=relationRemoved,proto3,oneof"`
}

type ReflectionSchemaDiff_RelationSubjectTypeAdded

type ReflectionSchemaDiff_RelationSubjectTypeAdded struct {
	RelationSubjectTypeAdded *ReflectionRelationSubjectTypeChange `protobuf:"bytes,7,opt,name=relation_subject_type_added,json=relationSubjectTypeAdded,proto3,oneof"`
}

type ReflectionSchemaDiff_RelationSubjectTypeRemoved

type ReflectionSchemaDiff_RelationSubjectTypeRemoved struct {
	RelationSubjectTypeRemoved *ReflectionRelationSubjectTypeChange `protobuf:"bytes,8,opt,name=relation_subject_type_removed,json=relationSubjectTypeRemoved,proto3,oneof"`
}

type ReflectionSchemaDiff_builder

type ReflectionSchemaDiff_builder struct {

	// Fields of oneof Diff:
	DefinitionAdded             *ReflectionDefinition
	DefinitionRemoved           *ReflectionDefinition
	DefinitionDocCommentChanged *ReflectionDefinition
	RelationAdded               *ReflectionRelation
	RelationRemoved             *ReflectionRelation
	RelationDocCommentChanged   *ReflectionRelation
	RelationSubjectTypeAdded    *ReflectionRelationSubjectTypeChange
	RelationSubjectTypeRemoved  *ReflectionRelationSubjectTypeChange
	PermissionAdded             *ReflectionPermission
	PermissionRemoved           *ReflectionPermission
	PermissionDocCommentChanged *ReflectionPermission
	PermissionExprChanged       *ReflectionPermission
	CaveatAdded                 *ReflectionCaveat
	CaveatRemoved               *ReflectionCaveat
	CaveatDocCommentChanged     *ReflectionCaveat
	CaveatExprChanged           *ReflectionCaveat
	CaveatParameterAdded        *ReflectionCaveatParameter
	CaveatParameterRemoved      *ReflectionCaveatParameter
	CaveatParameterTypeChanged  *ReflectionCaveatParameterTypeChange
	// contains filtered or unexported fields
}

func (ReflectionSchemaDiff_builder) Build

type ReflectionSchemaFilter

type ReflectionSchemaFilter struct {

	// optional_definition_name_filter is a prefix that is matched against the definition name.
	OptionalDefinitionNameFilter string `` /* 149-byte string literal not displayed */
	// optional_caveat_name_filter is a prefix that is matched against the caveat name.
	OptionalCaveatNameFilter string `` /* 137-byte string literal not displayed */
	// optional_relation_name_filter is a prefix that is matched against the relation name.
	OptionalRelationNameFilter string `` /* 143-byte string literal not displayed */
	// optional_permission_name_filter is a prefix that is matched against the permission name.
	OptionalPermissionNameFilter string `` /* 149-byte string literal not displayed */
	// contains filtered or unexported fields
}

ReflectionSchemaFilter is a filter that can be applied to the schema on reflection.

func (*ReflectionSchemaFilter) GetOptionalCaveatNameFilter

func (x *ReflectionSchemaFilter) GetOptionalCaveatNameFilter() string

func (*ReflectionSchemaFilter) GetOptionalDefinitionNameFilter

func (x *ReflectionSchemaFilter) GetOptionalDefinitionNameFilter() string

func (*ReflectionSchemaFilter) GetOptionalPermissionNameFilter

func (x *ReflectionSchemaFilter) GetOptionalPermissionNameFilter() string

func (*ReflectionSchemaFilter) GetOptionalRelationNameFilter

func (x *ReflectionSchemaFilter) GetOptionalRelationNameFilter() string

func (*ReflectionSchemaFilter) ProtoMessage

func (*ReflectionSchemaFilter) ProtoMessage()

func (*ReflectionSchemaFilter) ProtoReflect

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

func (*ReflectionSchemaFilter) Reset

func (x *ReflectionSchemaFilter) Reset()

func (*ReflectionSchemaFilter) SetOptionalCaveatNameFilter

func (x *ReflectionSchemaFilter) SetOptionalCaveatNameFilter(v string)

func (*ReflectionSchemaFilter) SetOptionalDefinitionNameFilter

func (x *ReflectionSchemaFilter) SetOptionalDefinitionNameFilter(v string)

func (*ReflectionSchemaFilter) SetOptionalPermissionNameFilter

func (x *ReflectionSchemaFilter) SetOptionalPermissionNameFilter(v string)

func (*ReflectionSchemaFilter) SetOptionalRelationNameFilter

func (x *ReflectionSchemaFilter) SetOptionalRelationNameFilter(v string)

func (*ReflectionSchemaFilter) String

func (x *ReflectionSchemaFilter) String() string

type ReflectionSchemaFilter_builder

type ReflectionSchemaFilter_builder struct {

	// optional_definition_name_filter is a prefix that is matched against the definition name.
	OptionalDefinitionNameFilter string
	// optional_caveat_name_filter is a prefix that is matched against the caveat name.
	OptionalCaveatNameFilter string
	// optional_relation_name_filter is a prefix that is matched against the relation name.
	OptionalRelationNameFilter string
	// optional_permission_name_filter is a prefix that is matched against the permission name.
	OptionalPermissionNameFilter string
	// contains filtered or unexported fields
}

func (ReflectionSchemaFilter_builder) Build

type ReflectionTypeReference

type ReflectionTypeReference struct {

	// subject_definition_name is the name of the subject's definition.
	SubjectDefinitionName string `` /* 126-byte string literal not displayed */
	// optional_caveat_name is the name of the caveat that is applied to the subject, if any.
	OptionalCaveatName string `protobuf:"bytes,2,opt,name=optional_caveat_name,json=optionalCaveatName,proto3" json:"optional_caveat_name,omitempty"`
	// Types that are valid to be assigned to Typeref:
	//
	//	*ReflectionTypeReference_IsTerminalSubject
	//	*ReflectionTypeReference_OptionalRelationName
	//	*ReflectionTypeReference_IsPublicWildcard
	Typeref isReflectionTypeReference_Typeref `protobuf_oneof:"typeref"`
	// contains filtered or unexported fields
}

ReflectionTypeReference is the representation of a type reference in the schema.

func (*ReflectionTypeReference) ClearIsPublicWildcard

func (x *ReflectionTypeReference) ClearIsPublicWildcard()

func (*ReflectionTypeReference) ClearIsTerminalSubject

func (x *ReflectionTypeReference) ClearIsTerminalSubject()

func (*ReflectionTypeReference) ClearOptionalRelationName

func (x *ReflectionTypeReference) ClearOptionalRelationName()

func (*ReflectionTypeReference) ClearTyperef

func (x *ReflectionTypeReference) ClearTyperef()

func (*ReflectionTypeReference) GetIsPublicWildcard

func (x *ReflectionTypeReference) GetIsPublicWildcard() bool

func (*ReflectionTypeReference) GetIsTerminalSubject

func (x *ReflectionTypeReference) GetIsTerminalSubject() bool

func (*ReflectionTypeReference) GetOptionalCaveatName

func (x *ReflectionTypeReference) GetOptionalCaveatName() string

func (*ReflectionTypeReference) GetOptionalRelationName

func (x *ReflectionTypeReference) GetOptionalRelationName() string

func (*ReflectionTypeReference) GetSubjectDefinitionName

func (x *ReflectionTypeReference) GetSubjectDefinitionName() string

func (*ReflectionTypeReference) GetTyperef

func (x *ReflectionTypeReference) GetTyperef() isReflectionTypeReference_Typeref

func (*ReflectionTypeReference) HasIsPublicWildcard

func (x *ReflectionTypeReference) HasIsPublicWildcard() bool

func (*ReflectionTypeReference) HasIsTerminalSubject

func (x *ReflectionTypeReference) HasIsTerminalSubject() bool

func (*ReflectionTypeReference) HasOptionalRelationName

func (x *ReflectionTypeReference) HasOptionalRelationName() bool

func (*ReflectionTypeReference) HasTyperef

func (x *ReflectionTypeReference) HasTyperef() bool

func (*ReflectionTypeReference) ProtoMessage

func (*ReflectionTypeReference) ProtoMessage()

func (*ReflectionTypeReference) ProtoReflect

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

func (*ReflectionTypeReference) Reset

func (x *ReflectionTypeReference) Reset()

func (*ReflectionTypeReference) SetIsPublicWildcard

func (x *ReflectionTypeReference) SetIsPublicWildcard(v bool)

func (*ReflectionTypeReference) SetIsTerminalSubject

func (x *ReflectionTypeReference) SetIsTerminalSubject(v bool)

func (*ReflectionTypeReference) SetOptionalCaveatName

func (x *ReflectionTypeReference) SetOptionalCaveatName(v string)

func (*ReflectionTypeReference) SetOptionalRelationName

func (x *ReflectionTypeReference) SetOptionalRelationName(v string)

func (*ReflectionTypeReference) SetSubjectDefinitionName

func (x *ReflectionTypeReference) SetSubjectDefinitionName(v string)

func (*ReflectionTypeReference) String

func (x *ReflectionTypeReference) String() string

func (*ReflectionTypeReference) WhichTyperef

func (x *ReflectionTypeReference) WhichTyperef() case_ReflectionTypeReference_Typeref

type ReflectionTypeReference_IsPublicWildcard

type ReflectionTypeReference_IsPublicWildcard struct {
	// is_public_wildcard is true if the subject is a public wildcard.
	IsPublicWildcard bool `protobuf:"varint,5,opt,name=is_public_wildcard,json=isPublicWildcard,proto3,oneof"`
}

type ReflectionTypeReference_IsTerminalSubject

type ReflectionTypeReference_IsTerminalSubject struct {
	// is_terminal_subject is true if the subject is terminal, meaning it is referenced directly vs a sub-relation.
	IsTerminalSubject bool `protobuf:"varint,3,opt,name=is_terminal_subject,json=isTerminalSubject,proto3,oneof"`
}

type ReflectionTypeReference_OptionalRelationName

type ReflectionTypeReference_OptionalRelationName struct {
	// optional_relation_name is the name of the relation that is applied to the subject, if any.
	OptionalRelationName string `protobuf:"bytes,4,opt,name=optional_relation_name,json=optionalRelationName,proto3,oneof"`
}

type ReflectionTypeReference_builder

type ReflectionTypeReference_builder struct {

	// subject_definition_name is the name of the subject's definition.
	SubjectDefinitionName string
	// optional_caveat_name is the name of the caveat that is applied to the subject, if any.
	OptionalCaveatName string
	// Fields of oneof Typeref:
	// is_terminal_subject is true if the subject is terminal, meaning it is referenced directly vs a sub-relation.
	IsTerminalSubject *bool
	// optional_relation_name is the name of the relation that is applied to the subject, if any.
	OptionalRelationName *string
	// is_public_wildcard is true if the subject is a public wildcard.
	IsPublicWildcard *bool
	// contains filtered or unexported fields
}

func (ReflectionTypeReference_builder) Build

type Relationship

type Relationship struct {

	// resource is the resource to which the subject is related, in some manner
	Resource *ObjectReference `protobuf:"bytes,1,opt,name=resource,proto3" json:"resource,omitempty"`
	// relation is how the resource and subject are related.
	Relation string `protobuf:"bytes,2,opt,name=relation,proto3" json:"relation,omitempty"`
	// subject is the subject to which the resource is related, in some manner.
	Subject *SubjectReference `protobuf:"bytes,3,opt,name=subject,proto3" json:"subject,omitempty"`
	// optional_caveat is a reference to a the caveat that must be enforced over the relationship
	OptionalCaveat *ContextualizedCaveat `protobuf:"bytes,4,opt,name=optional_caveat,json=optionalCaveat,proto3" json:"optional_caveat,omitempty"`
	// optional_expires_at is the time at which the relationship expires, if any.
	OptionalExpiresAt *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=optional_expires_at,json=optionalExpiresAt,proto3" json:"optional_expires_at,omitempty"`
	// contains filtered or unexported fields
}

Relationship specifies how a resource relates to a subject. Relationships form the data for the graph over which all permissions questions are answered.

func (*Relationship) ClearOptionalCaveat

func (x *Relationship) ClearOptionalCaveat()

func (*Relationship) ClearOptionalExpiresAt

func (x *Relationship) ClearOptionalExpiresAt()

func (*Relationship) ClearResource

func (x *Relationship) ClearResource()

func (*Relationship) ClearSubject

func (x *Relationship) ClearSubject()

func (*Relationship) GetOptionalCaveat

func (x *Relationship) GetOptionalCaveat() *ContextualizedCaveat

func (*Relationship) GetOptionalExpiresAt

func (x *Relationship) GetOptionalExpiresAt() *timestamppb.Timestamp

func (*Relationship) GetRelation

func (x *Relationship) GetRelation() string

func (*Relationship) GetResource

func (x *Relationship) GetResource() *ObjectReference

func (*Relationship) GetSubject

func (x *Relationship) GetSubject() *SubjectReference

func (*Relationship) HasOptionalCaveat

func (x *Relationship) HasOptionalCaveat() bool

func (*Relationship) HasOptionalExpiresAt

func (x *Relationship) HasOptionalExpiresAt() bool

func (*Relationship) HasResource

func (x *Relationship) HasResource() bool

func (*Relationship) HasSubject

func (x *Relationship) HasSubject() bool

func (*Relationship) ProtoMessage

func (*Relationship) ProtoMessage()

func (*Relationship) ProtoReflect

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

func (*Relationship) Reset

func (x *Relationship) Reset()

func (*Relationship) SetOptionalCaveat

func (x *Relationship) SetOptionalCaveat(v *ContextualizedCaveat)

func (*Relationship) SetOptionalExpiresAt

func (x *Relationship) SetOptionalExpiresAt(v *timestamppb.Timestamp)

func (*Relationship) SetRelation

func (x *Relationship) SetRelation(v string)

func (*Relationship) SetResource

func (x *Relationship) SetResource(v *ObjectReference)

func (*Relationship) SetSubject

func (x *Relationship) SetSubject(v *SubjectReference)

func (*Relationship) String

func (x *Relationship) String() string

type RelationshipFilter

type RelationshipFilter struct {

	// resource_type is the *optional* resource type of the relationship.
	// NOTE: It is not prefixed with "optional_" for legacy compatibility.
	ResourceType string `protobuf:"bytes,1,opt,name=resource_type,json=resourceType,proto3" json:"resource_type,omitempty"`
	// optional_resource_id is the *optional* resource ID of the relationship.
	// If specified, optional_resource_id_prefix cannot be specified.
	OptionalResourceId string `protobuf:"bytes,2,opt,name=optional_resource_id,json=optionalResourceId,proto3" json:"optional_resource_id,omitempty"`
	// optional_resource_id_prefix is the *optional* prefix for the resource ID of the relationship.
	// If specified, optional_resource_id cannot be specified.
	OptionalResourceIdPrefix string `` /* 137-byte string literal not displayed */
	// relation is the *optional* relation of the relationship.
	OptionalRelation string `protobuf:"bytes,3,opt,name=optional_relation,json=optionalRelation,proto3" json:"optional_relation,omitempty"`
	// optional_subject_filter is the optional filter for the subjects of the relationships.
	OptionalSubjectFilter *SubjectFilter `` /* 126-byte string literal not displayed */
	// contains filtered or unexported fields
}

RelationshipFilter is a collection of filters which when applied to a relationship will return relationships that have exactly matching fields.

All fields are optional and if left unspecified will not filter relationships, but at least one field must be specified.

NOTE: The performance of the API will be affected by the selection of fields on which to filter. If a field is not indexed, the performance of the API can be significantly slower.

func (*RelationshipFilter) ClearOptionalSubjectFilter

func (x *RelationshipFilter) ClearOptionalSubjectFilter()

func (*RelationshipFilter) GetOptionalRelation

func (x *RelationshipFilter) GetOptionalRelation() string

func (*RelationshipFilter) GetOptionalResourceId

func (x *RelationshipFilter) GetOptionalResourceId() string

func (*RelationshipFilter) GetOptionalResourceIdPrefix

func (x *RelationshipFilter) GetOptionalResourceIdPrefix() string

func (*RelationshipFilter) GetOptionalSubjectFilter

func (x *RelationshipFilter) GetOptionalSubjectFilter() *SubjectFilter

func (*RelationshipFilter) GetResourceType

func (x *RelationshipFilter) GetResourceType() string

func (*RelationshipFilter) HasOptionalSubjectFilter

func (x *RelationshipFilter) HasOptionalSubjectFilter() bool

func (*RelationshipFilter) ProtoMessage

func (*RelationshipFilter) ProtoMessage()

func (*RelationshipFilter) ProtoReflect

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

func (*RelationshipFilter) Reset

func (x *RelationshipFilter) Reset()

func (*RelationshipFilter) SetOptionalRelation

func (x *RelationshipFilter) SetOptionalRelation(v string)

func (*RelationshipFilter) SetOptionalResourceId

func (x *RelationshipFilter) SetOptionalResourceId(v string)

func (*RelationshipFilter) SetOptionalResourceIdPrefix

func (x *RelationshipFilter) SetOptionalResourceIdPrefix(v string)

func (*RelationshipFilter) SetOptionalSubjectFilter

func (x *RelationshipFilter) SetOptionalSubjectFilter(v *SubjectFilter)

func (*RelationshipFilter) SetResourceType

func (x *RelationshipFilter) SetResourceType(v string)

func (*RelationshipFilter) String

func (x *RelationshipFilter) String() string

type RelationshipFilter_builder

type RelationshipFilter_builder struct {

	// resource_type is the *optional* resource type of the relationship.
	// NOTE: It is not prefixed with "optional_" for legacy compatibility.
	ResourceType string
	// optional_resource_id is the *optional* resource ID of the relationship.
	// If specified, optional_resource_id_prefix cannot be specified.
	OptionalResourceId string
	// optional_resource_id_prefix is the *optional* prefix for the resource ID of the relationship.
	// If specified, optional_resource_id cannot be specified.
	OptionalResourceIdPrefix string
	// relation is the *optional* relation of the relationship.
	OptionalRelation string
	// optional_subject_filter is the optional filter for the subjects of the relationships.
	OptionalSubjectFilter *SubjectFilter
	// contains filtered or unexported fields
}

func (RelationshipFilter_builder) Build

type RelationshipUpdate

type RelationshipUpdate struct {
	Operation    RelationshipUpdate_Operation `protobuf:"varint,1,opt,name=operation,proto3,enum=authzed.api.v1.RelationshipUpdate_Operation" json:"operation,omitempty"`
	Relationship *Relationship                `protobuf:"bytes,2,opt,name=relationship,proto3" json:"relationship,omitempty"`
	// contains filtered or unexported fields
}

RelationshipUpdate is used for mutating a single relationship within the service.

CREATE will create the relationship only if it doesn't exist, and error otherwise.

TOUCH will upsert the relationship, and will not error if it already exists.

DELETE will delete the relationship. If the relationship does not exist, this operation will no-op.

func (*RelationshipUpdate) ClearRelationship

func (x *RelationshipUpdate) ClearRelationship()

func (*RelationshipUpdate) GetOperation

func (*RelationshipUpdate) GetRelationship

func (x *RelationshipUpdate) GetRelationship() *Relationship

func (*RelationshipUpdate) HasRelationship

func (x *RelationshipUpdate) HasRelationship() bool

func (*RelationshipUpdate) ProtoMessage

func (*RelationshipUpdate) ProtoMessage()

func (*RelationshipUpdate) ProtoReflect

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

func (*RelationshipUpdate) Reset

func (x *RelationshipUpdate) Reset()

func (*RelationshipUpdate) SetOperation

func (*RelationshipUpdate) SetRelationship

func (x *RelationshipUpdate) SetRelationship(v *Relationship)

func (*RelationshipUpdate) String

func (x *RelationshipUpdate) String() string

type RelationshipUpdate_Operation

type RelationshipUpdate_Operation int32
const (
	RelationshipUpdate_OPERATION_UNSPECIFIED RelationshipUpdate_Operation = 0
	RelationshipUpdate_OPERATION_CREATE      RelationshipUpdate_Operation = 1
	RelationshipUpdate_OPERATION_TOUCH       RelationshipUpdate_Operation = 2
	RelationshipUpdate_OPERATION_DELETE      RelationshipUpdate_Operation = 3
)

func (RelationshipUpdate_Operation) Descriptor

func (RelationshipUpdate_Operation) Enum

func (RelationshipUpdate_Operation) Number

func (RelationshipUpdate_Operation) String

func (RelationshipUpdate_Operation) Type

type RelationshipUpdate_builder

type RelationshipUpdate_builder struct {
	Operation    RelationshipUpdate_Operation
	Relationship *Relationship
	// contains filtered or unexported fields
}

func (RelationshipUpdate_builder) Build

type Relationship_builder

type Relationship_builder struct {

	// resource is the resource to which the subject is related, in some manner
	Resource *ObjectReference
	// relation is how the resource and subject are related.
	Relation string
	// subject is the subject to which the resource is related, in some manner.
	Subject *SubjectReference
	// optional_caveat is a reference to a the caveat that must be enforced over the relationship
	OptionalCaveat *ContextualizedCaveat
	// optional_expires_at is the time at which the relationship expires, if any.
	OptionalExpiresAt *timestamppb.Timestamp
	// contains filtered or unexported fields
}

func (Relationship_builder) Build

func (b0 Relationship_builder) Build() *Relationship

type ResolvedSubject

type ResolvedSubject struct {

	// subject_object_id is the Object ID of the subject found. May be a `*` if
	// a wildcard was found.
	SubjectObjectId string `protobuf:"bytes,1,opt,name=subject_object_id,json=subjectObjectId,proto3" json:"subject_object_id,omitempty"`
	// permissionship indicates whether the response was partially evaluated or not
	Permissionship LookupPermissionship `protobuf:"varint,2,opt,name=permissionship,proto3,enum=authzed.api.v1.LookupPermissionship" json:"permissionship,omitempty"`
	// partial_caveat_info holds information of a partially-evaluated caveated response
	PartialCaveatInfo *PartialCaveatInfo `protobuf:"bytes,3,opt,name=partial_caveat_info,json=partialCaveatInfo,proto3" json:"partial_caveat_info,omitempty"`
	// contains filtered or unexported fields
}

ResolvedSubject is a single subject resolved within LookupSubjects.

func (*ResolvedSubject) ClearPartialCaveatInfo

func (x *ResolvedSubject) ClearPartialCaveatInfo()

func (*ResolvedSubject) GetPartialCaveatInfo

func (x *ResolvedSubject) GetPartialCaveatInfo() *PartialCaveatInfo

func (*ResolvedSubject) GetPermissionship

func (x *ResolvedSubject) GetPermissionship() LookupPermissionship

func (*ResolvedSubject) GetSubjectObjectId

func (x *ResolvedSubject) GetSubjectObjectId() string

func (*ResolvedSubject) HasPartialCaveatInfo

func (x *ResolvedSubject) HasPartialCaveatInfo() bool

func (*ResolvedSubject) ProtoMessage

func (*ResolvedSubject) ProtoMessage()

func (*ResolvedSubject) ProtoReflect

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

func (*ResolvedSubject) Reset

func (x *ResolvedSubject) Reset()

func (*ResolvedSubject) SetPartialCaveatInfo

func (x *ResolvedSubject) SetPartialCaveatInfo(v *PartialCaveatInfo)

func (*ResolvedSubject) SetPermissionship

func (x *ResolvedSubject) SetPermissionship(v LookupPermissionship)

func (*ResolvedSubject) SetSubjectObjectId

func (x *ResolvedSubject) SetSubjectObjectId(v string)

func (*ResolvedSubject) String

func (x *ResolvedSubject) String() string

type ResolvedSubject_builder

type ResolvedSubject_builder struct {

	// subject_object_id is the Object ID of the subject found. May be a `*` if
	// a wildcard was found.
	SubjectObjectId string
	// permissionship indicates whether the response was partially evaluated or not
	Permissionship LookupPermissionship
	// partial_caveat_info holds information of a partially-evaluated caveated response
	PartialCaveatInfo *PartialCaveatInfo
	// contains filtered or unexported fields
}

func (ResolvedSubject_builder) Build

type SubjectFilter

type SubjectFilter struct {
	SubjectType       string                        `protobuf:"bytes,1,opt,name=subject_type,json=subjectType,proto3" json:"subject_type,omitempty"`
	OptionalSubjectId string                        `protobuf:"bytes,2,opt,name=optional_subject_id,json=optionalSubjectId,proto3" json:"optional_subject_id,omitempty"`
	OptionalRelation  *SubjectFilter_RelationFilter `protobuf:"bytes,3,opt,name=optional_relation,json=optionalRelation,proto3" json:"optional_relation,omitempty"`
	// contains filtered or unexported fields
}

SubjectFilter specifies a filter on the subject of a relationship.

subject_type is required and all other fields are optional, and will not impose any additional requirements if left unspecified.

func (*SubjectFilter) ClearOptionalRelation

func (x *SubjectFilter) ClearOptionalRelation()

func (*SubjectFilter) GetOptionalRelation

func (x *SubjectFilter) GetOptionalRelation() *SubjectFilter_RelationFilter

func (*SubjectFilter) GetOptionalSubjectId

func (x *SubjectFilter) GetOptionalSubjectId() string

func (*SubjectFilter) GetSubjectType

func (x *SubjectFilter) GetSubjectType() string

func (*SubjectFilter) HasOptionalRelation

func (x *SubjectFilter) HasOptionalRelation() bool

func (*SubjectFilter) ProtoMessage

func (*SubjectFilter) ProtoMessage()

func (*SubjectFilter) ProtoReflect

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

func (*SubjectFilter) Reset

func (x *SubjectFilter) Reset()

func (*SubjectFilter) SetOptionalRelation

func (x *SubjectFilter) SetOptionalRelation(v *SubjectFilter_RelationFilter)

func (*SubjectFilter) SetOptionalSubjectId

func (x *SubjectFilter) SetOptionalSubjectId(v string)

func (*SubjectFilter) SetSubjectType

func (x *SubjectFilter) SetSubjectType(v string)

func (*SubjectFilter) String

func (x *SubjectFilter) String() string

type SubjectFilter_RelationFilter

type SubjectFilter_RelationFilter struct {
	Relation string `protobuf:"bytes,1,opt,name=relation,proto3" json:"relation,omitempty"`
	// contains filtered or unexported fields
}

func (*SubjectFilter_RelationFilter) GetRelation

func (x *SubjectFilter_RelationFilter) GetRelation() string

func (*SubjectFilter_RelationFilter) ProtoMessage

func (*SubjectFilter_RelationFilter) ProtoMessage()

func (*SubjectFilter_RelationFilter) ProtoReflect

func (*SubjectFilter_RelationFilter) Reset

func (x *SubjectFilter_RelationFilter) Reset()

func (*SubjectFilter_RelationFilter) SetRelation

func (x *SubjectFilter_RelationFilter) SetRelation(v string)

func (*SubjectFilter_RelationFilter) String

type SubjectFilter_RelationFilter_builder

type SubjectFilter_RelationFilter_builder struct {
	Relation string
	// contains filtered or unexported fields
}

func (SubjectFilter_RelationFilter_builder) Build

type SubjectFilter_builder

type SubjectFilter_builder struct {
	SubjectType       string
	OptionalSubjectId string
	OptionalRelation  *SubjectFilter_RelationFilter
	// contains filtered or unexported fields
}

func (SubjectFilter_builder) Build

type SubjectReference

type SubjectReference struct {
	Object           *ObjectReference `protobuf:"bytes,1,opt,name=object,proto3" json:"object,omitempty"`
	OptionalRelation string           `protobuf:"bytes,2,opt,name=optional_relation,json=optionalRelation,proto3" json:"optional_relation,omitempty"`
	// contains filtered or unexported fields
}

SubjectReference is used for referring to the subject portion of a Relationship. The relation component is optional and is used for defining a sub-relation on the subject, e.g. group:123#members

func (*SubjectReference) ClearObject

func (x *SubjectReference) ClearObject()

func (*SubjectReference) GetObject

func (x *SubjectReference) GetObject() *ObjectReference

func (*SubjectReference) GetOptionalRelation

func (x *SubjectReference) GetOptionalRelation() string

func (*SubjectReference) HasObject

func (x *SubjectReference) HasObject() bool

func (*SubjectReference) ProtoMessage

func (*SubjectReference) ProtoMessage()

func (*SubjectReference) ProtoReflect

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

func (*SubjectReference) Reset

func (x *SubjectReference) Reset()

func (*SubjectReference) SetObject

func (x *SubjectReference) SetObject(v *ObjectReference)

func (*SubjectReference) SetOptionalRelation

func (x *SubjectReference) SetOptionalRelation(v string)

func (*SubjectReference) String

func (x *SubjectReference) String() string

type SubjectReference_builder

type SubjectReference_builder struct {
	Object           *ObjectReference
	OptionalRelation string
	// contains filtered or unexported fields
}

func (SubjectReference_builder) Build

type WatchKind

type WatchKind int32
const (
	WatchKind_WATCH_KIND_UNSPECIFIED                  WatchKind = 0 // Default, just relationship updates (for backwards compatibility)
	WatchKind_WATCH_KIND_INCLUDE_RELATIONSHIP_UPDATES WatchKind = 1
	WatchKind_WATCH_KIND_INCLUDE_SCHEMA_UPDATES       WatchKind = 2
	WatchKind_WATCH_KIND_INCLUDE_CHECKPOINTS          WatchKind = 3
)

func (WatchKind) Descriptor

func (WatchKind) Descriptor() protoreflect.EnumDescriptor

func (WatchKind) Enum

func (x WatchKind) Enum() *WatchKind

func (WatchKind) Number

func (x WatchKind) Number() protoreflect.EnumNumber

func (WatchKind) String

func (x WatchKind) String() string

func (WatchKind) Type

type WatchRequest

type WatchRequest struct {

	// optional_object_types is a filter of resource object types to watch for relationship changes.
	// If specified, only changes to the specified object types will be returned and
	// optional_relationship_filters cannot be used.
	OptionalObjectTypes []string `protobuf:"bytes,1,rep,name=optional_object_types,json=optionalObjectTypes,proto3" json:"optional_object_types,omitempty"`
	// optional_start_cursor is the ZedToken holding the point-in-time at
	// which to start watching for changes.
	// If not specified, the watch will start from the current SpiceDB revision time of the request ("head revision").
	// Note that if this cursor references a point-in-time containing data
	// that has been garbage collected, an error will be returned.
	OptionalStartCursor *ZedToken `protobuf:"bytes,2,opt,name=optional_start_cursor,json=optionalStartCursor,proto3" json:"optional_start_cursor,omitempty"`
	// optional_relationship_filters, if specified, indicates the
	// filter(s) to apply to each relationship to be returned by watch.
	// The relationship will be returned as long as at least one filter matches,
	// this allows clients to match relationships on multiple filters on a single watch call.
	// If specified, optional_object_types cannot be used.
	OptionalRelationshipFilters []*RelationshipFilter `` /* 144-byte string literal not displayed */
	// optional_update_kinds, if specified, indicates what kinds of mutations to include.
	// If your SpiceDB instance is running behind a proxy that aborts idle connections,
	// we recommend including Checkpoints to keep the stream alive even when there are no changes.
	OptionalUpdateKinds []WatchKind `` /* 158-byte string literal not displayed */
	// contains filtered or unexported fields
}

WatchRequest specifies what mutations to watch for, and an optional start point for when to start watching.

func (*WatchRequest) ClearOptionalStartCursor

func (x *WatchRequest) ClearOptionalStartCursor()

func (*WatchRequest) GetOptionalObjectTypes

func (x *WatchRequest) GetOptionalObjectTypes() []string

func (*WatchRequest) GetOptionalRelationshipFilters

func (x *WatchRequest) GetOptionalRelationshipFilters() []*RelationshipFilter

func (*WatchRequest) GetOptionalStartCursor

func (x *WatchRequest) GetOptionalStartCursor() *ZedToken

func (*WatchRequest) GetOptionalUpdateKinds

func (x *WatchRequest) GetOptionalUpdateKinds() []WatchKind

func (*WatchRequest) HasOptionalStartCursor

func (x *WatchRequest) HasOptionalStartCursor() bool

func (*WatchRequest) ProtoMessage

func (*WatchRequest) ProtoMessage()

func (*WatchRequest) ProtoReflect

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

func (*WatchRequest) Reset

func (x *WatchRequest) Reset()

func (*WatchRequest) SetOptionalObjectTypes

func (x *WatchRequest) SetOptionalObjectTypes(v []string)

func (*WatchRequest) SetOptionalRelationshipFilters

func (x *WatchRequest) SetOptionalRelationshipFilters(v []*RelationshipFilter)

func (*WatchRequest) SetOptionalStartCursor

func (x *WatchRequest) SetOptionalStartCursor(v *ZedToken)

func (*WatchRequest) SetOptionalUpdateKinds

func (x *WatchRequest) SetOptionalUpdateKinds(v []WatchKind)

func (*WatchRequest) String

func (x *WatchRequest) String() string

type WatchRequest_builder

type WatchRequest_builder struct {

	// optional_object_types is a filter of resource object types to watch for relationship changes.
	// If specified, only changes to the specified object types will be returned and
	// optional_relationship_filters cannot be used.
	OptionalObjectTypes []string
	// optional_start_cursor is the ZedToken holding the point-in-time at
	// which to start watching for changes.
	// If not specified, the watch will start from the current SpiceDB revision time of the request ("head revision").
	// Note that if this cursor references a point-in-time containing data
	// that has been garbage collected, an error will be returned.
	OptionalStartCursor *ZedToken
	// optional_relationship_filters, if specified, indicates the
	// filter(s) to apply to each relationship to be returned by watch.
	// The relationship will be returned as long as at least one filter matches,
	// this allows clients to match relationships on multiple filters on a single watch call.
	// If specified, optional_object_types cannot be used.
	OptionalRelationshipFilters []*RelationshipFilter
	// optional_update_kinds, if specified, indicates what kinds of mutations to include.
	// If your SpiceDB instance is running behind a proxy that aborts idle connections,
	// we recommend including Checkpoints to keep the stream alive even when there are no changes.
	OptionalUpdateKinds []WatchKind
	// contains filtered or unexported fields
}

func (WatchRequest_builder) Build

func (b0 WatchRequest_builder) Build() *WatchRequest

type WatchResponse

type WatchResponse struct {

	// updates are the RelationshipUpdate events that have occurred since the
	// call was made, or since the point in time specified by changes_through.
	Updates []*RelationshipUpdate `protobuf:"bytes,1,rep,name=updates,proto3" json:"updates,omitempty"`
	// changes_through is the ZedToken that represents the point in time
	// that the watch response is current through. This token can be used
	// in a subsequent WatchRequest to resume watching from this point.
	ChangesThrough *ZedToken `protobuf:"bytes,2,opt,name=changes_through,json=changesThrough,proto3" json:"changes_through,omitempty"`
	// optional_transaction_metadata is an optional field that returns the transaction metadata
	// given to SpiceDB during the transaction that produced the changes in this response.
	// This field may not exist if no transaction metadata was provided, or if multiple pieces
	// of metadata were found during the transaction (in which case it is ambiguous which to return).
	OptionalTransactionMetadata *structpb.Struct `` /* 144-byte string literal not displayed */
	// schema_updated, if true, indicates that the schema was changed in this revision.
	SchemaUpdated bool `protobuf:"varint,4,opt,name=schema_updated,json=schemaUpdated,proto3" json:"schema_updated,omitempty"`
	// is_checkpoint, if true, indicates that a checkpoint was reached.
	// A checkpoint indicates that the server guarantees that the client
	// will not observe any changes at a revision below or equal to the revision in this response.
	IsCheckpoint bool `protobuf:"varint,5,opt,name=is_checkpoint,json=isCheckpoint,proto3" json:"is_checkpoint,omitempty"`
	// full_revision_metadata contains all transaction metadata given to SpiceDB during the
	// revision that produced the changes in this response. Some datastores (such as CockroachDB)
	// can "merge" multiple transactions into a single revision (if the changes occurred concurrently),
	// so this field is a list of all transaction metadata seen during the revision.
	FullRevisionMetadata []*structpb.Struct `protobuf:"bytes,6,rep,name=full_revision_metadata,json=fullRevisionMetadata,proto3" json:"full_revision_metadata,omitempty"`
	// contains filtered or unexported fields
}

WatchResponse contains all mutation events in ascending timestamp order. This excludes relationships that were deleted because they expired. The response includes a field that can be used to resume watching from that point.

func (*WatchResponse) ClearChangesThrough

func (x *WatchResponse) ClearChangesThrough()

func (*WatchResponse) ClearOptionalTransactionMetadata

func (x *WatchResponse) ClearOptionalTransactionMetadata()

func (*WatchResponse) GetChangesThrough

func (x *WatchResponse) GetChangesThrough() *ZedToken

func (*WatchResponse) GetFullRevisionMetadata

func (x *WatchResponse) GetFullRevisionMetadata() []*structpb.Struct

func (*WatchResponse) GetIsCheckpoint

func (x *WatchResponse) GetIsCheckpoint() bool

func (*WatchResponse) GetOptionalTransactionMetadata

func (x *WatchResponse) GetOptionalTransactionMetadata() *structpb.Struct

func (*WatchResponse) GetSchemaUpdated

func (x *WatchResponse) GetSchemaUpdated() bool

func (*WatchResponse) GetUpdates

func (x *WatchResponse) GetUpdates() []*RelationshipUpdate

func (*WatchResponse) HasChangesThrough

func (x *WatchResponse) HasChangesThrough() bool

func (*WatchResponse) HasOptionalTransactionMetadata

func (x *WatchResponse) HasOptionalTransactionMetadata() bool

func (*WatchResponse) ProtoMessage

func (*WatchResponse) ProtoMessage()

func (*WatchResponse) ProtoReflect

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

func (*WatchResponse) Reset

func (x *WatchResponse) Reset()

func (*WatchResponse) SetChangesThrough

func (x *WatchResponse) SetChangesThrough(v *ZedToken)

func (*WatchResponse) SetFullRevisionMetadata

func (x *WatchResponse) SetFullRevisionMetadata(v []*structpb.Struct)

func (*WatchResponse) SetIsCheckpoint

func (x *WatchResponse) SetIsCheckpoint(v bool)

func (*WatchResponse) SetOptionalTransactionMetadata

func (x *WatchResponse) SetOptionalTransactionMetadata(v *structpb.Struct)

func (*WatchResponse) SetSchemaUpdated

func (x *WatchResponse) SetSchemaUpdated(v bool)

func (*WatchResponse) SetUpdates

func (x *WatchResponse) SetUpdates(v []*RelationshipUpdate)

func (*WatchResponse) String

func (x *WatchResponse) String() string

type WatchResponse_builder

type WatchResponse_builder struct {

	// updates are the RelationshipUpdate events that have occurred since the
	// call was made, or since the point in time specified by changes_through.
	Updates []*RelationshipUpdate
	// changes_through is the ZedToken that represents the point in time
	// that the watch response is current through. This token can be used
	// in a subsequent WatchRequest to resume watching from this point.
	ChangesThrough *ZedToken
	// optional_transaction_metadata is an optional field that returns the transaction metadata
	// given to SpiceDB during the transaction that produced the changes in this response.
	// This field may not exist if no transaction metadata was provided, or if multiple pieces
	// of metadata were found during the transaction (in which case it is ambiguous which to return).
	OptionalTransactionMetadata *structpb.Struct
	// schema_updated, if true, indicates that the schema was changed in this revision.
	SchemaUpdated bool
	// is_checkpoint, if true, indicates that a checkpoint was reached.
	// A checkpoint indicates that the server guarantees that the client
	// will not observe any changes at a revision below or equal to the revision in this response.
	IsCheckpoint bool
	// full_revision_metadata contains all transaction metadata given to SpiceDB during the
	// revision that produced the changes in this response. Some datastores (such as CockroachDB)
	// can "merge" multiple transactions into a single revision (if the changes occurred concurrently),
	// so this field is a list of all transaction metadata seen during the revision.
	FullRevisionMetadata []*structpb.Struct
	// contains filtered or unexported fields
}

func (WatchResponse_builder) Build

type WriteRelationshipsRequest

type WriteRelationshipsRequest struct {
	Updates               []*RelationshipUpdate `protobuf:"bytes,1,rep,name=updates,proto3" json:"updates,omitempty"`
	OptionalPreconditions []*Precondition       `protobuf:"bytes,2,rep,name=optional_preconditions,json=optionalPreconditions,proto3" json:"optional_preconditions,omitempty"` // To be bounded by configuration
	// optional_transaction_metadata is an optional field that can be used to store metadata about the transaction.
	// If specified, this metadata will be supplied in the WatchResponse for the updates associated with this
	// transaction.
	OptionalTransactionMetadata *structpb.Struct `` /* 144-byte string literal not displayed */
	// contains filtered or unexported fields
}

WriteRelationshipsRequest contains a list of Relationship mutations that should be applied to the service. If the optional_preconditions parameter is included, all of the specified preconditions must also be satisfied before the write will be committed. All updates will be applied transactionally, and if any preconditions fail, the entire transaction will be reverted.

func (*WriteRelationshipsRequest) ClearOptionalTransactionMetadata

func (x *WriteRelationshipsRequest) ClearOptionalTransactionMetadata()

func (*WriteRelationshipsRequest) GetOptionalPreconditions

func (x *WriteRelationshipsRequest) GetOptionalPreconditions() []*Precondition

func (*WriteRelationshipsRequest) GetOptionalTransactionMetadata

func (x *WriteRelationshipsRequest) GetOptionalTransactionMetadata() *structpb.Struct

func (*WriteRelationshipsRequest) GetUpdates

func (x *WriteRelationshipsRequest) GetUpdates() []*RelationshipUpdate

func (*WriteRelationshipsRequest) HasOptionalTransactionMetadata

func (x *WriteRelationshipsRequest) HasOptionalTransactionMetadata() bool

func (*WriteRelationshipsRequest) ProtoMessage

func (*WriteRelationshipsRequest) ProtoMessage()

func (*WriteRelationshipsRequest) ProtoReflect

func (*WriteRelationshipsRequest) Reset

func (x *WriteRelationshipsRequest) Reset()

func (*WriteRelationshipsRequest) SetOptionalPreconditions

func (x *WriteRelationshipsRequest) SetOptionalPreconditions(v []*Precondition)

func (*WriteRelationshipsRequest) SetOptionalTransactionMetadata

func (x *WriteRelationshipsRequest) SetOptionalTransactionMetadata(v *structpb.Struct)

func (*WriteRelationshipsRequest) SetUpdates

func (x *WriteRelationshipsRequest) SetUpdates(v []*RelationshipUpdate)

func (*WriteRelationshipsRequest) String

func (x *WriteRelationshipsRequest) String() string

type WriteRelationshipsRequest_builder

type WriteRelationshipsRequest_builder struct {
	Updates               []*RelationshipUpdate
	OptionalPreconditions []*Precondition
	// optional_transaction_metadata is an optional field that can be used to store metadata about the transaction.
	// If specified, this metadata will be supplied in the WatchResponse for the updates associated with this
	// transaction.
	OptionalTransactionMetadata *structpb.Struct
	// contains filtered or unexported fields
}

func (WriteRelationshipsRequest_builder) Build

type WriteRelationshipsResponse

type WriteRelationshipsResponse struct {

	// written_at is the revision at which the relationships were written or deleted.
	WrittenAt *ZedToken `protobuf:"bytes,1,opt,name=written_at,json=writtenAt,proto3" json:"written_at,omitempty"`
	// contains filtered or unexported fields
}

func (*WriteRelationshipsResponse) ClearWrittenAt

func (x *WriteRelationshipsResponse) ClearWrittenAt()

func (*WriteRelationshipsResponse) GetWrittenAt

func (x *WriteRelationshipsResponse) GetWrittenAt() *ZedToken

func (*WriteRelationshipsResponse) HasWrittenAt

func (x *WriteRelationshipsResponse) HasWrittenAt() bool

func (*WriteRelationshipsResponse) ProtoMessage

func (*WriteRelationshipsResponse) ProtoMessage()

func (*WriteRelationshipsResponse) ProtoReflect

func (*WriteRelationshipsResponse) Reset

func (x *WriteRelationshipsResponse) Reset()

func (*WriteRelationshipsResponse) SetWrittenAt

func (x *WriteRelationshipsResponse) SetWrittenAt(v *ZedToken)

func (*WriteRelationshipsResponse) String

func (x *WriteRelationshipsResponse) String() string

type WriteRelationshipsResponse_builder

type WriteRelationshipsResponse_builder struct {

	// written_at is the revision at which the relationships were written or deleted.
	WrittenAt *ZedToken
	// contains filtered or unexported fields
}

func (WriteRelationshipsResponse_builder) Build

type WriteSchemaRequest

type WriteSchemaRequest struct {

	// The Schema containing one or more Object Definitions that will be written
	// to the Permissions System.
	Schema string `protobuf:"bytes,1,opt,name=schema,proto3" json:"schema,omitempty"` // 4MiB
	// contains filtered or unexported fields
}

WriteSchemaRequest is the required data used to "upsert" the Schema of a Permissions System.

func (*WriteSchemaRequest) GetSchema

func (x *WriteSchemaRequest) GetSchema() string

func (*WriteSchemaRequest) ProtoMessage

func (*WriteSchemaRequest) ProtoMessage()

func (*WriteSchemaRequest) ProtoReflect

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

func (*WriteSchemaRequest) Reset

func (x *WriteSchemaRequest) Reset()

func (*WriteSchemaRequest) SetSchema

func (x *WriteSchemaRequest) SetSchema(v string)

func (*WriteSchemaRequest) String

func (x *WriteSchemaRequest) String() string

type WriteSchemaRequest_builder

type WriteSchemaRequest_builder struct {

	// The Schema containing one or more Object Definitions that will be written
	// to the Permissions System.
	Schema string
	// contains filtered or unexported fields
}

func (WriteSchemaRequest_builder) Build

type WriteSchemaResponse

type WriteSchemaResponse struct {

	// written_at is the ZedToken at which the schema was written.
	WrittenAt *ZedToken `protobuf:"bytes,1,opt,name=written_at,json=writtenAt,proto3" json:"written_at,omitempty"`
	// contains filtered or unexported fields
}

WriteSchemaResponse is the resulting data after having written a Schema to a Permissions System.

func (*WriteSchemaResponse) ClearWrittenAt

func (x *WriteSchemaResponse) ClearWrittenAt()

func (*WriteSchemaResponse) GetWrittenAt

func (x *WriteSchemaResponse) GetWrittenAt() *ZedToken

func (*WriteSchemaResponse) HasWrittenAt

func (x *WriteSchemaResponse) HasWrittenAt() bool

func (*WriteSchemaResponse) ProtoMessage

func (*WriteSchemaResponse) ProtoMessage()

func (*WriteSchemaResponse) ProtoReflect

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

func (*WriteSchemaResponse) Reset

func (x *WriteSchemaResponse) Reset()

func (*WriteSchemaResponse) SetWrittenAt

func (x *WriteSchemaResponse) SetWrittenAt(v *ZedToken)

func (*WriteSchemaResponse) String

func (x *WriteSchemaResponse) String() string

type WriteSchemaResponse_builder

type WriteSchemaResponse_builder struct {

	// written_at is the ZedToken at which the schema was written.
	WrittenAt *ZedToken
	// contains filtered or unexported fields
}

func (WriteSchemaResponse_builder) Build

type ZedToken

type ZedToken struct {
	Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"`
	// contains filtered or unexported fields
}

ZedToken represents a point in time, or a "revision" in SpiceDB. It is used to provide causality metadata between Write and read requests (Check, ReadRelationships, LookupResources, LookupSubjects) and can also be used to start watching for changes from a specific point in time.

See the authzed.api.v1.Consistency message for more information.

func (*ZedToken) GetToken

func (x *ZedToken) GetToken() string

func (*ZedToken) ProtoMessage

func (*ZedToken) ProtoMessage()

func (*ZedToken) ProtoReflect

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

func (*ZedToken) Reset

func (x *ZedToken) Reset()

func (*ZedToken) SetToken

func (x *ZedToken) SetToken(v string)

func (*ZedToken) String

func (x *ZedToken) String() string

type ZedToken_builder

type ZedToken_builder struct {
	Token string
	// contains filtered or unexported fields
}

func (ZedToken_builder) Build

func (b0 ZedToken_builder) Build() *ZedToken

Source Files

  • core.pb.go
  • debug.pb.go
  • error_reason.pb.go
  • experimental_service.pb.go
  • openapi.pb.go
  • permission_service.pb.go
  • schema_service.pb.go
  • watch_service.pb.go

Jump to

Keyboard shortcuts

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