v0

package
v1.8.0 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2026 License: Apache-2.0 Imports: 25 Imported by: 5

Documentation

Index

Constants

View Source
const (
	DeveloperService_Share_FullMethodName        = "/authzed.api.v0.DeveloperService/Share"
	DeveloperService_LookupShared_FullMethodName = "/authzed.api.v0.DeveloperService/LookupShared"
)
View Source
const (
	BufRepository = "buf.build/authzed/api"
	BufTag        = "6790aa7ff09c47a4b27082ba0b9d0314"
)

Variables

View Source
var (
	LookupShareResponse_LookupStatus_name = map[int32]string{
		0: "UNKNOWN_REFERENCE",
		1: "FAILED_TO_LOOKUP",
		2: "VALID_REFERENCE",
		3: "UPGRADED_REFERENCE",
	}
	LookupShareResponse_LookupStatus_value = map[string]int32{
		"UNKNOWN_REFERENCE":  0,
		"FAILED_TO_LOOKUP":   1,
		"VALID_REFERENCE":    2,
		"UPGRADED_REFERENCE": 3,
	}
)

Enum value maps for LookupShareResponse_LookupStatus.

View Source
var DeveloperService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "authzed.api.v0.DeveloperService",
	HandlerType: (*DeveloperServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Share",
			Handler:    _DeveloperService_Share_Handler,
		},
		{
			MethodName: "LookupShared",
			Handler:    _DeveloperService_LookupShared_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "authzed/api/v0/developer.proto",
}

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

View Source
var File_authzed_api_v0_core_proto protoreflect.FileDescriptor
View Source
var File_authzed_api_v0_developer_proto protoreflect.FileDescriptor

Functions

func RegisterDeveloperServiceServer

func RegisterDeveloperServiceServer(s grpc.ServiceRegistrar, srv DeveloperServiceServer)

Types

type DeveloperServiceClient

type DeveloperServiceClient interface {
	Share(ctx context.Context, in *ShareRequest, opts ...grpc.CallOption) (*ShareResponse, error)
	LookupShared(ctx context.Context, in *LookupShareRequest, opts ...grpc.CallOption) (*LookupShareResponse, error)
}

DeveloperServiceClient is the client API for DeveloperService service.

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

type DeveloperServiceServer

type DeveloperServiceServer interface {
	Share(context.Context, *ShareRequest) (*ShareResponse, error)
	LookupShared(context.Context, *LookupShareRequest) (*LookupShareResponse, error)
	// contains filtered or unexported methods
}

DeveloperServiceServer is the server API for DeveloperService service. All implementations must embed UnimplementedDeveloperServiceServer for forward compatibility.

type LookupShareRequest

type LookupShareRequest struct {
	ShareReference string `protobuf:"bytes,1,opt,name=share_reference,json=shareReference,proto3" json:"share_reference,omitempty"`
	// contains filtered or unexported fields
}

func (*LookupShareRequest) CloneMessageVT added in v0.9.0

func (m *LookupShareRequest) CloneMessageVT() proto.Message

func (*LookupShareRequest) CloneVT added in v0.8.0

func (m *LookupShareRequest) CloneVT() *LookupShareRequest

func (*LookupShareRequest) Descriptor deprecated

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

Deprecated: Use LookupShareRequest.ProtoReflect.Descriptor instead.

func (*LookupShareRequest) EqualMessageVT added in v0.11.0

func (this *LookupShareRequest) EqualMessageVT(thatMsg proto.Message) bool

func (*LookupShareRequest) EqualVT added in v0.11.0

func (this *LookupShareRequest) EqualVT(that *LookupShareRequest) bool

func (*LookupShareRequest) GetShareReference

func (x *LookupShareRequest) GetShareReference() string

func (*LookupShareRequest) MarshalToSizedBufferVT added in v0.8.0

func (m *LookupShareRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*LookupShareRequest) MarshalToVT added in v0.8.0

func (m *LookupShareRequest) MarshalToVT(dAtA []byte) (int, error)

func (*LookupShareRequest) MarshalVT added in v0.8.0

func (m *LookupShareRequest) MarshalVT() (dAtA []byte, err error)

func (*LookupShareRequest) ProtoMessage

func (*LookupShareRequest) ProtoMessage()

func (*LookupShareRequest) ProtoReflect

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

func (*LookupShareRequest) Reset

func (x *LookupShareRequest) Reset()

func (*LookupShareRequest) SizeVT added in v0.8.0

func (m *LookupShareRequest) SizeVT() (n int)

func (*LookupShareRequest) String

func (x *LookupShareRequest) String() string

func (*LookupShareRequest) UnmarshalVT added in v0.8.0

func (m *LookupShareRequest) UnmarshalVT(dAtA []byte) error

func (*LookupShareRequest) Validate

func (m *LookupShareRequest) Validate() error

Validate checks the field values on LookupShareRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*LookupShareRequest) ValidateAll added in v0.6.0

func (m *LookupShareRequest) ValidateAll() error

ValidateAll checks the field values on LookupShareRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in LookupShareRequestMultiError, or nil if none found.

type LookupShareRequestMultiError added in v0.6.0

type LookupShareRequestMultiError []error

LookupShareRequestMultiError is an error wrapping multiple validation errors returned by LookupShareRequest.ValidateAll() if the designated constraints aren't met.

func (LookupShareRequestMultiError) AllErrors added in v0.6.0

func (m LookupShareRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (LookupShareRequestMultiError) Error added in v0.6.0

Error returns a concatenation of all the error messages it wraps.

type LookupShareRequestValidationError

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

LookupShareRequestValidationError is the validation error returned by LookupShareRequest.Validate if the designated constraints aren't met.

func (LookupShareRequestValidationError) Cause

Cause function returns cause value.

func (LookupShareRequestValidationError) Error

Error satisfies the builtin error interface

func (LookupShareRequestValidationError) ErrorName

ErrorName returns error name.

func (LookupShareRequestValidationError) Field

Field function returns field value.

func (LookupShareRequestValidationError) Key

Key function returns key value.

func (LookupShareRequestValidationError) Reason

Reason function returns reason value.

type LookupShareResponse

type LookupShareResponse struct {
	Status            LookupShareResponse_LookupStatus `protobuf:"varint,1,opt,name=status,proto3,enum=authzed.api.v0.LookupShareResponse_LookupStatus" json:"status,omitempty"`
	Schema            string                           `protobuf:"bytes,2,opt,name=schema,proto3" json:"schema,omitempty"`
	RelationshipsYaml string                           `protobuf:"bytes,3,opt,name=relationships_yaml,json=relationshipsYaml,proto3" json:"relationships_yaml,omitempty"`
	ValidationYaml    string                           `protobuf:"bytes,4,opt,name=validation_yaml,json=validationYaml,proto3" json:"validation_yaml,omitempty"`
	AssertionsYaml    string                           `protobuf:"bytes,5,opt,name=assertions_yaml,json=assertionsYaml,proto3" json:"assertions_yaml,omitempty"`
	// contains filtered or unexported fields
}

func (*LookupShareResponse) CloneMessageVT added in v0.9.0

func (m *LookupShareResponse) CloneMessageVT() proto.Message

func (*LookupShareResponse) CloneVT added in v0.8.0

func (*LookupShareResponse) Descriptor deprecated

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

Deprecated: Use LookupShareResponse.ProtoReflect.Descriptor instead.

func (*LookupShareResponse) EqualMessageVT added in v0.11.0

func (this *LookupShareResponse) EqualMessageVT(thatMsg proto.Message) bool

func (*LookupShareResponse) EqualVT added in v0.11.0

func (this *LookupShareResponse) EqualVT(that *LookupShareResponse) bool

func (*LookupShareResponse) GetAssertionsYaml

func (x *LookupShareResponse) GetAssertionsYaml() string

func (*LookupShareResponse) GetRelationshipsYaml

func (x *LookupShareResponse) GetRelationshipsYaml() string

func (*LookupShareResponse) GetSchema

func (x *LookupShareResponse) GetSchema() string

func (*LookupShareResponse) GetStatus

func (*LookupShareResponse) GetValidationYaml

func (x *LookupShareResponse) GetValidationYaml() string

func (*LookupShareResponse) MarshalToSizedBufferVT added in v0.8.0

func (m *LookupShareResponse) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*LookupShareResponse) MarshalToVT added in v0.8.0

func (m *LookupShareResponse) MarshalToVT(dAtA []byte) (int, error)

func (*LookupShareResponse) MarshalVT added in v0.8.0

func (m *LookupShareResponse) MarshalVT() (dAtA []byte, err error)

func (*LookupShareResponse) ProtoMessage

func (*LookupShareResponse) ProtoMessage()

func (*LookupShareResponse) ProtoReflect

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

func (*LookupShareResponse) Reset

func (x *LookupShareResponse) Reset()

func (*LookupShareResponse) SizeVT added in v0.8.0

func (m *LookupShareResponse) SizeVT() (n int)

func (*LookupShareResponse) String

func (x *LookupShareResponse) String() string

func (*LookupShareResponse) UnmarshalVT added in v0.8.0

func (m *LookupShareResponse) UnmarshalVT(dAtA []byte) error

func (*LookupShareResponse) Validate

func (m *LookupShareResponse) Validate() error

Validate checks the field values on LookupShareResponse with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*LookupShareResponse) ValidateAll added in v0.6.0

func (m *LookupShareResponse) ValidateAll() error

ValidateAll checks the field values on LookupShareResponse with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in LookupShareResponseMultiError, or nil if none found.

type LookupShareResponseMultiError added in v0.6.0

type LookupShareResponseMultiError []error

LookupShareResponseMultiError is an error wrapping multiple validation errors returned by LookupShareResponse.ValidateAll() if the designated constraints aren't met.

func (LookupShareResponseMultiError) AllErrors added in v0.6.0

func (m LookupShareResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (LookupShareResponseMultiError) Error added in v0.6.0

Error returns a concatenation of all the error messages it wraps.

type LookupShareResponseValidationError

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

LookupShareResponseValidationError is the validation error returned by LookupShareResponse.Validate if the designated constraints aren't met.

func (LookupShareResponseValidationError) Cause

Cause function returns cause value.

func (LookupShareResponseValidationError) Error

Error satisfies the builtin error interface

func (LookupShareResponseValidationError) ErrorName

ErrorName returns error name.

func (LookupShareResponseValidationError) Field

Field function returns field value.

func (LookupShareResponseValidationError) Key

Key function returns key value.

func (LookupShareResponseValidationError) Reason

Reason function returns reason value.

type LookupShareResponse_LookupStatus

type LookupShareResponse_LookupStatus int32
const (
	LookupShareResponse_UNKNOWN_REFERENCE  LookupShareResponse_LookupStatus = 0
	LookupShareResponse_FAILED_TO_LOOKUP   LookupShareResponse_LookupStatus = 1
	LookupShareResponse_VALID_REFERENCE    LookupShareResponse_LookupStatus = 2
	LookupShareResponse_UPGRADED_REFERENCE LookupShareResponse_LookupStatus = 3
)

func (LookupShareResponse_LookupStatus) Descriptor

func (LookupShareResponse_LookupStatus) Enum

func (LookupShareResponse_LookupStatus) EnumDescriptor deprecated

func (LookupShareResponse_LookupStatus) EnumDescriptor() ([]byte, []int)

Deprecated: Use LookupShareResponse_LookupStatus.Descriptor instead.

func (LookupShareResponse_LookupStatus) Number

func (LookupShareResponse_LookupStatus) String

func (LookupShareResponse_LookupStatus) Type

type ObjectAndRelation

type ObjectAndRelation struct {
	Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"`
	ObjectId  string `protobuf:"bytes,2,opt,name=object_id,json=objectId,proto3" json:"object_id,omitempty"`
	Relation  string `protobuf:"bytes,3,opt,name=relation,proto3" json:"relation,omitempty"`
	// contains filtered or unexported fields
}

func (*ObjectAndRelation) CloneMessageVT added in v0.9.0

func (m *ObjectAndRelation) CloneMessageVT() proto.Message

func (*ObjectAndRelation) CloneVT added in v0.8.0

func (m *ObjectAndRelation) CloneVT() *ObjectAndRelation

func (*ObjectAndRelation) Descriptor deprecated

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

Deprecated: Use ObjectAndRelation.ProtoReflect.Descriptor instead.

func (*ObjectAndRelation) EqualMessageVT added in v0.11.0

func (this *ObjectAndRelation) EqualMessageVT(thatMsg proto.Message) bool

func (*ObjectAndRelation) EqualVT added in v0.11.0

func (this *ObjectAndRelation) EqualVT(that *ObjectAndRelation) bool

func (*ObjectAndRelation) GetNamespace

func (x *ObjectAndRelation) GetNamespace() string

func (*ObjectAndRelation) GetObjectId

func (x *ObjectAndRelation) GetObjectId() string

func (*ObjectAndRelation) GetRelation

func (x *ObjectAndRelation) GetRelation() string

func (*ObjectAndRelation) MarshalToSizedBufferVT added in v0.8.0

func (m *ObjectAndRelation) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*ObjectAndRelation) MarshalToVT added in v0.8.0

func (m *ObjectAndRelation) MarshalToVT(dAtA []byte) (int, error)

func (*ObjectAndRelation) MarshalVT added in v0.8.0

func (m *ObjectAndRelation) MarshalVT() (dAtA []byte, err error)

func (*ObjectAndRelation) ProtoMessage

func (*ObjectAndRelation) ProtoMessage()

func (*ObjectAndRelation) ProtoReflect

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

func (*ObjectAndRelation) Reset

func (x *ObjectAndRelation) Reset()

func (*ObjectAndRelation) SizeVT added in v0.8.0

func (m *ObjectAndRelation) SizeVT() (n int)

func (*ObjectAndRelation) String

func (x *ObjectAndRelation) String() string

func (*ObjectAndRelation) UnmarshalVT added in v0.8.0

func (m *ObjectAndRelation) UnmarshalVT(dAtA []byte) error

func (*ObjectAndRelation) Validate

func (m *ObjectAndRelation) Validate() error

Validate checks the field values on ObjectAndRelation with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*ObjectAndRelation) ValidateAll added in v0.6.0

func (m *ObjectAndRelation) ValidateAll() error

ValidateAll checks the field values on ObjectAndRelation with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ObjectAndRelationMultiError, or nil if none found.

type ObjectAndRelationMultiError added in v0.6.0

type ObjectAndRelationMultiError []error

ObjectAndRelationMultiError is an error wrapping multiple validation errors returned by ObjectAndRelation.ValidateAll() if the designated constraints aren't met.

func (ObjectAndRelationMultiError) AllErrors added in v0.6.0

func (m ObjectAndRelationMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ObjectAndRelationMultiError) Error added in v0.6.0

Error returns a concatenation of all the error messages it wraps.

type ObjectAndRelationValidationError

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

ObjectAndRelationValidationError is the validation error returned by ObjectAndRelation.Validate if the designated constraints aren't met.

func (ObjectAndRelationValidationError) Cause

Cause function returns cause value.

func (ObjectAndRelationValidationError) Error

Error satisfies the builtin error interface

func (ObjectAndRelationValidationError) ErrorName

ErrorName returns error name.

func (ObjectAndRelationValidationError) Field

Field function returns field value.

func (ObjectAndRelationValidationError) Key

Key function returns key value.

func (ObjectAndRelationValidationError) Reason

Reason function returns reason value.

type RelationReference

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

func (*RelationReference) CloneMessageVT added in v0.9.0

func (m *RelationReference) CloneMessageVT() proto.Message

func (*RelationReference) CloneVT added in v0.8.0

func (m *RelationReference) CloneVT() *RelationReference

func (*RelationReference) Descriptor deprecated

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

Deprecated: Use RelationReference.ProtoReflect.Descriptor instead.

func (*RelationReference) EqualMessageVT added in v0.11.0

func (this *RelationReference) EqualMessageVT(thatMsg proto.Message) bool

func (*RelationReference) EqualVT added in v0.11.0

func (this *RelationReference) EqualVT(that *RelationReference) bool

func (*RelationReference) GetNamespace

func (x *RelationReference) GetNamespace() string

func (*RelationReference) GetRelation

func (x *RelationReference) GetRelation() string

func (*RelationReference) MarshalToSizedBufferVT added in v0.8.0

func (m *RelationReference) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*RelationReference) MarshalToVT added in v0.8.0

func (m *RelationReference) MarshalToVT(dAtA []byte) (int, error)

func (*RelationReference) MarshalVT added in v0.8.0

func (m *RelationReference) MarshalVT() (dAtA []byte, err error)

func (*RelationReference) ProtoMessage

func (*RelationReference) ProtoMessage()

func (*RelationReference) ProtoReflect

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

func (*RelationReference) Reset

func (x *RelationReference) Reset()

func (*RelationReference) SizeVT added in v0.8.0

func (m *RelationReference) SizeVT() (n int)

func (*RelationReference) String

func (x *RelationReference) String() string

func (*RelationReference) UnmarshalVT added in v0.8.0

func (m *RelationReference) UnmarshalVT(dAtA []byte) error

func (*RelationReference) Validate

func (m *RelationReference) Validate() error

Validate checks the field values on RelationReference with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*RelationReference) ValidateAll added in v0.6.0

func (m *RelationReference) ValidateAll() error

ValidateAll checks the field values on RelationReference with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in RelationReferenceMultiError, or nil if none found.

type RelationReferenceMultiError added in v0.6.0

type RelationReferenceMultiError []error

RelationReferenceMultiError is an error wrapping multiple validation errors returned by RelationReference.ValidateAll() if the designated constraints aren't met.

func (RelationReferenceMultiError) AllErrors added in v0.6.0

func (m RelationReferenceMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (RelationReferenceMultiError) Error added in v0.6.0

Error returns a concatenation of all the error messages it wraps.

type RelationReferenceValidationError

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

RelationReferenceValidationError is the validation error returned by RelationReference.Validate if the designated constraints aren't met.

func (RelationReferenceValidationError) Cause

Cause function returns cause value.

func (RelationReferenceValidationError) Error

Error satisfies the builtin error interface

func (RelationReferenceValidationError) ErrorName

ErrorName returns error name.

func (RelationReferenceValidationError) Field

Field function returns field value.

func (RelationReferenceValidationError) Key

Key function returns key value.

func (RelationReferenceValidationError) Reason

Reason function returns reason value.

type RelationTuple

type RelationTuple struct {

	// Each tupleset specifies keys of a set of relation tuples. The set can
	// include a single tuple key, or all tuples with a given object ID or
	// userset in a namespace, optionally constrained by a relation name.
	//
	// examples:
	// doc:readme#viewer@group:eng#member (fully specified)
	// doc:*#*#group:eng#member (all tuples that this userset relates to)
	// doc:12345#*#* (all tuples with a direct relationship to a document)
	// doc:12345#writer#* (all tuples with direct write relationship with the
	// document) doc:#writer#group:eng#member (all tuples that eng group has write
	// relationship)
	ObjectAndRelation *ObjectAndRelation `protobuf:"bytes,1,opt,name=object_and_relation,json=objectAndRelation,proto3" json:"object_and_relation,omitempty"`
	User              *User              `protobuf:"bytes,2,opt,name=user,proto3" json:"user,omitempty"`
	// contains filtered or unexported fields
}

func (*RelationTuple) CloneMessageVT added in v0.9.0

func (m *RelationTuple) CloneMessageVT() proto.Message

func (*RelationTuple) CloneVT added in v0.8.0

func (m *RelationTuple) CloneVT() *RelationTuple

func (*RelationTuple) Descriptor deprecated

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

Deprecated: Use RelationTuple.ProtoReflect.Descriptor instead.

func (*RelationTuple) EqualMessageVT added in v0.11.0

func (this *RelationTuple) EqualMessageVT(thatMsg proto.Message) bool

func (*RelationTuple) EqualVT added in v0.11.0

func (this *RelationTuple) EqualVT(that *RelationTuple) bool

func (*RelationTuple) GetObjectAndRelation

func (x *RelationTuple) GetObjectAndRelation() *ObjectAndRelation

func (*RelationTuple) GetUser

func (x *RelationTuple) GetUser() *User

func (*RelationTuple) HandwrittenValidate added in v0.4.0

func (m *RelationTuple) HandwrittenValidate() error

func (*RelationTuple) MarshalToSizedBufferVT added in v0.8.0

func (m *RelationTuple) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*RelationTuple) MarshalToVT added in v0.8.0

func (m *RelationTuple) MarshalToVT(dAtA []byte) (int, error)

func (*RelationTuple) MarshalVT added in v0.8.0

func (m *RelationTuple) MarshalVT() (dAtA []byte, err error)

func (*RelationTuple) ProtoMessage

func (*RelationTuple) ProtoMessage()

func (*RelationTuple) ProtoReflect

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

func (*RelationTuple) Reset

func (x *RelationTuple) Reset()

func (*RelationTuple) SizeVT added in v0.8.0

func (m *RelationTuple) SizeVT() (n int)

func (*RelationTuple) String

func (x *RelationTuple) String() string

func (*RelationTuple) UnmarshalVT added in v0.8.0

func (m *RelationTuple) UnmarshalVT(dAtA []byte) error

func (*RelationTuple) Validate

func (m *RelationTuple) Validate() error

Validate checks the field values on RelationTuple with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*RelationTuple) ValidateAll added in v0.6.0

func (m *RelationTuple) ValidateAll() error

ValidateAll checks the field values on RelationTuple with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in RelationTupleMultiError, or nil if none found.

type RelationTupleMultiError added in v0.6.0

type RelationTupleMultiError []error

RelationTupleMultiError is an error wrapping multiple validation errors returned by RelationTuple.ValidateAll() if the designated constraints aren't met.

func (RelationTupleMultiError) AllErrors added in v0.6.0

func (m RelationTupleMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (RelationTupleMultiError) Error added in v0.6.0

func (m RelationTupleMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type RelationTupleValidationError

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

RelationTupleValidationError is the validation error returned by RelationTuple.Validate if the designated constraints aren't met.

func (RelationTupleValidationError) Cause

Cause function returns cause value.

func (RelationTupleValidationError) Error

Error satisfies the builtin error interface

func (RelationTupleValidationError) ErrorName

func (e RelationTupleValidationError) ErrorName() string

ErrorName returns error name.

func (RelationTupleValidationError) Field

Field function returns field value.

func (RelationTupleValidationError) Key

Key function returns key value.

func (RelationTupleValidationError) Reason

Reason function returns reason value.

type ShareRequest

type ShareRequest struct {
	Schema            string `protobuf:"bytes,1,opt,name=schema,proto3" json:"schema,omitempty"`
	RelationshipsYaml string `protobuf:"bytes,2,opt,name=relationships_yaml,json=relationshipsYaml,proto3" json:"relationships_yaml,omitempty"`
	ValidationYaml    string `protobuf:"bytes,3,opt,name=validation_yaml,json=validationYaml,proto3" json:"validation_yaml,omitempty"`
	AssertionsYaml    string `protobuf:"bytes,4,opt,name=assertions_yaml,json=assertionsYaml,proto3" json:"assertions_yaml,omitempty"`
	// contains filtered or unexported fields
}

func (*ShareRequest) CloneMessageVT added in v0.9.0

func (m *ShareRequest) CloneMessageVT() proto.Message

func (*ShareRequest) CloneVT added in v0.8.0

func (m *ShareRequest) CloneVT() *ShareRequest

func (*ShareRequest) Descriptor deprecated

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

Deprecated: Use ShareRequest.ProtoReflect.Descriptor instead.

func (*ShareRequest) EqualMessageVT added in v0.11.0

func (this *ShareRequest) EqualMessageVT(thatMsg proto.Message) bool

func (*ShareRequest) EqualVT added in v0.11.0

func (this *ShareRequest) EqualVT(that *ShareRequest) bool

func (*ShareRequest) GetAssertionsYaml

func (x *ShareRequest) GetAssertionsYaml() string

func (*ShareRequest) GetRelationshipsYaml

func (x *ShareRequest) GetRelationshipsYaml() string

func (*ShareRequest) GetSchema

func (x *ShareRequest) GetSchema() string

func (*ShareRequest) GetValidationYaml

func (x *ShareRequest) GetValidationYaml() string

func (*ShareRequest) MarshalToSizedBufferVT added in v0.8.0

func (m *ShareRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*ShareRequest) MarshalToVT added in v0.8.0

func (m *ShareRequest) MarshalToVT(dAtA []byte) (int, error)

func (*ShareRequest) MarshalVT added in v0.8.0

func (m *ShareRequest) MarshalVT() (dAtA []byte, err error)

func (*ShareRequest) ProtoMessage

func (*ShareRequest) ProtoMessage()

func (*ShareRequest) ProtoReflect

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

func (*ShareRequest) Reset

func (x *ShareRequest) Reset()

func (*ShareRequest) SizeVT added in v0.8.0

func (m *ShareRequest) SizeVT() (n int)

func (*ShareRequest) String

func (x *ShareRequest) String() string

func (*ShareRequest) UnmarshalVT added in v0.8.0

func (m *ShareRequest) UnmarshalVT(dAtA []byte) error

func (*ShareRequest) Validate

func (m *ShareRequest) Validate() error

Validate checks the field values on ShareRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*ShareRequest) ValidateAll added in v0.6.0

func (m *ShareRequest) ValidateAll() error

ValidateAll checks the field values on ShareRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ShareRequestMultiError, or nil if none found.

type ShareRequestMultiError added in v0.6.0

type ShareRequestMultiError []error

ShareRequestMultiError is an error wrapping multiple validation errors returned by ShareRequest.ValidateAll() if the designated constraints aren't met.

func (ShareRequestMultiError) AllErrors added in v0.6.0

func (m ShareRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ShareRequestMultiError) Error added in v0.6.0

func (m ShareRequestMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type ShareRequestValidationError

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

ShareRequestValidationError is the validation error returned by ShareRequest.Validate if the designated constraints aren't met.

func (ShareRequestValidationError) Cause

Cause function returns cause value.

func (ShareRequestValidationError) Error

Error satisfies the builtin error interface

func (ShareRequestValidationError) ErrorName

func (e ShareRequestValidationError) ErrorName() string

ErrorName returns error name.

func (ShareRequestValidationError) Field

Field function returns field value.

func (ShareRequestValidationError) Key

Key function returns key value.

func (ShareRequestValidationError) Reason

Reason function returns reason value.

type ShareResponse

type ShareResponse struct {
	ShareReference string `protobuf:"bytes,1,opt,name=share_reference,json=shareReference,proto3" json:"share_reference,omitempty"`
	// contains filtered or unexported fields
}

func (*ShareResponse) CloneMessageVT added in v0.9.0

func (m *ShareResponse) CloneMessageVT() proto.Message

func (*ShareResponse) CloneVT added in v0.8.0

func (m *ShareResponse) CloneVT() *ShareResponse

func (*ShareResponse) Descriptor deprecated

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

Deprecated: Use ShareResponse.ProtoReflect.Descriptor instead.

func (*ShareResponse) EqualMessageVT added in v0.11.0

func (this *ShareResponse) EqualMessageVT(thatMsg proto.Message) bool

func (*ShareResponse) EqualVT added in v0.11.0

func (this *ShareResponse) EqualVT(that *ShareResponse) bool

func (*ShareResponse) GetShareReference

func (x *ShareResponse) GetShareReference() string

func (*ShareResponse) MarshalToSizedBufferVT added in v0.8.0

func (m *ShareResponse) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*ShareResponse) MarshalToVT added in v0.8.0

func (m *ShareResponse) MarshalToVT(dAtA []byte) (int, error)

func (*ShareResponse) MarshalVT added in v0.8.0

func (m *ShareResponse) MarshalVT() (dAtA []byte, err error)

func (*ShareResponse) ProtoMessage

func (*ShareResponse) ProtoMessage()

func (*ShareResponse) ProtoReflect

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

func (*ShareResponse) Reset

func (x *ShareResponse) Reset()

func (*ShareResponse) SizeVT added in v0.8.0

func (m *ShareResponse) SizeVT() (n int)

func (*ShareResponse) String

func (x *ShareResponse) String() string

func (*ShareResponse) UnmarshalVT added in v0.8.0

func (m *ShareResponse) UnmarshalVT(dAtA []byte) error

func (*ShareResponse) Validate

func (m *ShareResponse) Validate() error

Validate checks the field values on ShareResponse with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*ShareResponse) ValidateAll added in v0.6.0

func (m *ShareResponse) ValidateAll() error

ValidateAll checks the field values on ShareResponse with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ShareResponseMultiError, or nil if none found.

type ShareResponseMultiError added in v0.6.0

type ShareResponseMultiError []error

ShareResponseMultiError is an error wrapping multiple validation errors returned by ShareResponse.ValidateAll() if the designated constraints aren't met.

func (ShareResponseMultiError) AllErrors added in v0.6.0

func (m ShareResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ShareResponseMultiError) Error added in v0.6.0

func (m ShareResponseMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type ShareResponseValidationError

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

ShareResponseValidationError is the validation error returned by ShareResponse.Validate if the designated constraints aren't met.

func (ShareResponseValidationError) Cause

Cause function returns cause value.

func (ShareResponseValidationError) Error

Error satisfies the builtin error interface

func (ShareResponseValidationError) ErrorName

func (e ShareResponseValidationError) ErrorName() string

ErrorName returns error name.

func (ShareResponseValidationError) Field

Field function returns field value.

func (ShareResponseValidationError) Key

Key function returns key value.

func (ShareResponseValidationError) Reason

Reason function returns reason value.

type UnimplementedDeveloperServiceServer

type UnimplementedDeveloperServiceServer struct{}

UnimplementedDeveloperServiceServer must be embedded to have forward compatible implementations.

NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.

func (UnimplementedDeveloperServiceServer) LookupShared

func (UnimplementedDeveloperServiceServer) Share

type UnsafeDeveloperServiceServer

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

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

type User

type User struct {

	// Types that are valid to be assigned to UserOneof:
	//
	//	*User_Userset
	UserOneof isUser_UserOneof `protobuf_oneof:"user_oneof"`
	// contains filtered or unexported fields
}

func (*User) CloneMessageVT added in v0.9.0

func (m *User) CloneMessageVT() proto.Message

func (*User) CloneVT added in v0.8.0

func (m *User) CloneVT() *User

func (*User) Descriptor deprecated

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

Deprecated: Use User.ProtoReflect.Descriptor instead.

func (*User) EqualMessageVT added in v0.11.0

func (this *User) EqualMessageVT(thatMsg proto.Message) bool

func (*User) EqualVT added in v0.11.0

func (this *User) EqualVT(that *User) bool

func (*User) GetUserOneof

func (x *User) GetUserOneof() isUser_UserOneof

func (*User) GetUserset

func (x *User) GetUserset() *ObjectAndRelation

func (*User) MarshalToSizedBufferVT added in v0.8.0

func (m *User) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*User) MarshalToVT added in v0.8.0

func (m *User) MarshalToVT(dAtA []byte) (int, error)

func (*User) MarshalVT added in v0.8.0

func (m *User) MarshalVT() (dAtA []byte, err error)

func (*User) ProtoMessage

func (*User) ProtoMessage()

func (*User) ProtoReflect

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

func (*User) Reset

func (x *User) Reset()

func (*User) SizeVT added in v0.8.0

func (m *User) SizeVT() (n int)

func (*User) String

func (x *User) String() string

func (*User) UnmarshalVT added in v0.8.0

func (m *User) UnmarshalVT(dAtA []byte) error

func (*User) Validate

func (m *User) Validate() error

Validate checks the field values on User with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*User) ValidateAll added in v0.6.0

func (m *User) ValidateAll() error

ValidateAll checks the field values on User with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in UserMultiError, or nil if none found.

type UserMultiError added in v0.6.0

type UserMultiError []error

UserMultiError is an error wrapping multiple validation errors returned by User.ValidateAll() if the designated constraints aren't met.

func (UserMultiError) AllErrors added in v0.6.0

func (m UserMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (UserMultiError) Error added in v0.6.0

func (m UserMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type UserValidationError

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

UserValidationError is the validation error returned by User.Validate if the designated constraints aren't met.

func (UserValidationError) Cause

func (e UserValidationError) Cause() error

Cause function returns cause value.

func (UserValidationError) Error

func (e UserValidationError) Error() string

Error satisfies the builtin error interface

func (UserValidationError) ErrorName

func (e UserValidationError) ErrorName() string

ErrorName returns error name.

func (UserValidationError) Field

func (e UserValidationError) Field() string

Field function returns field value.

func (UserValidationError) Key

func (e UserValidationError) Key() bool

Key function returns key value.

func (UserValidationError) Reason

func (e UserValidationError) Reason() string

Reason function returns reason value.

type User_Userset

type User_Userset struct {
	Userset *ObjectAndRelation `protobuf:"bytes,2,opt,name=userset,proto3,oneof"`
}

func (*User_Userset) CloneVT added in v0.8.0

func (m *User_Userset) CloneVT() isUser_UserOneof

func (*User_Userset) EqualVT added in v0.11.0

func (this *User_Userset) EqualVT(thatIface isUser_UserOneof) bool

func (*User_Userset) MarshalToSizedBufferVT added in v0.8.0

func (m *User_Userset) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*User_Userset) MarshalToVT added in v0.8.0

func (m *User_Userset) MarshalToVT(dAtA []byte) (int, error)

func (*User_Userset) SizeVT added in v0.8.0

func (m *User_Userset) SizeVT() (n int)

Jump to

Keyboard shortcuts

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