docstore

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Jun 2, 2023 License: Apache-2.0 Imports: 48 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DocsDefaultPageLimit  = 10
	DocShortContentLength = 200
)
View Source
const (
	DocStoreServicePerm perms.Category = "DocStoreService"

	DocStoreServiceAddDocumentReferencePerm             perms.Name = "AddDocumentReference"
	DocStoreServiceAddDocumentRelationPerm              perms.Name = "AddDocumentRelation"
	DocStoreServiceCreateDocumentPerm                   perms.Name = "CreateDocument"
	DocStoreServiceCreateDocumentCategoryPerm           perms.Name = "CreateDocumentCategory"
	DocStoreServiceCreateTemplatePerm                   perms.Name = "CreateTemplate"
	DocStoreServiceDeleteDocumentPerm                   perms.Name = "DeleteDocument"
	DocStoreServiceDeleteDocumentAccessPermField        perms.Key  = "Access"
	DocStoreServiceDeleteDocumentCategoryPerm           perms.Name = "DeleteDocumentCategory"
	DocStoreServiceDeleteDocumentCommentPerm            perms.Name = "DeleteDocumentComment"
	DocStoreServiceDeleteDocumentCommentAccessPermField perms.Key  = "Access"
	DocStoreServiceDeleteTemplatePerm                   perms.Name = "DeleteTemplate"
	DocStoreServiceGetDocumentPerm                      perms.Name = "GetDocument"
	DocStoreServiceGetDocumentCommentsPerm              perms.Name = "GetDocumentComments"
	DocStoreServiceListDocumentCategoriesPerm           perms.Name = "ListDocumentCategories"
	DocStoreServiceListDocumentsPerm                    perms.Name = "ListDocuments"
	DocStoreServiceListTemplatesPerm                    perms.Name = "ListTemplates"
	DocStoreServiceListUserDocumentsPerm                perms.Name = "ListUserDocuments"
	DocStoreServicePostDocumentCommentPerm              perms.Name = "PostDocumentComment"
	DocStoreServiceUpdateDocumentPerm                   perms.Name = "UpdateDocument"
	DocStoreServiceUpdateDocumentAccessPermField        perms.Key  = "Access"
)
View Source
const (
	CommentsDefaultPageLimit = 7
)

Variables

View Source
var (
	FailedQueryErr     = status.Error(codes.Internal, "Failed to get/create/update documents!")
	NoDocOrPermsDocErr = status.Error(codes.NotFound, "No document found or no permissions to access document!")
)
View Source
var (
	ACCESS_LEVEL_UPDATE_MODE_name = map[int32]string{
		0: "UPDATE",
		1: "DELETE",
		2: "CLEAR",
	}
	ACCESS_LEVEL_UPDATE_MODE_value = map[string]int32{
		"UPDATE": 0,
		"DELETE": 1,
		"CLEAR":  2,
	}
)

Enum value maps for ACCESS_LEVEL_UPDATE_MODE.

View Source
var DocStoreService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "services.docstore.DocStoreService",
	HandlerType: (*DocStoreServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "ListTemplates",
			Handler:    _DocStoreService_ListTemplates_Handler,
		},
		{
			MethodName: "GetTemplate",
			Handler:    _DocStoreService_GetTemplate_Handler,
		},
		{
			MethodName: "CreateTemplate",
			Handler:    _DocStoreService_CreateTemplate_Handler,
		},
		{
			MethodName: "UpdateTemplate",
			Handler:    _DocStoreService_UpdateTemplate_Handler,
		},
		{
			MethodName: "DeleteTemplate",
			Handler:    _DocStoreService_DeleteTemplate_Handler,
		},
		{
			MethodName: "ListDocuments",
			Handler:    _DocStoreService_ListDocuments_Handler,
		},
		{
			MethodName: "GetDocument",
			Handler:    _DocStoreService_GetDocument_Handler,
		},
		{
			MethodName: "CreateDocument",
			Handler:    _DocStoreService_CreateDocument_Handler,
		},
		{
			MethodName: "UpdateDocument",
			Handler:    _DocStoreService_UpdateDocument_Handler,
		},
		{
			MethodName: "DeleteDocument",
			Handler:    _DocStoreService_DeleteDocument_Handler,
		},
		{
			MethodName: "GetDocumentReferences",
			Handler:    _DocStoreService_GetDocumentReferences_Handler,
		},
		{
			MethodName: "GetDocumentRelations",
			Handler:    _DocStoreService_GetDocumentRelations_Handler,
		},
		{
			MethodName: "AddDocumentReference",
			Handler:    _DocStoreService_AddDocumentReference_Handler,
		},
		{
			MethodName: "RemoveDocumentReference",
			Handler:    _DocStoreService_RemoveDocumentReference_Handler,
		},
		{
			MethodName: "AddDocumentRelation",
			Handler:    _DocStoreService_AddDocumentRelation_Handler,
		},
		{
			MethodName: "RemoveDocumentRelation",
			Handler:    _DocStoreService_RemoveDocumentRelation_Handler,
		},
		{
			MethodName: "GetDocumentComments",
			Handler:    _DocStoreService_GetDocumentComments_Handler,
		},
		{
			MethodName: "PostDocumentComment",
			Handler:    _DocStoreService_PostDocumentComment_Handler,
		},
		{
			MethodName: "EditDocumentComment",
			Handler:    _DocStoreService_EditDocumentComment_Handler,
		},
		{
			MethodName: "DeleteDocumentComment",
			Handler:    _DocStoreService_DeleteDocumentComment_Handler,
		},
		{
			MethodName: "GetDocumentAccess",
			Handler:    _DocStoreService_GetDocumentAccess_Handler,
		},
		{
			MethodName: "SetDocumentAccess",
			Handler:    _DocStoreService_SetDocumentAccess_Handler,
		},
		{
			MethodName: "ListUserDocuments",
			Handler:    _DocStoreService_ListUserDocuments_Handler,
		},
		{
			MethodName: "ListDocumentCategories",
			Handler:    _DocStoreService_ListDocumentCategories_Handler,
		},
		{
			MethodName: "CreateDocumentCategory",
			Handler:    _DocStoreService_CreateDocumentCategory_Handler,
		},
		{
			MethodName: "UpdateDocumentCategory",
			Handler:    _DocStoreService_UpdateDocumentCategory_Handler,
		},
		{
			MethodName: "DeleteDocumentCategory",
			Handler:    _DocStoreService_DeleteDocumentCategory_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "services/docstore/docstore.proto",
}

DocStoreService_ServiceDesc is the grpc.ServiceDesc for DocStoreService 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_services_docstore_docstore_proto protoreflect.FileDescriptor
View Source
var PermsRemap = map[string]string{

	"DocStoreService/EditDocumentComment":     "DocStoreService/PostDocumentComment",
	"DocStoreService/GetDocumentAccess":       "DocStoreService/GetDocument",
	"DocStoreService/GetDocumentReferences":   "DocStoreService/GetDocument",
	"DocStoreService/GetDocumentRelations":    "DocStoreService/GetDocument",
	"DocStoreService/GetTemplate":             "DocStoreService/ListTemplates",
	"DocStoreService/RemoveDocumentReference": "DocStoreService/AddDocumentReference",
	"DocStoreService/RemoveDocumentRelation":  "DocStoreService/AddDocumentRelation",
	"DocStoreService/SetDocumentAccess":       "DocStoreService/CreateDocument",
	"DocStoreService/UpdateDocumentCategory":  "DocStoreService/CreateDocumentCategory",
	"DocStoreService/UpdateTemplate":          "DocStoreService/CreateTemplate",
}
View Source
var (
	TemplateNoPermsErr = status.Error(codes.PermissionDenied, "You don't have permission to view/update/delete this template!")
)

Functions

func RegisterDocStoreServiceServer

func RegisterDocStoreServiceServer(s grpc.ServiceRegistrar, srv DocStoreServiceServer)

Types

type ACCESS_LEVEL_UPDATE_MODE

type ACCESS_LEVEL_UPDATE_MODE int32
const (
	ACCESS_LEVEL_UPDATE_MODE_UPDATE ACCESS_LEVEL_UPDATE_MODE = 0
	ACCESS_LEVEL_UPDATE_MODE_DELETE ACCESS_LEVEL_UPDATE_MODE = 1
	ACCESS_LEVEL_UPDATE_MODE_CLEAR  ACCESS_LEVEL_UPDATE_MODE = 2
)

func (ACCESS_LEVEL_UPDATE_MODE) Descriptor

func (ACCESS_LEVEL_UPDATE_MODE) Enum

func (ACCESS_LEVEL_UPDATE_MODE) EnumDescriptor deprecated

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

Deprecated: Use ACCESS_LEVEL_UPDATE_MODE.Descriptor instead.

func (ACCESS_LEVEL_UPDATE_MODE) Number

func (ACCESS_LEVEL_UPDATE_MODE) String

func (x ACCESS_LEVEL_UPDATE_MODE) String() string

func (ACCESS_LEVEL_UPDATE_MODE) Type

type AddDocumentReferenceRequest

type AddDocumentReferenceRequest struct {
	Reference *documents.DocumentReference `protobuf:"bytes,1,opt,name=reference,proto3" json:"reference,omitempty"`
	// contains filtered or unexported fields
}

func (*AddDocumentReferenceRequest) Descriptor deprecated

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

Deprecated: Use AddDocumentReferenceRequest.ProtoReflect.Descriptor instead.

func (*AddDocumentReferenceRequest) GetReference

func (*AddDocumentReferenceRequest) ProtoMessage

func (*AddDocumentReferenceRequest) ProtoMessage()

func (*AddDocumentReferenceRequest) ProtoReflect

func (*AddDocumentReferenceRequest) Reset

func (x *AddDocumentReferenceRequest) Reset()

func (*AddDocumentReferenceRequest) String

func (x *AddDocumentReferenceRequest) String() string

func (*AddDocumentReferenceRequest) Validate

func (m *AddDocumentReferenceRequest) Validate() error

Validate checks the field values on AddDocumentReferenceRequest 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 (*AddDocumentReferenceRequest) ValidateAll

func (m *AddDocumentReferenceRequest) ValidateAll() error

ValidateAll checks the field values on AddDocumentReferenceRequest 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 AddDocumentReferenceRequestMultiError, or nil if none found.

type AddDocumentReferenceRequestMultiError

type AddDocumentReferenceRequestMultiError []error

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

func (AddDocumentReferenceRequestMultiError) AllErrors

AllErrors returns a list of validation violation errors.

func (AddDocumentReferenceRequestMultiError) Error

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

type AddDocumentReferenceRequestValidationError

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

AddDocumentReferenceRequestValidationError is the validation error returned by AddDocumentReferenceRequest.Validate if the designated constraints aren't met.

func (AddDocumentReferenceRequestValidationError) Cause

Cause function returns cause value.

func (AddDocumentReferenceRequestValidationError) Error

Error satisfies the builtin error interface

func (AddDocumentReferenceRequestValidationError) ErrorName

ErrorName returns error name.

func (AddDocumentReferenceRequestValidationError) Field

Field function returns field value.

func (AddDocumentReferenceRequestValidationError) Key

Key function returns key value.

func (AddDocumentReferenceRequestValidationError) Reason

Reason function returns reason value.

type AddDocumentReferenceResponse

type AddDocumentReferenceResponse struct {
	Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

func (*AddDocumentReferenceResponse) Descriptor deprecated

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

Deprecated: Use AddDocumentReferenceResponse.ProtoReflect.Descriptor instead.

func (*AddDocumentReferenceResponse) GetId

func (*AddDocumentReferenceResponse) ProtoMessage

func (*AddDocumentReferenceResponse) ProtoMessage()

func (*AddDocumentReferenceResponse) ProtoReflect

func (*AddDocumentReferenceResponse) Reset

func (x *AddDocumentReferenceResponse) Reset()

func (*AddDocumentReferenceResponse) String

func (*AddDocumentReferenceResponse) Validate

func (m *AddDocumentReferenceResponse) Validate() error

Validate checks the field values on AddDocumentReferenceResponse 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 (*AddDocumentReferenceResponse) ValidateAll

func (m *AddDocumentReferenceResponse) ValidateAll() error

ValidateAll checks the field values on AddDocumentReferenceResponse 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 AddDocumentReferenceResponseMultiError, or nil if none found.

type AddDocumentReferenceResponseMultiError

type AddDocumentReferenceResponseMultiError []error

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

func (AddDocumentReferenceResponseMultiError) AllErrors

AllErrors returns a list of validation violation errors.

func (AddDocumentReferenceResponseMultiError) Error

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

type AddDocumentReferenceResponseValidationError

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

AddDocumentReferenceResponseValidationError is the validation error returned by AddDocumentReferenceResponse.Validate if the designated constraints aren't met.

func (AddDocumentReferenceResponseValidationError) Cause

Cause function returns cause value.

func (AddDocumentReferenceResponseValidationError) Error

Error satisfies the builtin error interface

func (AddDocumentReferenceResponseValidationError) ErrorName

ErrorName returns error name.

func (AddDocumentReferenceResponseValidationError) Field

Field function returns field value.

func (AddDocumentReferenceResponseValidationError) Key

Key function returns key value.

func (AddDocumentReferenceResponseValidationError) Reason

Reason function returns reason value.

type AddDocumentRelationRequest

type AddDocumentRelationRequest struct {
	Relation *documents.DocumentRelation `protobuf:"bytes,1,opt,name=relation,proto3" json:"relation,omitempty"`
	// contains filtered or unexported fields
}

func (*AddDocumentRelationRequest) Descriptor deprecated

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

Deprecated: Use AddDocumentRelationRequest.ProtoReflect.Descriptor instead.

func (*AddDocumentRelationRequest) GetRelation

func (*AddDocumentRelationRequest) ProtoMessage

func (*AddDocumentRelationRequest) ProtoMessage()

func (*AddDocumentRelationRequest) ProtoReflect

func (*AddDocumentRelationRequest) Reset

func (x *AddDocumentRelationRequest) Reset()

func (*AddDocumentRelationRequest) String

func (x *AddDocumentRelationRequest) String() string

func (*AddDocumentRelationRequest) Validate

func (m *AddDocumentRelationRequest) Validate() error

Validate checks the field values on AddDocumentRelationRequest 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 (*AddDocumentRelationRequest) ValidateAll

func (m *AddDocumentRelationRequest) ValidateAll() error

ValidateAll checks the field values on AddDocumentRelationRequest 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 AddDocumentRelationRequestMultiError, or nil if none found.

type AddDocumentRelationRequestMultiError

type AddDocumentRelationRequestMultiError []error

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

func (AddDocumentRelationRequestMultiError) AllErrors

AllErrors returns a list of validation violation errors.

func (AddDocumentRelationRequestMultiError) Error

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

type AddDocumentRelationRequestValidationError

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

AddDocumentRelationRequestValidationError is the validation error returned by AddDocumentRelationRequest.Validate if the designated constraints aren't met.

func (AddDocumentRelationRequestValidationError) Cause

Cause function returns cause value.

func (AddDocumentRelationRequestValidationError) Error

Error satisfies the builtin error interface

func (AddDocumentRelationRequestValidationError) ErrorName

ErrorName returns error name.

func (AddDocumentRelationRequestValidationError) Field

Field function returns field value.

func (AddDocumentRelationRequestValidationError) Key

Key function returns key value.

func (AddDocumentRelationRequestValidationError) Reason

Reason function returns reason value.

type AddDocumentRelationResponse

type AddDocumentRelationResponse struct {
	Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

func (*AddDocumentRelationResponse) Descriptor deprecated

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

Deprecated: Use AddDocumentRelationResponse.ProtoReflect.Descriptor instead.

func (*AddDocumentRelationResponse) GetId

func (*AddDocumentRelationResponse) ProtoMessage

func (*AddDocumentRelationResponse) ProtoMessage()

func (*AddDocumentRelationResponse) ProtoReflect

func (*AddDocumentRelationResponse) Reset

func (x *AddDocumentRelationResponse) Reset()

func (*AddDocumentRelationResponse) String

func (x *AddDocumentRelationResponse) String() string

func (*AddDocumentRelationResponse) Validate

func (m *AddDocumentRelationResponse) Validate() error

Validate checks the field values on AddDocumentRelationResponse 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 (*AddDocumentRelationResponse) ValidateAll

func (m *AddDocumentRelationResponse) ValidateAll() error

ValidateAll checks the field values on AddDocumentRelationResponse 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 AddDocumentRelationResponseMultiError, or nil if none found.

type AddDocumentRelationResponseMultiError

type AddDocumentRelationResponseMultiError []error

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

func (AddDocumentRelationResponseMultiError) AllErrors

AllErrors returns a list of validation violation errors.

func (AddDocumentRelationResponseMultiError) Error

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

type AddDocumentRelationResponseValidationError

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

AddDocumentRelationResponseValidationError is the validation error returned by AddDocumentRelationResponse.Validate if the designated constraints aren't met.

func (AddDocumentRelationResponseValidationError) Cause

Cause function returns cause value.

func (AddDocumentRelationResponseValidationError) Error

Error satisfies the builtin error interface

func (AddDocumentRelationResponseValidationError) ErrorName

ErrorName returns error name.

func (AddDocumentRelationResponseValidationError) Field

Field function returns field value.

func (AddDocumentRelationResponseValidationError) Key

Key function returns key value.

func (AddDocumentRelationResponseValidationError) Reason

Reason function returns reason value.

type CreateDocumentCategoryRequest

type CreateDocumentCategoryRequest struct {
	Category *documents.DocumentCategory `protobuf:"bytes,1,opt,name=category,proto3" json:"category,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateDocumentCategoryRequest) Descriptor deprecated

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

Deprecated: Use CreateDocumentCategoryRequest.ProtoReflect.Descriptor instead.

func (*CreateDocumentCategoryRequest) GetCategory

func (*CreateDocumentCategoryRequest) ProtoMessage

func (*CreateDocumentCategoryRequest) ProtoMessage()

func (*CreateDocumentCategoryRequest) ProtoReflect

func (*CreateDocumentCategoryRequest) Reset

func (x *CreateDocumentCategoryRequest) Reset()

func (*CreateDocumentCategoryRequest) String

func (*CreateDocumentCategoryRequest) Validate

func (m *CreateDocumentCategoryRequest) Validate() error

Validate checks the field values on CreateDocumentCategoryRequest 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 (*CreateDocumentCategoryRequest) ValidateAll

func (m *CreateDocumentCategoryRequest) ValidateAll() error

ValidateAll checks the field values on CreateDocumentCategoryRequest 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 CreateDocumentCategoryRequestMultiError, or nil if none found.

type CreateDocumentCategoryRequestMultiError

type CreateDocumentCategoryRequestMultiError []error

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

func (CreateDocumentCategoryRequestMultiError) AllErrors

AllErrors returns a list of validation violation errors.

func (CreateDocumentCategoryRequestMultiError) Error

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

type CreateDocumentCategoryRequestValidationError

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

CreateDocumentCategoryRequestValidationError is the validation error returned by CreateDocumentCategoryRequest.Validate if the designated constraints aren't met.

func (CreateDocumentCategoryRequestValidationError) Cause

Cause function returns cause value.

func (CreateDocumentCategoryRequestValidationError) Error

Error satisfies the builtin error interface

func (CreateDocumentCategoryRequestValidationError) ErrorName

ErrorName returns error name.

func (CreateDocumentCategoryRequestValidationError) Field

Field function returns field value.

func (CreateDocumentCategoryRequestValidationError) Key

Key function returns key value.

func (CreateDocumentCategoryRequestValidationError) Reason

Reason function returns reason value.

type CreateDocumentCategoryResponse

type CreateDocumentCategoryResponse struct {
	Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateDocumentCategoryResponse) Descriptor deprecated

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

Deprecated: Use CreateDocumentCategoryResponse.ProtoReflect.Descriptor instead.

func (*CreateDocumentCategoryResponse) GetId

func (*CreateDocumentCategoryResponse) ProtoMessage

func (*CreateDocumentCategoryResponse) ProtoMessage()

func (*CreateDocumentCategoryResponse) ProtoReflect

func (*CreateDocumentCategoryResponse) Reset

func (x *CreateDocumentCategoryResponse) Reset()

func (*CreateDocumentCategoryResponse) String

func (*CreateDocumentCategoryResponse) Validate

func (m *CreateDocumentCategoryResponse) Validate() error

Validate checks the field values on CreateDocumentCategoryResponse 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 (*CreateDocumentCategoryResponse) ValidateAll

func (m *CreateDocumentCategoryResponse) ValidateAll() error

ValidateAll checks the field values on CreateDocumentCategoryResponse 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 CreateDocumentCategoryResponseMultiError, or nil if none found.

type CreateDocumentCategoryResponseMultiError

type CreateDocumentCategoryResponseMultiError []error

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

func (CreateDocumentCategoryResponseMultiError) AllErrors

AllErrors returns a list of validation violation errors.

func (CreateDocumentCategoryResponseMultiError) Error

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

type CreateDocumentCategoryResponseValidationError

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

CreateDocumentCategoryResponseValidationError is the validation error returned by CreateDocumentCategoryResponse.Validate if the designated constraints aren't met.

func (CreateDocumentCategoryResponseValidationError) Cause

Cause function returns cause value.

func (CreateDocumentCategoryResponseValidationError) Error

Error satisfies the builtin error interface

func (CreateDocumentCategoryResponseValidationError) ErrorName

ErrorName returns error name.

func (CreateDocumentCategoryResponseValidationError) Field

Field function returns field value.

func (CreateDocumentCategoryResponseValidationError) Key

Key function returns key value.

func (CreateDocumentCategoryResponseValidationError) Reason

Reason function returns reason value.

type CreateDocumentRequest

type CreateDocumentRequest struct {
	CategoryId  *uint64                    `protobuf:"varint,1,opt,name=category_id,json=categoryId,proto3,oneof" json:"category_id,omitempty" alias:"category_id"` // @gotags: alias:"category_id"
	Title       string                     `protobuf:"bytes,2,opt,name=title,proto3" json:"title,omitempty" alias:"title"`                                          // @gotags: alias:"title"
	Content     string                     `protobuf:"bytes,3,opt,name=content,proto3" json:"content,omitempty" alias:"content"`                                    // @gotags: alias:"content"
	ContentType documents.DOC_CONTENT_TYPE ``                                                                                                                       // @gotags: alias:"content_type"
	/* 158-byte string literal not displayed */
	Data   *string                   `protobuf:"bytes,5,opt,name=data,proto3,oneof" json:"data,omitempty" alias:"data"`  // @gotags: alias:"data"
	State  string                    `protobuf:"bytes,6,opt,name=state,proto3" json:"state,omitempty" alias:"state"`     // @gotags: alias:"state"
	Closed bool                      `protobuf:"varint,7,opt,name=closed,proto3" json:"closed,omitempty" alias:"closed"` // @gotags: alias:"closed"
	Public bool                      `protobuf:"varint,8,opt,name=public,proto3" json:"public,omitempty" alias:"public"` // @gotags: alias:"public"
	Access *documents.DocumentAccess `protobuf:"bytes,9,opt,name=access,proto3,oneof" json:"access,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateDocumentRequest) Descriptor deprecated

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

Deprecated: Use CreateDocumentRequest.ProtoReflect.Descriptor instead.

func (*CreateDocumentRequest) GetAccess

func (*CreateDocumentRequest) GetCategoryId

func (x *CreateDocumentRequest) GetCategoryId() uint64

func (*CreateDocumentRequest) GetClosed

func (x *CreateDocumentRequest) GetClosed() bool

func (*CreateDocumentRequest) GetContent

func (x *CreateDocumentRequest) GetContent() string

func (*CreateDocumentRequest) GetContentType

func (x *CreateDocumentRequest) GetContentType() documents.DOC_CONTENT_TYPE

func (*CreateDocumentRequest) GetData

func (x *CreateDocumentRequest) GetData() string

func (*CreateDocumentRequest) GetPublic

func (x *CreateDocumentRequest) GetPublic() bool

func (*CreateDocumentRequest) GetState

func (x *CreateDocumentRequest) GetState() string

func (*CreateDocumentRequest) GetTitle

func (x *CreateDocumentRequest) GetTitle() string

func (*CreateDocumentRequest) ProtoMessage

func (*CreateDocumentRequest) ProtoMessage()

func (*CreateDocumentRequest) ProtoReflect

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

func (*CreateDocumentRequest) Reset

func (x *CreateDocumentRequest) Reset()

func (*CreateDocumentRequest) String

func (x *CreateDocumentRequest) String() string

func (*CreateDocumentRequest) Validate

func (m *CreateDocumentRequest) Validate() error

Validate checks the field values on CreateDocumentRequest 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 (*CreateDocumentRequest) ValidateAll

func (m *CreateDocumentRequest) ValidateAll() error

ValidateAll checks the field values on CreateDocumentRequest 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 CreateDocumentRequestMultiError, or nil if none found.

type CreateDocumentRequestMultiError

type CreateDocumentRequestMultiError []error

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

func (CreateDocumentRequestMultiError) AllErrors

func (m CreateDocumentRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (CreateDocumentRequestMultiError) Error

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

type CreateDocumentRequestValidationError

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

CreateDocumentRequestValidationError is the validation error returned by CreateDocumentRequest.Validate if the designated constraints aren't met.

func (CreateDocumentRequestValidationError) Cause

Cause function returns cause value.

func (CreateDocumentRequestValidationError) Error

Error satisfies the builtin error interface

func (CreateDocumentRequestValidationError) ErrorName

ErrorName returns error name.

func (CreateDocumentRequestValidationError) Field

Field function returns field value.

func (CreateDocumentRequestValidationError) Key

Key function returns key value.

func (CreateDocumentRequestValidationError) Reason

Reason function returns reason value.

type CreateDocumentResponse

type CreateDocumentResponse struct {
	DocumentId uint64 `protobuf:"varint,1,opt,name=document_id,json=documentId,proto3" json:"document_id,omitempty" alias:"id"` // @gotags: alias:"id"
	// contains filtered or unexported fields
}

func (*CreateDocumentResponse) Descriptor deprecated

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

Deprecated: Use CreateDocumentResponse.ProtoReflect.Descriptor instead.

func (*CreateDocumentResponse) GetDocumentId

func (x *CreateDocumentResponse) GetDocumentId() uint64

func (*CreateDocumentResponse) ProtoMessage

func (*CreateDocumentResponse) ProtoMessage()

func (*CreateDocumentResponse) ProtoReflect

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

func (*CreateDocumentResponse) Reset

func (x *CreateDocumentResponse) Reset()

func (*CreateDocumentResponse) String

func (x *CreateDocumentResponse) String() string

func (*CreateDocumentResponse) Validate

func (m *CreateDocumentResponse) Validate() error

Validate checks the field values on CreateDocumentResponse 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 (*CreateDocumentResponse) ValidateAll

func (m *CreateDocumentResponse) ValidateAll() error

ValidateAll checks the field values on CreateDocumentResponse 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 CreateDocumentResponseMultiError, or nil if none found.

type CreateDocumentResponseMultiError

type CreateDocumentResponseMultiError []error

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

func (CreateDocumentResponseMultiError) AllErrors

func (m CreateDocumentResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (CreateDocumentResponseMultiError) Error

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

type CreateDocumentResponseValidationError

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

CreateDocumentResponseValidationError is the validation error returned by CreateDocumentResponse.Validate if the designated constraints aren't met.

func (CreateDocumentResponseValidationError) Cause

Cause function returns cause value.

func (CreateDocumentResponseValidationError) Error

Error satisfies the builtin error interface

func (CreateDocumentResponseValidationError) ErrorName

ErrorName returns error name.

func (CreateDocumentResponseValidationError) Field

Field function returns field value.

func (CreateDocumentResponseValidationError) Key

Key function returns key value.

func (CreateDocumentResponseValidationError) Reason

Reason function returns reason value.

type CreateTemplateRequest

type CreateTemplateRequest struct {
	Template *documents.Template `protobuf:"bytes,1,opt,name=template,proto3" json:"template,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateTemplateRequest) Descriptor deprecated

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

Deprecated: Use CreateTemplateRequest.ProtoReflect.Descriptor instead.

func (*CreateTemplateRequest) GetTemplate

func (x *CreateTemplateRequest) GetTemplate() *documents.Template

func (*CreateTemplateRequest) ProtoMessage

func (*CreateTemplateRequest) ProtoMessage()

func (*CreateTemplateRequest) ProtoReflect

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

func (*CreateTemplateRequest) Reset

func (x *CreateTemplateRequest) Reset()

func (*CreateTemplateRequest) String

func (x *CreateTemplateRequest) String() string

func (*CreateTemplateRequest) Validate

func (m *CreateTemplateRequest) Validate() error

Validate checks the field values on CreateTemplateRequest 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 (*CreateTemplateRequest) ValidateAll

func (m *CreateTemplateRequest) ValidateAll() error

ValidateAll checks the field values on CreateTemplateRequest 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 CreateTemplateRequestMultiError, or nil if none found.

type CreateTemplateRequestMultiError

type CreateTemplateRequestMultiError []error

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

func (CreateTemplateRequestMultiError) AllErrors

func (m CreateTemplateRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (CreateTemplateRequestMultiError) Error

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

type CreateTemplateRequestValidationError

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

CreateTemplateRequestValidationError is the validation error returned by CreateTemplateRequest.Validate if the designated constraints aren't met.

func (CreateTemplateRequestValidationError) Cause

Cause function returns cause value.

func (CreateTemplateRequestValidationError) Error

Error satisfies the builtin error interface

func (CreateTemplateRequestValidationError) ErrorName

ErrorName returns error name.

func (CreateTemplateRequestValidationError) Field

Field function returns field value.

func (CreateTemplateRequestValidationError) Key

Key function returns key value.

func (CreateTemplateRequestValidationError) Reason

Reason function returns reason value.

type CreateTemplateResponse

type CreateTemplateResponse struct {
	Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateTemplateResponse) Descriptor deprecated

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

Deprecated: Use CreateTemplateResponse.ProtoReflect.Descriptor instead.

func (*CreateTemplateResponse) GetId

func (x *CreateTemplateResponse) GetId() uint64

func (*CreateTemplateResponse) ProtoMessage

func (*CreateTemplateResponse) ProtoMessage()

func (*CreateTemplateResponse) ProtoReflect

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

func (*CreateTemplateResponse) Reset

func (x *CreateTemplateResponse) Reset()

func (*CreateTemplateResponse) String

func (x *CreateTemplateResponse) String() string

func (*CreateTemplateResponse) Validate

func (m *CreateTemplateResponse) Validate() error

Validate checks the field values on CreateTemplateResponse 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 (*CreateTemplateResponse) ValidateAll

func (m *CreateTemplateResponse) ValidateAll() error

ValidateAll checks the field values on CreateTemplateResponse 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 CreateTemplateResponseMultiError, or nil if none found.

type CreateTemplateResponseMultiError

type CreateTemplateResponseMultiError []error

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

func (CreateTemplateResponseMultiError) AllErrors

func (m CreateTemplateResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (CreateTemplateResponseMultiError) Error

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

type CreateTemplateResponseValidationError

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

CreateTemplateResponseValidationError is the validation error returned by CreateTemplateResponse.Validate if the designated constraints aren't met.

func (CreateTemplateResponseValidationError) Cause

Cause function returns cause value.

func (CreateTemplateResponseValidationError) Error

Error satisfies the builtin error interface

func (CreateTemplateResponseValidationError) ErrorName

ErrorName returns error name.

func (CreateTemplateResponseValidationError) Field

Field function returns field value.

func (CreateTemplateResponseValidationError) Key

Key function returns key value.

func (CreateTemplateResponseValidationError) Reason

Reason function returns reason value.

type DeleteDocumentCategoryRequest

type DeleteDocumentCategoryRequest struct {
	Ids []uint64 `protobuf:"varint,1,rep,packed,name=ids,proto3" json:"ids,omitempty"`
	// contains filtered or unexported fields
}

func (*DeleteDocumentCategoryRequest) Descriptor deprecated

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

Deprecated: Use DeleteDocumentCategoryRequest.ProtoReflect.Descriptor instead.

func (*DeleteDocumentCategoryRequest) GetIds

func (x *DeleteDocumentCategoryRequest) GetIds() []uint64

func (*DeleteDocumentCategoryRequest) ProtoMessage

func (*DeleteDocumentCategoryRequest) ProtoMessage()

func (*DeleteDocumentCategoryRequest) ProtoReflect

func (*DeleteDocumentCategoryRequest) Reset

func (x *DeleteDocumentCategoryRequest) Reset()

func (*DeleteDocumentCategoryRequest) String

func (*DeleteDocumentCategoryRequest) Validate

func (m *DeleteDocumentCategoryRequest) Validate() error

Validate checks the field values on DeleteDocumentCategoryRequest 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 (*DeleteDocumentCategoryRequest) ValidateAll

func (m *DeleteDocumentCategoryRequest) ValidateAll() error

ValidateAll checks the field values on DeleteDocumentCategoryRequest 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 DeleteDocumentCategoryRequestMultiError, or nil if none found.

type DeleteDocumentCategoryRequestMultiError

type DeleteDocumentCategoryRequestMultiError []error

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

func (DeleteDocumentCategoryRequestMultiError) AllErrors

AllErrors returns a list of validation violation errors.

func (DeleteDocumentCategoryRequestMultiError) Error

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

type DeleteDocumentCategoryRequestValidationError

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

DeleteDocumentCategoryRequestValidationError is the validation error returned by DeleteDocumentCategoryRequest.Validate if the designated constraints aren't met.

func (DeleteDocumentCategoryRequestValidationError) Cause

Cause function returns cause value.

func (DeleteDocumentCategoryRequestValidationError) Error

Error satisfies the builtin error interface

func (DeleteDocumentCategoryRequestValidationError) ErrorName

ErrorName returns error name.

func (DeleteDocumentCategoryRequestValidationError) Field

Field function returns field value.

func (DeleteDocumentCategoryRequestValidationError) Key

Key function returns key value.

func (DeleteDocumentCategoryRequestValidationError) Reason

Reason function returns reason value.

type DeleteDocumentCategoryResponse

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

func (*DeleteDocumentCategoryResponse) Descriptor deprecated

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

Deprecated: Use DeleteDocumentCategoryResponse.ProtoReflect.Descriptor instead.

func (*DeleteDocumentCategoryResponse) ProtoMessage

func (*DeleteDocumentCategoryResponse) ProtoMessage()

func (*DeleteDocumentCategoryResponse) ProtoReflect

func (*DeleteDocumentCategoryResponse) Reset

func (x *DeleteDocumentCategoryResponse) Reset()

func (*DeleteDocumentCategoryResponse) String

func (*DeleteDocumentCategoryResponse) Validate

func (m *DeleteDocumentCategoryResponse) Validate() error

Validate checks the field values on DeleteDocumentCategoryResponse 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 (*DeleteDocumentCategoryResponse) ValidateAll

func (m *DeleteDocumentCategoryResponse) ValidateAll() error

ValidateAll checks the field values on DeleteDocumentCategoryResponse 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 DeleteDocumentCategoryResponseMultiError, or nil if none found.

type DeleteDocumentCategoryResponseMultiError

type DeleteDocumentCategoryResponseMultiError []error

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

func (DeleteDocumentCategoryResponseMultiError) AllErrors

AllErrors returns a list of validation violation errors.

func (DeleteDocumentCategoryResponseMultiError) Error

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

type DeleteDocumentCategoryResponseValidationError

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

DeleteDocumentCategoryResponseValidationError is the validation error returned by DeleteDocumentCategoryResponse.Validate if the designated constraints aren't met.

func (DeleteDocumentCategoryResponseValidationError) Cause

Cause function returns cause value.

func (DeleteDocumentCategoryResponseValidationError) Error

Error satisfies the builtin error interface

func (DeleteDocumentCategoryResponseValidationError) ErrorName

ErrorName returns error name.

func (DeleteDocumentCategoryResponseValidationError) Field

Field function returns field value.

func (DeleteDocumentCategoryResponseValidationError) Key

Key function returns key value.

func (DeleteDocumentCategoryResponseValidationError) Reason

Reason function returns reason value.

type DeleteDocumentCommentRequest

type DeleteDocumentCommentRequest struct {
	CommentId uint64 `protobuf:"varint,1,opt,name=comment_id,json=commentId,proto3" json:"comment_id,omitempty"`
	// contains filtered or unexported fields
}

func (*DeleteDocumentCommentRequest) Descriptor deprecated

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

Deprecated: Use DeleteDocumentCommentRequest.ProtoReflect.Descriptor instead.

func (*DeleteDocumentCommentRequest) GetCommentId

func (x *DeleteDocumentCommentRequest) GetCommentId() uint64

func (*DeleteDocumentCommentRequest) ProtoMessage

func (*DeleteDocumentCommentRequest) ProtoMessage()

func (*DeleteDocumentCommentRequest) ProtoReflect

func (*DeleteDocumentCommentRequest) Reset

func (x *DeleteDocumentCommentRequest) Reset()

func (*DeleteDocumentCommentRequest) String

func (*DeleteDocumentCommentRequest) Validate

func (m *DeleteDocumentCommentRequest) Validate() error

Validate checks the field values on DeleteDocumentCommentRequest 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 (*DeleteDocumentCommentRequest) ValidateAll

func (m *DeleteDocumentCommentRequest) ValidateAll() error

ValidateAll checks the field values on DeleteDocumentCommentRequest 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 DeleteDocumentCommentRequestMultiError, or nil if none found.

type DeleteDocumentCommentRequestMultiError

type DeleteDocumentCommentRequestMultiError []error

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

func (DeleteDocumentCommentRequestMultiError) AllErrors

AllErrors returns a list of validation violation errors.

func (DeleteDocumentCommentRequestMultiError) Error

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

type DeleteDocumentCommentRequestValidationError

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

DeleteDocumentCommentRequestValidationError is the validation error returned by DeleteDocumentCommentRequest.Validate if the designated constraints aren't met.

func (DeleteDocumentCommentRequestValidationError) Cause

Cause function returns cause value.

func (DeleteDocumentCommentRequestValidationError) Error

Error satisfies the builtin error interface

func (DeleteDocumentCommentRequestValidationError) ErrorName

ErrorName returns error name.

func (DeleteDocumentCommentRequestValidationError) Field

Field function returns field value.

func (DeleteDocumentCommentRequestValidationError) Key

Key function returns key value.

func (DeleteDocumentCommentRequestValidationError) Reason

Reason function returns reason value.

type DeleteDocumentCommentResponse

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

func (*DeleteDocumentCommentResponse) Descriptor deprecated

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

Deprecated: Use DeleteDocumentCommentResponse.ProtoReflect.Descriptor instead.

func (*DeleteDocumentCommentResponse) ProtoMessage

func (*DeleteDocumentCommentResponse) ProtoMessage()

func (*DeleteDocumentCommentResponse) ProtoReflect

func (*DeleteDocumentCommentResponse) Reset

func (x *DeleteDocumentCommentResponse) Reset()

func (*DeleteDocumentCommentResponse) String

func (*DeleteDocumentCommentResponse) Validate

func (m *DeleteDocumentCommentResponse) Validate() error

Validate checks the field values on DeleteDocumentCommentResponse 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 (*DeleteDocumentCommentResponse) ValidateAll

func (m *DeleteDocumentCommentResponse) ValidateAll() error

ValidateAll checks the field values on DeleteDocumentCommentResponse 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 DeleteDocumentCommentResponseMultiError, or nil if none found.

type DeleteDocumentCommentResponseMultiError

type DeleteDocumentCommentResponseMultiError []error

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

func (DeleteDocumentCommentResponseMultiError) AllErrors

AllErrors returns a list of validation violation errors.

func (DeleteDocumentCommentResponseMultiError) Error

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

type DeleteDocumentCommentResponseValidationError

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

DeleteDocumentCommentResponseValidationError is the validation error returned by DeleteDocumentCommentResponse.Validate if the designated constraints aren't met.

func (DeleteDocumentCommentResponseValidationError) Cause

Cause function returns cause value.

func (DeleteDocumentCommentResponseValidationError) Error

Error satisfies the builtin error interface

func (DeleteDocumentCommentResponseValidationError) ErrorName

ErrorName returns error name.

func (DeleteDocumentCommentResponseValidationError) Field

Field function returns field value.

func (DeleteDocumentCommentResponseValidationError) Key

Key function returns key value.

func (DeleteDocumentCommentResponseValidationError) Reason

Reason function returns reason value.

type DeleteDocumentRequest

type DeleteDocumentRequest struct {
	DocumentId uint64 `protobuf:"varint,1,opt,name=document_id,json=documentId,proto3" json:"document_id,omitempty" alias:"id"` // @gotags: alias:"id"
	// contains filtered or unexported fields
}

func (*DeleteDocumentRequest) Descriptor deprecated

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

Deprecated: Use DeleteDocumentRequest.ProtoReflect.Descriptor instead.

func (*DeleteDocumentRequest) GetDocumentId

func (x *DeleteDocumentRequest) GetDocumentId() uint64

func (*DeleteDocumentRequest) ProtoMessage

func (*DeleteDocumentRequest) ProtoMessage()

func (*DeleteDocumentRequest) ProtoReflect

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

func (*DeleteDocumentRequest) Reset

func (x *DeleteDocumentRequest) Reset()

func (*DeleteDocumentRequest) String

func (x *DeleteDocumentRequest) String() string

func (*DeleteDocumentRequest) Validate

func (m *DeleteDocumentRequest) Validate() error

Validate checks the field values on DeleteDocumentRequest 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 (*DeleteDocumentRequest) ValidateAll

func (m *DeleteDocumentRequest) ValidateAll() error

ValidateAll checks the field values on DeleteDocumentRequest 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 DeleteDocumentRequestMultiError, or nil if none found.

type DeleteDocumentRequestMultiError

type DeleteDocumentRequestMultiError []error

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

func (DeleteDocumentRequestMultiError) AllErrors

func (m DeleteDocumentRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (DeleteDocumentRequestMultiError) Error

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

type DeleteDocumentRequestValidationError

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

DeleteDocumentRequestValidationError is the validation error returned by DeleteDocumentRequest.Validate if the designated constraints aren't met.

func (DeleteDocumentRequestValidationError) Cause

Cause function returns cause value.

func (DeleteDocumentRequestValidationError) Error

Error satisfies the builtin error interface

func (DeleteDocumentRequestValidationError) ErrorName

ErrorName returns error name.

func (DeleteDocumentRequestValidationError) Field

Field function returns field value.

func (DeleteDocumentRequestValidationError) Key

Key function returns key value.

func (DeleteDocumentRequestValidationError) Reason

Reason function returns reason value.

type DeleteDocumentResponse

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

func (*DeleteDocumentResponse) Descriptor deprecated

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

Deprecated: Use DeleteDocumentResponse.ProtoReflect.Descriptor instead.

func (*DeleteDocumentResponse) ProtoMessage

func (*DeleteDocumentResponse) ProtoMessage()

func (*DeleteDocumentResponse) ProtoReflect

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

func (*DeleteDocumentResponse) Reset

func (x *DeleteDocumentResponse) Reset()

func (*DeleteDocumentResponse) String

func (x *DeleteDocumentResponse) String() string

func (*DeleteDocumentResponse) Validate

func (m *DeleteDocumentResponse) Validate() error

Validate checks the field values on DeleteDocumentResponse 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 (*DeleteDocumentResponse) ValidateAll

func (m *DeleteDocumentResponse) ValidateAll() error

ValidateAll checks the field values on DeleteDocumentResponse 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 DeleteDocumentResponseMultiError, or nil if none found.

type DeleteDocumentResponseMultiError

type DeleteDocumentResponseMultiError []error

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

func (DeleteDocumentResponseMultiError) AllErrors

func (m DeleteDocumentResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (DeleteDocumentResponseMultiError) Error

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

type DeleteDocumentResponseValidationError

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

DeleteDocumentResponseValidationError is the validation error returned by DeleteDocumentResponse.Validate if the designated constraints aren't met.

func (DeleteDocumentResponseValidationError) Cause

Cause function returns cause value.

func (DeleteDocumentResponseValidationError) Error

Error satisfies the builtin error interface

func (DeleteDocumentResponseValidationError) ErrorName

ErrorName returns error name.

func (DeleteDocumentResponseValidationError) Field

Field function returns field value.

func (DeleteDocumentResponseValidationError) Key

Key function returns key value.

func (DeleteDocumentResponseValidationError) Reason

Reason function returns reason value.

type DeleteTemplateRequest

type DeleteTemplateRequest struct {
	Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

func (*DeleteTemplateRequest) Descriptor deprecated

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

Deprecated: Use DeleteTemplateRequest.ProtoReflect.Descriptor instead.

func (*DeleteTemplateRequest) GetId

func (x *DeleteTemplateRequest) GetId() uint64

func (*DeleteTemplateRequest) ProtoMessage

func (*DeleteTemplateRequest) ProtoMessage()

func (*DeleteTemplateRequest) ProtoReflect

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

func (*DeleteTemplateRequest) Reset

func (x *DeleteTemplateRequest) Reset()

func (*DeleteTemplateRequest) String

func (x *DeleteTemplateRequest) String() string

func (*DeleteTemplateRequest) Validate

func (m *DeleteTemplateRequest) Validate() error

Validate checks the field values on DeleteTemplateRequest 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 (*DeleteTemplateRequest) ValidateAll

func (m *DeleteTemplateRequest) ValidateAll() error

ValidateAll checks the field values on DeleteTemplateRequest 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 DeleteTemplateRequestMultiError, or nil if none found.

type DeleteTemplateRequestMultiError

type DeleteTemplateRequestMultiError []error

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

func (DeleteTemplateRequestMultiError) AllErrors

func (m DeleteTemplateRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (DeleteTemplateRequestMultiError) Error

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

type DeleteTemplateRequestValidationError

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

DeleteTemplateRequestValidationError is the validation error returned by DeleteTemplateRequest.Validate if the designated constraints aren't met.

func (DeleteTemplateRequestValidationError) Cause

Cause function returns cause value.

func (DeleteTemplateRequestValidationError) Error

Error satisfies the builtin error interface

func (DeleteTemplateRequestValidationError) ErrorName

ErrorName returns error name.

func (DeleteTemplateRequestValidationError) Field

Field function returns field value.

func (DeleteTemplateRequestValidationError) Key

Key function returns key value.

func (DeleteTemplateRequestValidationError) Reason

Reason function returns reason value.

type DeleteTemplateResponse

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

func (*DeleteTemplateResponse) Descriptor deprecated

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

Deprecated: Use DeleteTemplateResponse.ProtoReflect.Descriptor instead.

func (*DeleteTemplateResponse) ProtoMessage

func (*DeleteTemplateResponse) ProtoMessage()

func (*DeleteTemplateResponse) ProtoReflect

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

func (*DeleteTemplateResponse) Reset

func (x *DeleteTemplateResponse) Reset()

func (*DeleteTemplateResponse) String

func (x *DeleteTemplateResponse) String() string

func (*DeleteTemplateResponse) Validate

func (m *DeleteTemplateResponse) Validate() error

Validate checks the field values on DeleteTemplateResponse 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 (*DeleteTemplateResponse) ValidateAll

func (m *DeleteTemplateResponse) ValidateAll() error

ValidateAll checks the field values on DeleteTemplateResponse 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 DeleteTemplateResponseMultiError, or nil if none found.

type DeleteTemplateResponseMultiError

type DeleteTemplateResponseMultiError []error

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

func (DeleteTemplateResponseMultiError) AllErrors

func (m DeleteTemplateResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (DeleteTemplateResponseMultiError) Error

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

type DeleteTemplateResponseValidationError

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

DeleteTemplateResponseValidationError is the validation error returned by DeleteTemplateResponse.Validate if the designated constraints aren't met.

func (DeleteTemplateResponseValidationError) Cause

Cause function returns cause value.

func (DeleteTemplateResponseValidationError) Error

Error satisfies the builtin error interface

func (DeleteTemplateResponseValidationError) ErrorName

ErrorName returns error name.

func (DeleteTemplateResponseValidationError) Field

Field function returns field value.

func (DeleteTemplateResponseValidationError) Key

Key function returns key value.

func (DeleteTemplateResponseValidationError) Reason

Reason function returns reason value.

type DocStoreServiceClient

type DocStoreServiceClient interface {
	// @perm
	ListTemplates(ctx context.Context, in *ListTemplatesRequest, opts ...grpc.CallOption) (*ListTemplatesResponse, error)
	// @perm: Name=ListTemplates
	GetTemplate(ctx context.Context, in *GetTemplateRequest, opts ...grpc.CallOption) (*GetTemplateResponse, error)
	// @perm
	CreateTemplate(ctx context.Context, in *CreateTemplateRequest, opts ...grpc.CallOption) (*CreateTemplateResponse, error)
	// @perm: Name=CreateTemplate
	UpdateTemplate(ctx context.Context, in *UpdateTemplateRequest, opts ...grpc.CallOption) (*UpdateTemplateResponse, error)
	// @perm
	DeleteTemplate(ctx context.Context, in *DeleteTemplateRequest, opts ...grpc.CallOption) (*DeleteTemplateResponse, error)
	// @perm
	ListDocuments(ctx context.Context, in *ListDocumentsRequest, opts ...grpc.CallOption) (*ListDocumentsResponse, error)
	// @perm
	GetDocument(ctx context.Context, in *GetDocumentRequest, opts ...grpc.CallOption) (*GetDocumentResponse, error)
	// @perm
	CreateDocument(ctx context.Context, in *CreateDocumentRequest, opts ...grpc.CallOption) (*CreateDocumentResponse, error)
	// @perm: Attrs=Access/StringList:[]string{"Own", "Rank_Lower", "Rank_Same", "Rank_Higher"}
	UpdateDocument(ctx context.Context, in *UpdateDocumentRequest, opts ...grpc.CallOption) (*UpdateDocumentResponse, error)
	// @perm: Attrs=Access/StringList:[]string{"Own", "Rank_Lower", "Rank_Same", "Rank_Higher"}
	DeleteDocument(ctx context.Context, in *DeleteDocumentRequest, opts ...grpc.CallOption) (*DeleteDocumentResponse, error)
	// @perm: Name=GetDocument
	GetDocumentReferences(ctx context.Context, in *GetDocumentReferencesRequest, opts ...grpc.CallOption) (*GetDocumentReferencesResponse, error)
	// @perm: Name=GetDocument
	GetDocumentRelations(ctx context.Context, in *GetDocumentRelationsRequest, opts ...grpc.CallOption) (*GetDocumentRelationsResponse, error)
	// @perm
	AddDocumentReference(ctx context.Context, in *AddDocumentReferenceRequest, opts ...grpc.CallOption) (*AddDocumentReferenceResponse, error)
	// @perm: Name=AddDocumentReference
	RemoveDocumentReference(ctx context.Context, in *RemoveDocumentReferenceRequest, opts ...grpc.CallOption) (*RemoveDocumentReferenceResponse, error)
	// @perm
	AddDocumentRelation(ctx context.Context, in *AddDocumentRelationRequest, opts ...grpc.CallOption) (*AddDocumentRelationResponse, error)
	// @perm: Name=AddDocumentRelation
	RemoveDocumentRelation(ctx context.Context, in *RemoveDocumentRelationRequest, opts ...grpc.CallOption) (*RemoveDocumentRelationResponse, error)
	// @perm
	GetDocumentComments(ctx context.Context, in *GetDocumentCommentsRequest, opts ...grpc.CallOption) (*GetDocumentCommentsResponse, error)
	// @perm
	PostDocumentComment(ctx context.Context, in *PostDocumentCommentRequest, opts ...grpc.CallOption) (*PostDocumentCommentResponse, error)
	// @perm: Name=PostDocumentComment
	EditDocumentComment(ctx context.Context, in *EditDocumentCommentRequest, opts ...grpc.CallOption) (*EditDocumentCommentResponse, error)
	// @perm: Attrs=Access/StringList:[]string{"Own", "Rank_Lower", "Rank_Same", "Rank_Higher"}
	DeleteDocumentComment(ctx context.Context, in *DeleteDocumentCommentRequest, opts ...grpc.CallOption) (*DeleteDocumentCommentResponse, error)
	// @perm: Name=GetDocument
	GetDocumentAccess(ctx context.Context, in *GetDocumentAccessRequest, opts ...grpc.CallOption) (*GetDocumentAccessResponse, error)
	// @perm: Name=CreateDocument
	SetDocumentAccess(ctx context.Context, in *SetDocumentAccessRequest, opts ...grpc.CallOption) (*SetDocumentAccessResponse, error)
	// @perm
	ListUserDocuments(ctx context.Context, in *ListUserDocumentsRequest, opts ...grpc.CallOption) (*ListUserDocumentsResponse, error)
	// @perm
	ListDocumentCategories(ctx context.Context, in *ListDocumentCategoriesRequest, opts ...grpc.CallOption) (*ListDocumentCategoriesResponse, error)
	// @perm
	CreateDocumentCategory(ctx context.Context, in *CreateDocumentCategoryRequest, opts ...grpc.CallOption) (*CreateDocumentCategoryResponse, error)
	// @perm: Name=CreateDocumentCategory
	UpdateDocumentCategory(ctx context.Context, in *UpdateDocumentCategoryRequest, opts ...grpc.CallOption) (*UpdateDocumentCategoryResponse, error)
	// @perm
	DeleteDocumentCategory(ctx context.Context, in *DeleteDocumentCategoryRequest, opts ...grpc.CallOption) (*DeleteDocumentCategoryResponse, error)
}

DocStoreServiceClient is the client API for DocStoreService 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 DocStoreServiceServer

type DocStoreServiceServer interface {
	// @perm
	ListTemplates(context.Context, *ListTemplatesRequest) (*ListTemplatesResponse, error)
	// @perm: Name=ListTemplates
	GetTemplate(context.Context, *GetTemplateRequest) (*GetTemplateResponse, error)
	// @perm
	CreateTemplate(context.Context, *CreateTemplateRequest) (*CreateTemplateResponse, error)
	// @perm: Name=CreateTemplate
	UpdateTemplate(context.Context, *UpdateTemplateRequest) (*UpdateTemplateResponse, error)
	// @perm
	DeleteTemplate(context.Context, *DeleteTemplateRequest) (*DeleteTemplateResponse, error)
	// @perm
	ListDocuments(context.Context, *ListDocumentsRequest) (*ListDocumentsResponse, error)
	// @perm
	GetDocument(context.Context, *GetDocumentRequest) (*GetDocumentResponse, error)
	// @perm
	CreateDocument(context.Context, *CreateDocumentRequest) (*CreateDocumentResponse, error)
	// @perm: Attrs=Access/StringList:[]string{"Own", "Rank_Lower", "Rank_Same", "Rank_Higher"}
	UpdateDocument(context.Context, *UpdateDocumentRequest) (*UpdateDocumentResponse, error)
	// @perm: Attrs=Access/StringList:[]string{"Own", "Rank_Lower", "Rank_Same", "Rank_Higher"}
	DeleteDocument(context.Context, *DeleteDocumentRequest) (*DeleteDocumentResponse, error)
	// @perm: Name=GetDocument
	GetDocumentReferences(context.Context, *GetDocumentReferencesRequest) (*GetDocumentReferencesResponse, error)
	// @perm: Name=GetDocument
	GetDocumentRelations(context.Context, *GetDocumentRelationsRequest) (*GetDocumentRelationsResponse, error)
	// @perm
	AddDocumentReference(context.Context, *AddDocumentReferenceRequest) (*AddDocumentReferenceResponse, error)
	// @perm: Name=AddDocumentReference
	RemoveDocumentReference(context.Context, *RemoveDocumentReferenceRequest) (*RemoveDocumentReferenceResponse, error)
	// @perm
	AddDocumentRelation(context.Context, *AddDocumentRelationRequest) (*AddDocumentRelationResponse, error)
	// @perm: Name=AddDocumentRelation
	RemoveDocumentRelation(context.Context, *RemoveDocumentRelationRequest) (*RemoveDocumentRelationResponse, error)
	// @perm
	GetDocumentComments(context.Context, *GetDocumentCommentsRequest) (*GetDocumentCommentsResponse, error)
	// @perm
	PostDocumentComment(context.Context, *PostDocumentCommentRequest) (*PostDocumentCommentResponse, error)
	// @perm: Name=PostDocumentComment
	EditDocumentComment(context.Context, *EditDocumentCommentRequest) (*EditDocumentCommentResponse, error)
	// @perm: Attrs=Access/StringList:[]string{"Own", "Rank_Lower", "Rank_Same", "Rank_Higher"}
	DeleteDocumentComment(context.Context, *DeleteDocumentCommentRequest) (*DeleteDocumentCommentResponse, error)
	// @perm: Name=GetDocument
	GetDocumentAccess(context.Context, *GetDocumentAccessRequest) (*GetDocumentAccessResponse, error)
	// @perm: Name=CreateDocument
	SetDocumentAccess(context.Context, *SetDocumentAccessRequest) (*SetDocumentAccessResponse, error)
	// @perm
	ListUserDocuments(context.Context, *ListUserDocumentsRequest) (*ListUserDocumentsResponse, error)
	// @perm
	ListDocumentCategories(context.Context, *ListDocumentCategoriesRequest) (*ListDocumentCategoriesResponse, error)
	// @perm
	CreateDocumentCategory(context.Context, *CreateDocumentCategoryRequest) (*CreateDocumentCategoryResponse, error)
	// @perm: Name=CreateDocumentCategory
	UpdateDocumentCategory(context.Context, *UpdateDocumentCategoryRequest) (*UpdateDocumentCategoryResponse, error)
	// @perm
	DeleteDocumentCategory(context.Context, *DeleteDocumentCategoryRequest) (*DeleteDocumentCategoryResponse, error)
	// contains filtered or unexported methods
}

DocStoreServiceServer is the server API for DocStoreService service. All implementations must embed UnimplementedDocStoreServiceServer for forward compatibility

type EditDocumentCommentRequest

type EditDocumentCommentRequest struct {
	Comment *documents.DocumentComment `protobuf:"bytes,1,opt,name=comment,proto3" json:"comment,omitempty"`
	// contains filtered or unexported fields
}

func (*EditDocumentCommentRequest) Descriptor deprecated

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

Deprecated: Use EditDocumentCommentRequest.ProtoReflect.Descriptor instead.

func (*EditDocumentCommentRequest) GetComment

func (*EditDocumentCommentRequest) ProtoMessage

func (*EditDocumentCommentRequest) ProtoMessage()

func (*EditDocumentCommentRequest) ProtoReflect

func (*EditDocumentCommentRequest) Reset

func (x *EditDocumentCommentRequest) Reset()

func (*EditDocumentCommentRequest) String

func (x *EditDocumentCommentRequest) String() string

func (*EditDocumentCommentRequest) Validate

func (m *EditDocumentCommentRequest) Validate() error

Validate checks the field values on EditDocumentCommentRequest 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 (*EditDocumentCommentRequest) ValidateAll

func (m *EditDocumentCommentRequest) ValidateAll() error

ValidateAll checks the field values on EditDocumentCommentRequest 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 EditDocumentCommentRequestMultiError, or nil if none found.

type EditDocumentCommentRequestMultiError

type EditDocumentCommentRequestMultiError []error

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

func (EditDocumentCommentRequestMultiError) AllErrors

AllErrors returns a list of validation violation errors.

func (EditDocumentCommentRequestMultiError) Error

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

type EditDocumentCommentRequestValidationError

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

EditDocumentCommentRequestValidationError is the validation error returned by EditDocumentCommentRequest.Validate if the designated constraints aren't met.

func (EditDocumentCommentRequestValidationError) Cause

Cause function returns cause value.

func (EditDocumentCommentRequestValidationError) Error

Error satisfies the builtin error interface

func (EditDocumentCommentRequestValidationError) ErrorName

ErrorName returns error name.

func (EditDocumentCommentRequestValidationError) Field

Field function returns field value.

func (EditDocumentCommentRequestValidationError) Key

Key function returns key value.

func (EditDocumentCommentRequestValidationError) Reason

Reason function returns reason value.

type EditDocumentCommentResponse

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

func (*EditDocumentCommentResponse) Descriptor deprecated

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

Deprecated: Use EditDocumentCommentResponse.ProtoReflect.Descriptor instead.

func (*EditDocumentCommentResponse) ProtoMessage

func (*EditDocumentCommentResponse) ProtoMessage()

func (*EditDocumentCommentResponse) ProtoReflect

func (*EditDocumentCommentResponse) Reset

func (x *EditDocumentCommentResponse) Reset()

func (*EditDocumentCommentResponse) String

func (x *EditDocumentCommentResponse) String() string

func (*EditDocumentCommentResponse) Validate

func (m *EditDocumentCommentResponse) Validate() error

Validate checks the field values on EditDocumentCommentResponse 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 (*EditDocumentCommentResponse) ValidateAll

func (m *EditDocumentCommentResponse) ValidateAll() error

ValidateAll checks the field values on EditDocumentCommentResponse 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 EditDocumentCommentResponseMultiError, or nil if none found.

type EditDocumentCommentResponseMultiError

type EditDocumentCommentResponseMultiError []error

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

func (EditDocumentCommentResponseMultiError) AllErrors

AllErrors returns a list of validation violation errors.

func (EditDocumentCommentResponseMultiError) Error

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

type EditDocumentCommentResponseValidationError

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

EditDocumentCommentResponseValidationError is the validation error returned by EditDocumentCommentResponse.Validate if the designated constraints aren't met.

func (EditDocumentCommentResponseValidationError) Cause

Cause function returns cause value.

func (EditDocumentCommentResponseValidationError) Error

Error satisfies the builtin error interface

func (EditDocumentCommentResponseValidationError) ErrorName

ErrorName returns error name.

func (EditDocumentCommentResponseValidationError) Field

Field function returns field value.

func (EditDocumentCommentResponseValidationError) Key

Key function returns key value.

func (EditDocumentCommentResponseValidationError) Reason

Reason function returns reason value.

type GetDocumentAccessRequest

type GetDocumentAccessRequest struct {
	DocumentId uint64 `protobuf:"varint,1,opt,name=document_id,json=documentId,proto3" json:"document_id,omitempty"`
	// contains filtered or unexported fields
}

Access =================================================================

func (*GetDocumentAccessRequest) Descriptor deprecated

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

Deprecated: Use GetDocumentAccessRequest.ProtoReflect.Descriptor instead.

func (*GetDocumentAccessRequest) GetDocumentId

func (x *GetDocumentAccessRequest) GetDocumentId() uint64

func (*GetDocumentAccessRequest) ProtoMessage

func (*GetDocumentAccessRequest) ProtoMessage()

func (*GetDocumentAccessRequest) ProtoReflect

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

func (*GetDocumentAccessRequest) Reset

func (x *GetDocumentAccessRequest) Reset()

func (*GetDocumentAccessRequest) String

func (x *GetDocumentAccessRequest) String() string

func (*GetDocumentAccessRequest) Validate

func (m *GetDocumentAccessRequest) Validate() error

Validate checks the field values on GetDocumentAccessRequest 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 (*GetDocumentAccessRequest) ValidateAll

func (m *GetDocumentAccessRequest) ValidateAll() error

ValidateAll checks the field values on GetDocumentAccessRequest 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 GetDocumentAccessRequestMultiError, or nil if none found.

type GetDocumentAccessRequestMultiError

type GetDocumentAccessRequestMultiError []error

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

func (GetDocumentAccessRequestMultiError) AllErrors

func (m GetDocumentAccessRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (GetDocumentAccessRequestMultiError) Error

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

type GetDocumentAccessRequestValidationError

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

GetDocumentAccessRequestValidationError is the validation error returned by GetDocumentAccessRequest.Validate if the designated constraints aren't met.

func (GetDocumentAccessRequestValidationError) Cause

Cause function returns cause value.

func (GetDocumentAccessRequestValidationError) Error

Error satisfies the builtin error interface

func (GetDocumentAccessRequestValidationError) ErrorName

ErrorName returns error name.

func (GetDocumentAccessRequestValidationError) Field

Field function returns field value.

func (GetDocumentAccessRequestValidationError) Key

Key function returns key value.

func (GetDocumentAccessRequestValidationError) Reason

Reason function returns reason value.

type GetDocumentAccessResponse

type GetDocumentAccessResponse struct {
	Access *documents.DocumentAccess `protobuf:"bytes,1,opt,name=access,proto3" json:"access,omitempty"`
	// contains filtered or unexported fields
}

func (*GetDocumentAccessResponse) Descriptor deprecated

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

Deprecated: Use GetDocumentAccessResponse.ProtoReflect.Descriptor instead.

func (*GetDocumentAccessResponse) GetAccess

func (*GetDocumentAccessResponse) ProtoMessage

func (*GetDocumentAccessResponse) ProtoMessage()

func (*GetDocumentAccessResponse) ProtoReflect

func (*GetDocumentAccessResponse) Reset

func (x *GetDocumentAccessResponse) Reset()

func (*GetDocumentAccessResponse) String

func (x *GetDocumentAccessResponse) String() string

func (*GetDocumentAccessResponse) Validate

func (m *GetDocumentAccessResponse) Validate() error

Validate checks the field values on GetDocumentAccessResponse 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 (*GetDocumentAccessResponse) ValidateAll

func (m *GetDocumentAccessResponse) ValidateAll() error

ValidateAll checks the field values on GetDocumentAccessResponse 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 GetDocumentAccessResponseMultiError, or nil if none found.

type GetDocumentAccessResponseMultiError

type GetDocumentAccessResponseMultiError []error

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

func (GetDocumentAccessResponseMultiError) AllErrors

AllErrors returns a list of validation violation errors.

func (GetDocumentAccessResponseMultiError) Error

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

type GetDocumentAccessResponseValidationError

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

GetDocumentAccessResponseValidationError is the validation error returned by GetDocumentAccessResponse.Validate if the designated constraints aren't met.

func (GetDocumentAccessResponseValidationError) Cause

Cause function returns cause value.

func (GetDocumentAccessResponseValidationError) Error

Error satisfies the builtin error interface

func (GetDocumentAccessResponseValidationError) ErrorName

ErrorName returns error name.

func (GetDocumentAccessResponseValidationError) Field

Field function returns field value.

func (GetDocumentAccessResponseValidationError) Key

Key function returns key value.

func (GetDocumentAccessResponseValidationError) Reason

Reason function returns reason value.

type GetDocumentCommentsRequest

type GetDocumentCommentsRequest struct {
	Pagination *database.PaginationRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"`
	DocumentId uint64                      `protobuf:"varint,2,opt,name=document_id,json=documentId,proto3" json:"document_id,omitempty"`
	// contains filtered or unexported fields
}

Comments ===============================================================

func (*GetDocumentCommentsRequest) Descriptor deprecated

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

Deprecated: Use GetDocumentCommentsRequest.ProtoReflect.Descriptor instead.

func (*GetDocumentCommentsRequest) GetDocumentId

func (x *GetDocumentCommentsRequest) GetDocumentId() uint64

func (*GetDocumentCommentsRequest) GetPagination

func (*GetDocumentCommentsRequest) ProtoMessage

func (*GetDocumentCommentsRequest) ProtoMessage()

func (*GetDocumentCommentsRequest) ProtoReflect

func (*GetDocumentCommentsRequest) Reset

func (x *GetDocumentCommentsRequest) Reset()

func (*GetDocumentCommentsRequest) String

func (x *GetDocumentCommentsRequest) String() string

func (*GetDocumentCommentsRequest) Validate

func (m *GetDocumentCommentsRequest) Validate() error

Validate checks the field values on GetDocumentCommentsRequest 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 (*GetDocumentCommentsRequest) ValidateAll

func (m *GetDocumentCommentsRequest) ValidateAll() error

ValidateAll checks the field values on GetDocumentCommentsRequest 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 GetDocumentCommentsRequestMultiError, or nil if none found.

type GetDocumentCommentsRequestMultiError

type GetDocumentCommentsRequestMultiError []error

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

func (GetDocumentCommentsRequestMultiError) AllErrors

AllErrors returns a list of validation violation errors.

func (GetDocumentCommentsRequestMultiError) Error

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

type GetDocumentCommentsRequestValidationError

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

GetDocumentCommentsRequestValidationError is the validation error returned by GetDocumentCommentsRequest.Validate if the designated constraints aren't met.

func (GetDocumentCommentsRequestValidationError) Cause

Cause function returns cause value.

func (GetDocumentCommentsRequestValidationError) Error

Error satisfies the builtin error interface

func (GetDocumentCommentsRequestValidationError) ErrorName

ErrorName returns error name.

func (GetDocumentCommentsRequestValidationError) Field

Field function returns field value.

func (GetDocumentCommentsRequestValidationError) Key

Key function returns key value.

func (GetDocumentCommentsRequestValidationError) Reason

Reason function returns reason value.

type GetDocumentCommentsResponse

type GetDocumentCommentsResponse struct {
	Pagination *database.PaginationResponse `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"`
	Comments   []*documents.DocumentComment `protobuf:"bytes,2,rep,name=comments,proto3" json:"comments,omitempty"`
	// contains filtered or unexported fields
}

func (*GetDocumentCommentsResponse) Descriptor deprecated

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

Deprecated: Use GetDocumentCommentsResponse.ProtoReflect.Descriptor instead.

func (*GetDocumentCommentsResponse) GetComments

func (*GetDocumentCommentsResponse) GetPagination

func (*GetDocumentCommentsResponse) ProtoMessage

func (*GetDocumentCommentsResponse) ProtoMessage()

func (*GetDocumentCommentsResponse) ProtoReflect

func (*GetDocumentCommentsResponse) Reset

func (x *GetDocumentCommentsResponse) Reset()

func (*GetDocumentCommentsResponse) String

func (x *GetDocumentCommentsResponse) String() string

func (*GetDocumentCommentsResponse) Validate

func (m *GetDocumentCommentsResponse) Validate() error

Validate checks the field values on GetDocumentCommentsResponse 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 (*GetDocumentCommentsResponse) ValidateAll

func (m *GetDocumentCommentsResponse) ValidateAll() error

ValidateAll checks the field values on GetDocumentCommentsResponse 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 GetDocumentCommentsResponseMultiError, or nil if none found.

type GetDocumentCommentsResponseMultiError

type GetDocumentCommentsResponseMultiError []error

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

func (GetDocumentCommentsResponseMultiError) AllErrors

AllErrors returns a list of validation violation errors.

func (GetDocumentCommentsResponseMultiError) Error

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

type GetDocumentCommentsResponseValidationError

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

GetDocumentCommentsResponseValidationError is the validation error returned by GetDocumentCommentsResponse.Validate if the designated constraints aren't met.

func (GetDocumentCommentsResponseValidationError) Cause

Cause function returns cause value.

func (GetDocumentCommentsResponseValidationError) Error

Error satisfies the builtin error interface

func (GetDocumentCommentsResponseValidationError) ErrorName

ErrorName returns error name.

func (GetDocumentCommentsResponseValidationError) Field

Field function returns field value.

func (GetDocumentCommentsResponseValidationError) Key

Key function returns key value.

func (GetDocumentCommentsResponseValidationError) Reason

Reason function returns reason value.

type GetDocumentReferencesRequest

type GetDocumentReferencesRequest struct {
	DocumentId uint64 `protobuf:"varint,1,opt,name=document_id,json=documentId,proto3" json:"document_id,omitempty"`
	// contains filtered or unexported fields
}

func (*GetDocumentReferencesRequest) Descriptor deprecated

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

Deprecated: Use GetDocumentReferencesRequest.ProtoReflect.Descriptor instead.

func (*GetDocumentReferencesRequest) GetDocumentId

func (x *GetDocumentReferencesRequest) GetDocumentId() uint64

func (*GetDocumentReferencesRequest) ProtoMessage

func (*GetDocumentReferencesRequest) ProtoMessage()

func (*GetDocumentReferencesRequest) ProtoReflect

func (*GetDocumentReferencesRequest) Reset

func (x *GetDocumentReferencesRequest) Reset()

func (*GetDocumentReferencesRequest) String

func (*GetDocumentReferencesRequest) Validate

func (m *GetDocumentReferencesRequest) Validate() error

Validate checks the field values on GetDocumentReferencesRequest 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 (*GetDocumentReferencesRequest) ValidateAll

func (m *GetDocumentReferencesRequest) ValidateAll() error

ValidateAll checks the field values on GetDocumentReferencesRequest 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 GetDocumentReferencesRequestMultiError, or nil if none found.

type GetDocumentReferencesRequestMultiError

type GetDocumentReferencesRequestMultiError []error

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

func (GetDocumentReferencesRequestMultiError) AllErrors

AllErrors returns a list of validation violation errors.

func (GetDocumentReferencesRequestMultiError) Error

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

type GetDocumentReferencesRequestValidationError

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

GetDocumentReferencesRequestValidationError is the validation error returned by GetDocumentReferencesRequest.Validate if the designated constraints aren't met.

func (GetDocumentReferencesRequestValidationError) Cause

Cause function returns cause value.

func (GetDocumentReferencesRequestValidationError) Error

Error satisfies the builtin error interface

func (GetDocumentReferencesRequestValidationError) ErrorName

ErrorName returns error name.

func (GetDocumentReferencesRequestValidationError) Field

Field function returns field value.

func (GetDocumentReferencesRequestValidationError) Key

Key function returns key value.

func (GetDocumentReferencesRequestValidationError) Reason

Reason function returns reason value.

type GetDocumentReferencesResponse

type GetDocumentReferencesResponse struct {
	References []*documents.DocumentReference `protobuf:"bytes,1,rep,name=references,proto3" json:"references,omitempty" alias:"reference"` // @gotags: alias:"reference"
	// contains filtered or unexported fields
}

func (*GetDocumentReferencesResponse) Descriptor deprecated

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

Deprecated: Use GetDocumentReferencesResponse.ProtoReflect.Descriptor instead.

func (*GetDocumentReferencesResponse) GetReferences

func (*GetDocumentReferencesResponse) ProtoMessage

func (*GetDocumentReferencesResponse) ProtoMessage()

func (*GetDocumentReferencesResponse) ProtoReflect

func (*GetDocumentReferencesResponse) Reset

func (x *GetDocumentReferencesResponse) Reset()

func (*GetDocumentReferencesResponse) String

func (*GetDocumentReferencesResponse) Validate

func (m *GetDocumentReferencesResponse) Validate() error

Validate checks the field values on GetDocumentReferencesResponse 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 (*GetDocumentReferencesResponse) ValidateAll

func (m *GetDocumentReferencesResponse) ValidateAll() error

ValidateAll checks the field values on GetDocumentReferencesResponse 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 GetDocumentReferencesResponseMultiError, or nil if none found.

type GetDocumentReferencesResponseMultiError

type GetDocumentReferencesResponseMultiError []error

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

func (GetDocumentReferencesResponseMultiError) AllErrors

AllErrors returns a list of validation violation errors.

func (GetDocumentReferencesResponseMultiError) Error

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

type GetDocumentReferencesResponseValidationError

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

GetDocumentReferencesResponseValidationError is the validation error returned by GetDocumentReferencesResponse.Validate if the designated constraints aren't met.

func (GetDocumentReferencesResponseValidationError) Cause

Cause function returns cause value.

func (GetDocumentReferencesResponseValidationError) Error

Error satisfies the builtin error interface

func (GetDocumentReferencesResponseValidationError) ErrorName

ErrorName returns error name.

func (GetDocumentReferencesResponseValidationError) Field

Field function returns field value.

func (GetDocumentReferencesResponseValidationError) Key

Key function returns key value.

func (GetDocumentReferencesResponseValidationError) Reason

Reason function returns reason value.

type GetDocumentRelationsRequest

type GetDocumentRelationsRequest struct {
	DocumentId uint64 `protobuf:"varint,1,opt,name=document_id,json=documentId,proto3" json:"document_id,omitempty"`
	// contains filtered or unexported fields
}

func (*GetDocumentRelationsRequest) Descriptor deprecated

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

Deprecated: Use GetDocumentRelationsRequest.ProtoReflect.Descriptor instead.

func (*GetDocumentRelationsRequest) GetDocumentId

func (x *GetDocumentRelationsRequest) GetDocumentId() uint64

func (*GetDocumentRelationsRequest) ProtoMessage

func (*GetDocumentRelationsRequest) ProtoMessage()

func (*GetDocumentRelationsRequest) ProtoReflect

func (*GetDocumentRelationsRequest) Reset

func (x *GetDocumentRelationsRequest) Reset()

func (*GetDocumentRelationsRequest) String

func (x *GetDocumentRelationsRequest) String() string

func (*GetDocumentRelationsRequest) Validate

func (m *GetDocumentRelationsRequest) Validate() error

Validate checks the field values on GetDocumentRelationsRequest 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 (*GetDocumentRelationsRequest) ValidateAll

func (m *GetDocumentRelationsRequest) ValidateAll() error

ValidateAll checks the field values on GetDocumentRelationsRequest 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 GetDocumentRelationsRequestMultiError, or nil if none found.

type GetDocumentRelationsRequestMultiError

type GetDocumentRelationsRequestMultiError []error

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

func (GetDocumentRelationsRequestMultiError) AllErrors

AllErrors returns a list of validation violation errors.

func (GetDocumentRelationsRequestMultiError) Error

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

type GetDocumentRelationsRequestValidationError

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

GetDocumentRelationsRequestValidationError is the validation error returned by GetDocumentRelationsRequest.Validate if the designated constraints aren't met.

func (GetDocumentRelationsRequestValidationError) Cause

Cause function returns cause value.

func (GetDocumentRelationsRequestValidationError) Error

Error satisfies the builtin error interface

func (GetDocumentRelationsRequestValidationError) ErrorName

ErrorName returns error name.

func (GetDocumentRelationsRequestValidationError) Field

Field function returns field value.

func (GetDocumentRelationsRequestValidationError) Key

Key function returns key value.

func (GetDocumentRelationsRequestValidationError) Reason

Reason function returns reason value.

type GetDocumentRelationsResponse

type GetDocumentRelationsResponse struct {
	Relations []*documents.DocumentRelation `protobuf:"bytes,1,rep,name=relations,proto3" json:"relations,omitempty" alias:"relation"` // @gotags: alias:"relation"
	// contains filtered or unexported fields
}

func (*GetDocumentRelationsResponse) Descriptor deprecated

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

Deprecated: Use GetDocumentRelationsResponse.ProtoReflect.Descriptor instead.

func (*GetDocumentRelationsResponse) GetRelations

func (*GetDocumentRelationsResponse) ProtoMessage

func (*GetDocumentRelationsResponse) ProtoMessage()

func (*GetDocumentRelationsResponse) ProtoReflect

func (*GetDocumentRelationsResponse) Reset

func (x *GetDocumentRelationsResponse) Reset()

func (*GetDocumentRelationsResponse) String

func (*GetDocumentRelationsResponse) Validate

func (m *GetDocumentRelationsResponse) Validate() error

Validate checks the field values on GetDocumentRelationsResponse 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 (*GetDocumentRelationsResponse) ValidateAll

func (m *GetDocumentRelationsResponse) ValidateAll() error

ValidateAll checks the field values on GetDocumentRelationsResponse 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 GetDocumentRelationsResponseMultiError, or nil if none found.

type GetDocumentRelationsResponseMultiError

type GetDocumentRelationsResponseMultiError []error

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

func (GetDocumentRelationsResponseMultiError) AllErrors

AllErrors returns a list of validation violation errors.

func (GetDocumentRelationsResponseMultiError) Error

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

type GetDocumentRelationsResponseValidationError

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

GetDocumentRelationsResponseValidationError is the validation error returned by GetDocumentRelationsResponse.Validate if the designated constraints aren't met.

func (GetDocumentRelationsResponseValidationError) Cause

Cause function returns cause value.

func (GetDocumentRelationsResponseValidationError) Error

Error satisfies the builtin error interface

func (GetDocumentRelationsResponseValidationError) ErrorName

ErrorName returns error name.

func (GetDocumentRelationsResponseValidationError) Field

Field function returns field value.

func (GetDocumentRelationsResponseValidationError) Key

Key function returns key value.

func (GetDocumentRelationsResponseValidationError) Reason

Reason function returns reason value.

type GetDocumentRequest

type GetDocumentRequest struct {
	DocumentId uint64 `protobuf:"varint,1,opt,name=document_id,json=documentId,proto3" json:"document_id,omitempty"`
	// contains filtered or unexported fields
}

func (*GetDocumentRequest) Descriptor deprecated

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

Deprecated: Use GetDocumentRequest.ProtoReflect.Descriptor instead.

func (*GetDocumentRequest) GetDocumentId

func (x *GetDocumentRequest) GetDocumentId() uint64

func (*GetDocumentRequest) ProtoMessage

func (*GetDocumentRequest) ProtoMessage()

func (*GetDocumentRequest) ProtoReflect

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

func (*GetDocumentRequest) Reset

func (x *GetDocumentRequest) Reset()

func (*GetDocumentRequest) String

func (x *GetDocumentRequest) String() string

func (*GetDocumentRequest) Validate

func (m *GetDocumentRequest) Validate() error

Validate checks the field values on GetDocumentRequest 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 (*GetDocumentRequest) ValidateAll

func (m *GetDocumentRequest) ValidateAll() error

ValidateAll checks the field values on GetDocumentRequest 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 GetDocumentRequestMultiError, or nil if none found.

type GetDocumentRequestMultiError

type GetDocumentRequestMultiError []error

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

func (GetDocumentRequestMultiError) AllErrors

func (m GetDocumentRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (GetDocumentRequestMultiError) Error

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

type GetDocumentRequestValidationError

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

GetDocumentRequestValidationError is the validation error returned by GetDocumentRequest.Validate if the designated constraints aren't met.

func (GetDocumentRequestValidationError) Cause

Cause function returns cause value.

func (GetDocumentRequestValidationError) Error

Error satisfies the builtin error interface

func (GetDocumentRequestValidationError) ErrorName

ErrorName returns error name.

func (GetDocumentRequestValidationError) Field

Field function returns field value.

func (GetDocumentRequestValidationError) Key

Key function returns key value.

func (GetDocumentRequestValidationError) Reason

Reason function returns reason value.

type GetDocumentResponse

type GetDocumentResponse struct {
	Document *documents.Document       `protobuf:"bytes,1,opt,name=document,proto3" json:"document,omitempty"`
	Access   *documents.DocumentAccess `protobuf:"bytes,2,opt,name=access,proto3" json:"access,omitempty"`
	// contains filtered or unexported fields
}

func (*GetDocumentResponse) Descriptor deprecated

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

Deprecated: Use GetDocumentResponse.ProtoReflect.Descriptor instead.

func (*GetDocumentResponse) GetAccess

func (*GetDocumentResponse) GetDocument

func (x *GetDocumentResponse) GetDocument() *documents.Document

func (*GetDocumentResponse) ProtoMessage

func (*GetDocumentResponse) ProtoMessage()

func (*GetDocumentResponse) ProtoReflect

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

func (*GetDocumentResponse) Reset

func (x *GetDocumentResponse) Reset()

func (*GetDocumentResponse) String

func (x *GetDocumentResponse) String() string

func (*GetDocumentResponse) Validate

func (m *GetDocumentResponse) Validate() error

Validate checks the field values on GetDocumentResponse 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 (*GetDocumentResponse) ValidateAll

func (m *GetDocumentResponse) ValidateAll() error

ValidateAll checks the field values on GetDocumentResponse 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 GetDocumentResponseMultiError, or nil if none found.

type GetDocumentResponseMultiError

type GetDocumentResponseMultiError []error

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

func (GetDocumentResponseMultiError) AllErrors

func (m GetDocumentResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (GetDocumentResponseMultiError) Error

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

type GetDocumentResponseValidationError

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

GetDocumentResponseValidationError is the validation error returned by GetDocumentResponse.Validate if the designated constraints aren't met.

func (GetDocumentResponseValidationError) Cause

Cause function returns cause value.

func (GetDocumentResponseValidationError) Error

Error satisfies the builtin error interface

func (GetDocumentResponseValidationError) ErrorName

ErrorName returns error name.

func (GetDocumentResponseValidationError) Field

Field function returns field value.

func (GetDocumentResponseValidationError) Key

Key function returns key value.

func (GetDocumentResponseValidationError) Reason

Reason function returns reason value.

type GetTemplateRequest

type GetTemplateRequest struct {
	TemplateId uint64  `protobuf:"varint,1,opt,name=template_id,json=templateId,proto3" json:"template_id,omitempty"`
	Data       *string `protobuf:"bytes,2,opt,name=data,proto3,oneof" json:"data,omitempty"`
	Render     *bool   `protobuf:"varint,3,opt,name=render,proto3,oneof" json:"render,omitempty"`
	// contains filtered or unexported fields
}

func (*GetTemplateRequest) Descriptor deprecated

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

Deprecated: Use GetTemplateRequest.ProtoReflect.Descriptor instead.

func (*GetTemplateRequest) GetData

func (x *GetTemplateRequest) GetData() string

func (*GetTemplateRequest) GetRender

func (x *GetTemplateRequest) GetRender() bool

func (*GetTemplateRequest) GetTemplateId

func (x *GetTemplateRequest) GetTemplateId() uint64

func (*GetTemplateRequest) ProtoMessage

func (*GetTemplateRequest) ProtoMessage()

func (*GetTemplateRequest) ProtoReflect

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

func (*GetTemplateRequest) Reset

func (x *GetTemplateRequest) Reset()

func (*GetTemplateRequest) String

func (x *GetTemplateRequest) String() string

func (*GetTemplateRequest) Validate

func (m *GetTemplateRequest) Validate() error

Validate checks the field values on GetTemplateRequest 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 (*GetTemplateRequest) ValidateAll

func (m *GetTemplateRequest) ValidateAll() error

ValidateAll checks the field values on GetTemplateRequest 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 GetTemplateRequestMultiError, or nil if none found.

type GetTemplateRequestMultiError

type GetTemplateRequestMultiError []error

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

func (GetTemplateRequestMultiError) AllErrors

func (m GetTemplateRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (GetTemplateRequestMultiError) Error

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

type GetTemplateRequestValidationError

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

GetTemplateRequestValidationError is the validation error returned by GetTemplateRequest.Validate if the designated constraints aren't met.

func (GetTemplateRequestValidationError) Cause

Cause function returns cause value.

func (GetTemplateRequestValidationError) Error

Error satisfies the builtin error interface

func (GetTemplateRequestValidationError) ErrorName

ErrorName returns error name.

func (GetTemplateRequestValidationError) Field

Field function returns field value.

func (GetTemplateRequestValidationError) Key

Key function returns key value.

func (GetTemplateRequestValidationError) Reason

Reason function returns reason value.

type GetTemplateResponse

type GetTemplateResponse struct {
	Template *documents.Template `protobuf:"bytes,1,opt,name=template,proto3" json:"template,omitempty"`
	Rendered bool                `protobuf:"varint,2,opt,name=rendered,proto3" json:"rendered,omitempty"`
	// contains filtered or unexported fields
}

func (*GetTemplateResponse) Descriptor deprecated

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

Deprecated: Use GetTemplateResponse.ProtoReflect.Descriptor instead.

func (*GetTemplateResponse) GetRendered

func (x *GetTemplateResponse) GetRendered() bool

func (*GetTemplateResponse) GetTemplate

func (x *GetTemplateResponse) GetTemplate() *documents.Template

func (*GetTemplateResponse) ProtoMessage

func (*GetTemplateResponse) ProtoMessage()

func (*GetTemplateResponse) ProtoReflect

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

func (*GetTemplateResponse) Reset

func (x *GetTemplateResponse) Reset()

func (*GetTemplateResponse) String

func (x *GetTemplateResponse) String() string

func (*GetTemplateResponse) Validate

func (m *GetTemplateResponse) Validate() error

Validate checks the field values on GetTemplateResponse 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 (*GetTemplateResponse) ValidateAll

func (m *GetTemplateResponse) ValidateAll() error

ValidateAll checks the field values on GetTemplateResponse 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 GetTemplateResponseMultiError, or nil if none found.

type GetTemplateResponseMultiError

type GetTemplateResponseMultiError []error

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

func (GetTemplateResponseMultiError) AllErrors

func (m GetTemplateResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (GetTemplateResponseMultiError) Error

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

type GetTemplateResponseValidationError

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

GetTemplateResponseValidationError is the validation error returned by GetTemplateResponse.Validate if the designated constraints aren't met.

func (GetTemplateResponseValidationError) Cause

Cause function returns cause value.

func (GetTemplateResponseValidationError) Error

Error satisfies the builtin error interface

func (GetTemplateResponseValidationError) ErrorName

ErrorName returns error name.

func (GetTemplateResponseValidationError) Field

Field function returns field value.

func (GetTemplateResponseValidationError) Key

Key function returns key value.

func (GetTemplateResponseValidationError) Reason

Reason function returns reason value.

type ListDocumentCategoriesRequest

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

Categories

func (*ListDocumentCategoriesRequest) Descriptor deprecated

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

Deprecated: Use ListDocumentCategoriesRequest.ProtoReflect.Descriptor instead.

func (*ListDocumentCategoriesRequest) ProtoMessage

func (*ListDocumentCategoriesRequest) ProtoMessage()

func (*ListDocumentCategoriesRequest) ProtoReflect

func (*ListDocumentCategoriesRequest) Reset

func (x *ListDocumentCategoriesRequest) Reset()

func (*ListDocumentCategoriesRequest) String

func (*ListDocumentCategoriesRequest) Validate

func (m *ListDocumentCategoriesRequest) Validate() error

Validate checks the field values on ListDocumentCategoriesRequest 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 (*ListDocumentCategoriesRequest) ValidateAll

func (m *ListDocumentCategoriesRequest) ValidateAll() error

ValidateAll checks the field values on ListDocumentCategoriesRequest 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 ListDocumentCategoriesRequestMultiError, or nil if none found.

type ListDocumentCategoriesRequestMultiError

type ListDocumentCategoriesRequestMultiError []error

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

func (ListDocumentCategoriesRequestMultiError) AllErrors

AllErrors returns a list of validation violation errors.

func (ListDocumentCategoriesRequestMultiError) Error

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

type ListDocumentCategoriesRequestValidationError

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

ListDocumentCategoriesRequestValidationError is the validation error returned by ListDocumentCategoriesRequest.Validate if the designated constraints aren't met.

func (ListDocumentCategoriesRequestValidationError) Cause

Cause function returns cause value.

func (ListDocumentCategoriesRequestValidationError) Error

Error satisfies the builtin error interface

func (ListDocumentCategoriesRequestValidationError) ErrorName

ErrorName returns error name.

func (ListDocumentCategoriesRequestValidationError) Field

Field function returns field value.

func (ListDocumentCategoriesRequestValidationError) Key

Key function returns key value.

func (ListDocumentCategoriesRequestValidationError) Reason

Reason function returns reason value.

type ListDocumentCategoriesResponse

type ListDocumentCategoriesResponse struct {
	Category []*documents.DocumentCategory `protobuf:"bytes,1,rep,name=category,proto3" json:"category,omitempty"`
	// contains filtered or unexported fields
}

func (*ListDocumentCategoriesResponse) Descriptor deprecated

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

Deprecated: Use ListDocumentCategoriesResponse.ProtoReflect.Descriptor instead.

func (*ListDocumentCategoriesResponse) GetCategory

func (*ListDocumentCategoriesResponse) ProtoMessage

func (*ListDocumentCategoriesResponse) ProtoMessage()

func (*ListDocumentCategoriesResponse) ProtoReflect

func (*ListDocumentCategoriesResponse) Reset

func (x *ListDocumentCategoriesResponse) Reset()

func (*ListDocumentCategoriesResponse) String

func (*ListDocumentCategoriesResponse) Validate

func (m *ListDocumentCategoriesResponse) Validate() error

Validate checks the field values on ListDocumentCategoriesResponse 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 (*ListDocumentCategoriesResponse) ValidateAll

func (m *ListDocumentCategoriesResponse) ValidateAll() error

ValidateAll checks the field values on ListDocumentCategoriesResponse 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 ListDocumentCategoriesResponseMultiError, or nil if none found.

type ListDocumentCategoriesResponseMultiError

type ListDocumentCategoriesResponseMultiError []error

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

func (ListDocumentCategoriesResponseMultiError) AllErrors

AllErrors returns a list of validation violation errors.

func (ListDocumentCategoriesResponseMultiError) Error

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

type ListDocumentCategoriesResponseValidationError

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

ListDocumentCategoriesResponseValidationError is the validation error returned by ListDocumentCategoriesResponse.Validate if the designated constraints aren't met.

func (ListDocumentCategoriesResponseValidationError) Cause

Cause function returns cause value.

func (ListDocumentCategoriesResponseValidationError) Error

Error satisfies the builtin error interface

func (ListDocumentCategoriesResponseValidationError) ErrorName

ErrorName returns error name.

func (ListDocumentCategoriesResponseValidationError) Field

Field function returns field value.

func (ListDocumentCategoriesResponseValidationError) Key

Key function returns key value.

func (ListDocumentCategoriesResponseValidationError) Reason

Reason function returns reason value.

type ListDocumentsRequest

type ListDocumentsRequest struct {
	Pagination *database.PaginationRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"`
	OrderBy    []*database.OrderBy         `protobuf:"bytes,2,rep,name=orderBy,proto3" json:"orderBy,omitempty"`
	// Search param
	Search      *string              `protobuf:"bytes,3,opt,name=search,proto3,oneof" json:"search,omitempty"`
	CategoryIds []uint64             `protobuf:"varint,4,rep,packed,name=category_ids,json=categoryIds,proto3" json:"category_ids,omitempty"`
	CreatorIds  []int32              `protobuf:"varint,5,rep,packed,name=creator_ids,json=creatorIds,proto3" json:"creator_ids,omitempty"`
	From        *timestamp.Timestamp `protobuf:"bytes,6,opt,name=from,proto3,oneof" json:"from,omitempty"`
	To          *timestamp.Timestamp `protobuf:"bytes,7,opt,name=to,proto3,oneof" json:"to,omitempty"`
	// contains filtered or unexported fields
}

Documents ==================================================================

func (*ListDocumentsRequest) Descriptor deprecated

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

Deprecated: Use ListDocumentsRequest.ProtoReflect.Descriptor instead.

func (*ListDocumentsRequest) GetCategoryIds

func (x *ListDocumentsRequest) GetCategoryIds() []uint64

func (*ListDocumentsRequest) GetCreatorIds

func (x *ListDocumentsRequest) GetCreatorIds() []int32

func (*ListDocumentsRequest) GetFrom added in v0.6.0

func (*ListDocumentsRequest) GetOrderBy

func (x *ListDocumentsRequest) GetOrderBy() []*database.OrderBy

func (*ListDocumentsRequest) GetPagination

func (x *ListDocumentsRequest) GetPagination() *database.PaginationRequest

func (*ListDocumentsRequest) GetSearch

func (x *ListDocumentsRequest) GetSearch() string

func (*ListDocumentsRequest) GetTo added in v0.6.0

func (*ListDocumentsRequest) ProtoMessage

func (*ListDocumentsRequest) ProtoMessage()

func (*ListDocumentsRequest) ProtoReflect

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

func (*ListDocumentsRequest) Reset

func (x *ListDocumentsRequest) Reset()

func (*ListDocumentsRequest) String

func (x *ListDocumentsRequest) String() string

func (*ListDocumentsRequest) Validate

func (m *ListDocumentsRequest) Validate() error

Validate checks the field values on ListDocumentsRequest 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 (*ListDocumentsRequest) ValidateAll

func (m *ListDocumentsRequest) ValidateAll() error

ValidateAll checks the field values on ListDocumentsRequest 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 ListDocumentsRequestMultiError, or nil if none found.

type ListDocumentsRequestMultiError

type ListDocumentsRequestMultiError []error

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

func (ListDocumentsRequestMultiError) AllErrors

func (m ListDocumentsRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ListDocumentsRequestMultiError) Error

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

type ListDocumentsRequestValidationError

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

ListDocumentsRequestValidationError is the validation error returned by ListDocumentsRequest.Validate if the designated constraints aren't met.

func (ListDocumentsRequestValidationError) Cause

Cause function returns cause value.

func (ListDocumentsRequestValidationError) Error

Error satisfies the builtin error interface

func (ListDocumentsRequestValidationError) ErrorName

ErrorName returns error name.

func (ListDocumentsRequestValidationError) Field

Field function returns field value.

func (ListDocumentsRequestValidationError) Key

Key function returns key value.

func (ListDocumentsRequestValidationError) Reason

Reason function returns reason value.

type ListDocumentsResponse

type ListDocumentsResponse struct {
	Pagination *database.PaginationResponse `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"`
	Documents  []*documents.DocumentShort   `protobuf:"bytes,2,rep,name=documents,proto3" json:"documents,omitempty"`
	// contains filtered or unexported fields
}

func (*ListDocumentsResponse) Descriptor deprecated

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

Deprecated: Use ListDocumentsResponse.ProtoReflect.Descriptor instead.

func (*ListDocumentsResponse) GetDocuments

func (x *ListDocumentsResponse) GetDocuments() []*documents.DocumentShort

func (*ListDocumentsResponse) GetPagination

func (*ListDocumentsResponse) ProtoMessage

func (*ListDocumentsResponse) ProtoMessage()

func (*ListDocumentsResponse) ProtoReflect

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

func (*ListDocumentsResponse) Reset

func (x *ListDocumentsResponse) Reset()

func (*ListDocumentsResponse) String

func (x *ListDocumentsResponse) String() string

func (*ListDocumentsResponse) Validate

func (m *ListDocumentsResponse) Validate() error

Validate checks the field values on ListDocumentsResponse 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 (*ListDocumentsResponse) ValidateAll

func (m *ListDocumentsResponse) ValidateAll() error

ValidateAll checks the field values on ListDocumentsResponse 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 ListDocumentsResponseMultiError, or nil if none found.

type ListDocumentsResponseMultiError

type ListDocumentsResponseMultiError []error

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

func (ListDocumentsResponseMultiError) AllErrors

func (m ListDocumentsResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ListDocumentsResponseMultiError) Error

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

type ListDocumentsResponseValidationError

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

ListDocumentsResponseValidationError is the validation error returned by ListDocumentsResponse.Validate if the designated constraints aren't met.

func (ListDocumentsResponseValidationError) Cause

Cause function returns cause value.

func (ListDocumentsResponseValidationError) Error

Error satisfies the builtin error interface

func (ListDocumentsResponseValidationError) ErrorName

ErrorName returns error name.

func (ListDocumentsResponseValidationError) Field

Field function returns field value.

func (ListDocumentsResponseValidationError) Key

Key function returns key value.

func (ListDocumentsResponseValidationError) Reason

Reason function returns reason value.

type ListTemplatesRequest

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

Templates ==================================================================

func (*ListTemplatesRequest) Descriptor deprecated

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

Deprecated: Use ListTemplatesRequest.ProtoReflect.Descriptor instead.

func (*ListTemplatesRequest) ProtoMessage

func (*ListTemplatesRequest) ProtoMessage()

func (*ListTemplatesRequest) ProtoReflect

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

func (*ListTemplatesRequest) Reset

func (x *ListTemplatesRequest) Reset()

func (*ListTemplatesRequest) String

func (x *ListTemplatesRequest) String() string

func (*ListTemplatesRequest) Validate

func (m *ListTemplatesRequest) Validate() error

Validate checks the field values on ListTemplatesRequest 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 (*ListTemplatesRequest) ValidateAll

func (m *ListTemplatesRequest) ValidateAll() error

ValidateAll checks the field values on ListTemplatesRequest 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 ListTemplatesRequestMultiError, or nil if none found.

type ListTemplatesRequestMultiError

type ListTemplatesRequestMultiError []error

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

func (ListTemplatesRequestMultiError) AllErrors

func (m ListTemplatesRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ListTemplatesRequestMultiError) Error

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

type ListTemplatesRequestValidationError

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

ListTemplatesRequestValidationError is the validation error returned by ListTemplatesRequest.Validate if the designated constraints aren't met.

func (ListTemplatesRequestValidationError) Cause

Cause function returns cause value.

func (ListTemplatesRequestValidationError) Error

Error satisfies the builtin error interface

func (ListTemplatesRequestValidationError) ErrorName

ErrorName returns error name.

func (ListTemplatesRequestValidationError) Field

Field function returns field value.

func (ListTemplatesRequestValidationError) Key

Key function returns key value.

func (ListTemplatesRequestValidationError) Reason

Reason function returns reason value.

type ListTemplatesResponse

type ListTemplatesResponse struct {
	Templates []*documents.TemplateShort `protobuf:"bytes,1,rep,name=templates,proto3" json:"templates,omitempty"`
	// contains filtered or unexported fields
}

func (*ListTemplatesResponse) Descriptor deprecated

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

Deprecated: Use ListTemplatesResponse.ProtoReflect.Descriptor instead.

func (*ListTemplatesResponse) GetTemplates

func (x *ListTemplatesResponse) GetTemplates() []*documents.TemplateShort

func (*ListTemplatesResponse) ProtoMessage

func (*ListTemplatesResponse) ProtoMessage()

func (*ListTemplatesResponse) ProtoReflect

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

func (*ListTemplatesResponse) Reset

func (x *ListTemplatesResponse) Reset()

func (*ListTemplatesResponse) String

func (x *ListTemplatesResponse) String() string

func (*ListTemplatesResponse) Validate

func (m *ListTemplatesResponse) Validate() error

Validate checks the field values on ListTemplatesResponse 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 (*ListTemplatesResponse) ValidateAll

func (m *ListTemplatesResponse) ValidateAll() error

ValidateAll checks the field values on ListTemplatesResponse 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 ListTemplatesResponseMultiError, or nil if none found.

type ListTemplatesResponseMultiError

type ListTemplatesResponseMultiError []error

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

func (ListTemplatesResponseMultiError) AllErrors

func (m ListTemplatesResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ListTemplatesResponseMultiError) Error

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

type ListTemplatesResponseValidationError

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

ListTemplatesResponseValidationError is the validation error returned by ListTemplatesResponse.Validate if the designated constraints aren't met.

func (ListTemplatesResponseValidationError) Cause

Cause function returns cause value.

func (ListTemplatesResponseValidationError) Error

Error satisfies the builtin error interface

func (ListTemplatesResponseValidationError) ErrorName

ErrorName returns error name.

func (ListTemplatesResponseValidationError) Field

Field function returns field value.

func (ListTemplatesResponseValidationError) Key

Key function returns key value.

func (ListTemplatesResponseValidationError) Reason

Reason function returns reason value.

type ListUserDocumentsRequest

type ListUserDocumentsRequest struct {
	Pagination *database.PaginationRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"`
	UserId     int32                       `protobuf:"varint,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	Relations  []documents.DOC_RELATION    `protobuf:"varint,3,rep,packed,name=relations,proto3,enum=resources.documents.DOC_RELATION" json:"relations,omitempty"`
	// contains filtered or unexported fields
}

func (*ListUserDocumentsRequest) Descriptor deprecated

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

Deprecated: Use ListUserDocumentsRequest.ProtoReflect.Descriptor instead.

func (*ListUserDocumentsRequest) GetPagination

func (*ListUserDocumentsRequest) GetRelations

func (x *ListUserDocumentsRequest) GetRelations() []documents.DOC_RELATION

func (*ListUserDocumentsRequest) GetUserId

func (x *ListUserDocumentsRequest) GetUserId() int32

func (*ListUserDocumentsRequest) ProtoMessage

func (*ListUserDocumentsRequest) ProtoMessage()

func (*ListUserDocumentsRequest) ProtoReflect

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

func (*ListUserDocumentsRequest) Reset

func (x *ListUserDocumentsRequest) Reset()

func (*ListUserDocumentsRequest) String

func (x *ListUserDocumentsRequest) String() string

func (*ListUserDocumentsRequest) Validate

func (m *ListUserDocumentsRequest) Validate() error

Validate checks the field values on ListUserDocumentsRequest 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 (*ListUserDocumentsRequest) ValidateAll

func (m *ListUserDocumentsRequest) ValidateAll() error

ValidateAll checks the field values on ListUserDocumentsRequest 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 ListUserDocumentsRequestMultiError, or nil if none found.

type ListUserDocumentsRequestMultiError

type ListUserDocumentsRequestMultiError []error

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

func (ListUserDocumentsRequestMultiError) AllErrors

func (m ListUserDocumentsRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ListUserDocumentsRequestMultiError) Error

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

type ListUserDocumentsRequestValidationError

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

ListUserDocumentsRequestValidationError is the validation error returned by ListUserDocumentsRequest.Validate if the designated constraints aren't met.

func (ListUserDocumentsRequestValidationError) Cause

Cause function returns cause value.

func (ListUserDocumentsRequestValidationError) Error

Error satisfies the builtin error interface

func (ListUserDocumentsRequestValidationError) ErrorName

ErrorName returns error name.

func (ListUserDocumentsRequestValidationError) Field

Field function returns field value.

func (ListUserDocumentsRequestValidationError) Key

Key function returns key value.

func (ListUserDocumentsRequestValidationError) Reason

Reason function returns reason value.

type ListUserDocumentsResponse

type ListUserDocumentsResponse struct {
	Pagination *database.PaginationResponse  `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"`
	Relations  []*documents.DocumentRelation `protobuf:"bytes,2,rep,name=relations,proto3" json:"relations,omitempty"`
	// contains filtered or unexported fields
}

func (*ListUserDocumentsResponse) Descriptor deprecated

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

Deprecated: Use ListUserDocumentsResponse.ProtoReflect.Descriptor instead.

func (*ListUserDocumentsResponse) GetPagination

func (*ListUserDocumentsResponse) GetRelations

func (*ListUserDocumentsResponse) ProtoMessage

func (*ListUserDocumentsResponse) ProtoMessage()

func (*ListUserDocumentsResponse) ProtoReflect

func (*ListUserDocumentsResponse) Reset

func (x *ListUserDocumentsResponse) Reset()

func (*ListUserDocumentsResponse) String

func (x *ListUserDocumentsResponse) String() string

func (*ListUserDocumentsResponse) Validate

func (m *ListUserDocumentsResponse) Validate() error

Validate checks the field values on ListUserDocumentsResponse 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 (*ListUserDocumentsResponse) ValidateAll

func (m *ListUserDocumentsResponse) ValidateAll() error

ValidateAll checks the field values on ListUserDocumentsResponse 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 ListUserDocumentsResponseMultiError, or nil if none found.

type ListUserDocumentsResponseMultiError

type ListUserDocumentsResponseMultiError []error

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

func (ListUserDocumentsResponseMultiError) AllErrors

AllErrors returns a list of validation violation errors.

func (ListUserDocumentsResponseMultiError) Error

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

type ListUserDocumentsResponseValidationError

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

ListUserDocumentsResponseValidationError is the validation error returned by ListUserDocumentsResponse.Validate if the designated constraints aren't met.

func (ListUserDocumentsResponseValidationError) Cause

Cause function returns cause value.

func (ListUserDocumentsResponseValidationError) Error

Error satisfies the builtin error interface

func (ListUserDocumentsResponseValidationError) ErrorName

ErrorName returns error name.

func (ListUserDocumentsResponseValidationError) Field

Field function returns field value.

func (ListUserDocumentsResponseValidationError) Key

Key function returns key value.

func (ListUserDocumentsResponseValidationError) Reason

Reason function returns reason value.

type PostDocumentCommentRequest

type PostDocumentCommentRequest struct {
	Comment *documents.DocumentComment `protobuf:"bytes,1,opt,name=comment,proto3" json:"comment,omitempty"`
	// contains filtered or unexported fields
}

func (*PostDocumentCommentRequest) Descriptor deprecated

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

Deprecated: Use PostDocumentCommentRequest.ProtoReflect.Descriptor instead.

func (*PostDocumentCommentRequest) GetComment

func (*PostDocumentCommentRequest) ProtoMessage

func (*PostDocumentCommentRequest) ProtoMessage()

func (*PostDocumentCommentRequest) ProtoReflect

func (*PostDocumentCommentRequest) Reset

func (x *PostDocumentCommentRequest) Reset()

func (*PostDocumentCommentRequest) String

func (x *PostDocumentCommentRequest) String() string

func (*PostDocumentCommentRequest) Validate

func (m *PostDocumentCommentRequest) Validate() error

Validate checks the field values on PostDocumentCommentRequest 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 (*PostDocumentCommentRequest) ValidateAll

func (m *PostDocumentCommentRequest) ValidateAll() error

ValidateAll checks the field values on PostDocumentCommentRequest 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 PostDocumentCommentRequestMultiError, or nil if none found.

type PostDocumentCommentRequestMultiError

type PostDocumentCommentRequestMultiError []error

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

func (PostDocumentCommentRequestMultiError) AllErrors

AllErrors returns a list of validation violation errors.

func (PostDocumentCommentRequestMultiError) Error

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

type PostDocumentCommentRequestValidationError

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

PostDocumentCommentRequestValidationError is the validation error returned by PostDocumentCommentRequest.Validate if the designated constraints aren't met.

func (PostDocumentCommentRequestValidationError) Cause

Cause function returns cause value.

func (PostDocumentCommentRequestValidationError) Error

Error satisfies the builtin error interface

func (PostDocumentCommentRequestValidationError) ErrorName

ErrorName returns error name.

func (PostDocumentCommentRequestValidationError) Field

Field function returns field value.

func (PostDocumentCommentRequestValidationError) Key

Key function returns key value.

func (PostDocumentCommentRequestValidationError) Reason

Reason function returns reason value.

type PostDocumentCommentResponse

type PostDocumentCommentResponse struct {
	Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

func (*PostDocumentCommentResponse) Descriptor deprecated

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

Deprecated: Use PostDocumentCommentResponse.ProtoReflect.Descriptor instead.

func (*PostDocumentCommentResponse) GetId

func (*PostDocumentCommentResponse) ProtoMessage

func (*PostDocumentCommentResponse) ProtoMessage()

func (*PostDocumentCommentResponse) ProtoReflect

func (*PostDocumentCommentResponse) Reset

func (x *PostDocumentCommentResponse) Reset()

func (*PostDocumentCommentResponse) String

func (x *PostDocumentCommentResponse) String() string

func (*PostDocumentCommentResponse) Validate

func (m *PostDocumentCommentResponse) Validate() error

Validate checks the field values on PostDocumentCommentResponse 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 (*PostDocumentCommentResponse) ValidateAll

func (m *PostDocumentCommentResponse) ValidateAll() error

ValidateAll checks the field values on PostDocumentCommentResponse 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 PostDocumentCommentResponseMultiError, or nil if none found.

type PostDocumentCommentResponseMultiError

type PostDocumentCommentResponseMultiError []error

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

func (PostDocumentCommentResponseMultiError) AllErrors

AllErrors returns a list of validation violation errors.

func (PostDocumentCommentResponseMultiError) Error

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

type PostDocumentCommentResponseValidationError

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

PostDocumentCommentResponseValidationError is the validation error returned by PostDocumentCommentResponse.Validate if the designated constraints aren't met.

func (PostDocumentCommentResponseValidationError) Cause

Cause function returns cause value.

func (PostDocumentCommentResponseValidationError) Error

Error satisfies the builtin error interface

func (PostDocumentCommentResponseValidationError) ErrorName

ErrorName returns error name.

func (PostDocumentCommentResponseValidationError) Field

Field function returns field value.

func (PostDocumentCommentResponseValidationError) Key

Key function returns key value.

func (PostDocumentCommentResponseValidationError) Reason

Reason function returns reason value.

type RemoveDocumentReferenceRequest

type RemoveDocumentReferenceRequest struct {
	Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

func (*RemoveDocumentReferenceRequest) Descriptor deprecated

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

Deprecated: Use RemoveDocumentReferenceRequest.ProtoReflect.Descriptor instead.

func (*RemoveDocumentReferenceRequest) GetId

func (*RemoveDocumentReferenceRequest) ProtoMessage

func (*RemoveDocumentReferenceRequest) ProtoMessage()

func (*RemoveDocumentReferenceRequest) ProtoReflect

func (*RemoveDocumentReferenceRequest) Reset

func (x *RemoveDocumentReferenceRequest) Reset()

func (*RemoveDocumentReferenceRequest) String

func (*RemoveDocumentReferenceRequest) Validate

func (m *RemoveDocumentReferenceRequest) Validate() error

Validate checks the field values on RemoveDocumentReferenceRequest 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 (*RemoveDocumentReferenceRequest) ValidateAll

func (m *RemoveDocumentReferenceRequest) ValidateAll() error

ValidateAll checks the field values on RemoveDocumentReferenceRequest 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 RemoveDocumentReferenceRequestMultiError, or nil if none found.

type RemoveDocumentReferenceRequestMultiError

type RemoveDocumentReferenceRequestMultiError []error

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

func (RemoveDocumentReferenceRequestMultiError) AllErrors

AllErrors returns a list of validation violation errors.

func (RemoveDocumentReferenceRequestMultiError) Error

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

type RemoveDocumentReferenceRequestValidationError

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

RemoveDocumentReferenceRequestValidationError is the validation error returned by RemoveDocumentReferenceRequest.Validate if the designated constraints aren't met.

func (RemoveDocumentReferenceRequestValidationError) Cause

Cause function returns cause value.

func (RemoveDocumentReferenceRequestValidationError) Error

Error satisfies the builtin error interface

func (RemoveDocumentReferenceRequestValidationError) ErrorName

ErrorName returns error name.

func (RemoveDocumentReferenceRequestValidationError) Field

Field function returns field value.

func (RemoveDocumentReferenceRequestValidationError) Key

Key function returns key value.

func (RemoveDocumentReferenceRequestValidationError) Reason

Reason function returns reason value.

type RemoveDocumentReferenceResponse

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

func (*RemoveDocumentReferenceResponse) Descriptor deprecated

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

Deprecated: Use RemoveDocumentReferenceResponse.ProtoReflect.Descriptor instead.

func (*RemoveDocumentReferenceResponse) ProtoMessage

func (*RemoveDocumentReferenceResponse) ProtoMessage()

func (*RemoveDocumentReferenceResponse) ProtoReflect

func (*RemoveDocumentReferenceResponse) Reset

func (*RemoveDocumentReferenceResponse) String

func (*RemoveDocumentReferenceResponse) Validate

func (m *RemoveDocumentReferenceResponse) Validate() error

Validate checks the field values on RemoveDocumentReferenceResponse 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 (*RemoveDocumentReferenceResponse) ValidateAll

func (m *RemoveDocumentReferenceResponse) ValidateAll() error

ValidateAll checks the field values on RemoveDocumentReferenceResponse 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 RemoveDocumentReferenceResponseMultiError, or nil if none found.

type RemoveDocumentReferenceResponseMultiError

type RemoveDocumentReferenceResponseMultiError []error

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

func (RemoveDocumentReferenceResponseMultiError) AllErrors

AllErrors returns a list of validation violation errors.

func (RemoveDocumentReferenceResponseMultiError) Error

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

type RemoveDocumentReferenceResponseValidationError

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

RemoveDocumentReferenceResponseValidationError is the validation error returned by RemoveDocumentReferenceResponse.Validate if the designated constraints aren't met.

func (RemoveDocumentReferenceResponseValidationError) Cause

Cause function returns cause value.

func (RemoveDocumentReferenceResponseValidationError) Error

Error satisfies the builtin error interface

func (RemoveDocumentReferenceResponseValidationError) ErrorName

ErrorName returns error name.

func (RemoveDocumentReferenceResponseValidationError) Field

Field function returns field value.

func (RemoveDocumentReferenceResponseValidationError) Key

Key function returns key value.

func (RemoveDocumentReferenceResponseValidationError) Reason

Reason function returns reason value.

type RemoveDocumentRelationRequest

type RemoveDocumentRelationRequest struct {
	Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

func (*RemoveDocumentRelationRequest) Descriptor deprecated

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

Deprecated: Use RemoveDocumentRelationRequest.ProtoReflect.Descriptor instead.

func (*RemoveDocumentRelationRequest) GetId

func (*RemoveDocumentRelationRequest) ProtoMessage

func (*RemoveDocumentRelationRequest) ProtoMessage()

func (*RemoveDocumentRelationRequest) ProtoReflect

func (*RemoveDocumentRelationRequest) Reset

func (x *RemoveDocumentRelationRequest) Reset()

func (*RemoveDocumentRelationRequest) String

func (*RemoveDocumentRelationRequest) Validate

func (m *RemoveDocumentRelationRequest) Validate() error

Validate checks the field values on RemoveDocumentRelationRequest 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 (*RemoveDocumentRelationRequest) ValidateAll

func (m *RemoveDocumentRelationRequest) ValidateAll() error

ValidateAll checks the field values on RemoveDocumentRelationRequest 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 RemoveDocumentRelationRequestMultiError, or nil if none found.

type RemoveDocumentRelationRequestMultiError

type RemoveDocumentRelationRequestMultiError []error

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

func (RemoveDocumentRelationRequestMultiError) AllErrors

AllErrors returns a list of validation violation errors.

func (RemoveDocumentRelationRequestMultiError) Error

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

type RemoveDocumentRelationRequestValidationError

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

RemoveDocumentRelationRequestValidationError is the validation error returned by RemoveDocumentRelationRequest.Validate if the designated constraints aren't met.

func (RemoveDocumentRelationRequestValidationError) Cause

Cause function returns cause value.

func (RemoveDocumentRelationRequestValidationError) Error

Error satisfies the builtin error interface

func (RemoveDocumentRelationRequestValidationError) ErrorName

ErrorName returns error name.

func (RemoveDocumentRelationRequestValidationError) Field

Field function returns field value.

func (RemoveDocumentRelationRequestValidationError) Key

Key function returns key value.

func (RemoveDocumentRelationRequestValidationError) Reason

Reason function returns reason value.

type RemoveDocumentRelationResponse

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

func (*RemoveDocumentRelationResponse) Descriptor deprecated

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

Deprecated: Use RemoveDocumentRelationResponse.ProtoReflect.Descriptor instead.

func (*RemoveDocumentRelationResponse) ProtoMessage

func (*RemoveDocumentRelationResponse) ProtoMessage()

func (*RemoveDocumentRelationResponse) ProtoReflect

func (*RemoveDocumentRelationResponse) Reset

func (x *RemoveDocumentRelationResponse) Reset()

func (*RemoveDocumentRelationResponse) String

func (*RemoveDocumentRelationResponse) Validate

func (m *RemoveDocumentRelationResponse) Validate() error

Validate checks the field values on RemoveDocumentRelationResponse 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 (*RemoveDocumentRelationResponse) ValidateAll

func (m *RemoveDocumentRelationResponse) ValidateAll() error

ValidateAll checks the field values on RemoveDocumentRelationResponse 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 RemoveDocumentRelationResponseMultiError, or nil if none found.

type RemoveDocumentRelationResponseMultiError

type RemoveDocumentRelationResponseMultiError []error

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

func (RemoveDocumentRelationResponseMultiError) AllErrors

AllErrors returns a list of validation violation errors.

func (RemoveDocumentRelationResponseMultiError) Error

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

type RemoveDocumentRelationResponseValidationError

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

RemoveDocumentRelationResponseValidationError is the validation error returned by RemoveDocumentRelationResponse.Validate if the designated constraints aren't met.

func (RemoveDocumentRelationResponseValidationError) Cause

Cause function returns cause value.

func (RemoveDocumentRelationResponseValidationError) Error

Error satisfies the builtin error interface

func (RemoveDocumentRelationResponseValidationError) ErrorName

ErrorName returns error name.

func (RemoveDocumentRelationResponseValidationError) Field

Field function returns field value.

func (RemoveDocumentRelationResponseValidationError) Key

Key function returns key value.

func (RemoveDocumentRelationResponseValidationError) Reason

Reason function returns reason value.

type Server

type Server struct {
	DocStoreServiceServer
	// contains filtered or unexported fields
}

func (*Server) AddDocumentReference

func (*Server) AddDocumentRelation

func (s *Server) AddDocumentRelation(ctx context.Context, req *AddDocumentRelationRequest) (*AddDocumentRelationResponse, error)

func (*Server) CreateDocument

func (s *Server) CreateDocument(ctx context.Context, req *CreateDocumentRequest) (*CreateDocumentResponse, error)

func (*Server) CreateDocumentCategory

func (*Server) CreateTemplate

func (s *Server) CreateTemplate(ctx context.Context, req *CreateTemplateRequest) (*CreateTemplateResponse, error)

func (*Server) DeleteDocument

func (s *Server) DeleteDocument(ctx context.Context, req *DeleteDocumentRequest) (*DeleteDocumentResponse, error)

func (*Server) DeleteDocumentCategory

func (*Server) DeleteDocumentComment

func (*Server) DeleteTemplate

func (s *Server) DeleteTemplate(ctx context.Context, req *DeleteTemplateRequest) (*DeleteTemplateResponse, error)

func (*Server) EditDocumentComment

func (s *Server) EditDocumentComment(ctx context.Context, req *EditDocumentCommentRequest) (*EditDocumentCommentResponse, error)

func (*Server) GetDocument

func (s *Server) GetDocument(ctx context.Context, req *GetDocumentRequest) (*GetDocumentResponse, error)

func (*Server) GetDocumentAccess

func (s *Server) GetDocumentAccess(ctx context.Context, req *GetDocumentAccessRequest) (*GetDocumentAccessResponse, error)

func (*Server) GetDocumentComments

func (s *Server) GetDocumentComments(ctx context.Context, req *GetDocumentCommentsRequest) (*GetDocumentCommentsResponse, error)

func (*Server) GetDocumentReferences

func (*Server) GetDocumentRelations

func (*Server) GetPermsRemap

func (s *Server) GetPermsRemap() map[string]string

func (*Server) GetTemplate

func (s *Server) GetTemplate(ctx context.Context, req *GetTemplateRequest) (*GetTemplateResponse, error)

func (*Server) ListDocumentCategories

func (*Server) ListDocuments

func (s *Server) ListDocuments(ctx context.Context, req *ListDocumentsRequest) (*ListDocumentsResponse, error)

func (*Server) ListTemplates

func (s *Server) ListTemplates(ctx context.Context, req *ListTemplatesRequest) (*ListTemplatesResponse, error)

func (*Server) ListUserDocuments

func (s *Server) ListUserDocuments(ctx context.Context, req *ListUserDocumentsRequest) (*ListUserDocumentsResponse, error)

func (*Server) PostDocumentComment

func (s *Server) PostDocumentComment(ctx context.Context, req *PostDocumentCommentRequest) (*PostDocumentCommentResponse, error)

func (*Server) RemoveDocumentRelation

func (*Server) SetDocumentAccess

func (s *Server) SetDocumentAccess(ctx context.Context, req *SetDocumentAccessRequest) (*SetDocumentAccessResponse, error)

func (*Server) UpdateDocument

func (s *Server) UpdateDocument(ctx context.Context, req *UpdateDocumentRequest) (*UpdateDocumentResponse, error)

func (*Server) UpdateDocumentCategory

func (*Server) UpdateTemplate

func (s *Server) UpdateTemplate(ctx context.Context, req *UpdateTemplateRequest) (*UpdateTemplateResponse, error)

type SetDocumentAccessRequest

type SetDocumentAccessRequest struct {
	DocumentId uint64                    `protobuf:"varint,1,opt,name=document_id,json=documentId,proto3" json:"document_id,omitempty"`
	Mode       ACCESS_LEVEL_UPDATE_MODE  `protobuf:"varint,2,opt,name=mode,proto3,enum=services.docstore.ACCESS_LEVEL_UPDATE_MODE" json:"mode,omitempty"`
	Access     *documents.DocumentAccess `protobuf:"bytes,3,opt,name=access,proto3" json:"access,omitempty"`
	// contains filtered or unexported fields
}

func (*SetDocumentAccessRequest) Descriptor deprecated

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

Deprecated: Use SetDocumentAccessRequest.ProtoReflect.Descriptor instead.

func (*SetDocumentAccessRequest) GetAccess

func (*SetDocumentAccessRequest) GetDocumentId

func (x *SetDocumentAccessRequest) GetDocumentId() uint64

func (*SetDocumentAccessRequest) GetMode

func (*SetDocumentAccessRequest) ProtoMessage

func (*SetDocumentAccessRequest) ProtoMessage()

func (*SetDocumentAccessRequest) ProtoReflect

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

func (*SetDocumentAccessRequest) Reset

func (x *SetDocumentAccessRequest) Reset()

func (*SetDocumentAccessRequest) String

func (x *SetDocumentAccessRequest) String() string

func (*SetDocumentAccessRequest) Validate

func (m *SetDocumentAccessRequest) Validate() error

Validate checks the field values on SetDocumentAccessRequest 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 (*SetDocumentAccessRequest) ValidateAll

func (m *SetDocumentAccessRequest) ValidateAll() error

ValidateAll checks the field values on SetDocumentAccessRequest 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 SetDocumentAccessRequestMultiError, or nil if none found.

type SetDocumentAccessRequestMultiError

type SetDocumentAccessRequestMultiError []error

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

func (SetDocumentAccessRequestMultiError) AllErrors

func (m SetDocumentAccessRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (SetDocumentAccessRequestMultiError) Error

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

type SetDocumentAccessRequestValidationError

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

SetDocumentAccessRequestValidationError is the validation error returned by SetDocumentAccessRequest.Validate if the designated constraints aren't met.

func (SetDocumentAccessRequestValidationError) Cause

Cause function returns cause value.

func (SetDocumentAccessRequestValidationError) Error

Error satisfies the builtin error interface

func (SetDocumentAccessRequestValidationError) ErrorName

ErrorName returns error name.

func (SetDocumentAccessRequestValidationError) Field

Field function returns field value.

func (SetDocumentAccessRequestValidationError) Key

Key function returns key value.

func (SetDocumentAccessRequestValidationError) Reason

Reason function returns reason value.

type SetDocumentAccessResponse

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

func (*SetDocumentAccessResponse) Descriptor deprecated

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

Deprecated: Use SetDocumentAccessResponse.ProtoReflect.Descriptor instead.

func (*SetDocumentAccessResponse) ProtoMessage

func (*SetDocumentAccessResponse) ProtoMessage()

func (*SetDocumentAccessResponse) ProtoReflect

func (*SetDocumentAccessResponse) Reset

func (x *SetDocumentAccessResponse) Reset()

func (*SetDocumentAccessResponse) String

func (x *SetDocumentAccessResponse) String() string

func (*SetDocumentAccessResponse) Validate

func (m *SetDocumentAccessResponse) Validate() error

Validate checks the field values on SetDocumentAccessResponse 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 (*SetDocumentAccessResponse) ValidateAll

func (m *SetDocumentAccessResponse) ValidateAll() error

ValidateAll checks the field values on SetDocumentAccessResponse 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 SetDocumentAccessResponseMultiError, or nil if none found.

type SetDocumentAccessResponseMultiError

type SetDocumentAccessResponseMultiError []error

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

func (SetDocumentAccessResponseMultiError) AllErrors

AllErrors returns a list of validation violation errors.

func (SetDocumentAccessResponseMultiError) Error

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

type SetDocumentAccessResponseValidationError

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

SetDocumentAccessResponseValidationError is the validation error returned by SetDocumentAccessResponse.Validate if the designated constraints aren't met.

func (SetDocumentAccessResponseValidationError) Cause

Cause function returns cause value.

func (SetDocumentAccessResponseValidationError) Error

Error satisfies the builtin error interface

func (SetDocumentAccessResponseValidationError) ErrorName

ErrorName returns error name.

func (SetDocumentAccessResponseValidationError) Field

Field function returns field value.

func (SetDocumentAccessResponseValidationError) Key

Key function returns key value.

func (SetDocumentAccessResponseValidationError) Reason

Reason function returns reason value.

type UnimplementedDocStoreServiceServer

type UnimplementedDocStoreServiceServer struct {
}

UnimplementedDocStoreServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedDocStoreServiceServer) AddDocumentRelation

func (UnimplementedDocStoreServiceServer) CreateDocument

func (UnimplementedDocStoreServiceServer) CreateTemplate

func (UnimplementedDocStoreServiceServer) DeleteDocument

func (UnimplementedDocStoreServiceServer) DeleteTemplate

func (UnimplementedDocStoreServiceServer) EditDocumentComment

func (UnimplementedDocStoreServiceServer) GetDocument

func (UnimplementedDocStoreServiceServer) GetDocumentAccess

func (UnimplementedDocStoreServiceServer) GetDocumentComments

func (UnimplementedDocStoreServiceServer) GetTemplate

func (UnimplementedDocStoreServiceServer) ListDocuments

func (UnimplementedDocStoreServiceServer) ListTemplates

func (UnimplementedDocStoreServiceServer) ListUserDocuments

func (UnimplementedDocStoreServiceServer) PostDocumentComment

func (UnimplementedDocStoreServiceServer) SetDocumentAccess

func (UnimplementedDocStoreServiceServer) UpdateDocument

func (UnimplementedDocStoreServiceServer) UpdateTemplate

type UnsafeDocStoreServiceServer

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

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

type UpdateDocumentCategoryRequest

type UpdateDocumentCategoryRequest struct {
	Category *documents.DocumentCategory `protobuf:"bytes,1,opt,name=category,proto3" json:"category,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateDocumentCategoryRequest) Descriptor deprecated

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

Deprecated: Use UpdateDocumentCategoryRequest.ProtoReflect.Descriptor instead.

func (*UpdateDocumentCategoryRequest) GetCategory

func (*UpdateDocumentCategoryRequest) ProtoMessage

func (*UpdateDocumentCategoryRequest) ProtoMessage()

func (*UpdateDocumentCategoryRequest) ProtoReflect

func (*UpdateDocumentCategoryRequest) Reset

func (x *UpdateDocumentCategoryRequest) Reset()

func (*UpdateDocumentCategoryRequest) String

func (*UpdateDocumentCategoryRequest) Validate

func (m *UpdateDocumentCategoryRequest) Validate() error

Validate checks the field values on UpdateDocumentCategoryRequest 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 (*UpdateDocumentCategoryRequest) ValidateAll

func (m *UpdateDocumentCategoryRequest) ValidateAll() error

ValidateAll checks the field values on UpdateDocumentCategoryRequest 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 UpdateDocumentCategoryRequestMultiError, or nil if none found.

type UpdateDocumentCategoryRequestMultiError

type UpdateDocumentCategoryRequestMultiError []error

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

func (UpdateDocumentCategoryRequestMultiError) AllErrors

AllErrors returns a list of validation violation errors.

func (UpdateDocumentCategoryRequestMultiError) Error

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

type UpdateDocumentCategoryRequestValidationError

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

UpdateDocumentCategoryRequestValidationError is the validation error returned by UpdateDocumentCategoryRequest.Validate if the designated constraints aren't met.

func (UpdateDocumentCategoryRequestValidationError) Cause

Cause function returns cause value.

func (UpdateDocumentCategoryRequestValidationError) Error

Error satisfies the builtin error interface

func (UpdateDocumentCategoryRequestValidationError) ErrorName

ErrorName returns error name.

func (UpdateDocumentCategoryRequestValidationError) Field

Field function returns field value.

func (UpdateDocumentCategoryRequestValidationError) Key

Key function returns key value.

func (UpdateDocumentCategoryRequestValidationError) Reason

Reason function returns reason value.

type UpdateDocumentCategoryResponse

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

func (*UpdateDocumentCategoryResponse) Descriptor deprecated

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

Deprecated: Use UpdateDocumentCategoryResponse.ProtoReflect.Descriptor instead.

func (*UpdateDocumentCategoryResponse) ProtoMessage

func (*UpdateDocumentCategoryResponse) ProtoMessage()

func (*UpdateDocumentCategoryResponse) ProtoReflect

func (*UpdateDocumentCategoryResponse) Reset

func (x *UpdateDocumentCategoryResponse) Reset()

func (*UpdateDocumentCategoryResponse) String

func (*UpdateDocumentCategoryResponse) Validate

func (m *UpdateDocumentCategoryResponse) Validate() error

Validate checks the field values on UpdateDocumentCategoryResponse 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 (*UpdateDocumentCategoryResponse) ValidateAll

func (m *UpdateDocumentCategoryResponse) ValidateAll() error

ValidateAll checks the field values on UpdateDocumentCategoryResponse 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 UpdateDocumentCategoryResponseMultiError, or nil if none found.

type UpdateDocumentCategoryResponseMultiError

type UpdateDocumentCategoryResponseMultiError []error

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

func (UpdateDocumentCategoryResponseMultiError) AllErrors

AllErrors returns a list of validation violation errors.

func (UpdateDocumentCategoryResponseMultiError) Error

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

type UpdateDocumentCategoryResponseValidationError

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

UpdateDocumentCategoryResponseValidationError is the validation error returned by UpdateDocumentCategoryResponse.Validate if the designated constraints aren't met.

func (UpdateDocumentCategoryResponseValidationError) Cause

Cause function returns cause value.

func (UpdateDocumentCategoryResponseValidationError) Error

Error satisfies the builtin error interface

func (UpdateDocumentCategoryResponseValidationError) ErrorName

ErrorName returns error name.

func (UpdateDocumentCategoryResponseValidationError) Field

Field function returns field value.

func (UpdateDocumentCategoryResponseValidationError) Key

Key function returns key value.

func (UpdateDocumentCategoryResponseValidationError) Reason

Reason function returns reason value.

type UpdateDocumentRequest

type UpdateDocumentRequest struct {
	DocumentId  uint64                     `protobuf:"varint,1,opt,name=document_id,json=documentId,proto3" json:"document_id,omitempty" alias:"id"`                // @gotags: alias:"id"
	CategoryId  *uint64                    `protobuf:"varint,2,opt,name=category_id,json=categoryId,proto3,oneof" json:"category_id,omitempty" alias:"category_id"` // @gotags: alias:"category_id"
	Title       string                     `protobuf:"bytes,3,opt,name=title,proto3" json:"title,omitempty" alias:"title"`                                          // @gotags: alias:"title"
	Content     string                     `protobuf:"bytes,4,opt,name=content,proto3" json:"content,omitempty" alias:"content"`                                    // @gotags: alias:"content"
	ContentType documents.DOC_CONTENT_TYPE ``                                                                                                                       // @gotags: alias:"content_type"
	/* 158-byte string literal not displayed */
	Data   *string                   `protobuf:"bytes,6,opt,name=data,proto3,oneof" json:"data,omitempty" alias:"data"`  // @gotags: alias:"data"
	State  string                    `protobuf:"bytes,7,opt,name=state,proto3" json:"state,omitempty" alias:"state"`     // @gotags: alias:"state"
	Closed bool                      `protobuf:"varint,8,opt,name=closed,proto3" json:"closed,omitempty" alias:"closed"` // @gotags: alias:"closed"
	Public bool                      `protobuf:"varint,9,opt,name=public,proto3" json:"public,omitempty" alias:"public"` // @gotags: alias:"public"
	Access *documents.DocumentAccess `protobuf:"bytes,10,opt,name=access,proto3,oneof" json:"access,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateDocumentRequest) Descriptor deprecated

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

Deprecated: Use UpdateDocumentRequest.ProtoReflect.Descriptor instead.

func (*UpdateDocumentRequest) GetAccess

func (*UpdateDocumentRequest) GetCategoryId

func (x *UpdateDocumentRequest) GetCategoryId() uint64

func (*UpdateDocumentRequest) GetClosed

func (x *UpdateDocumentRequest) GetClosed() bool

func (*UpdateDocumentRequest) GetContent

func (x *UpdateDocumentRequest) GetContent() string

func (*UpdateDocumentRequest) GetContentType

func (x *UpdateDocumentRequest) GetContentType() documents.DOC_CONTENT_TYPE

func (*UpdateDocumentRequest) GetData

func (x *UpdateDocumentRequest) GetData() string

func (*UpdateDocumentRequest) GetDocumentId

func (x *UpdateDocumentRequest) GetDocumentId() uint64

func (*UpdateDocumentRequest) GetPublic

func (x *UpdateDocumentRequest) GetPublic() bool

func (*UpdateDocumentRequest) GetState

func (x *UpdateDocumentRequest) GetState() string

func (*UpdateDocumentRequest) GetTitle

func (x *UpdateDocumentRequest) GetTitle() string

func (*UpdateDocumentRequest) ProtoMessage

func (*UpdateDocumentRequest) ProtoMessage()

func (*UpdateDocumentRequest) ProtoReflect

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

func (*UpdateDocumentRequest) Reset

func (x *UpdateDocumentRequest) Reset()

func (*UpdateDocumentRequest) String

func (x *UpdateDocumentRequest) String() string

func (*UpdateDocumentRequest) Validate

func (m *UpdateDocumentRequest) Validate() error

Validate checks the field values on UpdateDocumentRequest 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 (*UpdateDocumentRequest) ValidateAll

func (m *UpdateDocumentRequest) ValidateAll() error

ValidateAll checks the field values on UpdateDocumentRequest 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 UpdateDocumentRequestMultiError, or nil if none found.

type UpdateDocumentRequestMultiError

type UpdateDocumentRequestMultiError []error

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

func (UpdateDocumentRequestMultiError) AllErrors

func (m UpdateDocumentRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (UpdateDocumentRequestMultiError) Error

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

type UpdateDocumentRequestValidationError

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

UpdateDocumentRequestValidationError is the validation error returned by UpdateDocumentRequest.Validate if the designated constraints aren't met.

func (UpdateDocumentRequestValidationError) Cause

Cause function returns cause value.

func (UpdateDocumentRequestValidationError) Error

Error satisfies the builtin error interface

func (UpdateDocumentRequestValidationError) ErrorName

ErrorName returns error name.

func (UpdateDocumentRequestValidationError) Field

Field function returns field value.

func (UpdateDocumentRequestValidationError) Key

Key function returns key value.

func (UpdateDocumentRequestValidationError) Reason

Reason function returns reason value.

type UpdateDocumentResponse

type UpdateDocumentResponse struct {
	DocumentId uint64 `protobuf:"varint,1,opt,name=document_id,json=documentId,proto3" json:"document_id,omitempty" alias:"id"` // @gotags: alias:"id"
	// contains filtered or unexported fields
}

func (*UpdateDocumentResponse) Descriptor deprecated

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

Deprecated: Use UpdateDocumentResponse.ProtoReflect.Descriptor instead.

func (*UpdateDocumentResponse) GetDocumentId

func (x *UpdateDocumentResponse) GetDocumentId() uint64

func (*UpdateDocumentResponse) ProtoMessage

func (*UpdateDocumentResponse) ProtoMessage()

func (*UpdateDocumentResponse) ProtoReflect

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

func (*UpdateDocumentResponse) Reset

func (x *UpdateDocumentResponse) Reset()

func (*UpdateDocumentResponse) String

func (x *UpdateDocumentResponse) String() string

func (*UpdateDocumentResponse) Validate

func (m *UpdateDocumentResponse) Validate() error

Validate checks the field values on UpdateDocumentResponse 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 (*UpdateDocumentResponse) ValidateAll

func (m *UpdateDocumentResponse) ValidateAll() error

ValidateAll checks the field values on UpdateDocumentResponse 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 UpdateDocumentResponseMultiError, or nil if none found.

type UpdateDocumentResponseMultiError

type UpdateDocumentResponseMultiError []error

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

func (UpdateDocumentResponseMultiError) AllErrors

func (m UpdateDocumentResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (UpdateDocumentResponseMultiError) Error

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

type UpdateDocumentResponseValidationError

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

UpdateDocumentResponseValidationError is the validation error returned by UpdateDocumentResponse.Validate if the designated constraints aren't met.

func (UpdateDocumentResponseValidationError) Cause

Cause function returns cause value.

func (UpdateDocumentResponseValidationError) Error

Error satisfies the builtin error interface

func (UpdateDocumentResponseValidationError) ErrorName

ErrorName returns error name.

func (UpdateDocumentResponseValidationError) Field

Field function returns field value.

func (UpdateDocumentResponseValidationError) Key

Key function returns key value.

func (UpdateDocumentResponseValidationError) Reason

Reason function returns reason value.

type UpdateTemplateRequest

type UpdateTemplateRequest struct {
	Template *documents.Template `protobuf:"bytes,1,opt,name=template,proto3" json:"template,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateTemplateRequest) Descriptor deprecated

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

Deprecated: Use UpdateTemplateRequest.ProtoReflect.Descriptor instead.

func (*UpdateTemplateRequest) GetTemplate

func (x *UpdateTemplateRequest) GetTemplate() *documents.Template

func (*UpdateTemplateRequest) ProtoMessage

func (*UpdateTemplateRequest) ProtoMessage()

func (*UpdateTemplateRequest) ProtoReflect

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

func (*UpdateTemplateRequest) Reset

func (x *UpdateTemplateRequest) Reset()

func (*UpdateTemplateRequest) String

func (x *UpdateTemplateRequest) String() string

func (*UpdateTemplateRequest) Validate

func (m *UpdateTemplateRequest) Validate() error

Validate checks the field values on UpdateTemplateRequest 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 (*UpdateTemplateRequest) ValidateAll

func (m *UpdateTemplateRequest) ValidateAll() error

ValidateAll checks the field values on UpdateTemplateRequest 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 UpdateTemplateRequestMultiError, or nil if none found.

type UpdateTemplateRequestMultiError

type UpdateTemplateRequestMultiError []error

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

func (UpdateTemplateRequestMultiError) AllErrors

func (m UpdateTemplateRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (UpdateTemplateRequestMultiError) Error

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

type UpdateTemplateRequestValidationError

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

UpdateTemplateRequestValidationError is the validation error returned by UpdateTemplateRequest.Validate if the designated constraints aren't met.

func (UpdateTemplateRequestValidationError) Cause

Cause function returns cause value.

func (UpdateTemplateRequestValidationError) Error

Error satisfies the builtin error interface

func (UpdateTemplateRequestValidationError) ErrorName

ErrorName returns error name.

func (UpdateTemplateRequestValidationError) Field

Field function returns field value.

func (UpdateTemplateRequestValidationError) Key

Key function returns key value.

func (UpdateTemplateRequestValidationError) Reason

Reason function returns reason value.

type UpdateTemplateResponse

type UpdateTemplateResponse struct {
	Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateTemplateResponse) Descriptor deprecated

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

Deprecated: Use UpdateTemplateResponse.ProtoReflect.Descriptor instead.

func (*UpdateTemplateResponse) GetId

func (x *UpdateTemplateResponse) GetId() uint64

func (*UpdateTemplateResponse) ProtoMessage

func (*UpdateTemplateResponse) ProtoMessage()

func (*UpdateTemplateResponse) ProtoReflect

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

func (*UpdateTemplateResponse) Reset

func (x *UpdateTemplateResponse) Reset()

func (*UpdateTemplateResponse) String

func (x *UpdateTemplateResponse) String() string

func (*UpdateTemplateResponse) Validate

func (m *UpdateTemplateResponse) Validate() error

Validate checks the field values on UpdateTemplateResponse 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 (*UpdateTemplateResponse) ValidateAll

func (m *UpdateTemplateResponse) ValidateAll() error

ValidateAll checks the field values on UpdateTemplateResponse 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 UpdateTemplateResponseMultiError, or nil if none found.

type UpdateTemplateResponseMultiError

type UpdateTemplateResponseMultiError []error

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

func (UpdateTemplateResponseMultiError) AllErrors

func (m UpdateTemplateResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (UpdateTemplateResponseMultiError) Error

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

type UpdateTemplateResponseValidationError

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

UpdateTemplateResponseValidationError is the validation error returned by UpdateTemplateResponse.Validate if the designated constraints aren't met.

func (UpdateTemplateResponseValidationError) Cause

Cause function returns cause value.

func (UpdateTemplateResponseValidationError) Error

Error satisfies the builtin error interface

func (UpdateTemplateResponseValidationError) ErrorName

ErrorName returns error name.

func (UpdateTemplateResponseValidationError) Field

Field function returns field value.

func (UpdateTemplateResponseValidationError) Key

Key function returns key value.

func (UpdateTemplateResponseValidationError) Reason

Reason function returns reason value.

Jump to

Keyboard shortcuts

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