diff --git a/Makefile b/Makefile index a04ce8f1b..0b8dab02f 100644 --- a/Makefile +++ b/Makefile @@ -24,6 +24,13 @@ ifeq (, $(shell which buf)) $(GO) install github.com/bufbuild/buf/cmd/buf@v1.26.1 endif +protoc-gen-go: + $(GO) install google.golang.org/protobuf/cmd/protoc-gen-go@latest + $(GO) install google.golang.org/grpc/cmd/protoc-gen-go-grpc@latest + +protoc-gen-go-grpc: + $(GO) install google.golang.org/grpc/cmd/protoc-gen-go-grpc@latest + protoc-gen-validate: build_dir if test ! -d $(BUILD_DIR)validate-$(VALIDATE_VERSION)/; then \ git clone --branch $(VALIDATE_VERSION) https://github.com/bufbuild/protoc-gen-validate.git $(BUILD_DIR)validate-$(VALIDATE_VERSION); \ @@ -106,7 +113,7 @@ gen-sql: find ./query/fivenet/table -type f -iname '*.go' -exec sed -i 's~("fivenet", ~("", ~g' {} \; .PHONY: gen-proto -gen-proto: protoc-gen-validate protoc-gen-customizer protoc-gen-fronthelper protoc-gen-doc +gen-proto: protoc-gen-go protoc-gen-go-grpc protoc-gen-validate protoc-gen-customizer protoc-gen-fronthelper protoc-gen-doc mkdir -p ./gen/go/proto PATH="$$PATH:./internal/cmd/protoc-gen-customizer/" \ $(PROTOC) \ diff --git a/dbsync.example.yaml b/dbsync.example.yaml index 8a6814de3..a143fc154 100644 --- a/dbsync.example.yaml +++ b/dbsync.example.yaml @@ -4,6 +4,10 @@ source: # Refer to https://github.com/go-sql-driver/mysql#dsn-data-source-name for details dsn: "DB_USER:DB_PASS@tcp(DB_HOST:DB_PORT)/DB_NAME?collation=utf8mb4_unicode_ci&parseTime=True&loc=Europe%2FBerlin" +destination: + url: "https://example.fivenet.app/" + token: "YOUR_SYNC_API_TOKEN" + # A query for each "piece of data" FiveNet needs to function tables: users: diff --git a/gen/go/proto/resources/accounts/accounts.pb.go b/gen/go/proto/resources/accounts/accounts.pb.go index 72aeb7a9d..aa06daf33 100644 --- a/gen/go/proto/resources/accounts/accounts.pb.go +++ b/gen/go/proto/resources/accounts/accounts.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.35.2 +// protoc-gen-go v1.36.0 // protoc v3.20.3 // source: resources/accounts/accounts.proto @@ -24,15 +24,14 @@ const ( ) type Account struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` + CreatedAt *timestamp.Timestamp `protobuf:"bytes,2,opt,name=created_at,json=createdAt,proto3,oneof" json:"created_at,omitempty"` + UpdatedAt *timestamp.Timestamp `protobuf:"bytes,3,opt,name=updated_at,json=updatedAt,proto3,oneof" json:"updated_at,omitempty"` + Username string `protobuf:"bytes,4,opt,name=username,proto3" json:"username,omitempty"` + License string `protobuf:"bytes,5,opt,name=license,proto3" json:"license,omitempty"` unknownFields protoimpl.UnknownFields - - Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` - CreatedAt *timestamp.Timestamp `protobuf:"bytes,2,opt,name=created_at,json=createdAt,proto3,oneof" json:"created_at,omitempty"` - UpdatedAt *timestamp.Timestamp `protobuf:"bytes,3,opt,name=updated_at,json=updatedAt,proto3,oneof" json:"updated_at,omitempty"` - Username string `protobuf:"bytes,4,opt,name=username,proto3" json:"username,omitempty"` - License string `protobuf:"bytes,5,opt,name=license,proto3" json:"license,omitempty"` + sizeCache protoimpl.SizeCache } func (x *Account) Reset() { @@ -101,13 +100,12 @@ func (x *Account) GetLicense() string { } type Character struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Available bool `protobuf:"varint,1,opt,name=available,proto3" json:"available,omitempty"` + Group string `protobuf:"bytes,2,opt,name=group,proto3" json:"group,omitempty"` + Char *users.User `protobuf:"bytes,3,opt,name=char,proto3" json:"char,omitempty" alias:"user"` // @gotags: alias:"user" unknownFields protoimpl.UnknownFields - - Available bool `protobuf:"varint,1,opt,name=available,proto3" json:"available,omitempty"` - Group string `protobuf:"bytes,2,opt,name=group,proto3" json:"group,omitempty"` - Char *users.User `protobuf:"bytes,3,opt,name=char,proto3" json:"char,omitempty" alias:"user"` // @gotags: alias:"user" + sizeCache protoimpl.SizeCache } func (x *Character) Reset() { diff --git a/gen/go/proto/resources/accounts/oauth2.pb.go b/gen/go/proto/resources/accounts/oauth2.pb.go index 8dd2eaa3b..513a2d46d 100644 --- a/gen/go/proto/resources/accounts/oauth2.pb.go +++ b/gen/go/proto/resources/accounts/oauth2.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.35.2 +// protoc-gen-go v1.36.0 // protoc v3.20.3 // source: resources/accounts/oauth2.proto @@ -22,17 +22,16 @@ const ( ) type OAuth2Account struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + AccountId uint64 `protobuf:"varint,1,opt,name=account_id,json=accountId,proto3" json:"account_id,omitempty"` + CreatedAt *timestamp.Timestamp `protobuf:"bytes,2,opt,name=created_at,json=createdAt,proto3,oneof" json:"created_at,omitempty"` + ProviderName string `protobuf:"bytes,3,opt,name=provider_name,json=providerName,proto3" json:"provider_name,omitempty"` + Provider *OAuth2Provider `protobuf:"bytes,4,opt,name=provider,proto3" json:"provider,omitempty"` + ExternalId uint64 `protobuf:"varint,5,opt,name=external_id,json=externalId,proto3" json:"external_id,omitempty"` + Username string `protobuf:"bytes,6,opt,name=username,proto3" json:"username,omitempty"` + Avatar string `protobuf:"bytes,7,opt,name=avatar,proto3" json:"avatar,omitempty"` unknownFields protoimpl.UnknownFields - - AccountId uint64 `protobuf:"varint,1,opt,name=account_id,json=accountId,proto3" json:"account_id,omitempty"` - CreatedAt *timestamp.Timestamp `protobuf:"bytes,2,opt,name=created_at,json=createdAt,proto3,oneof" json:"created_at,omitempty"` - ProviderName string `protobuf:"bytes,3,opt,name=provider_name,json=providerName,proto3" json:"provider_name,omitempty"` - Provider *OAuth2Provider `protobuf:"bytes,4,opt,name=provider,proto3" json:"provider,omitempty"` - ExternalId uint64 `protobuf:"varint,5,opt,name=external_id,json=externalId,proto3" json:"external_id,omitempty"` - Username string `protobuf:"bytes,6,opt,name=username,proto3" json:"username,omitempty"` - Avatar string `protobuf:"bytes,7,opt,name=avatar,proto3" json:"avatar,omitempty"` + sizeCache protoimpl.SizeCache } func (x *OAuth2Account) Reset() { @@ -115,14 +114,13 @@ func (x *OAuth2Account) GetAvatar() string { } type OAuth2Provider struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + Label string `protobuf:"bytes,2,opt,name=label,proto3" json:"label,omitempty"` + Homepage string `protobuf:"bytes,3,opt,name=homepage,proto3" json:"homepage,omitempty"` + Icon *string `protobuf:"bytes,4,opt,name=icon,proto3,oneof" json:"icon,omitempty"` unknownFields protoimpl.UnknownFields - - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` - Label string `protobuf:"bytes,2,opt,name=label,proto3" json:"label,omitempty"` - Homepage string `protobuf:"bytes,3,opt,name=homepage,proto3" json:"homepage,omitempty"` - Icon *string `protobuf:"bytes,4,opt,name=icon,proto3,oneof" json:"icon,omitempty"` + sizeCache protoimpl.SizeCache } func (x *OAuth2Provider) Reset() { diff --git a/gen/go/proto/resources/calendar/access.pb.go b/gen/go/proto/resources/calendar/access.pb.go index 430b286c5..552a95d4f 100644 --- a/gen/go/proto/resources/calendar/access.pb.go +++ b/gen/go/proto/resources/calendar/access.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.35.2 +// protoc-gen-go v1.36.0 // protoc v3.20.3 // source: resources/calendar/access.proto @@ -82,12 +82,11 @@ func (AccessLevel) EnumDescriptor() ([]byte, []int) { } type CalendarAccess struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Jobs []*CalendarJobAccess `protobuf:"bytes,1,rep,name=jobs,proto3" json:"jobs,omitempty" alias:"job_access"` // @gotags: alias:"job_access" + Users []*CalendarUserAccess `protobuf:"bytes,2,rep,name=users,proto3" json:"users,omitempty" alias:"user_access"` // @gotags: alias:"user_access" unknownFields protoimpl.UnknownFields - - Jobs []*CalendarJobAccess `protobuf:"bytes,1,rep,name=jobs,proto3" json:"jobs,omitempty" alias:"job_access"` // @gotags: alias:"job_access" - Users []*CalendarUserAccess `protobuf:"bytes,2,rep,name=users,proto3" json:"users,omitempty" alias:"user_access"` // @gotags: alias:"user_access" + sizeCache protoimpl.SizeCache } func (x *CalendarAccess) Reset() { @@ -135,18 +134,17 @@ func (x *CalendarAccess) GetUsers() []*CalendarUserAccess { } type CalendarJobAccess struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` + CreatedAt *timestamp.Timestamp `protobuf:"bytes,2,opt,name=created_at,json=createdAt,proto3,oneof" json:"created_at,omitempty"` + TargetId uint64 `protobuf:"varint,3,opt,name=target_id,json=targetId,proto3" json:"target_id,omitempty" alias:"calendar_id"` // @gotags: alias:"calendar_id" + Job string `protobuf:"bytes,4,opt,name=job,proto3" json:"job,omitempty"` + JobLabel *string `protobuf:"bytes,5,opt,name=job_label,json=jobLabel,proto3,oneof" json:"job_label,omitempty"` + MinimumGrade int32 `protobuf:"varint,6,opt,name=minimum_grade,json=minimumGrade,proto3" json:"minimum_grade,omitempty"` + JobGradeLabel *string `protobuf:"bytes,7,opt,name=job_grade_label,json=jobGradeLabel,proto3,oneof" json:"job_grade_label,omitempty"` + Access AccessLevel `protobuf:"varint,8,opt,name=access,proto3,enum=resources.calendar.AccessLevel" json:"access,omitempty"` unknownFields protoimpl.UnknownFields - - Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` - CreatedAt *timestamp.Timestamp `protobuf:"bytes,2,opt,name=created_at,json=createdAt,proto3,oneof" json:"created_at,omitempty"` - TargetId uint64 `protobuf:"varint,3,opt,name=target_id,json=targetId,proto3" json:"target_id,omitempty" alias:"calendar_id"` // @gotags: alias:"calendar_id" - Job string `protobuf:"bytes,4,opt,name=job,proto3" json:"job,omitempty"` - JobLabel *string `protobuf:"bytes,5,opt,name=job_label,json=jobLabel,proto3,oneof" json:"job_label,omitempty"` - MinimumGrade int32 `protobuf:"varint,6,opt,name=minimum_grade,json=minimumGrade,proto3" json:"minimum_grade,omitempty"` - JobGradeLabel *string `protobuf:"bytes,7,opt,name=job_grade_label,json=jobGradeLabel,proto3,oneof" json:"job_grade_label,omitempty"` - Access AccessLevel `protobuf:"varint,8,opt,name=access,proto3,enum=resources.calendar.AccessLevel" json:"access,omitempty"` + sizeCache protoimpl.SizeCache } func (x *CalendarJobAccess) Reset() { @@ -236,16 +234,15 @@ func (x *CalendarJobAccess) GetAccess() AccessLevel { } type CalendarUserAccess struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` + CreatedAt *timestamp.Timestamp `protobuf:"bytes,2,opt,name=created_at,json=createdAt,proto3,oneof" json:"created_at,omitempty"` + TargetId uint64 `protobuf:"varint,3,opt,name=target_id,json=targetId,proto3" json:"target_id,omitempty" alias:"calendar_id"` // @gotags: alias:"calendar_id" + UserId int32 `protobuf:"varint,4,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` + User *users.UserShort `protobuf:"bytes,5,opt,name=user,proto3,oneof" json:"user,omitempty"` + Access AccessLevel `protobuf:"varint,6,opt,name=access,proto3,enum=resources.calendar.AccessLevel" json:"access,omitempty"` unknownFields protoimpl.UnknownFields - - Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` - CreatedAt *timestamp.Timestamp `protobuf:"bytes,2,opt,name=created_at,json=createdAt,proto3,oneof" json:"created_at,omitempty"` - TargetId uint64 `protobuf:"varint,3,opt,name=target_id,json=targetId,proto3" json:"target_id,omitempty" alias:"calendar_id"` // @gotags: alias:"calendar_id" - UserId int32 `protobuf:"varint,4,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` - User *users.UserShort `protobuf:"bytes,5,opt,name=user,proto3,oneof" json:"user,omitempty"` - Access AccessLevel `protobuf:"varint,6,opt,name=access,proto3,enum=resources.calendar.AccessLevel" json:"access,omitempty"` + sizeCache protoimpl.SizeCache } func (x *CalendarUserAccess) Reset() { diff --git a/gen/go/proto/resources/calendar/calendar.pb.go b/gen/go/proto/resources/calendar/calendar.pb.go index 0ab21eb71..8e8961ab7 100644 --- a/gen/go/proto/resources/calendar/calendar.pb.go +++ b/gen/go/proto/resources/calendar/calendar.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.35.2 +// protoc-gen-go v1.36.0 // protoc v3.20.3 // source: resources/calendar/calendar.proto @@ -83,15 +83,12 @@ func (RsvpResponses) EnumDescriptor() ([]byte, []int) { } type Calendar struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty" sql:"primary_key" alias:"id"` // @gotags: sql:"primary_key" alias:"id" - CreatedAt *timestamp.Timestamp `protobuf:"bytes,2,opt,name=created_at,json=createdAt,proto3,oneof" json:"created_at,omitempty"` - UpdatedAt *timestamp.Timestamp `protobuf:"bytes,3,opt,name=updated_at,json=updatedAt,proto3,oneof" json:"updated_at,omitempty"` - DeletedAt *timestamp.Timestamp `protobuf:"bytes,4,opt,name=deleted_at,json=deletedAt,proto3,oneof" json:"deleted_at,omitempty"` - Job *string `protobuf:"bytes,5,opt,name=job,proto3,oneof" json:"job,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty" sql:"primary_key" alias:"id"` // @gotags: sql:"primary_key" alias:"id" + CreatedAt *timestamp.Timestamp `protobuf:"bytes,2,opt,name=created_at,json=createdAt,proto3,oneof" json:"created_at,omitempty"` + UpdatedAt *timestamp.Timestamp `protobuf:"bytes,3,opt,name=updated_at,json=updatedAt,proto3,oneof" json:"updated_at,omitempty"` + DeletedAt *timestamp.Timestamp `protobuf:"bytes,4,opt,name=deleted_at,json=deletedAt,proto3,oneof" json:"deleted_at,omitempty"` + Job *string `protobuf:"bytes,5,opt,name=job,proto3,oneof" json:"job,omitempty"` // @sanitize: method=StripTags Name string `protobuf:"bytes,6,opt,name=name,proto3" json:"name,omitempty"` // @sanitize: method=StripTags @@ -99,12 +96,14 @@ type Calendar struct { Public bool `protobuf:"varint,8,opt,name=public,proto3" json:"public,omitempty"` Closed bool `protobuf:"varint,9,opt,name=closed,proto3" json:"closed,omitempty"` // @sanitize: method=StripTags - Color string `protobuf:"bytes,10,opt,name=color,proto3" json:"color,omitempty"` - CreatorId *int32 `protobuf:"varint,11,opt,name=creator_id,json=creatorId,proto3,oneof" json:"creator_id,omitempty"` - Creator *users.UserShort `protobuf:"bytes,12,opt,name=creator,proto3,oneof" json:"creator,omitempty" alias:"creator"` // @gotags: alias:"creator" - CreatorJob string `protobuf:"bytes,13,opt,name=creator_job,json=creatorJob,proto3" json:"creator_job,omitempty"` - Subscription *CalendarSub `protobuf:"bytes,14,opt,name=subscription,proto3,oneof" json:"subscription,omitempty"` - Access *CalendarAccess `protobuf:"bytes,15,opt,name=access,proto3" json:"access,omitempty"` + Color string `protobuf:"bytes,10,opt,name=color,proto3" json:"color,omitempty"` + CreatorId *int32 `protobuf:"varint,11,opt,name=creator_id,json=creatorId,proto3,oneof" json:"creator_id,omitempty"` + Creator *users.UserShort `protobuf:"bytes,12,opt,name=creator,proto3,oneof" json:"creator,omitempty" alias:"creator"` // @gotags: alias:"creator" + CreatorJob string `protobuf:"bytes,13,opt,name=creator_job,json=creatorJob,proto3" json:"creator_job,omitempty"` + Subscription *CalendarSub `protobuf:"bytes,14,opt,name=subscription,proto3,oneof" json:"subscription,omitempty"` + Access *CalendarAccess `protobuf:"bytes,15,opt,name=access,proto3" json:"access,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *Calendar) Reset() { @@ -243,12 +242,9 @@ func (x *Calendar) GetAccess() *CalendarAccess { } type CalendarShort struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty" sql:"primary_key" alias:"id"` // @gotags: sql:"primary_key" alias:"id" - CreatedAt *timestamp.Timestamp `protobuf:"bytes,2,opt,name=created_at,json=createdAt,proto3,oneof" json:"created_at,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty" sql:"primary_key" alias:"id"` // @gotags: sql:"primary_key" alias:"id" + CreatedAt *timestamp.Timestamp `protobuf:"bytes,2,opt,name=created_at,json=createdAt,proto3,oneof" json:"created_at,omitempty"` // @sanitize: method=StripTags Name string `protobuf:"bytes,6,opt,name=name,proto3" json:"name,omitempty"` // @sanitize: method=StripTags @@ -256,8 +252,10 @@ type CalendarShort struct { Public bool `protobuf:"varint,8,opt,name=public,proto3" json:"public,omitempty"` Closed bool `protobuf:"varint,9,opt,name=closed,proto3" json:"closed,omitempty"` // @sanitize: method=StripTags - Color string `protobuf:"bytes,10,opt,name=color,proto3" json:"color,omitempty"` - Subscription *CalendarSub `protobuf:"bytes,14,opt,name=subscription,proto3,oneof" json:"subscription,omitempty"` + Color string `protobuf:"bytes,10,opt,name=color,proto3" json:"color,omitempty"` + Subscription *CalendarSub `protobuf:"bytes,14,opt,name=subscription,proto3,oneof" json:"subscription,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *CalendarShort) Reset() { @@ -347,16 +345,15 @@ func (x *CalendarShort) GetSubscription() *CalendarSub { } type CalendarSub struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + CalendarId uint64 `protobuf:"varint,1,opt,name=calendar_id,json=calendarId,proto3" json:"calendar_id,omitempty"` + UserId int32 `protobuf:"varint,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` + User *users.UserShort `protobuf:"bytes,3,opt,name=user,proto3,oneof" json:"user,omitempty"` + CreatedAt *timestamp.Timestamp `protobuf:"bytes,4,opt,name=created_at,json=createdAt,proto3,oneof" json:"created_at,omitempty"` + Confirmed bool `protobuf:"varint,5,opt,name=confirmed,proto3" json:"confirmed,omitempty"` + Muted bool `protobuf:"varint,6,opt,name=muted,proto3" json:"muted,omitempty"` unknownFields protoimpl.UnknownFields - - CalendarId uint64 `protobuf:"varint,1,opt,name=calendar_id,json=calendarId,proto3" json:"calendar_id,omitempty"` - UserId int32 `protobuf:"varint,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` - User *users.UserShort `protobuf:"bytes,3,opt,name=user,proto3,oneof" json:"user,omitempty"` - CreatedAt *timestamp.Timestamp `protobuf:"bytes,4,opt,name=created_at,json=createdAt,proto3,oneof" json:"created_at,omitempty"` - Confirmed bool `protobuf:"varint,5,opt,name=confirmed,proto3" json:"confirmed,omitempty"` - Muted bool `protobuf:"varint,6,opt,name=muted,proto3" json:"muted,omitempty"` + sizeCache protoimpl.SizeCache } func (x *CalendarSub) Reset() { @@ -432,29 +429,28 @@ func (x *CalendarSub) GetMuted() bool { } type CalendarEntry struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty" sql:"primary_key" alias:"id"` // @gotags: sql:"primary_key" alias:"id" - CreatedAt *timestamp.Timestamp `protobuf:"bytes,2,opt,name=created_at,json=createdAt,proto3,oneof" json:"created_at,omitempty"` - UpdatedAt *timestamp.Timestamp `protobuf:"bytes,3,opt,name=updated_at,json=updatedAt,proto3,oneof" json:"updated_at,omitempty"` - DeletedAt *timestamp.Timestamp `protobuf:"bytes,4,opt,name=deleted_at,json=deletedAt,proto3,oneof" json:"deleted_at,omitempty"` - CalendarId uint64 `protobuf:"varint,5,opt,name=calendar_id,json=calendarId,proto3" json:"calendar_id,omitempty"` - Calendar *Calendar `protobuf:"bytes,6,opt,name=calendar,proto3,oneof" json:"calendar,omitempty"` - Job *string `protobuf:"bytes,7,opt,name=job,proto3,oneof" json:"job,omitempty"` - StartTime *timestamp.Timestamp `protobuf:"bytes,8,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"` - EndTime *timestamp.Timestamp `protobuf:"bytes,9,opt,name=end_time,json=endTime,proto3,oneof" json:"end_time,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty" sql:"primary_key" alias:"id"` // @gotags: sql:"primary_key" alias:"id" + CreatedAt *timestamp.Timestamp `protobuf:"bytes,2,opt,name=created_at,json=createdAt,proto3,oneof" json:"created_at,omitempty"` + UpdatedAt *timestamp.Timestamp `protobuf:"bytes,3,opt,name=updated_at,json=updatedAt,proto3,oneof" json:"updated_at,omitempty"` + DeletedAt *timestamp.Timestamp `protobuf:"bytes,4,opt,name=deleted_at,json=deletedAt,proto3,oneof" json:"deleted_at,omitempty"` + CalendarId uint64 `protobuf:"varint,5,opt,name=calendar_id,json=calendarId,proto3" json:"calendar_id,omitempty"` + Calendar *Calendar `protobuf:"bytes,6,opt,name=calendar,proto3,oneof" json:"calendar,omitempty"` + Job *string `protobuf:"bytes,7,opt,name=job,proto3,oneof" json:"job,omitempty"` + StartTime *timestamp.Timestamp `protobuf:"bytes,8,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"` + EndTime *timestamp.Timestamp `protobuf:"bytes,9,opt,name=end_time,json=endTime,proto3,oneof" json:"end_time,omitempty"` // @sanitize: method=StripTags - Title string `protobuf:"bytes,10,opt,name=title,proto3" json:"title,omitempty"` - Content *content.Content `protobuf:"bytes,11,opt,name=content,proto3" json:"content,omitempty"` - Closed bool `protobuf:"varint,12,opt,name=closed,proto3" json:"closed,omitempty"` - RsvpOpen *bool `protobuf:"varint,13,opt,name=rsvp_open,json=rsvpOpen,proto3,oneof" json:"rsvp_open,omitempty"` - CreatorId *int32 `protobuf:"varint,14,opt,name=creator_id,json=creatorId,proto3,oneof" json:"creator_id,omitempty"` - Creator *users.UserShort `protobuf:"bytes,15,opt,name=creator,proto3,oneof" json:"creator,omitempty" alias:"creator"` // @gotags: alias:"creator" - CreatorJob string `protobuf:"bytes,16,opt,name=creator_job,json=creatorJob,proto3" json:"creator_job,omitempty"` - Recurring *CalendarEntryRecurring `protobuf:"bytes,17,opt,name=recurring,proto3,oneof" json:"recurring,omitempty"` - Rsvp *CalendarEntryRSVP `protobuf:"bytes,18,opt,name=rsvp,proto3,oneof" json:"rsvp,omitempty"` + Title string `protobuf:"bytes,10,opt,name=title,proto3" json:"title,omitempty"` + Content *content.Content `protobuf:"bytes,11,opt,name=content,proto3" json:"content,omitempty"` + Closed bool `protobuf:"varint,12,opt,name=closed,proto3" json:"closed,omitempty"` + RsvpOpen *bool `protobuf:"varint,13,opt,name=rsvp_open,json=rsvpOpen,proto3,oneof" json:"rsvp_open,omitempty"` + CreatorId *int32 `protobuf:"varint,14,opt,name=creator_id,json=creatorId,proto3,oneof" json:"creator_id,omitempty"` + Creator *users.UserShort `protobuf:"bytes,15,opt,name=creator,proto3,oneof" json:"creator,omitempty" alias:"creator"` // @gotags: alias:"creator" + CreatorJob string `protobuf:"bytes,16,opt,name=creator_job,json=creatorJob,proto3" json:"creator_job,omitempty"` + Recurring *CalendarEntryRecurring `protobuf:"bytes,17,opt,name=recurring,proto3,oneof" json:"recurring,omitempty"` + Rsvp *CalendarEntryRSVP `protobuf:"bytes,18,opt,name=rsvp,proto3,oneof" json:"rsvp,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *CalendarEntry) Reset() { @@ -614,13 +610,12 @@ func (x *CalendarEntry) GetRsvp() *CalendarEntryRSVP { } type CalendarEntryRecurring struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Every string `protobuf:"bytes,1,opt,name=every,proto3" json:"every,omitempty"` + Count int32 `protobuf:"varint,2,opt,name=count,proto3" json:"count,omitempty"` + Until *timestamp.Timestamp `protobuf:"bytes,3,opt,name=until,proto3,oneof" json:"until,omitempty"` unknownFields protoimpl.UnknownFields - - Every string `protobuf:"bytes,1,opt,name=every,proto3" json:"every,omitempty"` - Count int32 `protobuf:"varint,2,opt,name=count,proto3" json:"count,omitempty"` - Until *timestamp.Timestamp `protobuf:"bytes,3,opt,name=until,proto3,oneof" json:"until,omitempty"` + sizeCache protoimpl.SizeCache } func (x *CalendarEntryRecurring) Reset() { @@ -675,15 +670,14 @@ func (x *CalendarEntryRecurring) GetUntil() *timestamp.Timestamp { } type CalendarEntryRSVP struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + EntryId uint64 `protobuf:"varint,1,opt,name=entry_id,json=entryId,proto3" json:"entry_id,omitempty"` + CreatedAt *timestamp.Timestamp `protobuf:"bytes,2,opt,name=created_at,json=createdAt,proto3,oneof" json:"created_at,omitempty"` + UserId int32 `protobuf:"varint,3,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` + User *users.UserShort `protobuf:"bytes,4,opt,name=user,proto3,oneof" json:"user,omitempty"` + Response RsvpResponses `protobuf:"varint,5,opt,name=response,proto3,enum=resources.calendar.RsvpResponses" json:"response,omitempty"` unknownFields protoimpl.UnknownFields - - EntryId uint64 `protobuf:"varint,1,opt,name=entry_id,json=entryId,proto3" json:"entry_id,omitempty"` - CreatedAt *timestamp.Timestamp `protobuf:"bytes,2,opt,name=created_at,json=createdAt,proto3,oneof" json:"created_at,omitempty"` - UserId int32 `protobuf:"varint,3,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` - User *users.UserShort `protobuf:"bytes,4,opt,name=user,proto3,oneof" json:"user,omitempty"` - Response RsvpResponses `protobuf:"varint,5,opt,name=response,proto3,enum=resources.calendar.RsvpResponses" json:"response,omitempty"` + sizeCache protoimpl.SizeCache } func (x *CalendarEntryRSVP) Reset() { diff --git a/gen/go/proto/resources/centrum/access.pb.go b/gen/go/proto/resources/centrum/access.pb.go index d9d89e428..80ea613c8 100644 --- a/gen/go/proto/resources/centrum/access.pb.go +++ b/gen/go/proto/resources/centrum/access.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.35.2 +// protoc-gen-go v1.36.0 // protoc v3.20.3 // source: resources/centrum/access.proto @@ -73,12 +73,11 @@ func (UnitAccessLevel) EnumDescriptor() ([]byte, []int) { } type UnitAccess struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - + state protoimpl.MessageState `protogen:"open.v1"` Jobs []*UnitJobAccess `protobuf:"bytes,1,rep,name=jobs,proto3" json:"jobs,omitempty" alias:"job_access"` // @gotags: alias:"job_access" Qualifications []*UnitQualificationAccess `protobuf:"bytes,3,rep,name=qualifications,proto3" json:"qualifications,omitempty" alias:"qualification_access"` // @gotags: alias:"qualification_access" + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *UnitAccess) Reset() { @@ -126,18 +125,17 @@ func (x *UnitAccess) GetQualifications() []*UnitQualificationAccess { } type UnitJobAccess struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` + CreatedAt *timestamp.Timestamp `protobuf:"bytes,2,opt,name=created_at,json=createdAt,proto3,oneof" json:"created_at,omitempty"` + TargetId uint64 `protobuf:"varint,3,opt,name=target_id,json=targetId,proto3" json:"target_id,omitempty" alias:"calendar_id"` // @gotags: alias:"calendar_id" + Job string `protobuf:"bytes,4,opt,name=job,proto3" json:"job,omitempty"` + JobLabel *string `protobuf:"bytes,5,opt,name=job_label,json=jobLabel,proto3,oneof" json:"job_label,omitempty"` + MinimumGrade int32 `protobuf:"varint,6,opt,name=minimum_grade,json=minimumGrade,proto3" json:"minimum_grade,omitempty"` + JobGradeLabel *string `protobuf:"bytes,7,opt,name=job_grade_label,json=jobGradeLabel,proto3,oneof" json:"job_grade_label,omitempty"` + Access UnitAccessLevel `protobuf:"varint,8,opt,name=access,proto3,enum=resources.centrum.UnitAccessLevel" json:"access,omitempty"` unknownFields protoimpl.UnknownFields - - Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` - CreatedAt *timestamp.Timestamp `protobuf:"bytes,2,opt,name=created_at,json=createdAt,proto3,oneof" json:"created_at,omitempty"` - TargetId uint64 `protobuf:"varint,3,opt,name=target_id,json=targetId,proto3" json:"target_id,omitempty" alias:"calendar_id"` // @gotags: alias:"calendar_id" - Job string `protobuf:"bytes,4,opt,name=job,proto3" json:"job,omitempty"` - JobLabel *string `protobuf:"bytes,5,opt,name=job_label,json=jobLabel,proto3,oneof" json:"job_label,omitempty"` - MinimumGrade int32 `protobuf:"varint,6,opt,name=minimum_grade,json=minimumGrade,proto3" json:"minimum_grade,omitempty"` - JobGradeLabel *string `protobuf:"bytes,7,opt,name=job_grade_label,json=jobGradeLabel,proto3,oneof" json:"job_grade_label,omitempty"` - Access UnitAccessLevel `protobuf:"varint,8,opt,name=access,proto3,enum=resources.centrum.UnitAccessLevel" json:"access,omitempty"` + sizeCache protoimpl.SizeCache } func (x *UnitJobAccess) Reset() { @@ -227,9 +225,9 @@ func (x *UnitJobAccess) GetAccess() UnitAccessLevel { } type UnitUserAccess struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *UnitUserAccess) Reset() { @@ -263,16 +261,15 @@ func (*UnitUserAccess) Descriptor() ([]byte, []int) { } type UnitQualificationAccess struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - + state protoimpl.MessageState `protogen:"open.v1"` Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` CreatedAt *timestamp.Timestamp `protobuf:"bytes,2,opt,name=created_at,json=createdAt,proto3,oneof" json:"created_at,omitempty"` TargetId uint64 `protobuf:"varint,3,opt,name=target_id,json=targetId,proto3" json:"target_id,omitempty" alias:"thread_id"` // @gotags: alias:"thread_id" QualificationId uint64 `protobuf:"varint,4,opt,name=qualification_id,json=qualificationId,proto3" json:"qualification_id,omitempty"` Qualification *qualifications.QualificationShort `protobuf:"bytes,5,opt,name=qualification,proto3,oneof" json:"qualification,omitempty"` Access UnitAccessLevel `protobuf:"varint,6,opt,name=access,proto3,enum=resources.centrum.UnitAccessLevel" json:"access,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *UnitQualificationAccess) Reset() { diff --git a/gen/go/proto/resources/centrum/dispatches.pb.go b/gen/go/proto/resources/centrum/dispatches.pb.go index 923a52278..438fe75a0 100644 --- a/gen/go/proto/resources/centrum/dispatches.pb.go +++ b/gen/go/proto/resources/centrum/dispatches.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.35.2 +// protoc-gen-go v1.36.0 // protoc v3.20.3 // source: resources/centrum/dispatches.proto @@ -211,15 +211,12 @@ func (DispatchReferenceType) EnumDescriptor() ([]byte, []int) { } type Dispatch struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty" sql:"primary_key" alias:"id"` // @gotags: sql:"primary_key" alias:"id" - CreatedAt *timestamp.Timestamp `protobuf:"bytes,2,opt,name=created_at,json=createdAt,proto3,oneof" json:"created_at,omitempty"` - UpdatedAt *timestamp.Timestamp `protobuf:"bytes,3,opt,name=updated_at,json=updatedAt,proto3,oneof" json:"updated_at,omitempty"` - Job string `protobuf:"bytes,4,opt,name=job,proto3" json:"job,omitempty"` - Status *DispatchStatus `protobuf:"bytes,5,opt,name=status,proto3,oneof" json:"status,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty" sql:"primary_key" alias:"id"` // @gotags: sql:"primary_key" alias:"id" + CreatedAt *timestamp.Timestamp `protobuf:"bytes,2,opt,name=created_at,json=createdAt,proto3,oneof" json:"created_at,omitempty"` + UpdatedAt *timestamp.Timestamp `protobuf:"bytes,3,opt,name=updated_at,json=updatedAt,proto3,oneof" json:"updated_at,omitempty"` + Job string `protobuf:"bytes,4,opt,name=job,proto3" json:"job,omitempty"` + Status *DispatchStatus `protobuf:"bytes,5,opt,name=status,proto3,oneof" json:"status,omitempty"` // @sanitize Message string `protobuf:"bytes,7,opt,name=message,proto3" json:"message,omitempty"` // @sanitize @@ -228,12 +225,14 @@ type Dispatch struct { X float64 `protobuf:"fixed64,10,opt,name=x,proto3" json:"x,omitempty"` Y float64 `protobuf:"fixed64,11,opt,name=y,proto3" json:"y,omitempty"` // @sanitize - Postal *string `protobuf:"bytes,12,opt,name=postal,proto3,oneof" json:"postal,omitempty"` - Anon bool `protobuf:"varint,13,opt,name=anon,proto3" json:"anon,omitempty"` - CreatorId *int32 `protobuf:"varint,14,opt,name=creator_id,json=creatorId,proto3,oneof" json:"creator_id,omitempty"` - Creator *users.User `protobuf:"bytes,15,opt,name=creator,proto3,oneof" json:"creator,omitempty"` - Units []*DispatchAssignment `protobuf:"bytes,16,rep,name=units,proto3" json:"units,omitempty"` - References *DispatchReferences `protobuf:"bytes,17,opt,name=references,proto3,oneof" json:"references,omitempty"` + Postal *string `protobuf:"bytes,12,opt,name=postal,proto3,oneof" json:"postal,omitempty"` + Anon bool `protobuf:"varint,13,opt,name=anon,proto3" json:"anon,omitempty"` + CreatorId *int32 `protobuf:"varint,14,opt,name=creator_id,json=creatorId,proto3,oneof" json:"creator_id,omitempty"` + Creator *users.User `protobuf:"bytes,15,opt,name=creator,proto3,oneof" json:"creator,omitempty"` + Units []*DispatchAssignment `protobuf:"bytes,16,rep,name=units,proto3" json:"units,omitempty"` + References *DispatchReferences `protobuf:"bytes,17,opt,name=references,proto3,oneof" json:"references,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *Dispatch) Reset() { @@ -379,13 +378,12 @@ func (x *Dispatch) GetReferences() *DispatchReferences { } type DispatchAssignments struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + DispatchId uint64 `protobuf:"varint,1,opt,name=dispatch_id,json=dispatchId,proto3" json:"dispatch_id,omitempty"` + Job string `protobuf:"bytes,2,opt,name=job,proto3" json:"job,omitempty"` + Units []*DispatchAssignment `protobuf:"bytes,3,rep,name=units,proto3" json:"units,omitempty"` unknownFields protoimpl.UnknownFields - - DispatchId uint64 `protobuf:"varint,1,opt,name=dispatch_id,json=dispatchId,proto3" json:"dispatch_id,omitempty"` - Job string `protobuf:"bytes,2,opt,name=job,proto3" json:"job,omitempty"` - Units []*DispatchAssignment `protobuf:"bytes,3,rep,name=units,proto3" json:"units,omitempty"` + sizeCache protoimpl.SizeCache } func (x *DispatchAssignments) Reset() { @@ -440,15 +438,14 @@ func (x *DispatchAssignments) GetUnits() []*DispatchAssignment { } type DispatchAssignment struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + DispatchId uint64 `protobuf:"varint,1,opt,name=dispatch_id,json=dispatchId,proto3" json:"dispatch_id,omitempty" sql:"primary_key" alias:"dispatch_id"` // @gotags: sql:"primary_key" alias:"dispatch_id" + UnitId uint64 `protobuf:"varint,2,opt,name=unit_id,json=unitId,proto3" json:"unit_id,omitempty" sql:"primary_key" alias:"unit_id"` // @gotags: sql:"primary_key" alias:"unit_id" + Unit *Unit `protobuf:"bytes,3,opt,name=unit,proto3,oneof" json:"unit,omitempty"` + CreatedAt *timestamp.Timestamp `protobuf:"bytes,4,opt,name=created_at,json=createdAt,proto3,oneof" json:"created_at,omitempty"` + ExpiresAt *timestamp.Timestamp `protobuf:"bytes,5,opt,name=expires_at,json=expiresAt,proto3,oneof" json:"expires_at,omitempty"` unknownFields protoimpl.UnknownFields - - DispatchId uint64 `protobuf:"varint,1,opt,name=dispatch_id,json=dispatchId,proto3" json:"dispatch_id,omitempty" sql:"primary_key" alias:"dispatch_id"` // @gotags: sql:"primary_key" alias:"dispatch_id" - UnitId uint64 `protobuf:"varint,2,opt,name=unit_id,json=unitId,proto3" json:"unit_id,omitempty" sql:"primary_key" alias:"unit_id"` // @gotags: sql:"primary_key" alias:"unit_id" - Unit *Unit `protobuf:"bytes,3,opt,name=unit,proto3,oneof" json:"unit,omitempty"` - CreatedAt *timestamp.Timestamp `protobuf:"bytes,4,opt,name=created_at,json=createdAt,proto3,oneof" json:"created_at,omitempty"` - ExpiresAt *timestamp.Timestamp `protobuf:"bytes,5,opt,name=expires_at,json=expiresAt,proto3,oneof" json:"expires_at,omitempty"` + sizeCache protoimpl.SizeCache } func (x *DispatchAssignment) Reset() { @@ -517,16 +514,13 @@ func (x *DispatchAssignment) GetExpiresAt() *timestamp.Timestamp { } type DispatchStatus struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty" sql:"primary_key" alias:"id"` // @gotags: sql:"primary_key" alias:"id" - CreatedAt *timestamp.Timestamp `protobuf:"bytes,2,opt,name=created_at,json=createdAt,proto3,oneof" json:"created_at,omitempty"` - DispatchId uint64 `protobuf:"varint,3,opt,name=dispatch_id,json=dispatchId,proto3" json:"dispatch_id,omitempty"` - UnitId *uint64 `protobuf:"varint,4,opt,name=unit_id,json=unitId,proto3,oneof" json:"unit_id,omitempty"` - Unit *Unit `protobuf:"bytes,5,opt,name=unit,proto3,oneof" json:"unit,omitempty"` - Status StatusDispatch `protobuf:"varint,6,opt,name=status,proto3,enum=resources.centrum.StatusDispatch" json:"status,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty" sql:"primary_key" alias:"id"` // @gotags: sql:"primary_key" alias:"id" + CreatedAt *timestamp.Timestamp `protobuf:"bytes,2,opt,name=created_at,json=createdAt,proto3,oneof" json:"created_at,omitempty"` + DispatchId uint64 `protobuf:"varint,3,opt,name=dispatch_id,json=dispatchId,proto3" json:"dispatch_id,omitempty"` + UnitId *uint64 `protobuf:"varint,4,opt,name=unit_id,json=unitId,proto3,oneof" json:"unit_id,omitempty"` + Unit *Unit `protobuf:"bytes,5,opt,name=unit,proto3,oneof" json:"unit,omitempty"` + Status StatusDispatch `protobuf:"varint,6,opt,name=status,proto3,enum=resources.centrum.StatusDispatch" json:"status,omitempty"` // @sanitize Reason *string `protobuf:"bytes,7,opt,name=reason,proto3,oneof" json:"reason,omitempty"` // @sanitize @@ -536,7 +530,9 @@ type DispatchStatus struct { X *float64 `protobuf:"fixed64,11,opt,name=x,proto3,oneof" json:"x,omitempty"` Y *float64 `protobuf:"fixed64,12,opt,name=y,proto3,oneof" json:"y,omitempty"` // @sanitize - Postal *string `protobuf:"bytes,13,opt,name=postal,proto3,oneof" json:"postal,omitempty"` + Postal *string `protobuf:"bytes,13,opt,name=postal,proto3,oneof" json:"postal,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *DispatchStatus) Reset() { @@ -661,11 +657,10 @@ func (x *DispatchStatus) GetPostal() string { } type DispatchReferences struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + References []*DispatchReference `protobuf:"bytes,1,rep,name=references,proto3" json:"references,omitempty"` unknownFields protoimpl.UnknownFields - - References []*DispatchReference `protobuf:"bytes,1,rep,name=references,proto3" json:"references,omitempty"` + sizeCache protoimpl.SizeCache } func (x *DispatchReferences) Reset() { @@ -706,12 +701,11 @@ func (x *DispatchReferences) GetReferences() []*DispatchReference { } type DispatchReference struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - TargetDispatchId uint64 `protobuf:"varint,1,opt,name=target_dispatch_id,json=targetDispatchId,proto3" json:"target_dispatch_id,omitempty"` - ReferenceType DispatchReferenceType `protobuf:"varint,2,opt,name=reference_type,json=referenceType,proto3,enum=resources.centrum.DispatchReferenceType" json:"reference_type,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + TargetDispatchId uint64 `protobuf:"varint,1,opt,name=target_dispatch_id,json=targetDispatchId,proto3" json:"target_dispatch_id,omitempty"` + ReferenceType DispatchReferenceType `protobuf:"varint,2,opt,name=reference_type,json=referenceType,proto3,enum=resources.centrum.DispatchReferenceType" json:"reference_type,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *DispatchReference) Reset() { diff --git a/gen/go/proto/resources/centrum/general.pb.go b/gen/go/proto/resources/centrum/general.pb.go index 89784756a..a4ce143af 100644 --- a/gen/go/proto/resources/centrum/general.pb.go +++ b/gen/go/proto/resources/centrum/general.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.35.2 +// protoc-gen-go v1.36.0 // protoc v3.20.3 // source: resources/centrum/general.proto @@ -24,12 +24,11 @@ const ( ) type Attributes struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - + state protoimpl.MessageState `protogen:"open.v1"` // @sanitize: method=StripTags - List []string `protobuf:"bytes,1,rep,name=list,proto3" json:"list,omitempty"` + List []string `protobuf:"bytes,1,rep,name=list,proto3" json:"list,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *Attributes) Reset() { @@ -70,12 +69,11 @@ func (x *Attributes) GetList() []string { } type Disponents struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Job string `protobuf:"bytes,1,opt,name=job,proto3" json:"job,omitempty"` + Disponents []*jobs.Colleague `protobuf:"bytes,2,rep,name=disponents,proto3" json:"disponents,omitempty"` unknownFields protoimpl.UnknownFields - - Job string `protobuf:"bytes,1,opt,name=job,proto3" json:"job,omitempty"` - Disponents []*jobs.Colleague `protobuf:"bytes,2,rep,name=disponents,proto3" json:"disponents,omitempty"` + sizeCache protoimpl.SizeCache } func (x *Disponents) Reset() { @@ -123,14 +121,13 @@ func (x *Disponents) GetDisponents() []*jobs.Colleague { } type UserUnitMapping struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + UnitId uint64 `protobuf:"varint,1,opt,name=unit_id,json=unitId,proto3" json:"unit_id,omitempty"` + Job string `protobuf:"bytes,2,opt,name=job,proto3" json:"job,omitempty"` + UserId int32 `protobuf:"varint,3,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` + CreatedAt *timestamp.Timestamp `protobuf:"bytes,4,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` unknownFields protoimpl.UnknownFields - - UnitId uint64 `protobuf:"varint,1,opt,name=unit_id,json=unitId,proto3" json:"unit_id,omitempty"` - Job string `protobuf:"bytes,2,opt,name=job,proto3" json:"job,omitempty"` - UserId int32 `protobuf:"varint,3,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` - CreatedAt *timestamp.Timestamp `protobuf:"bytes,4,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` + sizeCache protoimpl.SizeCache } func (x *UserUnitMapping) Reset() { diff --git a/gen/go/proto/resources/centrum/settings.pb.go b/gen/go/proto/resources/centrum/settings.pb.go index c904954c2..0feed665b 100644 --- a/gen/go/proto/resources/centrum/settings.pb.go +++ b/gen/go/proto/resources/centrum/settings.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.35.2 +// protoc-gen-go v1.36.0 // protoc v3.20.3 // source: resources/centrum/settings.proto @@ -77,16 +77,15 @@ func (CentrumMode) EnumDescriptor() ([]byte, []int) { } type Settings struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Job string `protobuf:"bytes,1,opt,name=job,proto3" json:"job,omitempty"` - Enabled bool `protobuf:"varint,2,opt,name=enabled,proto3" json:"enabled,omitempty"` - Mode CentrumMode `protobuf:"varint,3,opt,name=mode,proto3,enum=resources.centrum.CentrumMode" json:"mode,omitempty"` - FallbackMode CentrumMode `protobuf:"varint,4,opt,name=fallback_mode,json=fallbackMode,proto3,enum=resources.centrum.CentrumMode" json:"fallback_mode,omitempty"` - PredefinedStatus *PredefinedStatus `protobuf:"bytes,5,opt,name=predefined_status,json=predefinedStatus,proto3,oneof" json:"predefined_status,omitempty"` - Timings *Timings `protobuf:"bytes,6,opt,name=timings,proto3" json:"timings,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + Job string `protobuf:"bytes,1,opt,name=job,proto3" json:"job,omitempty"` + Enabled bool `protobuf:"varint,2,opt,name=enabled,proto3" json:"enabled,omitempty"` + Mode CentrumMode `protobuf:"varint,3,opt,name=mode,proto3,enum=resources.centrum.CentrumMode" json:"mode,omitempty"` + FallbackMode CentrumMode `protobuf:"varint,4,opt,name=fallback_mode,json=fallbackMode,proto3,enum=resources.centrum.CentrumMode" json:"fallback_mode,omitempty"` + PredefinedStatus *PredefinedStatus `protobuf:"bytes,5,opt,name=predefined_status,json=predefinedStatus,proto3,oneof" json:"predefined_status,omitempty"` + Timings *Timings `protobuf:"bytes,6,opt,name=timings,proto3" json:"timings,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *Settings) Reset() { @@ -162,14 +161,13 @@ func (x *Settings) GetTimings() *Timings { } type PredefinedStatus struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - + state protoimpl.MessageState `protogen:"open.v1"` // @sanitize: method=StripTags UnitStatus []string `protobuf:"bytes,1,rep,name=unit_status,json=unitStatus,proto3" json:"unit_status,omitempty"` // @sanitize: method=StripTags DispatchStatus []string `protobuf:"bytes,2,rep,name=dispatch_status,json=dispatchStatus,proto3" json:"dispatch_status,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *PredefinedStatus) Reset() { @@ -217,13 +215,12 @@ func (x *PredefinedStatus) GetDispatchStatus() []string { } type Timings struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - DispatchMaxWait int64 `protobuf:"varint,1,opt,name=dispatch_max_wait,json=dispatchMaxWait,proto3" json:"dispatch_max_wait,omitempty"` - RequireUnit bool `protobuf:"varint,2,opt,name=require_unit,json=requireUnit,proto3" json:"require_unit,omitempty"` - RequireUnitReminderSeconds int64 `protobuf:"varint,3,opt,name=require_unit_reminder_seconds,json=requireUnitReminderSeconds,proto3" json:"require_unit_reminder_seconds,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + DispatchMaxWait int64 `protobuf:"varint,1,opt,name=dispatch_max_wait,json=dispatchMaxWait,proto3" json:"dispatch_max_wait,omitempty"` + RequireUnit bool `protobuf:"varint,2,opt,name=require_unit,json=requireUnit,proto3" json:"require_unit,omitempty"` + RequireUnitReminderSeconds int64 `protobuf:"varint,3,opt,name=require_unit_reminder_seconds,json=requireUnitReminderSeconds,proto3" json:"require_unit_reminder_seconds,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *Timings) Reset() { diff --git a/gen/go/proto/resources/centrum/units.pb.go b/gen/go/proto/resources/centrum/units.pb.go index f60426a2c..ac78b922a 100644 --- a/gen/go/proto/resources/centrum/units.pb.go +++ b/gen/go/proto/resources/centrum/units.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.35.2 +// protoc-gen-go v1.36.0 // protoc v3.20.3 // source: resources/centrum/units.proto @@ -88,14 +88,11 @@ func (StatusUnit) EnumDescriptor() ([]byte, []int) { } type Unit struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty" sql:"primary_key" alias:"id"` // @gotags: sql:"primary_key" alias:"id" - CreatedAt *timestamp.Timestamp `protobuf:"bytes,2,opt,name=created_at,json=createdAt,proto3,oneof" json:"created_at,omitempty"` - UpdatedAt *timestamp.Timestamp `protobuf:"bytes,3,opt,name=updated_at,json=updatedAt,proto3,oneof" json:"updated_at,omitempty"` - Job string `protobuf:"bytes,4,opt,name=job,proto3" json:"job,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty" sql:"primary_key" alias:"id"` // @gotags: sql:"primary_key" alias:"id" + CreatedAt *timestamp.Timestamp `protobuf:"bytes,2,opt,name=created_at,json=createdAt,proto3,oneof" json:"created_at,omitempty"` + UpdatedAt *timestamp.Timestamp `protobuf:"bytes,3,opt,name=updated_at,json=updatedAt,proto3,oneof" json:"updated_at,omitempty"` + Job string `protobuf:"bytes,4,opt,name=job,proto3" json:"job,omitempty"` // @sanitize Name string `protobuf:"bytes,5,opt,name=name,proto3" json:"name,omitempty"` // @sanitize @@ -103,12 +100,14 @@ type Unit struct { // @sanitize: method=StripTags Color string `protobuf:"bytes,7,opt,name=color,proto3" json:"color,omitempty"` // @sanitize - Description *string `protobuf:"bytes,8,opt,name=description,proto3,oneof" json:"description,omitempty"` - Status *UnitStatus `protobuf:"bytes,9,opt,name=status,proto3,oneof" json:"status,omitempty"` - Users []*UnitAssignment `protobuf:"bytes,11,rep,name=users,proto3" json:"users,omitempty"` - Attributes *Attributes `protobuf:"bytes,12,opt,name=attributes,proto3,oneof" json:"attributes,omitempty"` - HomePostal *string `protobuf:"bytes,13,opt,name=home_postal,json=homePostal,proto3,oneof" json:"home_postal,omitempty"` - Access *UnitAccess `protobuf:"bytes,14,opt,name=access,proto3" json:"access,omitempty"` + Description *string `protobuf:"bytes,8,opt,name=description,proto3,oneof" json:"description,omitempty"` + Status *UnitStatus `protobuf:"bytes,9,opt,name=status,proto3,oneof" json:"status,omitempty"` + Users []*UnitAssignment `protobuf:"bytes,11,rep,name=users,proto3" json:"users,omitempty"` + Attributes *Attributes `protobuf:"bytes,12,opt,name=attributes,proto3,oneof" json:"attributes,omitempty"` + HomePostal *string `protobuf:"bytes,13,opt,name=home_postal,json=homePostal,proto3,oneof" json:"home_postal,omitempty"` + Access *UnitAccess `protobuf:"bytes,14,opt,name=access,proto3" json:"access,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *Unit) Reset() { @@ -233,13 +232,12 @@ func (x *Unit) GetAccess() *UnitAccess { } type UnitAssignments struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + UnitId uint64 `protobuf:"varint,1,opt,name=unit_id,json=unitId,proto3" json:"unit_id,omitempty"` + Job string `protobuf:"bytes,2,opt,name=job,proto3" json:"job,omitempty"` + Users []*UnitAssignment `protobuf:"bytes,3,rep,name=users,proto3" json:"users,omitempty"` unknownFields protoimpl.UnknownFields - - UnitId uint64 `protobuf:"varint,1,opt,name=unit_id,json=unitId,proto3" json:"unit_id,omitempty"` - Job string `protobuf:"bytes,2,opt,name=job,proto3" json:"job,omitempty"` - Users []*UnitAssignment `protobuf:"bytes,3,rep,name=users,proto3" json:"users,omitempty"` + sizeCache protoimpl.SizeCache } func (x *UnitAssignments) Reset() { @@ -294,13 +292,12 @@ func (x *UnitAssignments) GetUsers() []*UnitAssignment { } type UnitAssignment struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + UnitId uint64 `protobuf:"varint,1,opt,name=unit_id,json=unitId,proto3" json:"unit_id,omitempty" sql:"primary_key" alias:"unit_id"` // @gotags: sql:"primary_key" alias:"unit_id" + UserId int32 `protobuf:"varint,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty" sql:"primary_key" alias:"user_id"` // @gotags: sql:"primary_key" alias:"user_id" + User *jobs.Colleague `protobuf:"bytes,3,opt,name=user,proto3,oneof" json:"user,omitempty"` unknownFields protoimpl.UnknownFields - - UnitId uint64 `protobuf:"varint,1,opt,name=unit_id,json=unitId,proto3" json:"unit_id,omitempty" sql:"primary_key" alias:"unit_id"` // @gotags: sql:"primary_key" alias:"unit_id" - UserId int32 `protobuf:"varint,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty" sql:"primary_key" alias:"user_id"` // @gotags: sql:"primary_key" alias:"user_id" - User *jobs.Colleague `protobuf:"bytes,3,opt,name=user,proto3,oneof" json:"user,omitempty"` + sizeCache protoimpl.SizeCache } func (x *UnitAssignment) Reset() { @@ -355,15 +352,12 @@ func (x *UnitAssignment) GetUser() *jobs.Colleague { } type UnitStatus struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty" sql:"primary_key" alias:"id"` // @gotags: sql:"primary_key" alias:"id" - CreatedAt *timestamp.Timestamp `protobuf:"bytes,2,opt,name=created_at,json=createdAt,proto3,oneof" json:"created_at,omitempty"` - UnitId uint64 `protobuf:"varint,3,opt,name=unit_id,json=unitId,proto3" json:"unit_id,omitempty"` - Unit *Unit `protobuf:"bytes,4,opt,name=unit,proto3,oneof" json:"unit,omitempty"` - Status StatusUnit `protobuf:"varint,5,opt,name=status,proto3,enum=resources.centrum.StatusUnit" json:"status,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty" sql:"primary_key" alias:"id"` // @gotags: sql:"primary_key" alias:"id" + CreatedAt *timestamp.Timestamp `protobuf:"bytes,2,opt,name=created_at,json=createdAt,proto3,oneof" json:"created_at,omitempty"` + UnitId uint64 `protobuf:"varint,3,opt,name=unit_id,json=unitId,proto3" json:"unit_id,omitempty"` + Unit *Unit `protobuf:"bytes,4,opt,name=unit,proto3,oneof" json:"unit,omitempty"` + Status StatusUnit `protobuf:"varint,5,opt,name=status,proto3,enum=resources.centrum.StatusUnit" json:"status,omitempty"` // @sanitize Reason *string `protobuf:"bytes,6,opt,name=reason,proto3,oneof" json:"reason,omitempty"` // @sanitize @@ -373,9 +367,11 @@ type UnitStatus struct { X *float64 `protobuf:"fixed64,10,opt,name=x,proto3,oneof" json:"x,omitempty"` Y *float64 `protobuf:"fixed64,11,opt,name=y,proto3,oneof" json:"y,omitempty"` // @sanitize - Postal *string `protobuf:"bytes,12,opt,name=postal,proto3,oneof" json:"postal,omitempty"` - CreatorId *int32 `protobuf:"varint,13,opt,name=creator_id,json=creatorId,proto3,oneof" json:"creator_id,omitempty"` - Creator *jobs.Colleague `protobuf:"bytes,14,opt,name=creator,proto3,oneof" json:"creator,omitempty"` + Postal *string `protobuf:"bytes,12,opt,name=postal,proto3,oneof" json:"postal,omitempty"` + CreatorId *int32 `protobuf:"varint,13,opt,name=creator_id,json=creatorId,proto3,oneof" json:"creator_id,omitempty"` + Creator *jobs.Colleague `protobuf:"bytes,14,opt,name=creator,proto3,oneof" json:"creator,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *UnitStatus) Reset() { diff --git a/gen/go/proto/resources/common/content/content.pb.go b/gen/go/proto/resources/common/content/content.pb.go index 326922df0..894a745b2 100644 --- a/gen/go/proto/resources/common/content/content.pb.go +++ b/gen/go/proto/resources/common/content/content.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.35.2 +// protoc-gen-go v1.36.0 // protoc v3.20.3 // source: resources/common/content/content.proto @@ -71,14 +71,13 @@ func (ContentType) EnumDescriptor() ([]byte, []int) { } type Content struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Version *string `protobuf:"bytes,1,opt,name=version,proto3,oneof" json:"version,omitempty"` - Content *JSONNode `protobuf:"bytes,2,opt,name=content,proto3,oneof" json:"content,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + Version *string `protobuf:"bytes,1,opt,name=version,proto3,oneof" json:"version,omitempty"` + Content *JSONNode `protobuf:"bytes,2,opt,name=content,proto3,oneof" json:"content,omitempty"` // @sanitize - RawContent *string `protobuf:"bytes,3,opt,name=raw_content,json=rawContent,proto3,oneof" json:"raw_content,omitempty"` + RawContent *string `protobuf:"bytes,3,opt,name=raw_content,json=rawContent,proto3,oneof" json:"raw_content,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *Content) Reset() { @@ -133,10 +132,7 @@ func (x *Content) GetRawContent() string { } type JSONNode struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - + state protoimpl.MessageState `protogen:"open.v1"` // @sanitize: method=StripTags Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"` // @sanitize: method=StripTags @@ -144,10 +140,12 @@ type JSONNode struct { // @sanitize: method=StripTags Tag string `protobuf:"bytes,3,opt,name=tag,proto3" json:"tag,omitempty"` // @sanitize: method=StripTags - Attrs map[string]string `protobuf:"bytes,4,rep,name=attrs,proto3" json:"attrs,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + Attrs map[string]string `protobuf:"bytes,4,rep,name=attrs,proto3" json:"attrs,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"` // @sanitize: method=StripTags - Text string `protobuf:"bytes,5,opt,name=text,proto3" json:"text,omitempty"` - Content []*JSONNode `protobuf:"bytes,6,rep,name=content,proto3" json:"content,omitempty"` + Text string `protobuf:"bytes,5,opt,name=text,proto3" json:"text,omitempty"` + Content []*JSONNode `protobuf:"bytes,6,rep,name=content,proto3" json:"content,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *JSONNode) Reset() { diff --git a/gen/go/proto/resources/common/cron/cron.pb.go b/gen/go/proto/resources/common/cron/cron.pb.go index 0ded3c4ce..09587c39a 100644 --- a/gen/go/proto/resources/common/cron/cron.pb.go +++ b/gen/go/proto/resources/common/cron/cron.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.35.2 +// protoc-gen-go v1.36.0 // protoc v3.20.3 // source: resources/common/cron/cron.proto @@ -76,18 +76,17 @@ func (CronjobState) EnumDescriptor() ([]byte, []int) { } type Cronjob struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` - Schedule string `protobuf:"bytes,2,opt,name=schedule,proto3" json:"schedule,omitempty"` - State CronjobState `protobuf:"varint,3,opt,name=state,proto3,enum=resources.common.cron.CronjobState" json:"state,omitempty"` - NextScheduleTime *timestamp.Timestamp `protobuf:"bytes,4,opt,name=next_schedule_time,json=nextScheduleTime,proto3" json:"next_schedule_time,omitempty"` - LastAttemptTime *timestamp.Timestamp `protobuf:"bytes,5,opt,name=last_attempt_time,json=lastAttemptTime,proto3,oneof" json:"last_attempt_time,omitempty"` - StartedTime *timestamp.Timestamp `protobuf:"bytes,6,opt,name=started_time,json=startedTime,proto3,oneof" json:"started_time,omitempty"` - Timeout *durationpb.Duration `protobuf:"bytes,7,opt,name=timeout,proto3,oneof" json:"timeout,omitempty"` - Data *CronjobData `protobuf:"bytes,8,opt,name=data,proto3" json:"data,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + Schedule string `protobuf:"bytes,2,opt,name=schedule,proto3" json:"schedule,omitempty"` + State CronjobState `protobuf:"varint,3,opt,name=state,proto3,enum=resources.common.cron.CronjobState" json:"state,omitempty"` + NextScheduleTime *timestamp.Timestamp `protobuf:"bytes,4,opt,name=next_schedule_time,json=nextScheduleTime,proto3" json:"next_schedule_time,omitempty"` + LastAttemptTime *timestamp.Timestamp `protobuf:"bytes,5,opt,name=last_attempt_time,json=lastAttemptTime,proto3,oneof" json:"last_attempt_time,omitempty"` + StartedTime *timestamp.Timestamp `protobuf:"bytes,6,opt,name=started_time,json=startedTime,proto3,oneof" json:"started_time,omitempty"` + Timeout *durationpb.Duration `protobuf:"bytes,7,opt,name=timeout,proto3,oneof" json:"timeout,omitempty"` + Data *CronjobData `protobuf:"bytes,8,opt,name=data,proto3" json:"data,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *Cronjob) Reset() { @@ -177,12 +176,11 @@ func (x *Cronjob) GetData() *CronjobData { } type CronjobData struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + UpdatedAt *timestamp.Timestamp `protobuf:"bytes,1,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"` + Data *anypb.Any `protobuf:"bytes,2,opt,name=data,proto3,oneof" json:"data,omitempty"` unknownFields protoimpl.UnknownFields - - UpdatedAt *timestamp.Timestamp `protobuf:"bytes,1,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"` - Data *anypb.Any `protobuf:"bytes,2,opt,name=data,proto3,oneof" json:"data,omitempty"` + sizeCache protoimpl.SizeCache } func (x *CronjobData) Reset() { @@ -230,12 +228,11 @@ func (x *CronjobData) GetData() *anypb.Any { } type CronjobLockOwnerState struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Hostname string `protobuf:"bytes,1,opt,name=hostname,proto3" json:"hostname,omitempty"` + UpdatedAt *timestamp.Timestamp `protobuf:"bytes,2,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"` unknownFields protoimpl.UnknownFields - - Hostname string `protobuf:"bytes,1,opt,name=hostname,proto3" json:"hostname,omitempty"` - UpdatedAt *timestamp.Timestamp `protobuf:"bytes,2,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"` + sizeCache protoimpl.SizeCache } func (x *CronjobLockOwnerState) Reset() { @@ -283,11 +280,10 @@ func (x *CronjobLockOwnerState) GetUpdatedAt() *timestamp.Timestamp { } type CronjobSchedulerEvent struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Cronjob *Cronjob `protobuf:"bytes,1,opt,name=cronjob,proto3" json:"cronjob,omitempty"` unknownFields protoimpl.UnknownFields - - Cronjob *Cronjob `protobuf:"bytes,1,opt,name=cronjob,proto3" json:"cronjob,omitempty"` + sizeCache protoimpl.SizeCache } func (x *CronjobSchedulerEvent) Reset() { @@ -328,15 +324,14 @@ func (x *CronjobSchedulerEvent) GetCronjob() *Cronjob { } type CronjobCompletedEvent struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + Sucess bool `protobuf:"varint,2,opt,name=sucess,proto3" json:"sucess,omitempty"` + EndDate *timestamp.Timestamp `protobuf:"bytes,3,opt,name=endDate,proto3" json:"endDate,omitempty"` + Elapsed *durationpb.Duration `protobuf:"bytes,4,opt,name=elapsed,proto3" json:"elapsed,omitempty"` + Data *CronjobData `protobuf:"bytes,5,opt,name=data,proto3,oneof" json:"data,omitempty"` unknownFields protoimpl.UnknownFields - - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` - Sucess bool `protobuf:"varint,2,opt,name=sucess,proto3" json:"sucess,omitempty"` - EndDate *timestamp.Timestamp `protobuf:"bytes,3,opt,name=endDate,proto3" json:"endDate,omitempty"` - Elapsed *durationpb.Duration `protobuf:"bytes,4,opt,name=elapsed,proto3" json:"elapsed,omitempty"` - Data *CronjobData `protobuf:"bytes,5,opt,name=data,proto3,oneof" json:"data,omitempty"` + sizeCache protoimpl.SizeCache } func (x *CronjobCompletedEvent) Reset() { @@ -405,12 +400,11 @@ func (x *CronjobCompletedEvent) GetData() *CronjobData { } type GenericCronData struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - + state protoimpl.MessageState `protogen:"open.v1"` // @sanitize: method=StripTags - Attributes map[string]string `protobuf:"bytes,1,rep,name=attributes,proto3" json:"attributes,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + Attributes map[string]string `protobuf:"bytes,1,rep,name=attributes,proto3" json:"attributes,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *GenericCronData) Reset() { diff --git a/gen/go/proto/resources/common/database/database.pb.go b/gen/go/proto/resources/common/database/database.pb.go index 24f19bf98..392395b89 100644 --- a/gen/go/proto/resources/common/database/database.pb.go +++ b/gen/go/proto/resources/common/database/database.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.35.2 +// protoc-gen-go v1.36.0 // protoc v3.20.3 // source: resources/common/database/database.proto @@ -23,12 +23,11 @@ const ( ) type PaginationRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Offset int64 `protobuf:"varint,1,opt,name=offset,proto3" json:"offset,omitempty"` + PageSize *int64 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3,oneof" json:"page_size,omitempty"` unknownFields protoimpl.UnknownFields - - Offset int64 `protobuf:"varint,1,opt,name=offset,proto3" json:"offset,omitempty"` - PageSize *int64 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3,oneof" json:"page_size,omitempty"` + sizeCache protoimpl.SizeCache } func (x *PaginationRequest) Reset() { @@ -76,14 +75,13 @@ func (x *PaginationRequest) GetPageSize() int64 { } type PaginationResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + TotalCount int64 `protobuf:"varint,1,opt,name=total_count,json=totalCount,proto3" json:"total_count,omitempty"` + Offset int64 `protobuf:"varint,2,opt,name=offset,proto3" json:"offset,omitempty"` + End int64 `protobuf:"varint,3,opt,name=end,proto3" json:"end,omitempty"` + PageSize int64 `protobuf:"varint,4,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` unknownFields protoimpl.UnknownFields - - TotalCount int64 `protobuf:"varint,1,opt,name=total_count,json=totalCount,proto3" json:"total_count,omitempty"` - Offset int64 `protobuf:"varint,2,opt,name=offset,proto3" json:"offset,omitempty"` - End int64 `protobuf:"varint,3,opt,name=end,proto3" json:"end,omitempty"` - PageSize int64 `protobuf:"varint,4,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` + sizeCache protoimpl.SizeCache } func (x *PaginationResponse) Reset() { @@ -145,12 +143,11 @@ func (x *PaginationResponse) GetPageSize() int64 { } type Sort struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Column string `protobuf:"bytes,1,opt,name=column,proto3" json:"column,omitempty"` + Direction string `protobuf:"bytes,2,opt,name=direction,proto3" json:"direction,omitempty"` unknownFields protoimpl.UnknownFields - - Column string `protobuf:"bytes,1,opt,name=column,proto3" json:"column,omitempty"` - Direction string `protobuf:"bytes,2,opt,name=direction,proto3" json:"direction,omitempty"` + sizeCache protoimpl.SizeCache } func (x *Sort) Reset() { @@ -198,12 +195,11 @@ func (x *Sort) GetDirection() string { } type DateRange struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Start *timestamp.Timestamp `protobuf:"bytes,1,opt,name=start,proto3" json:"start,omitempty"` + End *timestamp.Timestamp `protobuf:"bytes,2,opt,name=end,proto3" json:"end,omitempty"` unknownFields protoimpl.UnknownFields - - Start *timestamp.Timestamp `protobuf:"bytes,1,opt,name=start,proto3" json:"start,omitempty"` - End *timestamp.Timestamp `protobuf:"bytes,2,opt,name=end,proto3" json:"end,omitempty"` + sizeCache protoimpl.SizeCache } func (x *DateRange) Reset() { diff --git a/gen/go/proto/resources/common/error.pb.go b/gen/go/proto/resources/common/error.pb.go index 54c46db7e..c40ad9804 100644 --- a/gen/go/proto/resources/common/error.pb.go +++ b/gen/go/proto/resources/common/error.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.35.2 +// protoc-gen-go v1.36.0 // protoc v3.20.3 // source: resources/common/error.proto @@ -21,12 +21,11 @@ const ( ) type Error struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Title *TranslateItem `protobuf:"bytes,1,opt,name=title,proto3,oneof" json:"title,omitempty"` + Content *TranslateItem `protobuf:"bytes,2,opt,name=content,proto3" json:"content,omitempty"` unknownFields protoimpl.UnknownFields - - Title *TranslateItem `protobuf:"bytes,1,opt,name=title,proto3,oneof" json:"title,omitempty"` - Content *TranslateItem `protobuf:"bytes,2,opt,name=content,proto3" json:"content,omitempty"` + sizeCache protoimpl.SizeCache } func (x *Error) Reset() { diff --git a/gen/go/proto/resources/common/grpcws/grpcws.pb.go b/gen/go/proto/resources/common/grpcws/grpcws.pb.go index 69d4faebf..6c58154e6 100644 --- a/gen/go/proto/resources/common/grpcws/grpcws.pb.go +++ b/gen/go/proto/resources/common/grpcws/grpcws.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.35.2 +// protoc-gen-go v1.36.0 // protoc v3.20.3 // source: resources/common/grpcws/grpcws.proto @@ -21,12 +21,9 @@ const ( ) type GrpcFrame struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - StreamId uint32 `protobuf:"varint,1,opt,name=streamId,proto3" json:"streamId,omitempty"` - // Types that are assignable to Payload: + state protoimpl.MessageState `protogen:"open.v1"` + StreamId uint32 `protobuf:"varint,1,opt,name=streamId,proto3" json:"streamId,omitempty"` + // Types that are valid to be assigned to Payload: // // *GrpcFrame_Ping // *GrpcFrame_Header @@ -34,7 +31,9 @@ type GrpcFrame struct { // *GrpcFrame_Complete // *GrpcFrame_Failure // *GrpcFrame_Cancel - Payload isGrpcFrame_Payload `protobuf_oneof:"payload"` + Payload isGrpcFrame_Payload `protobuf_oneof:"payload"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *GrpcFrame) Reset() { @@ -74,51 +73,63 @@ func (x *GrpcFrame) GetStreamId() uint32 { return 0 } -func (m *GrpcFrame) GetPayload() isGrpcFrame_Payload { - if m != nil { - return m.Payload +func (x *GrpcFrame) GetPayload() isGrpcFrame_Payload { + if x != nil { + return x.Payload } return nil } func (x *GrpcFrame) GetPing() *Ping { - if x, ok := x.GetPayload().(*GrpcFrame_Ping); ok { - return x.Ping + if x != nil { + if x, ok := x.Payload.(*GrpcFrame_Ping); ok { + return x.Ping + } } return nil } func (x *GrpcFrame) GetHeader() *Header { - if x, ok := x.GetPayload().(*GrpcFrame_Header); ok { - return x.Header + if x != nil { + if x, ok := x.Payload.(*GrpcFrame_Header); ok { + return x.Header + } } return nil } func (x *GrpcFrame) GetBody() *Body { - if x, ok := x.GetPayload().(*GrpcFrame_Body); ok { - return x.Body + if x != nil { + if x, ok := x.Payload.(*GrpcFrame_Body); ok { + return x.Body + } } return nil } func (x *GrpcFrame) GetComplete() *Complete { - if x, ok := x.GetPayload().(*GrpcFrame_Complete); ok { - return x.Complete + if x != nil { + if x, ok := x.Payload.(*GrpcFrame_Complete); ok { + return x.Complete + } } return nil } func (x *GrpcFrame) GetFailure() *Failure { - if x, ok := x.GetPayload().(*GrpcFrame_Failure); ok { - return x.Failure + if x != nil { + if x, ok := x.Payload.(*GrpcFrame_Failure); ok { + return x.Failure + } } return nil } func (x *GrpcFrame) GetCancel() *Cancel { - if x, ok := x.GetPayload().(*GrpcFrame_Cancel); ok { - return x.Cancel + if x != nil { + if x, ok := x.Payload.(*GrpcFrame_Cancel); ok { + return x.Cancel + } } return nil } @@ -164,11 +175,10 @@ func (*GrpcFrame_Failure) isGrpcFrame_Payload() {} func (*GrpcFrame_Cancel) isGrpcFrame_Payload() {} type Ping struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Pong bool `protobuf:"varint,1,opt,name=pong,proto3" json:"pong,omitempty"` unknownFields protoimpl.UnknownFields - - Pong bool `protobuf:"varint,1,opt,name=pong,proto3" json:"pong,omitempty"` + sizeCache protoimpl.SizeCache } func (x *Ping) Reset() { @@ -209,13 +219,12 @@ func (x *Ping) GetPong() bool { } type Header struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Operation string `protobuf:"bytes,1,opt,name=operation,proto3" json:"operation,omitempty"` + Headers map[string]*HeaderValue `protobuf:"bytes,2,rep,name=headers,proto3" json:"headers,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"` + Status int32 `protobuf:"varint,3,opt,name=status,proto3" json:"status,omitempty"` unknownFields protoimpl.UnknownFields - - Operation string `protobuf:"bytes,1,opt,name=operation,proto3" json:"operation,omitempty"` - Headers map[string]*HeaderValue `protobuf:"bytes,2,rep,name=headers,proto3" json:"headers,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` - Status int32 `protobuf:"varint,3,opt,name=status,proto3" json:"status,omitempty"` + sizeCache protoimpl.SizeCache } func (x *Header) Reset() { @@ -270,11 +279,10 @@ func (x *Header) GetStatus() int32 { } type HeaderValue struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Value []string `protobuf:"bytes,1,rep,name=value,proto3" json:"value,omitempty"` unknownFields protoimpl.UnknownFields - - Value []string `protobuf:"bytes,1,rep,name=value,proto3" json:"value,omitempty"` + sizeCache protoimpl.SizeCache } func (x *HeaderValue) Reset() { @@ -315,12 +323,11 @@ func (x *HeaderValue) GetValue() []string { } type Body struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` + Complete bool `protobuf:"varint,2,opt,name=complete,proto3" json:"complete,omitempty"` unknownFields protoimpl.UnknownFields - - Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` - Complete bool `protobuf:"varint,2,opt,name=complete,proto3" json:"complete,omitempty"` + sizeCache protoimpl.SizeCache } func (x *Body) Reset() { @@ -368,9 +375,9 @@ func (x *Body) GetComplete() bool { } type Complete struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *Complete) Reset() { @@ -404,13 +411,12 @@ func (*Complete) Descriptor() ([]byte, []int) { } type Failure struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + ErrorMessage string `protobuf:"bytes,1,opt,name=error_message,json=errorMessage,proto3" json:"error_message,omitempty"` + ErrorStatus string `protobuf:"bytes,2,opt,name=error_status,json=errorStatus,proto3" json:"error_status,omitempty"` + Headers map[string]*HeaderValue `protobuf:"bytes,3,rep,name=headers,proto3" json:"headers,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"` unknownFields protoimpl.UnknownFields - - ErrorMessage string `protobuf:"bytes,1,opt,name=error_message,json=errorMessage,proto3" json:"error_message,omitempty"` - ErrorStatus string `protobuf:"bytes,2,opt,name=error_status,json=errorStatus,proto3" json:"error_status,omitempty"` - Headers map[string]*HeaderValue `protobuf:"bytes,3,rep,name=headers,proto3" json:"headers,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + sizeCache protoimpl.SizeCache } func (x *Failure) Reset() { @@ -465,9 +471,9 @@ func (x *Failure) GetHeaders() map[string]*HeaderValue { } type Cancel struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *Cancel) Reset() { diff --git a/gen/go/proto/resources/common/i18n.pb.go b/gen/go/proto/resources/common/i18n.pb.go index 904d9e404..907e2479a 100644 --- a/gen/go/proto/resources/common/i18n.pb.go +++ b/gen/go/proto/resources/common/i18n.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.35.2 +// protoc-gen-go v1.36.0 // protoc v3.20.3 // source: resources/common/i18n.proto @@ -21,14 +21,13 @@ const ( ) type TranslateItem struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - + state protoimpl.MessageState `protogen:"open.v1"` // @sanitize: method=StripTags Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` // @sanitize: method=StripTags - Parameters map[string]string `protobuf:"bytes,2,rep,name=parameters,proto3" json:"parameters,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + Parameters map[string]string `protobuf:"bytes,2,rep,name=parameters,proto3" json:"parameters,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *TranslateItem) Reset() { diff --git a/gen/go/proto/resources/common/uuid.pb.go b/gen/go/proto/resources/common/uuid.pb.go index 5cfe123ab..d605e2ab7 100644 --- a/gen/go/proto/resources/common/uuid.pb.go +++ b/gen/go/proto/resources/common/uuid.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.35.2 +// protoc-gen-go v1.36.0 // protoc v3.20.3 // source: resources/common/uuid.proto @@ -22,11 +22,10 @@ const ( ) type UUID struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Uuid string `protobuf:"bytes,1,opt,name=uuid,proto3" json:"uuid,omitempty"` unknownFields protoimpl.UnknownFields - - Uuid string `protobuf:"bytes,1,opt,name=uuid,proto3" json:"uuid,omitempty"` + sizeCache protoimpl.SizeCache } func (x *UUID) Reset() { diff --git a/gen/go/proto/resources/documents/access.pb.go b/gen/go/proto/resources/documents/access.pb.go index c58115e1c..e93edbf32 100644 --- a/gen/go/proto/resources/documents/access.pb.go +++ b/gen/go/proto/resources/documents/access.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.35.2 +// protoc-gen-go v1.36.0 // protoc v3.20.3 // source: resources/documents/access.proto @@ -85,12 +85,11 @@ func (AccessLevel) EnumDescriptor() ([]byte, []int) { } type DocumentAccess struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Jobs []*DocumentJobAccess `protobuf:"bytes,1,rep,name=jobs,proto3" json:"jobs,omitempty" alias:"job_access"` // @gotags: alias:"job_access" + Users []*DocumentUserAccess `protobuf:"bytes,2,rep,name=users,proto3" json:"users,omitempty" alias:"user_access"` // @gotags: alias:"user_access" unknownFields protoimpl.UnknownFields - - Jobs []*DocumentJobAccess `protobuf:"bytes,1,rep,name=jobs,proto3" json:"jobs,omitempty" alias:"job_access"` // @gotags: alias:"job_access" - Users []*DocumentUserAccess `protobuf:"bytes,2,rep,name=users,proto3" json:"users,omitempty" alias:"user_access"` // @gotags: alias:"user_access" + sizeCache protoimpl.SizeCache } func (x *DocumentAccess) Reset() { @@ -138,19 +137,18 @@ func (x *DocumentAccess) GetUsers() []*DocumentUserAccess { } type DocumentJobAccess struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` + CreatedAt *timestamp.Timestamp `protobuf:"bytes,2,opt,name=created_at,json=createdAt,proto3,oneof" json:"created_at,omitempty"` + TargetId uint64 `protobuf:"varint,3,opt,name=target_id,json=targetId,proto3" json:"target_id,omitempty" alias:"document_id"` // @gotags: alias:"document_id" + Job string `protobuf:"bytes,4,opt,name=job,proto3" json:"job,omitempty"` + JobLabel *string `protobuf:"bytes,5,opt,name=job_label,json=jobLabel,proto3,oneof" json:"job_label,omitempty"` + MinimumGrade int32 `protobuf:"varint,6,opt,name=minimum_grade,json=minimumGrade,proto3" json:"minimum_grade,omitempty"` + JobGradeLabel *string `protobuf:"bytes,7,opt,name=job_grade_label,json=jobGradeLabel,proto3,oneof" json:"job_grade_label,omitempty"` + Access AccessLevel `protobuf:"varint,8,opt,name=access,proto3,enum=resources.documents.AccessLevel" json:"access,omitempty"` + Required *bool `protobuf:"varint,9,opt,name=required,proto3,oneof" json:"required,omitempty" alias:"required"` // @gotags: alias:"required" unknownFields protoimpl.UnknownFields - - Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` - CreatedAt *timestamp.Timestamp `protobuf:"bytes,2,opt,name=created_at,json=createdAt,proto3,oneof" json:"created_at,omitempty"` - TargetId uint64 `protobuf:"varint,3,opt,name=target_id,json=targetId,proto3" json:"target_id,omitempty" alias:"document_id"` // @gotags: alias:"document_id" - Job string `protobuf:"bytes,4,opt,name=job,proto3" json:"job,omitempty"` - JobLabel *string `protobuf:"bytes,5,opt,name=job_label,json=jobLabel,proto3,oneof" json:"job_label,omitempty"` - MinimumGrade int32 `protobuf:"varint,6,opt,name=minimum_grade,json=minimumGrade,proto3" json:"minimum_grade,omitempty"` - JobGradeLabel *string `protobuf:"bytes,7,opt,name=job_grade_label,json=jobGradeLabel,proto3,oneof" json:"job_grade_label,omitempty"` - Access AccessLevel `protobuf:"varint,8,opt,name=access,proto3,enum=resources.documents.AccessLevel" json:"access,omitempty"` - Required *bool `protobuf:"varint,9,opt,name=required,proto3,oneof" json:"required,omitempty" alias:"required"` // @gotags: alias:"required" + sizeCache protoimpl.SizeCache } func (x *DocumentJobAccess) Reset() { @@ -247,17 +245,16 @@ func (x *DocumentJobAccess) GetRequired() bool { } type DocumentUserAccess struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` + CreatedAt *timestamp.Timestamp `protobuf:"bytes,2,opt,name=created_at,json=createdAt,proto3,oneof" json:"created_at,omitempty"` + TargetId uint64 `protobuf:"varint,3,opt,name=target_id,json=targetId,proto3" json:"target_id,omitempty" alias:"document_id"` // @gotags: alias:"document_id" + UserId int32 `protobuf:"varint,4,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` + User *users.UserShort `protobuf:"bytes,5,opt,name=user,proto3,oneof" json:"user,omitempty"` + Access AccessLevel `protobuf:"varint,6,opt,name=access,proto3,enum=resources.documents.AccessLevel" json:"access,omitempty"` + Required *bool `protobuf:"varint,7,opt,name=required,proto3,oneof" json:"required,omitempty" alias:"required"` // @gotags: alias:"required" unknownFields protoimpl.UnknownFields - - Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` - CreatedAt *timestamp.Timestamp `protobuf:"bytes,2,opt,name=created_at,json=createdAt,proto3,oneof" json:"created_at,omitempty"` - TargetId uint64 `protobuf:"varint,3,opt,name=target_id,json=targetId,proto3" json:"target_id,omitempty" alias:"document_id"` // @gotags: alias:"document_id" - UserId int32 `protobuf:"varint,4,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` - User *users.UserShort `protobuf:"bytes,5,opt,name=user,proto3,oneof" json:"user,omitempty"` - Access AccessLevel `protobuf:"varint,6,opt,name=access,proto3,enum=resources.documents.AccessLevel" json:"access,omitempty"` - Required *bool `protobuf:"varint,7,opt,name=required,proto3,oneof" json:"required,omitempty" alias:"required"` // @gotags: alias:"required" + sizeCache protoimpl.SizeCache } func (x *DocumentUserAccess) Reset() { diff --git a/gen/go/proto/resources/documents/activity.pb.go b/gen/go/proto/resources/documents/activity.pb.go index 611dabbd6..052d2a74b 100644 --- a/gen/go/proto/resources/documents/activity.pb.go +++ b/gen/go/proto/resources/documents/activity.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.35.2 +// protoc-gen-go v1.36.0 // protoc v3.20.3 // source: resources/documents/activity.proto @@ -124,20 +124,19 @@ func (DocActivityType) EnumDescriptor() ([]byte, []int) { } type DocActivity struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` - CreatedAt *timestamp.Timestamp `protobuf:"bytes,2,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` - DocumentId uint64 `protobuf:"varint,3,opt,name=document_id,json=documentId,proto3" json:"document_id,omitempty"` - ActivityType DocActivityType `protobuf:"varint,4,opt,name=activity_type,json=activityType,proto3,enum=resources.documents.DocActivityType" json:"activity_type,omitempty"` - CreatorId *int32 `protobuf:"varint,5,opt,name=creator_id,json=creatorId,proto3,oneof" json:"creator_id,omitempty"` - Creator *users.UserShort `protobuf:"bytes,6,opt,name=creator,proto3,oneof" json:"creator,omitempty" alias:"creator"` // @gotags: alias:"creator" - CreatorJob string `protobuf:"bytes,7,opt,name=creator_job,json=creatorJob,proto3" json:"creator_job,omitempty"` - CreatorJobLabel *string `protobuf:"bytes,8,opt,name=creator_job_label,json=creatorJobLabel,proto3,oneof" json:"creator_job_label,omitempty"` - Reason *string `protobuf:"bytes,9,opt,name=reason,proto3,oneof" json:"reason,omitempty"` - Data *DocActivityData `protobuf:"bytes,10,opt,name=data,proto3" json:"data,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` + CreatedAt *timestamp.Timestamp `protobuf:"bytes,2,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` + DocumentId uint64 `protobuf:"varint,3,opt,name=document_id,json=documentId,proto3" json:"document_id,omitempty"` + ActivityType DocActivityType `protobuf:"varint,4,opt,name=activity_type,json=activityType,proto3,enum=resources.documents.DocActivityType" json:"activity_type,omitempty"` + CreatorId *int32 `protobuf:"varint,5,opt,name=creator_id,json=creatorId,proto3,oneof" json:"creator_id,omitempty"` + Creator *users.UserShort `protobuf:"bytes,6,opt,name=creator,proto3,oneof" json:"creator,omitempty" alias:"creator"` // @gotags: alias:"creator" + CreatorJob string `protobuf:"bytes,7,opt,name=creator_job,json=creatorJob,proto3" json:"creator_job,omitempty"` + CreatorJobLabel *string `protobuf:"bytes,8,opt,name=creator_job_label,json=creatorJobLabel,proto3,oneof" json:"creator_job_label,omitempty"` + Reason *string `protobuf:"bytes,9,opt,name=reason,proto3,oneof" json:"reason,omitempty"` + Data *DocActivityData `protobuf:"bytes,10,opt,name=data,proto3" json:"data,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *DocActivity) Reset() { @@ -241,17 +240,16 @@ func (x *DocActivity) GetData() *DocActivityData { } type DocActivityData struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Types that are assignable to Data: + state protoimpl.MessageState `protogen:"open.v1"` + // Types that are valid to be assigned to Data: // // *DocActivityData_Updated // *DocActivityData_OwnerChanged // *DocActivityData_AccessUpdated // *DocActivityData_AccessRequested - Data isDocActivityData_Data `protobuf_oneof:"data"` + Data isDocActivityData_Data `protobuf_oneof:"data"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *DocActivityData) Reset() { @@ -284,37 +282,45 @@ func (*DocActivityData) Descriptor() ([]byte, []int) { return file_resources_documents_activity_proto_rawDescGZIP(), []int{1} } -func (m *DocActivityData) GetData() isDocActivityData_Data { - if m != nil { - return m.Data +func (x *DocActivityData) GetData() isDocActivityData_Data { + if x != nil { + return x.Data } return nil } func (x *DocActivityData) GetUpdated() *DocUpdated { - if x, ok := x.GetData().(*DocActivityData_Updated); ok { - return x.Updated + if x != nil { + if x, ok := x.Data.(*DocActivityData_Updated); ok { + return x.Updated + } } return nil } func (x *DocActivityData) GetOwnerChanged() *DocOwnerChanged { - if x, ok := x.GetData().(*DocActivityData_OwnerChanged); ok { - return x.OwnerChanged + if x != nil { + if x, ok := x.Data.(*DocActivityData_OwnerChanged); ok { + return x.OwnerChanged + } } return nil } func (x *DocActivityData) GetAccessUpdated() *DocAccessUpdated { - if x, ok := x.GetData().(*DocActivityData_AccessUpdated); ok { - return x.AccessUpdated + if x != nil { + if x, ok := x.Data.(*DocActivityData_AccessUpdated); ok { + return x.AccessUpdated + } } return nil } func (x *DocActivityData) GetAccessRequested() *DocAccessRequested { - if x, ok := x.GetData().(*DocActivityData_AccessRequested); ok { - return x.AccessRequested + if x != nil { + if x, ok := x.Data.(*DocActivityData_AccessRequested); ok { + return x.AccessRequested + } } return nil } @@ -348,13 +354,12 @@ func (*DocActivityData_AccessUpdated) isDocActivityData_Data() {} func (*DocActivityData_AccessRequested) isDocActivityData_Data() {} type DocUpdated struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + TitleDiff *string `protobuf:"bytes,1,opt,name=title_diff,json=titleDiff,proto3,oneof" json:"title_diff,omitempty"` + ContentDiff *string `protobuf:"bytes,2,opt,name=content_diff,json=contentDiff,proto3,oneof" json:"content_diff,omitempty"` + StateDiff *string `protobuf:"bytes,3,opt,name=state_diff,json=stateDiff,proto3,oneof" json:"state_diff,omitempty"` unknownFields protoimpl.UnknownFields - - TitleDiff *string `protobuf:"bytes,1,opt,name=title_diff,json=titleDiff,proto3,oneof" json:"title_diff,omitempty"` - ContentDiff *string `protobuf:"bytes,2,opt,name=content_diff,json=contentDiff,proto3,oneof" json:"content_diff,omitempty"` - StateDiff *string `protobuf:"bytes,3,opt,name=state_diff,json=stateDiff,proto3,oneof" json:"state_diff,omitempty"` + sizeCache protoimpl.SizeCache } func (x *DocUpdated) Reset() { @@ -409,12 +414,11 @@ func (x *DocUpdated) GetStateDiff() string { } type DocOwnerChanged struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + NewOwnerId int32 `protobuf:"varint,1,opt,name=new_owner_id,json=newOwnerId,proto3" json:"new_owner_id,omitempty"` + NewOwner *users.UserShort `protobuf:"bytes,2,opt,name=new_owner,json=newOwner,proto3" json:"new_owner,omitempty"` unknownFields protoimpl.UnknownFields - - NewOwnerId int32 `protobuf:"varint,1,opt,name=new_owner_id,json=newOwnerId,proto3" json:"new_owner_id,omitempty"` - NewOwner *users.UserShort `protobuf:"bytes,2,opt,name=new_owner,json=newOwner,proto3" json:"new_owner,omitempty"` + sizeCache protoimpl.SizeCache } func (x *DocOwnerChanged) Reset() { @@ -462,11 +466,10 @@ func (x *DocOwnerChanged) GetNewOwner() *users.UserShort { } type DocAccessRequested struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Level AccessLevel `protobuf:"varint,1,opt,name=level,proto3,enum=resources.documents.AccessLevel" json:"level,omitempty"` unknownFields protoimpl.UnknownFields - - Level AccessLevel `protobuf:"varint,1,opt,name=level,proto3,enum=resources.documents.AccessLevel" json:"level,omitempty"` + sizeCache protoimpl.SizeCache } func (x *DocAccessRequested) Reset() { @@ -507,12 +510,11 @@ func (x *DocAccessRequested) GetLevel() AccessLevel { } type DocAccessUpdated struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Jobs *DocAccessJobsDiff `protobuf:"bytes,1,opt,name=jobs,proto3" json:"jobs,omitempty"` + Users *DocAccessUsersDiff `protobuf:"bytes,2,opt,name=users,proto3" json:"users,omitempty"` unknownFields protoimpl.UnknownFields - - Jobs *DocAccessJobsDiff `protobuf:"bytes,1,opt,name=jobs,proto3" json:"jobs,omitempty"` - Users *DocAccessUsersDiff `protobuf:"bytes,2,opt,name=users,proto3" json:"users,omitempty"` + sizeCache protoimpl.SizeCache } func (x *DocAccessUpdated) Reset() { @@ -560,13 +562,12 @@ func (x *DocAccessUpdated) GetUsers() *DocAccessUsersDiff { } type DocAccessJobsDiff struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + ToCreate []*DocumentJobAccess `protobuf:"bytes,1,rep,name=to_create,json=toCreate,proto3" json:"to_create,omitempty"` + ToUpdate []*DocumentJobAccess `protobuf:"bytes,2,rep,name=to_update,json=toUpdate,proto3" json:"to_update,omitempty"` + ToDelete []*DocumentJobAccess `protobuf:"bytes,3,rep,name=to_delete,json=toDelete,proto3" json:"to_delete,omitempty"` unknownFields protoimpl.UnknownFields - - ToCreate []*DocumentJobAccess `protobuf:"bytes,1,rep,name=to_create,json=toCreate,proto3" json:"to_create,omitempty"` - ToUpdate []*DocumentJobAccess `protobuf:"bytes,2,rep,name=to_update,json=toUpdate,proto3" json:"to_update,omitempty"` - ToDelete []*DocumentJobAccess `protobuf:"bytes,3,rep,name=to_delete,json=toDelete,proto3" json:"to_delete,omitempty"` + sizeCache protoimpl.SizeCache } func (x *DocAccessJobsDiff) Reset() { @@ -621,13 +622,12 @@ func (x *DocAccessJobsDiff) GetToDelete() []*DocumentJobAccess { } type DocAccessUsersDiff struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + ToCreate []*DocumentUserAccess `protobuf:"bytes,1,rep,name=to_create,json=toCreate,proto3" json:"to_create,omitempty"` + ToUpdate []*DocumentUserAccess `protobuf:"bytes,2,rep,name=to_update,json=toUpdate,proto3" json:"to_update,omitempty"` + ToDelete []*DocumentUserAccess `protobuf:"bytes,3,rep,name=to_delete,json=toDelete,proto3" json:"to_delete,omitempty"` unknownFields protoimpl.UnknownFields - - ToCreate []*DocumentUserAccess `protobuf:"bytes,1,rep,name=to_create,json=toCreate,proto3" json:"to_create,omitempty"` - ToUpdate []*DocumentUserAccess `protobuf:"bytes,2,rep,name=to_update,json=toUpdate,proto3" json:"to_update,omitempty"` - ToDelete []*DocumentUserAccess `protobuf:"bytes,3,rep,name=to_delete,json=toDelete,proto3" json:"to_delete,omitempty"` + sizeCache protoimpl.SizeCache } func (x *DocAccessUsersDiff) Reset() { diff --git a/gen/go/proto/resources/documents/category.pb.go b/gen/go/proto/resources/documents/category.pb.go index 9a9f0059f..73ae85a32 100644 --- a/gen/go/proto/resources/documents/category.pb.go +++ b/gen/go/proto/resources/documents/category.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.35.2 +// protoc-gen-go v1.36.0 // protoc v3.20.3 // source: resources/documents/category.proto @@ -22,11 +22,8 @@ const ( ) type Category struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // @sanitize Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` // @sanitize @@ -35,7 +32,9 @@ type Category struct { // @sanitize: method=StripTags Color *string `protobuf:"bytes,5,opt,name=color,proto3,oneof" json:"color,omitempty"` // @sanitize: method=StripTags - Icon *string `protobuf:"bytes,6,opt,name=icon,proto3,oneof" json:"icon,omitempty"` + Icon *string `protobuf:"bytes,6,opt,name=icon,proto3,oneof" json:"icon,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *Category) Reset() { diff --git a/gen/go/proto/resources/documents/comment.pb.go b/gen/go/proto/resources/documents/comment.pb.go index 8f06caf0a..075e1f990 100644 --- a/gen/go/proto/resources/documents/comment.pb.go +++ b/gen/go/proto/resources/documents/comment.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.35.2 +// protoc-gen-go v1.36.0 // protoc v3.20.3 // source: resources/documents/comment.proto @@ -25,19 +25,18 @@ const ( ) type Comment struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty" alias:"id"` // @gotags: alias:"id" + CreatedAt *timestamp.Timestamp `protobuf:"bytes,2,opt,name=created_at,json=createdAt,proto3,oneof" json:"created_at,omitempty"` + UpdatedAt *timestamp.Timestamp `protobuf:"bytes,3,opt,name=updated_at,json=updatedAt,proto3,oneof" json:"updated_at,omitempty"` + DeletedAt *timestamp.Timestamp `protobuf:"bytes,4,opt,name=deleted_at,json=deletedAt,proto3,oneof" json:"deleted_at,omitempty"` + DocumentId uint64 `protobuf:"varint,5,opt,name=document_id,json=documentId,proto3" json:"document_id,omitempty"` + Content *content.Content `protobuf:"bytes,6,opt,name=content,proto3" json:"content,omitempty"` + CreatorId *int32 `protobuf:"varint,7,opt,name=creator_id,json=creatorId,proto3,oneof" json:"creator_id,omitempty"` + Creator *users.UserShort `protobuf:"bytes,8,opt,name=creator,proto3,oneof" json:"creator,omitempty" alias:"creator"` // @gotags: alias:"creator" + CreatorJob string `protobuf:"bytes,9,opt,name=creator_job,json=creatorJob,proto3" json:"creator_job,omitempty"` unknownFields protoimpl.UnknownFields - - Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty" alias:"id"` // @gotags: alias:"id" - CreatedAt *timestamp.Timestamp `protobuf:"bytes,2,opt,name=created_at,json=createdAt,proto3,oneof" json:"created_at,omitempty"` - UpdatedAt *timestamp.Timestamp `protobuf:"bytes,3,opt,name=updated_at,json=updatedAt,proto3,oneof" json:"updated_at,omitempty"` - DeletedAt *timestamp.Timestamp `protobuf:"bytes,4,opt,name=deleted_at,json=deletedAt,proto3,oneof" json:"deleted_at,omitempty"` - DocumentId uint64 `protobuf:"varint,5,opt,name=document_id,json=documentId,proto3" json:"document_id,omitempty"` - Content *content.Content `protobuf:"bytes,6,opt,name=content,proto3" json:"content,omitempty"` - CreatorId *int32 `protobuf:"varint,7,opt,name=creator_id,json=creatorId,proto3,oneof" json:"creator_id,omitempty"` - Creator *users.UserShort `protobuf:"bytes,8,opt,name=creator,proto3,oneof" json:"creator,omitempty" alias:"creator"` // @gotags: alias:"creator" - CreatorJob string `protobuf:"bytes,9,opt,name=creator_job,json=creatorJob,proto3" json:"creator_job,omitempty"` + sizeCache protoimpl.SizeCache } func (x *Comment) Reset() { diff --git a/gen/go/proto/resources/documents/documents.pb.go b/gen/go/proto/resources/documents/documents.pb.go index db5c3acff..7bb2d8d01 100644 --- a/gen/go/proto/resources/documents/documents.pb.go +++ b/gen/go/proto/resources/documents/documents.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.35.2 +// protoc-gen-go v1.36.0 // protoc v3.20.3 // source: resources/documents/documents.proto @@ -132,16 +132,13 @@ func (DocRelation) EnumDescriptor() ([]byte, []int) { } type Document struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` - CreatedAt *timestamp.Timestamp `protobuf:"bytes,2,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` - UpdatedAt *timestamp.Timestamp `protobuf:"bytes,3,opt,name=updated_at,json=updatedAt,proto3,oneof" json:"updated_at,omitempty"` - DeletedAt *timestamp.Timestamp `protobuf:"bytes,4,opt,name=deleted_at,json=deletedAt,proto3,oneof" json:"deleted_at,omitempty"` - CategoryId *uint64 `protobuf:"varint,5,opt,name=category_id,json=categoryId,proto3,oneof" json:"category_id,omitempty"` - Category *Category `protobuf:"bytes,6,opt,name=category,proto3,oneof" json:"category,omitempty" alias:"category"` // @gotags: alias:"category" + state protoimpl.MessageState `protogen:"open.v1"` + Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` + CreatedAt *timestamp.Timestamp `protobuf:"bytes,2,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` + UpdatedAt *timestamp.Timestamp `protobuf:"bytes,3,opt,name=updated_at,json=updatedAt,proto3,oneof" json:"updated_at,omitempty"` + DeletedAt *timestamp.Timestamp `protobuf:"bytes,4,opt,name=deleted_at,json=deletedAt,proto3,oneof" json:"deleted_at,omitempty"` + CategoryId *uint64 `protobuf:"varint,5,opt,name=category_id,json=categoryId,proto3,oneof" json:"category_id,omitempty"` + Category *Category `protobuf:"bytes,6,opt,name=category,proto3,oneof" json:"category,omitempty" alias:"category"` // @gotags: alias:"category" // @sanitize Title string `protobuf:"bytes,7,opt,name=title,proto3" json:"title,omitempty"` ContentType content.ContentType `protobuf:"varint,8,opt,name=content_type,json=contentType,proto3,enum=resources.common.content.ContentType" json:"content_type,omitempty" alias:"content_type"` // @gotags: alias:"content_type" @@ -160,6 +157,8 @@ type Document struct { Pinned bool `protobuf:"varint,19,opt,name=pinned,proto3" json:"pinned,omitempty"` WorkflowState *WorkflowState `protobuf:"bytes,20,opt,name=workflow_state,json=workflowState,proto3,oneof" json:"workflow_state,omitempty"` WorkflowUser *WorkflowUserState `protobuf:"bytes,21,opt,name=workflow_user,json=workflowUser,proto3,oneof" json:"workflow_user,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *Document) Reset() { @@ -340,16 +339,13 @@ func (x *Document) GetWorkflowUser() *WorkflowUserState { } type DocumentShort struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` - CreatedAt *timestamp.Timestamp `protobuf:"bytes,2,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` - UpdatedAt *timestamp.Timestamp `protobuf:"bytes,3,opt,name=updated_at,json=updatedAt,proto3,oneof" json:"updated_at,omitempty"` - DeletedAt *timestamp.Timestamp `protobuf:"bytes,4,opt,name=deleted_at,json=deletedAt,proto3,oneof" json:"deleted_at,omitempty"` - CategoryId *uint64 `protobuf:"varint,5,opt,name=category_id,json=categoryId,proto3,oneof" json:"category_id,omitempty"` - Category *Category `protobuf:"bytes,6,opt,name=category,proto3,oneof" json:"category,omitempty" alias:"category"` // @gotags: alias:"category" + state protoimpl.MessageState `protogen:"open.v1"` + Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` + CreatedAt *timestamp.Timestamp `protobuf:"bytes,2,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` + UpdatedAt *timestamp.Timestamp `protobuf:"bytes,3,opt,name=updated_at,json=updatedAt,proto3,oneof" json:"updated_at,omitempty"` + DeletedAt *timestamp.Timestamp `protobuf:"bytes,4,opt,name=deleted_at,json=deletedAt,proto3,oneof" json:"deleted_at,omitempty"` + CategoryId *uint64 `protobuf:"varint,5,opt,name=category_id,json=categoryId,proto3,oneof" json:"category_id,omitempty"` + Category *Category `protobuf:"bytes,6,opt,name=category,proto3,oneof" json:"category,omitempty" alias:"category"` // @gotags: alias:"category" // @sanitize Title string `protobuf:"bytes,7,opt,name=title,proto3" json:"title,omitempty"` ContentType content.ContentType `protobuf:"varint,8,opt,name=content_type,json=contentType,proto3,enum=resources.common.content.ContentType" json:"content_type,omitempty" alias:"content_type"` // @gotags: alias:"content_type" @@ -365,6 +361,8 @@ type DocumentShort struct { Public bool `protobuf:"varint,16,opt,name=public,proto3" json:"public,omitempty"` WorkflowState *WorkflowState `protobuf:"bytes,20,opt,name=workflow_state,json=workflowState,proto3,oneof" json:"workflow_state,omitempty"` WorkflowUser *WorkflowUserState `protobuf:"bytes,21,opt,name=workflow_user,json=workflowUser,proto3,oneof" json:"workflow_user,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *DocumentShort) Reset() { @@ -524,19 +522,18 @@ func (x *DocumentShort) GetWorkflowUser() *WorkflowUserState { } type DocumentReference struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Id *uint64 `protobuf:"varint,1,opt,name=id,proto3,oneof" json:"id,omitempty"` - CreatedAt *timestamp.Timestamp `protobuf:"bytes,2,opt,name=created_at,json=createdAt,proto3,oneof" json:"created_at,omitempty"` - SourceDocumentId uint64 `protobuf:"varint,3,opt,name=source_document_id,json=sourceDocumentId,proto3" json:"source_document_id,omitempty" alias:"source_document_id"` // @gotags: alias:"source_document_id" - SourceDocument *DocumentShort `protobuf:"bytes,4,opt,name=source_document,json=sourceDocument,proto3,oneof" json:"source_document,omitempty" alias:"source_document"` // @gotags: alias:"source_document" - Reference DocReference `protobuf:"varint,5,opt,name=reference,proto3,enum=resources.documents.DocReference" json:"reference,omitempty" alias:"reference"` // @gotags: alias:"reference" - TargetDocumentId uint64 `protobuf:"varint,6,opt,name=target_document_id,json=targetDocumentId,proto3" json:"target_document_id,omitempty" alias:"target_document_id"` // @gotags: alias:"target_document_id" - TargetDocument *DocumentShort `protobuf:"bytes,7,opt,name=target_document,json=targetDocument,proto3,oneof" json:"target_document,omitempty" alias:"target_document"` // @gotags: alias:"target_document" - CreatorId *int32 `protobuf:"varint,8,opt,name=creator_id,json=creatorId,proto3,oneof" json:"creator_id,omitempty"` - Creator *users.UserShort `protobuf:"bytes,9,opt,name=creator,proto3,oneof" json:"creator,omitempty" alias:"ref_creator"` // @gotags: alias:"ref_creator" + state protoimpl.MessageState `protogen:"open.v1"` + Id *uint64 `protobuf:"varint,1,opt,name=id,proto3,oneof" json:"id,omitempty"` + CreatedAt *timestamp.Timestamp `protobuf:"bytes,2,opt,name=created_at,json=createdAt,proto3,oneof" json:"created_at,omitempty"` + SourceDocumentId uint64 `protobuf:"varint,3,opt,name=source_document_id,json=sourceDocumentId,proto3" json:"source_document_id,omitempty" alias:"source_document_id"` // @gotags: alias:"source_document_id" + SourceDocument *DocumentShort `protobuf:"bytes,4,opt,name=source_document,json=sourceDocument,proto3,oneof" json:"source_document,omitempty" alias:"source_document"` // @gotags: alias:"source_document" + Reference DocReference `protobuf:"varint,5,opt,name=reference,proto3,enum=resources.documents.DocReference" json:"reference,omitempty" alias:"reference"` // @gotags: alias:"reference" + TargetDocumentId uint64 `protobuf:"varint,6,opt,name=target_document_id,json=targetDocumentId,proto3" json:"target_document_id,omitempty" alias:"target_document_id"` // @gotags: alias:"target_document_id" + TargetDocument *DocumentShort `protobuf:"bytes,7,opt,name=target_document,json=targetDocument,proto3,oneof" json:"target_document,omitempty" alias:"target_document"` // @gotags: alias:"target_document" + CreatorId *int32 `protobuf:"varint,8,opt,name=creator_id,json=creatorId,proto3,oneof" json:"creator_id,omitempty"` + Creator *users.UserShort `protobuf:"bytes,9,opt,name=creator,proto3,oneof" json:"creator,omitempty" alias:"ref_creator"` // @gotags: alias:"ref_creator" + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *DocumentReference) Reset() { @@ -633,19 +630,18 @@ func (x *DocumentReference) GetCreator() *users.UserShort { } type DocumentRelation struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Id *uint64 `protobuf:"varint,1,opt,name=id,proto3,oneof" json:"id,omitempty"` + CreatedAt *timestamp.Timestamp `protobuf:"bytes,2,opt,name=created_at,json=createdAt,proto3,oneof" json:"created_at,omitempty"` + DocumentId uint64 `protobuf:"varint,3,opt,name=document_id,json=documentId,proto3" json:"document_id,omitempty"` + Document *DocumentShort `protobuf:"bytes,4,opt,name=document,proto3,oneof" json:"document,omitempty" alias:"document"` // @gotags: alias:"document" + SourceUserId int32 `protobuf:"varint,5,opt,name=source_user_id,json=sourceUserId,proto3" json:"source_user_id,omitempty" alias:"source_user_id"` // @gotags: alias:"source_user_id" + SourceUser *users.UserShort `protobuf:"bytes,6,opt,name=source_user,json=sourceUser,proto3,oneof" json:"source_user,omitempty" alias:"source_user"` // @gotags: alias:"source_user" + Relation DocRelation `protobuf:"varint,7,opt,name=relation,proto3,enum=resources.documents.DocRelation" json:"relation,omitempty" alias:"relation"` // @gotags: alias:"relation" + TargetUserId int32 `protobuf:"varint,8,opt,name=target_user_id,json=targetUserId,proto3" json:"target_user_id,omitempty" alias:"target_user_id"` // @gotags: alias:"target_user_id" + TargetUser *users.UserShort `protobuf:"bytes,9,opt,name=target_user,json=targetUser,proto3,oneof" json:"target_user,omitempty" alias:"target_user"` // @gotags: alias:"target_user" unknownFields protoimpl.UnknownFields - - Id *uint64 `protobuf:"varint,1,opt,name=id,proto3,oneof" json:"id,omitempty"` - CreatedAt *timestamp.Timestamp `protobuf:"bytes,2,opt,name=created_at,json=createdAt,proto3,oneof" json:"created_at,omitempty"` - DocumentId uint64 `protobuf:"varint,3,opt,name=document_id,json=documentId,proto3" json:"document_id,omitempty"` - Document *DocumentShort `protobuf:"bytes,4,opt,name=document,proto3,oneof" json:"document,omitempty" alias:"document"` // @gotags: alias:"document" - SourceUserId int32 `protobuf:"varint,5,opt,name=source_user_id,json=sourceUserId,proto3" json:"source_user_id,omitempty" alias:"source_user_id"` // @gotags: alias:"source_user_id" - SourceUser *users.UserShort `protobuf:"bytes,6,opt,name=source_user,json=sourceUser,proto3,oneof" json:"source_user,omitempty" alias:"source_user"` // @gotags: alias:"source_user" - Relation DocRelation `protobuf:"varint,7,opt,name=relation,proto3,enum=resources.documents.DocRelation" json:"relation,omitempty" alias:"relation"` // @gotags: alias:"relation" - TargetUserId int32 `protobuf:"varint,8,opt,name=target_user_id,json=targetUserId,proto3" json:"target_user_id,omitempty" alias:"target_user_id"` // @gotags: alias:"target_user_id" - TargetUser *users.UserShort `protobuf:"bytes,9,opt,name=target_user,json=targetUser,proto3,oneof" json:"target_user,omitempty" alias:"target_user"` // @gotags: alias:"target_user" + sizeCache protoimpl.SizeCache } func (x *DocumentRelation) Reset() { @@ -742,16 +738,15 @@ func (x *DocumentRelation) GetTargetUser() *users.UserShort { } type WorkflowState struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - DocumentId uint64 `protobuf:"varint,1,opt,name=document_id,json=documentId,proto3" json:"document_id,omitempty"` - NextReminderTime *timestamp.Timestamp `protobuf:"bytes,2,opt,name=next_reminder_time,json=nextReminderTime,proto3,oneof" json:"next_reminder_time,omitempty"` - NextReminderCount *int32 `protobuf:"varint,3,opt,name=next_reminder_count,json=nextReminderCount,proto3,oneof" json:"next_reminder_count,omitempty"` - AutoCloseTime *timestamp.Timestamp `protobuf:"bytes,4,opt,name=auto_close_time,json=autoCloseTime,proto3,oneof" json:"auto_close_time,omitempty"` - Workflow *Workflow `protobuf:"bytes,5,opt,name=workflow,proto3,oneof" json:"workflow,omitempty" alias:"workflow"` // @gotags: alias:"workflow" - Document *DocumentShort `protobuf:"bytes,6,opt,name=document,proto3,oneof" json:"document,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + DocumentId uint64 `protobuf:"varint,1,opt,name=document_id,json=documentId,proto3" json:"document_id,omitempty"` + NextReminderTime *timestamp.Timestamp `protobuf:"bytes,2,opt,name=next_reminder_time,json=nextReminderTime,proto3,oneof" json:"next_reminder_time,omitempty"` + NextReminderCount *int32 `protobuf:"varint,3,opt,name=next_reminder_count,json=nextReminderCount,proto3,oneof" json:"next_reminder_count,omitempty"` + AutoCloseTime *timestamp.Timestamp `protobuf:"bytes,4,opt,name=auto_close_time,json=autoCloseTime,proto3,oneof" json:"auto_close_time,omitempty"` + Workflow *Workflow `protobuf:"bytes,5,opt,name=workflow,proto3,oneof" json:"workflow,omitempty" alias:"workflow"` // @gotags: alias:"workflow" + Document *DocumentShort `protobuf:"bytes,6,opt,name=document,proto3,oneof" json:"document,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *WorkflowState) Reset() { @@ -827,16 +822,15 @@ func (x *WorkflowState) GetDocument() *DocumentShort { } type WorkflowUserState struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - DocumentId uint64 `protobuf:"varint,1,opt,name=document_id,json=documentId,proto3" json:"document_id,omitempty"` - UserId int32 `protobuf:"varint,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` - ManualReminderTime *timestamp.Timestamp `protobuf:"bytes,3,opt,name=manual_reminder_time,json=manualReminderTime,proto3,oneof" json:"manual_reminder_time,omitempty"` - ManualReminderMessage *string `protobuf:"bytes,4,opt,name=manual_reminder_message,json=manualReminderMessage,proto3,oneof" json:"manual_reminder_message,omitempty"` - Workflow *Workflow `protobuf:"bytes,5,opt,name=workflow,proto3,oneof" json:"workflow,omitempty" alias:"workflow"` // @gotags: alias:"workflow" - Document *DocumentShort `protobuf:"bytes,6,opt,name=document,proto3,oneof" json:"document,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + DocumentId uint64 `protobuf:"varint,1,opt,name=document_id,json=documentId,proto3" json:"document_id,omitempty"` + UserId int32 `protobuf:"varint,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` + ManualReminderTime *timestamp.Timestamp `protobuf:"bytes,3,opt,name=manual_reminder_time,json=manualReminderTime,proto3,oneof" json:"manual_reminder_time,omitempty"` + ManualReminderMessage *string `protobuf:"bytes,4,opt,name=manual_reminder_message,json=manualReminderMessage,proto3,oneof" json:"manual_reminder_message,omitempty"` + Workflow *Workflow `protobuf:"bytes,5,opt,name=workflow,proto3,oneof" json:"workflow,omitempty" alias:"workflow"` // @gotags: alias:"workflow" + Document *DocumentShort `protobuf:"bytes,6,opt,name=document,proto3,oneof" json:"document,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *WorkflowUserState) Reset() { diff --git a/gen/go/proto/resources/documents/requests.pb.go b/gen/go/proto/resources/documents/requests.pb.go index 3746b6d50..f7be03165 100644 --- a/gen/go/proto/resources/documents/requests.pb.go +++ b/gen/go/proto/resources/documents/requests.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.35.2 +// protoc-gen-go v1.36.0 // protoc v3.20.3 // source: resources/documents/requests.proto @@ -24,22 +24,21 @@ const ( ) type DocRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` - CreatedAt *timestamp.Timestamp `protobuf:"bytes,2,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` - UpdatedAt *timestamp.Timestamp `protobuf:"bytes,3,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"` - DocumentId uint64 `protobuf:"varint,4,opt,name=document_id,json=documentId,proto3" json:"document_id,omitempty"` - RequestType DocActivityType `protobuf:"varint,5,opt,name=request_type,json=requestType,proto3,enum=resources.documents.DocActivityType" json:"request_type,omitempty"` - CreatorId *int32 `protobuf:"varint,6,opt,name=creator_id,json=creatorId,proto3,oneof" json:"creator_id,omitempty"` - Creator *users.UserShort `protobuf:"bytes,7,opt,name=creator,proto3,oneof" json:"creator,omitempty" alias:"creator"` // @gotags: alias:"creator" - CreatorJob string `protobuf:"bytes,8,opt,name=creator_job,json=creatorJob,proto3" json:"creator_job,omitempty"` - CreatorJobLabel *string `protobuf:"bytes,9,opt,name=creator_job_label,json=creatorJobLabel,proto3,oneof" json:"creator_job_label,omitempty"` - Reason *string `protobuf:"bytes,10,opt,name=reason,proto3,oneof" json:"reason,omitempty"` - Data *DocActivityData `protobuf:"bytes,11,opt,name=data,proto3" json:"data,omitempty"` - Accepted *bool `protobuf:"varint,12,opt,name=accepted,proto3,oneof" json:"accepted,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` + CreatedAt *timestamp.Timestamp `protobuf:"bytes,2,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` + UpdatedAt *timestamp.Timestamp `protobuf:"bytes,3,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"` + DocumentId uint64 `protobuf:"varint,4,opt,name=document_id,json=documentId,proto3" json:"document_id,omitempty"` + RequestType DocActivityType `protobuf:"varint,5,opt,name=request_type,json=requestType,proto3,enum=resources.documents.DocActivityType" json:"request_type,omitempty"` + CreatorId *int32 `protobuf:"varint,6,opt,name=creator_id,json=creatorId,proto3,oneof" json:"creator_id,omitempty"` + Creator *users.UserShort `protobuf:"bytes,7,opt,name=creator,proto3,oneof" json:"creator,omitempty" alias:"creator"` // @gotags: alias:"creator" + CreatorJob string `protobuf:"bytes,8,opt,name=creator_job,json=creatorJob,proto3" json:"creator_job,omitempty"` + CreatorJobLabel *string `protobuf:"bytes,9,opt,name=creator_job_label,json=creatorJobLabel,proto3,oneof" json:"creator_job_label,omitempty"` + Reason *string `protobuf:"bytes,10,opt,name=reason,proto3,oneof" json:"reason,omitempty"` + Data *DocActivityData `protobuf:"bytes,11,opt,name=data,proto3" json:"data,omitempty"` + Accepted *bool `protobuf:"varint,12,opt,name=accepted,proto3,oneof" json:"accepted,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *DocRequest) Reset() { diff --git a/gen/go/proto/resources/documents/templates.pb.go b/gen/go/proto/resources/documents/templates.pb.go index 4d6c2bc37..0a4ecb3ce 100644 --- a/gen/go/proto/resources/documents/templates.pb.go +++ b/gen/go/proto/resources/documents/templates.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.35.2 +// protoc-gen-go v1.36.0 // protoc v3.20.3 // source: resources/documents/templates.proto @@ -25,15 +25,12 @@ const ( ) type Template struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty" alias:"id"` // @gotags: alias:"id" - CreatedAt *timestamp.Timestamp `protobuf:"bytes,2,opt,name=created_at,json=createdAt,proto3,oneof" json:"created_at,omitempty"` - UpdatedAt *timestamp.Timestamp `protobuf:"bytes,3,opt,name=updated_at,json=updatedAt,proto3,oneof" json:"updated_at,omitempty"` - Category *Category `protobuf:"bytes,4,opt,name=category,proto3" json:"category,omitempty" alias:"category"` // @gotags: alias:"category" - Weight uint32 `protobuf:"varint,5,opt,name=weight,proto3" json:"weight,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty" alias:"id"` // @gotags: alias:"id" + CreatedAt *timestamp.Timestamp `protobuf:"bytes,2,opt,name=created_at,json=createdAt,proto3,oneof" json:"created_at,omitempty"` + UpdatedAt *timestamp.Timestamp `protobuf:"bytes,3,opt,name=updated_at,json=updatedAt,proto3,oneof" json:"updated_at,omitempty"` + Category *Category `protobuf:"bytes,4,opt,name=category,proto3" json:"category,omitempty" alias:"category"` // @gotags: alias:"category" + Weight uint32 `protobuf:"varint,5,opt,name=weight,proto3" json:"weight,omitempty"` // @sanitize Title string `protobuf:"bytes,6,opt,name=title,proto3" json:"title,omitempty"` // @sanitize @@ -51,6 +48,8 @@ type Template struct { JobAccess []*TemplateJobAccess `protobuf:"bytes,16,rep,name=job_access,json=jobAccess,proto3" json:"job_access,omitempty"` ContentAccess *DocumentAccess `protobuf:"bytes,17,opt,name=content_access,json=contentAccess,proto3" json:"content_access,omitempty" alias:"access"` // @gotags: alias:"access" Workflow *Workflow `protobuf:"bytes,18,opt,name=workflow,proto3,oneof" json:"workflow,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *Template) Reset() { @@ -210,15 +209,12 @@ func (x *Template) GetWorkflow() *Workflow { } type TemplateShort struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty" alias:"id"` // @gotags: alias:"id" - CreatedAt *timestamp.Timestamp `protobuf:"bytes,2,opt,name=created_at,json=createdAt,proto3,oneof" json:"created_at,omitempty"` - UpdatedAt *timestamp.Timestamp `protobuf:"bytes,3,opt,name=updated_at,json=updatedAt,proto3,oneof" json:"updated_at,omitempty"` - Category *Category `protobuf:"bytes,4,opt,name=category,proto3" json:"category,omitempty" alias:"category"` // @gotags: alias:"category" - Weight uint32 `protobuf:"varint,5,opt,name=weight,proto3" json:"weight,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty" alias:"id"` // @gotags: alias:"id" + CreatedAt *timestamp.Timestamp `protobuf:"bytes,2,opt,name=created_at,json=createdAt,proto3,oneof" json:"created_at,omitempty"` + UpdatedAt *timestamp.Timestamp `protobuf:"bytes,3,opt,name=updated_at,json=updatedAt,proto3,oneof" json:"updated_at,omitempty"` + Category *Category `protobuf:"bytes,4,opt,name=category,proto3" json:"category,omitempty" alias:"category"` // @gotags: alias:"category" + Weight uint32 `protobuf:"varint,5,opt,name=weight,proto3" json:"weight,omitempty"` // @sanitize Title string `protobuf:"bytes,6,opt,name=title,proto3" json:"title,omitempty"` // @sanitize @@ -231,6 +227,8 @@ type TemplateShort struct { CreatorJob string `protobuf:"bytes,11,opt,name=creator_job,json=creatorJob,proto3" json:"creator_job,omitempty"` CreatorJobLabel *string `protobuf:"bytes,12,opt,name=creator_job_label,json=creatorJobLabel,proto3,oneof" json:"creator_job_label,omitempty"` Workflow *Workflow `protobuf:"bytes,18,opt,name=workflow,proto3,oneof" json:"workflow,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *TemplateShort) Reset() { @@ -355,11 +353,10 @@ func (x *TemplateShort) GetWorkflow() *Workflow { } type TemplateSchema struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Requirements *TemplateRequirements `protobuf:"bytes,1,opt,name=requirements,proto3" json:"requirements,omitempty"` unknownFields protoimpl.UnknownFields - - Requirements *TemplateRequirements `protobuf:"bytes,1,opt,name=requirements,proto3" json:"requirements,omitempty"` + sizeCache protoimpl.SizeCache } func (x *TemplateSchema) Reset() { @@ -400,13 +397,12 @@ func (x *TemplateSchema) GetRequirements() *TemplateRequirements { } type TemplateRequirements struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Documents *ObjectSpecs `protobuf:"bytes,1,opt,name=documents,proto3,oneof" json:"documents,omitempty"` + Users *ObjectSpecs `protobuf:"bytes,2,opt,name=users,proto3,oneof" json:"users,omitempty"` + Vehicles *ObjectSpecs `protobuf:"bytes,3,opt,name=vehicles,proto3,oneof" json:"vehicles,omitempty"` unknownFields protoimpl.UnknownFields - - Documents *ObjectSpecs `protobuf:"bytes,1,opt,name=documents,proto3,oneof" json:"documents,omitempty"` - Users *ObjectSpecs `protobuf:"bytes,2,opt,name=users,proto3,oneof" json:"users,omitempty"` - Vehicles *ObjectSpecs `protobuf:"bytes,3,opt,name=vehicles,proto3,oneof" json:"vehicles,omitempty"` + sizeCache protoimpl.SizeCache } func (x *TemplateRequirements) Reset() { @@ -461,13 +457,12 @@ func (x *TemplateRequirements) GetVehicles() *ObjectSpecs { } type ObjectSpecs struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Required *bool `protobuf:"varint,1,opt,name=required,proto3,oneof" json:"required,omitempty"` + Min *int32 `protobuf:"varint,2,opt,name=min,proto3,oneof" json:"min,omitempty"` + Max *int32 `protobuf:"varint,3,opt,name=max,proto3,oneof" json:"max,omitempty"` unknownFields protoimpl.UnknownFields - - Required *bool `protobuf:"varint,1,opt,name=required,proto3,oneof" json:"required,omitempty"` - Min *int32 `protobuf:"varint,2,opt,name=min,proto3,oneof" json:"min,omitempty"` - Max *int32 `protobuf:"varint,3,opt,name=max,proto3,oneof" json:"max,omitempty"` + sizeCache protoimpl.SizeCache } func (x *ObjectSpecs) Reset() { @@ -522,14 +517,13 @@ func (x *ObjectSpecs) GetMax() int32 { } type TemplateData struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + ActiveChar *users.User `protobuf:"bytes,1,opt,name=activeChar,proto3" json:"activeChar,omitempty"` + Documents []*DocumentShort `protobuf:"bytes,2,rep,name=documents,proto3" json:"documents,omitempty"` + Users []*users.UserShort `protobuf:"bytes,3,rep,name=users,proto3" json:"users,omitempty"` + Vehicles []*vehicles.Vehicle `protobuf:"bytes,4,rep,name=vehicles,proto3" json:"vehicles,omitempty"` unknownFields protoimpl.UnknownFields - - ActiveChar *users.User `protobuf:"bytes,1,opt,name=activeChar,proto3" json:"activeChar,omitempty"` - Documents []*DocumentShort `protobuf:"bytes,2,rep,name=documents,proto3" json:"documents,omitempty"` - Users []*users.UserShort `protobuf:"bytes,3,rep,name=users,proto3" json:"users,omitempty"` - Vehicles []*vehicles.Vehicle `protobuf:"bytes,4,rep,name=vehicles,proto3" json:"vehicles,omitempty"` + sizeCache protoimpl.SizeCache } func (x *TemplateData) Reset() { @@ -591,18 +585,17 @@ func (x *TemplateData) GetVehicles() []*vehicles.Vehicle { } type TemplateJobAccess struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty" alias:"id"` // @gotags: alias:"id" + CreatedAt *timestamp.Timestamp `protobuf:"bytes,2,opt,name=created_at,json=createdAt,proto3,oneof" json:"created_at,omitempty"` + TargetId uint64 `protobuf:"varint,3,opt,name=target_id,json=targetId,proto3" json:"target_id,omitempty" alias:"template_id"` // @gotags: alias:"template_id" + Job string `protobuf:"bytes,4,opt,name=job,proto3" json:"job,omitempty"` + JobLabel *string `protobuf:"bytes,5,opt,name=job_label,json=jobLabel,proto3,oneof" json:"job_label,omitempty"` + MinimumGrade int32 `protobuf:"varint,6,opt,name=minimum_grade,json=minimumGrade,proto3" json:"minimum_grade,omitempty"` + JobGradeLabel *string `protobuf:"bytes,7,opt,name=job_grade_label,json=jobGradeLabel,proto3,oneof" json:"job_grade_label,omitempty"` + Access AccessLevel `protobuf:"varint,8,opt,name=access,proto3,enum=resources.documents.AccessLevel" json:"access,omitempty"` unknownFields protoimpl.UnknownFields - - Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty" alias:"id"` // @gotags: alias:"id" - CreatedAt *timestamp.Timestamp `protobuf:"bytes,2,opt,name=created_at,json=createdAt,proto3,oneof" json:"created_at,omitempty"` - TargetId uint64 `protobuf:"varint,3,opt,name=target_id,json=targetId,proto3" json:"target_id,omitempty" alias:"template_id"` // @gotags: alias:"template_id" - Job string `protobuf:"bytes,4,opt,name=job,proto3" json:"job,omitempty"` - JobLabel *string `protobuf:"bytes,5,opt,name=job_label,json=jobLabel,proto3,oneof" json:"job_label,omitempty"` - MinimumGrade int32 `protobuf:"varint,6,opt,name=minimum_grade,json=minimumGrade,proto3" json:"minimum_grade,omitempty"` - JobGradeLabel *string `protobuf:"bytes,7,opt,name=job_grade_label,json=jobGradeLabel,proto3,oneof" json:"job_grade_label,omitempty"` - Access AccessLevel `protobuf:"varint,8,opt,name=access,proto3,enum=resources.documents.AccessLevel" json:"access,omitempty"` + sizeCache protoimpl.SizeCache } func (x *TemplateJobAccess) Reset() { @@ -693,9 +686,9 @@ func (x *TemplateJobAccess) GetAccess() AccessLevel { // Dummy - DO NOT USE! type TemplateUserAccess struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *TemplateUserAccess) Reset() { diff --git a/gen/go/proto/resources/documents/workflow.pb.go b/gen/go/proto/resources/documents/workflow.pb.go index b65ae0190..e5c71b503 100644 --- a/gen/go/proto/resources/documents/workflow.pb.go +++ b/gen/go/proto/resources/documents/workflow.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.35.2 +// protoc-gen-go v1.36.0 // protoc v3.20.3 // source: resources/documents/workflow.proto @@ -23,14 +23,13 @@ const ( ) type Workflow struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Reminder bool `protobuf:"varint,1,opt,name=reminder,proto3" json:"reminder,omitempty"` - ReminderSettings *ReminderSettings `protobuf:"bytes,2,opt,name=reminder_settings,json=reminderSettings,proto3" json:"reminder_settings,omitempty"` - AutoClose bool `protobuf:"varint,3,opt,name=auto_close,json=autoClose,proto3" json:"auto_close,omitempty"` - AutoCloseSettings *AutoCloseSettings `protobuf:"bytes,4,opt,name=auto_close_settings,json=autoCloseSettings,proto3" json:"auto_close_settings,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + Reminder bool `protobuf:"varint,1,opt,name=reminder,proto3" json:"reminder,omitempty"` + ReminderSettings *ReminderSettings `protobuf:"bytes,2,opt,name=reminder_settings,json=reminderSettings,proto3" json:"reminder_settings,omitempty"` + AutoClose bool `protobuf:"varint,3,opt,name=auto_close,json=autoClose,proto3" json:"auto_close,omitempty"` + AutoCloseSettings *AutoCloseSettings `protobuf:"bytes,4,opt,name=auto_close_settings,json=autoCloseSettings,proto3" json:"auto_close_settings,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *Workflow) Reset() { @@ -92,11 +91,10 @@ func (x *Workflow) GetAutoCloseSettings() *AutoCloseSettings { } type ReminderSettings struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Reminders []*Reminder `protobuf:"bytes,1,rep,name=reminders,proto3" json:"reminders,omitempty"` unknownFields protoimpl.UnknownFields - - Reminders []*Reminder `protobuf:"bytes,1,rep,name=reminders,proto3" json:"reminders,omitempty"` + sizeCache protoimpl.SizeCache } func (x *ReminderSettings) Reset() { @@ -137,12 +135,11 @@ func (x *ReminderSettings) GetReminders() []*Reminder { } type Reminder struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Duration *durationpb.Duration `protobuf:"bytes,1,opt,name=duration,proto3" json:"duration,omitempty"` + Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` unknownFields protoimpl.UnknownFields - - Duration *durationpb.Duration `protobuf:"bytes,1,opt,name=duration,proto3" json:"duration,omitempty"` - Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` + sizeCache protoimpl.SizeCache } func (x *Reminder) Reset() { @@ -190,12 +187,11 @@ func (x *Reminder) GetMessage() string { } type AutoCloseSettings struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Duration *durationpb.Duration `protobuf:"bytes,1,opt,name=duration,proto3" json:"duration,omitempty"` + Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` unknownFields protoimpl.UnknownFields - - Duration *durationpb.Duration `protobuf:"bytes,1,opt,name=duration,proto3" json:"duration,omitempty"` - Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` + sizeCache protoimpl.SizeCache } func (x *AutoCloseSettings) Reset() { @@ -243,11 +239,10 @@ func (x *AutoCloseSettings) GetMessage() string { } type WorkflowCronData struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + LastDocId uint64 `protobuf:"varint,1,opt,name=last_doc_id,json=lastDocId,proto3" json:"last_doc_id,omitempty"` unknownFields protoimpl.UnknownFields - - LastDocId uint64 `protobuf:"varint,1,opt,name=last_doc_id,json=lastDocId,proto3" json:"last_doc_id,omitempty"` + sizeCache protoimpl.SizeCache } func (x *WorkflowCronData) Reset() { diff --git a/gen/go/proto/resources/filestore/file.pb.go b/gen/go/proto/resources/filestore/file.pb.go index c74744aca..01aa1624f 100644 --- a/gen/go/proto/resources/filestore/file.pb.go +++ b/gen/go/proto/resources/filestore/file.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.35.2 +// protoc-gen-go v1.36.0 // protoc v3.20.3 // source: resources/filestore/file.proto @@ -23,15 +23,14 @@ const ( ) type File struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Url *string `protobuf:"bytes,1,opt,name=url,proto3,oneof" json:"url,omitempty"` + Data []byte `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"` + Delete *bool `protobuf:"varint,3,opt,name=delete,proto3,oneof" json:"delete,omitempty"` + ContentType *string `protobuf:"bytes,4,opt,name=content_type,json=contentType,proto3,oneof" json:"content_type,omitempty"` + Extension *string `protobuf:"bytes,5,opt,name=extension,proto3,oneof" json:"extension,omitempty"` unknownFields protoimpl.UnknownFields - - Url *string `protobuf:"bytes,1,opt,name=url,proto3,oneof" json:"url,omitempty"` - Data []byte `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"` - Delete *bool `protobuf:"varint,3,opt,name=delete,proto3,oneof" json:"delete,omitempty"` - ContentType *string `protobuf:"bytes,4,opt,name=content_type,json=contentType,proto3,oneof" json:"content_type,omitempty"` - Extension *string `protobuf:"bytes,5,opt,name=extension,proto3,oneof" json:"extension,omitempty"` + sizeCache protoimpl.SizeCache } func (x *File) Reset() { @@ -100,14 +99,13 @@ func (x *File) GetExtension() string { } type FileInfo struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + LastModified *timestamp.Timestamp `protobuf:"bytes,2,opt,name=last_modified,json=lastModified,proto3,oneof" json:"last_modified,omitempty"` + Size int64 `protobuf:"varint,3,opt,name=size,proto3" json:"size,omitempty"` + ContentType string `protobuf:"bytes,4,opt,name=content_type,json=contentType,proto3" json:"content_type,omitempty"` unknownFields protoimpl.UnknownFields - - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` - LastModified *timestamp.Timestamp `protobuf:"bytes,2,opt,name=last_modified,json=lastModified,proto3,oneof" json:"last_modified,omitempty"` - Size int64 `protobuf:"varint,3,opt,name=size,proto3" json:"size,omitempty"` - ContentType string `protobuf:"bytes,4,opt,name=content_type,json=contentType,proto3" json:"content_type,omitempty"` + sizeCache protoimpl.SizeCache } func (x *FileInfo) Reset() { diff --git a/gen/go/proto/resources/internet/ads.pb.go b/gen/go/proto/resources/internet/ads.pb.go index f4fbabd27..2e201f14e 100644 --- a/gen/go/proto/resources/internet/ads.pb.go +++ b/gen/go/proto/resources/internet/ads.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.35.2 +// protoc-gen-go v1.36.0 // protoc v3.20.3 // source: resources/internet/ads.proto @@ -79,27 +79,26 @@ func (AdType) EnumDescriptor() ([]byte, []int) { } type Ad struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty" sql:"primary_key" alias:"id"` // @gotags: sql:"primary_key" alias:"id" - CreatedAt *timestamp.Timestamp `protobuf:"bytes,2,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` - UpdatedAt *timestamp.Timestamp `protobuf:"bytes,3,opt,name=updated_at,json=updatedAt,proto3,oneof" json:"updated_at,omitempty"` - DeletedAt *timestamp.Timestamp `protobuf:"bytes,4,opt,name=deleted_at,json=deletedAt,proto3,oneof" json:"deleted_at,omitempty"` - Disabled bool `protobuf:"varint,5,opt,name=disabled,proto3" json:"disabled,omitempty"` - AdType AdType `protobuf:"varint,6,opt,name=ad_type,json=adType,proto3,enum=resources.internet.AdType" json:"ad_type,omitempty"` - StartsAt *timestamp.Timestamp `protobuf:"bytes,7,opt,name=starts_at,json=startsAt,proto3,oneof" json:"starts_at,omitempty"` - EndsAt *timestamp.Timestamp `protobuf:"bytes,8,opt,name=ends_at,json=endsAt,proto3,oneof" json:"ends_at,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty" sql:"primary_key" alias:"id"` // @gotags: sql:"primary_key" alias:"id" + CreatedAt *timestamp.Timestamp `protobuf:"bytes,2,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` + UpdatedAt *timestamp.Timestamp `protobuf:"bytes,3,opt,name=updated_at,json=updatedAt,proto3,oneof" json:"updated_at,omitempty"` + DeletedAt *timestamp.Timestamp `protobuf:"bytes,4,opt,name=deleted_at,json=deletedAt,proto3,oneof" json:"deleted_at,omitempty"` + Disabled bool `protobuf:"varint,5,opt,name=disabled,proto3" json:"disabled,omitempty"` + AdType AdType `protobuf:"varint,6,opt,name=ad_type,json=adType,proto3,enum=resources.internet.AdType" json:"ad_type,omitempty"` + StartsAt *timestamp.Timestamp `protobuf:"bytes,7,opt,name=starts_at,json=startsAt,proto3,oneof" json:"starts_at,omitempty"` + EndsAt *timestamp.Timestamp `protobuf:"bytes,8,opt,name=ends_at,json=endsAt,proto3,oneof" json:"ends_at,omitempty"` // @sanitize: method=StripTags Title string `protobuf:"bytes,9,opt,name=title,proto3" json:"title,omitempty"` // @sanitize: method=StripTags - Description string `protobuf:"bytes,10,opt,name=description,proto3" json:"description,omitempty"` - Image *filestore.File `protobuf:"bytes,11,opt,name=image,proto3,oneof" json:"image,omitempty"` - ApproverId *int32 `protobuf:"varint,12,opt,name=approver_id,json=approverId,proto3,oneof" json:"approver_id,omitempty"` - ApproverJob *string `protobuf:"bytes,13,opt,name=approver_job,json=approverJob,proto3,oneof" json:"approver_job,omitempty"` - CreatorId *int32 `protobuf:"varint,14,opt,name=creator_id,json=creatorId,proto3,oneof" json:"creator_id,omitempty"` - CreatorJob *string `protobuf:"bytes,15,opt,name=creator_job,json=creatorJob,proto3,oneof" json:"creator_job,omitempty"` + Description string `protobuf:"bytes,10,opt,name=description,proto3" json:"description,omitempty"` + Image *filestore.File `protobuf:"bytes,11,opt,name=image,proto3,oneof" json:"image,omitempty"` + ApproverId *int32 `protobuf:"varint,12,opt,name=approver_id,json=approverId,proto3,oneof" json:"approver_id,omitempty"` + ApproverJob *string `protobuf:"bytes,13,opt,name=approver_job,json=approverJob,proto3,oneof" json:"approver_job,omitempty"` + CreatorId *int32 `protobuf:"varint,14,opt,name=creator_id,json=creatorId,proto3,oneof" json:"creator_id,omitempty"` + CreatorJob *string `protobuf:"bytes,15,opt,name=creator_job,json=creatorJob,proto3,oneof" json:"creator_job,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *Ad) Reset() { diff --git a/gen/go/proto/resources/internet/domain.pb.go b/gen/go/proto/resources/internet/domain.pb.go index a8925f097..25db543b3 100644 --- a/gen/go/proto/resources/internet/domain.pb.go +++ b/gen/go/proto/resources/internet/domain.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.35.2 +// protoc-gen-go v1.36.0 // protoc v3.20.3 // source: resources/internet/domain.proto @@ -23,17 +23,16 @@ const ( ) type Domain struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` + CreatedAt *timestamp.Timestamp `protobuf:"bytes,2,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` + UpdatedAt *timestamp.Timestamp `protobuf:"bytes,3,opt,name=updated_at,json=updatedAt,proto3,oneof" json:"updated_at,omitempty"` + DeletedAt *timestamp.Timestamp `protobuf:"bytes,4,opt,name=deleted_at,json=deletedAt,proto3,oneof" json:"deleted_at,omitempty"` + Name string `protobuf:"bytes,5,opt,name=name,proto3" json:"name,omitempty"` + CreatorJob *string `protobuf:"bytes,6,opt,name=creator_job,json=creatorJob,proto3,oneof" json:"creator_job,omitempty"` + CreatorId *int32 `protobuf:"varint,7,opt,name=creator_id,json=creatorId,proto3,oneof" json:"creator_id,omitempty"` unknownFields protoimpl.UnknownFields - - Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` - CreatedAt *timestamp.Timestamp `protobuf:"bytes,2,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` - UpdatedAt *timestamp.Timestamp `protobuf:"bytes,3,opt,name=updated_at,json=updatedAt,proto3,oneof" json:"updated_at,omitempty"` - DeletedAt *timestamp.Timestamp `protobuf:"bytes,4,opt,name=deleted_at,json=deletedAt,proto3,oneof" json:"deleted_at,omitempty"` - Name string `protobuf:"bytes,5,opt,name=name,proto3" json:"name,omitempty"` - CreatorJob *string `protobuf:"bytes,6,opt,name=creator_job,json=creatorJob,proto3,oneof" json:"creator_job,omitempty"` - CreatorId *int32 `protobuf:"varint,7,opt,name=creator_id,json=creatorId,proto3,oneof" json:"creator_id,omitempty"` + sizeCache protoimpl.SizeCache } func (x *Domain) Reset() { diff --git a/gen/go/proto/resources/internet/page.pb.go b/gen/go/proto/resources/internet/page.pb.go index b2909a097..ba42c8049 100644 --- a/gen/go/proto/resources/internet/page.pb.go +++ b/gen/go/proto/resources/internet/page.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.35.2 +// protoc-gen-go v1.36.0 // protoc v3.20.3 // source: resources/internet/page.proto @@ -69,24 +69,23 @@ func (PageLayoutType) EnumDescriptor() ([]byte, []int) { } type Page struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` - CreatedAt *timestamp.Timestamp `protobuf:"bytes,2,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` - UpdatedAt *timestamp.Timestamp `protobuf:"bytes,3,opt,name=updated_at,json=updatedAt,proto3,oneof" json:"updated_at,omitempty"` - DeletedAt *timestamp.Timestamp `protobuf:"bytes,4,opt,name=deleted_at,json=deletedAt,proto3,oneof" json:"deleted_at,omitempty"` - DomainId uint64 `protobuf:"varint,5,opt,name=domain_id,json=domainId,proto3" json:"domain_id,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` + CreatedAt *timestamp.Timestamp `protobuf:"bytes,2,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` + UpdatedAt *timestamp.Timestamp `protobuf:"bytes,3,opt,name=updated_at,json=updatedAt,proto3,oneof" json:"updated_at,omitempty"` + DeletedAt *timestamp.Timestamp `protobuf:"bytes,4,opt,name=deleted_at,json=deletedAt,proto3,oneof" json:"deleted_at,omitempty"` + DomainId uint64 `protobuf:"varint,5,opt,name=domain_id,json=domainId,proto3" json:"domain_id,omitempty"` // @sanitize: method=StripTags Path string `protobuf:"bytes,6,opt,name=path,proto3" json:"path,omitempty"` // @sanitize: method=StripTags Title string `protobuf:"bytes,7,opt,name=title,proto3" json:"title,omitempty"` // @sanitize: method=StripTags - Description string `protobuf:"bytes,8,opt,name=description,proto3" json:"description,omitempty"` - Data *PageData `protobuf:"bytes,9,opt,name=data,proto3" json:"data,omitempty"` - CreatorJob *string `protobuf:"bytes,10,opt,name=creator_job,json=creatorJob,proto3,oneof" json:"creator_job,omitempty"` - CreatorId *int32 `protobuf:"varint,11,opt,name=creator_id,json=creatorId,proto3,oneof" json:"creator_id,omitempty"` + Description string `protobuf:"bytes,8,opt,name=description,proto3" json:"description,omitempty"` + Data *PageData `protobuf:"bytes,9,opt,name=data,proto3" json:"data,omitempty"` + CreatorJob *string `protobuf:"bytes,10,opt,name=creator_job,json=creatorJob,proto3,oneof" json:"creator_job,omitempty"` + CreatorId *int32 `protobuf:"varint,11,opt,name=creator_id,json=creatorId,proto3,oneof" json:"creator_id,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *Page) Reset() { @@ -197,9 +196,9 @@ func (x *Page) GetCreatorId() int32 { } type PageData struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *PageData) Reset() { diff --git a/gen/go/proto/resources/internet/search.pb.go b/gen/go/proto/resources/internet/search.pb.go index ca80544c0..4a0630d87 100644 --- a/gen/go/proto/resources/internet/search.pb.go +++ b/gen/go/proto/resources/internet/search.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.35.2 +// protoc-gen-go v1.36.0 // protoc v3.20.3 // source: resources/internet/search.proto @@ -21,14 +21,13 @@ const ( ) type SearchResult struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` + Title string `protobuf:"bytes,2,opt,name=title,proto3" json:"title,omitempty"` + Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"` + Url string `protobuf:"bytes,4,opt,name=url,proto3" json:"url,omitempty"` unknownFields protoimpl.UnknownFields - - Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` - Title string `protobuf:"bytes,2,opt,name=title,proto3" json:"title,omitempty"` - Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"` - Url string `protobuf:"bytes,4,opt,name=url,proto3" json:"url,omitempty"` + sizeCache protoimpl.SizeCache } func (x *SearchResult) Reset() { diff --git a/gen/go/proto/resources/jobs/colleagues.pb.go b/gen/go/proto/resources/jobs/colleagues.pb.go index 9b955ad8d..27e77cdc0 100644 --- a/gen/go/proto/resources/jobs/colleagues.pb.go +++ b/gen/go/proto/resources/jobs/colleagues.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.35.2 +// protoc-gen-go v1.36.0 // protoc v3.20.3 // source: resources/jobs/colleagues.proto @@ -91,24 +91,23 @@ func (JobsUserActivityType) EnumDescriptor() ([]byte, []int) { } type Colleague struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - UserId int32 `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty" alias:"id"` // @gotags: alias:"id" - Identifier *string `protobuf:"bytes,2,opt,name=identifier,proto3,oneof" json:"identifier,omitempty"` - Job string `protobuf:"bytes,3,opt,name=job,proto3" json:"job,omitempty"` - JobLabel *string `protobuf:"bytes,4,opt,name=job_label,json=jobLabel,proto3,oneof" json:"job_label,omitempty"` - JobGrade int32 `protobuf:"varint,5,opt,name=job_grade,json=jobGrade,proto3" json:"job_grade,omitempty"` - JobGradeLabel *string `protobuf:"bytes,6,opt,name=job_grade_label,json=jobGradeLabel,proto3,oneof" json:"job_grade_label,omitempty"` - Firstname string `protobuf:"bytes,7,opt,name=firstname,proto3" json:"firstname,omitempty"` - Lastname string `protobuf:"bytes,8,opt,name=lastname,proto3" json:"lastname,omitempty"` - Dateofbirth string `protobuf:"bytes,9,opt,name=dateofbirth,proto3" json:"dateofbirth,omitempty"` - PhoneNumber *string `protobuf:"bytes,12,opt,name=phone_number,json=phoneNumber,proto3,oneof" json:"phone_number,omitempty"` - Avatar *filestore.File `protobuf:"bytes,17,opt,name=avatar,proto3,oneof" json:"avatar,omitempty"` - Props *JobsUserProps `protobuf:"bytes,18,opt,name=props,proto3" json:"props,omitempty" alias:"jobs_user_props"` // @gotags: alias:"jobs_user_props" + state protoimpl.MessageState `protogen:"open.v1"` + UserId int32 `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty" alias:"id"` // @gotags: alias:"id" + Identifier *string `protobuf:"bytes,2,opt,name=identifier,proto3,oneof" json:"identifier,omitempty"` + Job string `protobuf:"bytes,3,opt,name=job,proto3" json:"job,omitempty"` + JobLabel *string `protobuf:"bytes,4,opt,name=job_label,json=jobLabel,proto3,oneof" json:"job_label,omitempty"` + JobGrade int32 `protobuf:"varint,5,opt,name=job_grade,json=jobGrade,proto3" json:"job_grade,omitempty"` + JobGradeLabel *string `protobuf:"bytes,6,opt,name=job_grade_label,json=jobGradeLabel,proto3,oneof" json:"job_grade_label,omitempty"` + Firstname string `protobuf:"bytes,7,opt,name=firstname,proto3" json:"firstname,omitempty"` + Lastname string `protobuf:"bytes,8,opt,name=lastname,proto3" json:"lastname,omitempty"` + Dateofbirth string `protobuf:"bytes,9,opt,name=dateofbirth,proto3" json:"dateofbirth,omitempty"` + PhoneNumber *string `protobuf:"bytes,12,opt,name=phone_number,json=phoneNumber,proto3,oneof" json:"phone_number,omitempty"` + Avatar *filestore.File `protobuf:"bytes,17,opt,name=avatar,proto3,oneof" json:"avatar,omitempty"` + Props *JobsUserProps `protobuf:"bytes,18,opt,name=props,proto3" json:"props,omitempty" alias:"jobs_user_props"` // @gotags: alias:"jobs_user_props" // @sanitize: method=StripTags - Email *string `protobuf:"bytes,19,opt,name=email,proto3,oneof" json:"email,omitempty"` + Email *string `protobuf:"bytes,19,opt,name=email,proto3,oneof" json:"email,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *Colleague) Reset() { @@ -233,19 +232,18 @@ func (x *Colleague) GetEmail() string { } type JobsUserProps struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - UserId int32 `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` - Job string `protobuf:"bytes,2,opt,name=job,proto3" json:"job,omitempty"` - AbsenceBegin *timestamp.Timestamp `protobuf:"bytes,3,opt,name=absence_begin,json=absenceBegin,proto3,oneof" json:"absence_begin,omitempty"` - AbsenceEnd *timestamp.Timestamp `protobuf:"bytes,4,opt,name=absence_end,json=absenceEnd,proto3,oneof" json:"absence_end,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + UserId int32 `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` + Job string `protobuf:"bytes,2,opt,name=job,proto3" json:"job,omitempty"` + AbsenceBegin *timestamp.Timestamp `protobuf:"bytes,3,opt,name=absence_begin,json=absenceBegin,proto3,oneof" json:"absence_begin,omitempty"` + AbsenceEnd *timestamp.Timestamp `protobuf:"bytes,4,opt,name=absence_end,json=absenceEnd,proto3,oneof" json:"absence_end,omitempty"` // @sanitize: method=StripTags - Note *string `protobuf:"bytes,5,opt,name=note,proto3,oneof" json:"note,omitempty"` - Labels *Labels `protobuf:"bytes,6,opt,name=labels,proto3,oneof" json:"labels,omitempty"` - NamePrefix *string `protobuf:"bytes,7,opt,name=name_prefix,json=namePrefix,proto3,oneof" json:"name_prefix,omitempty"` - NameSuffix *string `protobuf:"bytes,8,opt,name=name_suffix,json=nameSuffix,proto3,oneof" json:"name_suffix,omitempty"` + Note *string `protobuf:"bytes,5,opt,name=note,proto3,oneof" json:"note,omitempty"` + Labels *Labels `protobuf:"bytes,6,opt,name=labels,proto3,oneof" json:"labels,omitempty"` + NamePrefix *string `protobuf:"bytes,7,opt,name=name_prefix,json=namePrefix,proto3,oneof" json:"name_prefix,omitempty"` + NameSuffix *string `protobuf:"bytes,8,opt,name=name_suffix,json=nameSuffix,proto3,oneof" json:"name_suffix,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *JobsUserProps) Reset() { @@ -335,21 +333,20 @@ func (x *JobsUserProps) GetNameSuffix() string { } type JobsUserActivity struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty" sql:"primary_key" alias:"id"` // @gotags: sql:"primary_key" alias:"id" - CreatedAt *timestamp.Timestamp `protobuf:"bytes,2,opt,name=created_at,json=createdAt,proto3,oneof" json:"created_at,omitempty"` - Job string `protobuf:"bytes,4,opt,name=job,proto3" json:"job,omitempty"` - SourceUserId int32 `protobuf:"varint,5,opt,name=source_user_id,json=sourceUserId,proto3" json:"source_user_id,omitempty"` - SourceUser *Colleague `protobuf:"bytes,6,opt,name=source_user,json=sourceUser,proto3" json:"source_user,omitempty" alias:"source_user"` // @gotags: alias:"source_user" - TargetUserId int32 `protobuf:"varint,7,opt,name=target_user_id,json=targetUserId,proto3" json:"target_user_id,omitempty"` - TargetUser *Colleague `protobuf:"bytes,8,opt,name=target_user,json=targetUser,proto3" json:"target_user,omitempty" alias:"target_user"` // @gotags: alias:"target_user" - ActivityType JobsUserActivityType `protobuf:"varint,9,opt,name=activity_type,json=activityType,proto3,enum=resources.jobs.JobsUserActivityType" json:"activity_type,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty" sql:"primary_key" alias:"id"` // @gotags: sql:"primary_key" alias:"id" + CreatedAt *timestamp.Timestamp `protobuf:"bytes,2,opt,name=created_at,json=createdAt,proto3,oneof" json:"created_at,omitempty"` + Job string `protobuf:"bytes,4,opt,name=job,proto3" json:"job,omitempty"` + SourceUserId int32 `protobuf:"varint,5,opt,name=source_user_id,json=sourceUserId,proto3" json:"source_user_id,omitempty"` + SourceUser *Colleague `protobuf:"bytes,6,opt,name=source_user,json=sourceUser,proto3" json:"source_user,omitempty" alias:"source_user"` // @gotags: alias:"source_user" + TargetUserId int32 `protobuf:"varint,7,opt,name=target_user_id,json=targetUserId,proto3" json:"target_user_id,omitempty"` + TargetUser *Colleague `protobuf:"bytes,8,opt,name=target_user,json=targetUser,proto3" json:"target_user,omitempty" alias:"target_user"` // @gotags: alias:"target_user" + ActivityType JobsUserActivityType `protobuf:"varint,9,opt,name=activity_type,json=activityType,proto3,enum=resources.jobs.JobsUserActivityType" json:"activity_type,omitempty"` // @sanitize - Reason string `protobuf:"bytes,10,opt,name=reason,proto3" json:"reason,omitempty"` - Data *JobsUserActivityData `protobuf:"bytes,11,opt,name=data,proto3" json:"data,omitempty"` + Reason string `protobuf:"bytes,10,opt,name=reason,proto3" json:"reason,omitempty"` + Data *JobsUserActivityData `protobuf:"bytes,11,opt,name=data,proto3" json:"data,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *JobsUserActivity) Reset() { @@ -453,17 +450,16 @@ func (x *JobsUserActivity) GetData() *JobsUserActivityData { } type JobsUserActivityData struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Types that are assignable to Data: + state protoimpl.MessageState `protogen:"open.v1"` + // Types that are valid to be assigned to Data: // // *JobsUserActivityData_AbsenceDate // *JobsUserActivityData_GradeChange // *JobsUserActivityData_LabelsChange // *JobsUserActivityData_NameChange - Data isJobsUserActivityData_Data `protobuf_oneof:"data"` + Data isJobsUserActivityData_Data `protobuf_oneof:"data"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *JobsUserActivityData) Reset() { @@ -496,37 +492,45 @@ func (*JobsUserActivityData) Descriptor() ([]byte, []int) { return file_resources_jobs_colleagues_proto_rawDescGZIP(), []int{3} } -func (m *JobsUserActivityData) GetData() isJobsUserActivityData_Data { - if m != nil { - return m.Data +func (x *JobsUserActivityData) GetData() isJobsUserActivityData_Data { + if x != nil { + return x.Data } return nil } func (x *JobsUserActivityData) GetAbsenceDate() *ColleagueAbsenceDate { - if x, ok := x.GetData().(*JobsUserActivityData_AbsenceDate); ok { - return x.AbsenceDate + if x != nil { + if x, ok := x.Data.(*JobsUserActivityData_AbsenceDate); ok { + return x.AbsenceDate + } } return nil } func (x *JobsUserActivityData) GetGradeChange() *ColleagueGradeChange { - if x, ok := x.GetData().(*JobsUserActivityData_GradeChange); ok { - return x.GradeChange + if x != nil { + if x, ok := x.Data.(*JobsUserActivityData_GradeChange); ok { + return x.GradeChange + } } return nil } func (x *JobsUserActivityData) GetLabelsChange() *ColleagueLabelsChange { - if x, ok := x.GetData().(*JobsUserActivityData_LabelsChange); ok { - return x.LabelsChange + if x != nil { + if x, ok := x.Data.(*JobsUserActivityData_LabelsChange); ok { + return x.LabelsChange + } } return nil } func (x *JobsUserActivityData) GetNameChange() *ColleagueNameChange { - if x, ok := x.GetData().(*JobsUserActivityData_NameChange); ok { - return x.NameChange + if x != nil { + if x, ok := x.Data.(*JobsUserActivityData_NameChange); ok { + return x.NameChange + } } return nil } @@ -560,12 +564,11 @@ func (*JobsUserActivityData_LabelsChange) isJobsUserActivityData_Data() {} func (*JobsUserActivityData_NameChange) isJobsUserActivityData_Data() {} type ColleagueAbsenceDate struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + AbsenceBegin *timestamp.Timestamp `protobuf:"bytes,1,opt,name=absence_begin,json=absenceBegin,proto3" json:"absence_begin,omitempty"` + AbsenceEnd *timestamp.Timestamp `protobuf:"bytes,2,opt,name=absence_end,json=absenceEnd,proto3" json:"absence_end,omitempty"` unknownFields protoimpl.UnknownFields - - AbsenceBegin *timestamp.Timestamp `protobuf:"bytes,1,opt,name=absence_begin,json=absenceBegin,proto3" json:"absence_begin,omitempty"` - AbsenceEnd *timestamp.Timestamp `protobuf:"bytes,2,opt,name=absence_end,json=absenceEnd,proto3" json:"absence_end,omitempty"` + sizeCache protoimpl.SizeCache } func (x *ColleagueAbsenceDate) Reset() { @@ -613,12 +616,11 @@ func (x *ColleagueAbsenceDate) GetAbsenceEnd() *timestamp.Timestamp { } type ColleagueGradeChange struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Grade int32 `protobuf:"varint,1,opt,name=grade,proto3" json:"grade,omitempty"` + GradeLabel string `protobuf:"bytes,2,opt,name=grade_label,json=gradeLabel,proto3" json:"grade_label,omitempty"` unknownFields protoimpl.UnknownFields - - Grade int32 `protobuf:"varint,1,opt,name=grade,proto3" json:"grade,omitempty"` - GradeLabel string `protobuf:"bytes,2,opt,name=grade_label,json=gradeLabel,proto3" json:"grade_label,omitempty"` + sizeCache protoimpl.SizeCache } func (x *ColleagueGradeChange) Reset() { @@ -666,12 +668,11 @@ func (x *ColleagueGradeChange) GetGradeLabel() string { } type ColleagueLabelsChange struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Added []*Label `protobuf:"bytes,1,rep,name=added,proto3" json:"added,omitempty"` + Removed []*Label `protobuf:"bytes,2,rep,name=removed,proto3" json:"removed,omitempty"` unknownFields protoimpl.UnknownFields - - Added []*Label `protobuf:"bytes,1,rep,name=added,proto3" json:"added,omitempty"` - Removed []*Label `protobuf:"bytes,2,rep,name=removed,proto3" json:"removed,omitempty"` + sizeCache protoimpl.SizeCache } func (x *ColleagueLabelsChange) Reset() { @@ -719,12 +720,11 @@ func (x *ColleagueLabelsChange) GetRemoved() []*Label { } type ColleagueNameChange struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Prefix *string `protobuf:"bytes,1,opt,name=prefix,proto3,oneof" json:"prefix,omitempty"` + Suffix *string `protobuf:"bytes,2,opt,name=suffix,proto3,oneof" json:"suffix,omitempty"` unknownFields protoimpl.UnknownFields - - Prefix *string `protobuf:"bytes,1,opt,name=prefix,proto3,oneof" json:"prefix,omitempty"` - Suffix *string `protobuf:"bytes,2,opt,name=suffix,proto3,oneof" json:"suffix,omitempty"` + sizeCache protoimpl.SizeCache } func (x *ColleagueNameChange) Reset() { diff --git a/gen/go/proto/resources/jobs/conduct.pb.go b/gen/go/proto/resources/jobs/conduct.pb.go index 3352bf46d..edb3b5eef 100644 --- a/gen/go/proto/resources/jobs/conduct.pb.go +++ b/gen/go/proto/resources/jobs/conduct.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.35.2 +// protoc-gen-go v1.36.0 // protoc v3.20.3 // source: resources/jobs/conduct.proto @@ -84,22 +84,21 @@ func (ConductType) EnumDescriptor() ([]byte, []int) { } type ConductEntry struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty" sql:"primary_key" alias:"id"` // @gotags: sql:"primary_key" alias:"id" - CreatedAt *timestamp.Timestamp `protobuf:"bytes,2,opt,name=created_at,json=createdAt,proto3,oneof" json:"created_at,omitempty"` - UpdatedAt *timestamp.Timestamp `protobuf:"bytes,3,opt,name=updated_at,json=updatedAt,proto3,oneof" json:"updated_at,omitempty"` - Job string `protobuf:"bytes,4,opt,name=job,proto3" json:"job,omitempty"` - Type ConductType `protobuf:"varint,5,opt,name=type,proto3,enum=resources.jobs.ConductType" json:"type,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty" sql:"primary_key" alias:"id"` // @gotags: sql:"primary_key" alias:"id" + CreatedAt *timestamp.Timestamp `protobuf:"bytes,2,opt,name=created_at,json=createdAt,proto3,oneof" json:"created_at,omitempty"` + UpdatedAt *timestamp.Timestamp `protobuf:"bytes,3,opt,name=updated_at,json=updatedAt,proto3,oneof" json:"updated_at,omitempty"` + Job string `protobuf:"bytes,4,opt,name=job,proto3" json:"job,omitempty"` + Type ConductType `protobuf:"varint,5,opt,name=type,proto3,enum=resources.jobs.ConductType" json:"type,omitempty"` // @sanitize - Message string `protobuf:"bytes,6,opt,name=message,proto3" json:"message,omitempty"` - ExpiresAt *timestamp.Timestamp `protobuf:"bytes,7,opt,name=expires_at,json=expiresAt,proto3,oneof" json:"expires_at,omitempty"` - TargetUserId int32 `protobuf:"varint,8,opt,name=target_user_id,json=targetUserId,proto3" json:"target_user_id,omitempty"` - TargetUser *Colleague `protobuf:"bytes,9,opt,name=target_user,json=targetUser,proto3,oneof" json:"target_user,omitempty" alias:"target_user"` // @gotags: alias:"target_user" - CreatorId int32 `protobuf:"varint,10,opt,name=creator_id,json=creatorId,proto3" json:"creator_id,omitempty"` - Creator *Colleague `protobuf:"bytes,11,opt,name=creator,proto3,oneof" json:"creator,omitempty" alias:"creator"` // @gotags: alias:"creator" + Message string `protobuf:"bytes,6,opt,name=message,proto3" json:"message,omitempty"` + ExpiresAt *timestamp.Timestamp `protobuf:"bytes,7,opt,name=expires_at,json=expiresAt,proto3,oneof" json:"expires_at,omitempty"` + TargetUserId int32 `protobuf:"varint,8,opt,name=target_user_id,json=targetUserId,proto3" json:"target_user_id,omitempty"` + TargetUser *Colleague `protobuf:"bytes,9,opt,name=target_user,json=targetUser,proto3,oneof" json:"target_user,omitempty" alias:"target_user"` // @gotags: alias:"target_user" + CreatorId int32 `protobuf:"varint,10,opt,name=creator_id,json=creatorId,proto3" json:"creator_id,omitempty"` + Creator *Colleague `protobuf:"bytes,11,opt,name=creator,proto3,oneof" json:"creator,omitempty" alias:"creator"` // @gotags: alias:"creator" + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *ConductEntry) Reset() { diff --git a/gen/go/proto/resources/jobs/labels.pb.go b/gen/go/proto/resources/jobs/labels.pb.go index eb7dbe297..f9cfbdc07 100644 --- a/gen/go/proto/resources/jobs/labels.pb.go +++ b/gen/go/proto/resources/jobs/labels.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.35.2 +// protoc-gen-go v1.36.0 // protoc v3.20.3 // source: resources/jobs/labels.proto @@ -22,11 +22,10 @@ const ( ) type Labels struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + List []*Label `protobuf:"bytes,1,rep,name=list,proto3" json:"list,omitempty"` unknownFields protoimpl.UnknownFields - - List []*Label `protobuf:"bytes,1,rep,name=list,proto3" json:"list,omitempty"` + sizeCache protoimpl.SizeCache } func (x *Labels) Reset() { @@ -67,16 +66,15 @@ func (x *Labels) GetList() []*Label { } type Label struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty" sql:"primary_key" alias:"id"` // @gotags: sql:"primary_key" alias:"id" - Job *string `protobuf:"bytes,2,opt,name=job,proto3,oneof" json:"job,omitempty"` - Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty" sql:"primary_key" alias:"id"` // @gotags: sql:"primary_key" alias:"id" + Job *string `protobuf:"bytes,2,opt,name=job,proto3,oneof" json:"job,omitempty"` + Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` // @sanitize: method=StripTags - Color string `protobuf:"bytes,4,opt,name=color,proto3" json:"color,omitempty"` - Order int32 `protobuf:"varint,5,opt,name=order,proto3" json:"order,omitempty"` + Color string `protobuf:"bytes,4,opt,name=color,proto3" json:"color,omitempty"` + Order int32 `protobuf:"varint,5,opt,name=order,proto3" json:"order,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *Label) Reset() { @@ -145,12 +143,11 @@ func (x *Label) GetOrder() int32 { } type LabelCount struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Label *Label `protobuf:"bytes,1,opt,name=label,proto3" json:"label,omitempty"` + Count int64 `protobuf:"varint,2,opt,name=count,proto3" json:"count,omitempty"` unknownFields protoimpl.UnknownFields - - Label *Label `protobuf:"bytes,1,opt,name=label,proto3" json:"label,omitempty"` - Count int64 `protobuf:"varint,2,opt,name=count,proto3" json:"count,omitempty"` + sizeCache protoimpl.SizeCache } func (x *LabelCount) Reset() { diff --git a/gen/go/proto/resources/jobs/timeclock.pb.go b/gen/go/proto/resources/jobs/timeclock.pb.go index 27ee1d211..cf396367a 100644 --- a/gen/go/proto/resources/jobs/timeclock.pb.go +++ b/gen/go/proto/resources/jobs/timeclock.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.35.2 +// protoc-gen-go v1.36.0 // protoc v3.20.3 // source: resources/jobs/timeclock.proto @@ -124,16 +124,15 @@ func (TimeclockUserMode) EnumDescriptor() ([]byte, []int) { } type TimeclockEntry struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + UserId int32 `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty" sql:"primary_key"` // @gotags: sql:"primary_key" + Date *timestamp.Timestamp `protobuf:"bytes,2,opt,name=date,proto3" json:"date,omitempty" sql:"primary_key"` // @gotags: sql:"primary_key" + User *Colleague `protobuf:"bytes,3,opt,name=user,proto3,oneof" json:"user,omitempty"` + StartTime *timestamp.Timestamp `protobuf:"bytes,4,opt,name=start_time,json=startTime,proto3,oneof" json:"start_time,omitempty"` + EndTime *timestamp.Timestamp `protobuf:"bytes,5,opt,name=end_time,json=endTime,proto3,oneof" json:"end_time,omitempty"` + SpentTime float32 `protobuf:"fixed32,6,opt,name=spent_time,json=spentTime,proto3" json:"spent_time,omitempty"` unknownFields protoimpl.UnknownFields - - UserId int32 `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty" sql:"primary_key"` // @gotags: sql:"primary_key" - Date *timestamp.Timestamp `protobuf:"bytes,2,opt,name=date,proto3" json:"date,omitempty" sql:"primary_key"` // @gotags: sql:"primary_key" - User *Colleague `protobuf:"bytes,3,opt,name=user,proto3,oneof" json:"user,omitempty"` - StartTime *timestamp.Timestamp `protobuf:"bytes,4,opt,name=start_time,json=startTime,proto3,oneof" json:"start_time,omitempty"` - EndTime *timestamp.Timestamp `protobuf:"bytes,5,opt,name=end_time,json=endTime,proto3,oneof" json:"end_time,omitempty"` - SpentTime float32 `protobuf:"fixed32,6,opt,name=spent_time,json=spentTime,proto3" json:"spent_time,omitempty"` + sizeCache protoimpl.SizeCache } func (x *TimeclockEntry) Reset() { @@ -209,14 +208,13 @@ func (x *TimeclockEntry) GetSpentTime() float32 { } type TimeclockStats struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Job string `protobuf:"bytes,1,opt,name=job,proto3" json:"job,omitempty"` + SpentTimeSum float32 `protobuf:"fixed32,2,opt,name=spent_time_sum,json=spentTimeSum,proto3" json:"spent_time_sum,omitempty"` + SpentTimeAvg float32 `protobuf:"fixed32,3,opt,name=spent_time_avg,json=spentTimeAvg,proto3" json:"spent_time_avg,omitempty"` + SpentTimeMax float32 `protobuf:"fixed32,4,opt,name=spent_time_max,json=spentTimeMax,proto3" json:"spent_time_max,omitempty"` unknownFields protoimpl.UnknownFields - - Job string `protobuf:"bytes,1,opt,name=job,proto3" json:"job,omitempty"` - SpentTimeSum float32 `protobuf:"fixed32,2,opt,name=spent_time_sum,json=spentTimeSum,proto3" json:"spent_time_sum,omitempty"` - SpentTimeAvg float32 `protobuf:"fixed32,3,opt,name=spent_time_avg,json=spentTimeAvg,proto3" json:"spent_time_avg,omitempty"` - SpentTimeMax float32 `protobuf:"fixed32,4,opt,name=spent_time_max,json=spentTimeMax,proto3" json:"spent_time_max,omitempty"` + sizeCache protoimpl.SizeCache } func (x *TimeclockStats) Reset() { @@ -278,15 +276,14 @@ func (x *TimeclockStats) GetSpentTimeMax() float32 { } type TimeclockWeeklyStats struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Year int32 `protobuf:"varint,1,opt,name=year,proto3" json:"year,omitempty"` + CalendarWeek int32 `protobuf:"varint,2,opt,name=calendar_week,json=calendarWeek,proto3" json:"calendar_week,omitempty"` + Sum float32 `protobuf:"fixed32,3,opt,name=sum,proto3" json:"sum,omitempty"` + Avg float32 `protobuf:"fixed32,4,opt,name=avg,proto3" json:"avg,omitempty"` + Max float32 `protobuf:"fixed32,5,opt,name=max,proto3" json:"max,omitempty"` unknownFields protoimpl.UnknownFields - - Year int32 `protobuf:"varint,1,opt,name=year,proto3" json:"year,omitempty"` - CalendarWeek int32 `protobuf:"varint,2,opt,name=calendar_week,json=calendarWeek,proto3" json:"calendar_week,omitempty"` - Sum float32 `protobuf:"fixed32,3,opt,name=sum,proto3" json:"sum,omitempty"` - Avg float32 `protobuf:"fixed32,4,opt,name=avg,proto3" json:"avg,omitempty"` - Max float32 `protobuf:"fixed32,5,opt,name=max,proto3" json:"max,omitempty"` + sizeCache protoimpl.SizeCache } func (x *TimeclockWeeklyStats) Reset() { diff --git a/gen/go/proto/resources/laws/laws.pb.go b/gen/go/proto/resources/laws/laws.pb.go index dc4d97475..0f4de9a5c 100644 --- a/gen/go/proto/resources/laws/laws.pb.go +++ b/gen/go/proto/resources/laws/laws.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.35.2 +// protoc-gen-go v1.36.0 // protoc v3.20.3 // source: resources/laws/laws.proto @@ -23,18 +23,17 @@ const ( ) type LawBook struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty" sql:"primary_key" alias:"id"` // @gotags: sql:"primary_key" alias:"id" - CreatedAt *timestamp.Timestamp `protobuf:"bytes,2,opt,name=created_at,json=createdAt,proto3,oneof" json:"created_at,omitempty"` - UpdatedAt *timestamp.Timestamp `protobuf:"bytes,3,opt,name=updated_at,json=updatedAt,proto3,oneof" json:"updated_at,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty" sql:"primary_key" alias:"id"` // @gotags: sql:"primary_key" alias:"id" + CreatedAt *timestamp.Timestamp `protobuf:"bytes,2,opt,name=created_at,json=createdAt,proto3,oneof" json:"created_at,omitempty"` + UpdatedAt *timestamp.Timestamp `protobuf:"bytes,3,opt,name=updated_at,json=updatedAt,proto3,oneof" json:"updated_at,omitempty"` // @sanitize Name string `protobuf:"bytes,4,opt,name=name,proto3" json:"name,omitempty"` // @sanitize - Description *string `protobuf:"bytes,5,opt,name=description,proto3,oneof" json:"description,omitempty"` - Laws []*Law `protobuf:"bytes,6,rep,name=laws,proto3" json:"laws,omitempty"` + Description *string `protobuf:"bytes,5,opt,name=description,proto3,oneof" json:"description,omitempty"` + Laws []*Law `protobuf:"bytes,6,rep,name=laws,proto3" json:"laws,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *LawBook) Reset() { @@ -110,14 +109,11 @@ func (x *LawBook) GetLaws() []*Law { } type Law struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty" sql:"primary_key" alias:"law.id"` // @gotags: sql:"primary_key" alias:"law.id" - CreatedAt *timestamp.Timestamp `protobuf:"bytes,2,opt,name=created_at,json=createdAt,proto3,oneof" json:"created_at,omitempty"` - UpdatedAt *timestamp.Timestamp `protobuf:"bytes,3,opt,name=updated_at,json=updatedAt,proto3,oneof" json:"updated_at,omitempty"` - LawbookId uint64 `protobuf:"varint,4,opt,name=lawbook_id,json=lawbookId,proto3" json:"lawbook_id,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty" sql:"primary_key" alias:"law.id"` // @gotags: sql:"primary_key" alias:"law.id" + CreatedAt *timestamp.Timestamp `protobuf:"bytes,2,opt,name=created_at,json=createdAt,proto3,oneof" json:"created_at,omitempty"` + UpdatedAt *timestamp.Timestamp `protobuf:"bytes,3,opt,name=updated_at,json=updatedAt,proto3,oneof" json:"updated_at,omitempty"` + LawbookId uint64 `protobuf:"varint,4,opt,name=lawbook_id,json=lawbookId,proto3" json:"lawbook_id,omitempty"` // @sanitize Name string `protobuf:"bytes,5,opt,name=name,proto3" json:"name,omitempty"` // @sanitize @@ -127,6 +123,8 @@ type Law struct { Fine *uint32 `protobuf:"varint,8,opt,name=fine,proto3,oneof" json:"fine,omitempty"` DetentionTime *uint32 `protobuf:"varint,9,opt,name=detention_time,json=detentionTime,proto3,oneof" json:"detention_time,omitempty"` StvoPoints *uint32 `protobuf:"varint,10,opt,name=stvo_points,json=stvoPoints,proto3,oneof" json:"stvo_points,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *Law) Reset() { diff --git a/gen/go/proto/resources/livemap/livemap.pb.go b/gen/go/proto/resources/livemap/livemap.pb.go index cddfa3e80..e58a9bbe0 100644 --- a/gen/go/proto/resources/livemap/livemap.pb.go +++ b/gen/go/proto/resources/livemap/livemap.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.35.2 +// protoc-gen-go v1.36.0 // protoc v3.20.3 // source: resources/livemap/livemap.proto @@ -78,15 +78,12 @@ func (MarkerType) EnumDescriptor() ([]byte, []int) { } type MarkerInfo struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` - CreatedAt *timestamp.Timestamp `protobuf:"bytes,2,opt,name=created_at,json=createdAt,proto3,oneof" json:"created_at,omitempty"` - UpdatedAt *timestamp.Timestamp `protobuf:"bytes,3,opt,name=updated_at,json=updatedAt,proto3,oneof" json:"updated_at,omitempty"` - Job string `protobuf:"bytes,4,opt,name=job,proto3" json:"job,omitempty"` - JobLabel string `protobuf:"bytes,12,opt,name=job_label,json=jobLabel,proto3" json:"job_label,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` + CreatedAt *timestamp.Timestamp `protobuf:"bytes,2,opt,name=created_at,json=createdAt,proto3,oneof" json:"created_at,omitempty"` + UpdatedAt *timestamp.Timestamp `protobuf:"bytes,3,opt,name=updated_at,json=updatedAt,proto3,oneof" json:"updated_at,omitempty"` + Job string `protobuf:"bytes,4,opt,name=job,proto3" json:"job,omitempty"` + JobLabel string `protobuf:"bytes,12,opt,name=job_label,json=jobLabel,proto3" json:"job_label,omitempty"` // @sanitize Name string `protobuf:"bytes,5,opt,name=name,proto3" json:"name,omitempty"` // @sanitize @@ -98,7 +95,9 @@ type MarkerInfo struct { // @sanitize: method=StripTags Color *string `protobuf:"bytes,10,opt,name=color,proto3,oneof" json:"color,omitempty"` // @sanitize: method=StripTags - Icon *string `protobuf:"bytes,11,opt,name=icon,proto3,oneof" json:"icon,omitempty"` + Icon *string `protobuf:"bytes,11,opt,name=icon,proto3,oneof" json:"icon,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *MarkerInfo) Reset() { @@ -216,16 +215,15 @@ func (x *MarkerInfo) GetIcon() string { } type UserMarker struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Info *MarkerInfo `protobuf:"bytes,1,opt,name=info,proto3" json:"info,omitempty"` + UserId int32 `protobuf:"varint,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` + User *jobs.Colleague `protobuf:"bytes,3,opt,name=user,proto3" json:"user,omitempty" alias:"user"` // @gotags: alias:"user" + UnitId *uint64 `protobuf:"varint,4,opt,name=unit_id,json=unitId,proto3,oneof" json:"unit_id,omitempty"` + Unit *centrum.Unit `protobuf:"bytes,5,opt,name=unit,proto3,oneof" json:"unit,omitempty"` + Hidden bool `protobuf:"varint,6,opt,name=hidden,proto3" json:"hidden,omitempty"` unknownFields protoimpl.UnknownFields - - Info *MarkerInfo `protobuf:"bytes,1,opt,name=info,proto3" json:"info,omitempty"` - UserId int32 `protobuf:"varint,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` - User *jobs.Colleague `protobuf:"bytes,3,opt,name=user,proto3" json:"user,omitempty" alias:"user"` // @gotags: alias:"user" - UnitId *uint64 `protobuf:"varint,4,opt,name=unit_id,json=unitId,proto3,oneof" json:"unit_id,omitempty"` - Unit *centrum.Unit `protobuf:"bytes,5,opt,name=unit,proto3,oneof" json:"unit,omitempty"` - Hidden bool `protobuf:"varint,6,opt,name=hidden,proto3" json:"hidden,omitempty"` + sizeCache protoimpl.SizeCache } func (x *UserMarker) Reset() { @@ -301,16 +299,15 @@ func (x *UserMarker) GetHidden() bool { } type MarkerMarker struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Info *MarkerInfo `protobuf:"bytes,1,opt,name=info,proto3" json:"info,omitempty"` + Type MarkerType `protobuf:"varint,2,opt,name=type,proto3,enum=resources.livemap.MarkerType" json:"type,omitempty" alias:"markerType"` // @gotags: alias:"markerType" + ExpiresAt *timestamp.Timestamp `protobuf:"bytes,3,opt,name=expires_at,json=expiresAt,proto3,oneof" json:"expires_at,omitempty"` + Data *MarkerData `protobuf:"bytes,4,opt,name=data,proto3" json:"data,omitempty" alias:"markerData"` // @gotags: alias:"markerData" + CreatorId *int32 `protobuf:"varint,5,opt,name=creator_id,json=creatorId,proto3,oneof" json:"creator_id,omitempty"` + Creator *users.UserShort `protobuf:"bytes,6,opt,name=creator,proto3,oneof" json:"creator,omitempty"` unknownFields protoimpl.UnknownFields - - Info *MarkerInfo `protobuf:"bytes,1,opt,name=info,proto3" json:"info,omitempty"` - Type MarkerType `protobuf:"varint,2,opt,name=type,proto3,enum=resources.livemap.MarkerType" json:"type,omitempty" alias:"markerType"` // @gotags: alias:"markerType" - ExpiresAt *timestamp.Timestamp `protobuf:"bytes,3,opt,name=expires_at,json=expiresAt,proto3,oneof" json:"expires_at,omitempty"` - Data *MarkerData `protobuf:"bytes,4,opt,name=data,proto3" json:"data,omitempty" alias:"markerData"` // @gotags: alias:"markerData" - CreatorId *int32 `protobuf:"varint,5,opt,name=creator_id,json=creatorId,proto3,oneof" json:"creator_id,omitempty"` - Creator *users.UserShort `protobuf:"bytes,6,opt,name=creator,proto3,oneof" json:"creator,omitempty"` + sizeCache protoimpl.SizeCache } func (x *MarkerMarker) Reset() { @@ -386,15 +383,14 @@ func (x *MarkerMarker) GetCreator() *users.UserShort { } type MarkerData struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Types that are assignable to Data: + state protoimpl.MessageState `protogen:"open.v1"` + // Types that are valid to be assigned to Data: // // *MarkerData_Circle // *MarkerData_Icon - Data isMarkerData_Data `protobuf_oneof:"data"` + Data isMarkerData_Data `protobuf_oneof:"data"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *MarkerData) Reset() { @@ -427,23 +423,27 @@ func (*MarkerData) Descriptor() ([]byte, []int) { return file_resources_livemap_livemap_proto_rawDescGZIP(), []int{3} } -func (m *MarkerData) GetData() isMarkerData_Data { - if m != nil { - return m.Data +func (x *MarkerData) GetData() isMarkerData_Data { + if x != nil { + return x.Data } return nil } func (x *MarkerData) GetCircle() *CircleMarker { - if x, ok := x.GetData().(*MarkerData_Circle); ok { - return x.Circle + if x != nil { + if x, ok := x.Data.(*MarkerData_Circle); ok { + return x.Circle + } } return nil } func (x *MarkerData) GetIcon() *IconMarker { - if x, ok := x.GetData().(*MarkerData_Icon); ok { - return x.Icon + if x != nil { + if x, ok := x.Data.(*MarkerData_Icon); ok { + return x.Icon + } } return nil } @@ -465,12 +465,11 @@ func (*MarkerData_Circle) isMarkerData_Data() {} func (*MarkerData_Icon) isMarkerData_Data() {} type CircleMarker struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Radius int32 `protobuf:"varint,1,opt,name=radius,proto3" json:"radius,omitempty"` + Opacity *float32 `protobuf:"fixed32,2,opt,name=opacity,proto3,oneof" json:"opacity,omitempty"` unknownFields protoimpl.UnknownFields - - Radius int32 `protobuf:"varint,1,opt,name=radius,proto3" json:"radius,omitempty"` - Opacity *float32 `protobuf:"fixed32,2,opt,name=opacity,proto3,oneof" json:"opacity,omitempty"` + sizeCache protoimpl.SizeCache } func (x *CircleMarker) Reset() { @@ -518,12 +517,11 @@ func (x *CircleMarker) GetOpacity() float32 { } type Coords struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + X float64 `protobuf:"fixed64,1,opt,name=x,proto3" json:"x,omitempty"` + Y float64 `protobuf:"fixed64,2,opt,name=y,proto3" json:"y,omitempty"` unknownFields protoimpl.UnknownFields - - X float64 `protobuf:"fixed64,1,opt,name=x,proto3" json:"x,omitempty"` - Y float64 `protobuf:"fixed64,2,opt,name=y,proto3" json:"y,omitempty"` + sizeCache protoimpl.SizeCache } func (x *Coords) Reset() { @@ -571,12 +569,11 @@ func (x *Coords) GetY() float64 { } type IconMarker struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - + state protoimpl.MessageState `protogen:"open.v1"` // @sanitize: method=StripTags - Icon string `protobuf:"bytes,1,opt,name=icon,proto3" json:"icon,omitempty"` + Icon string `protobuf:"bytes,1,opt,name=icon,proto3" json:"icon,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *IconMarker) Reset() { diff --git a/gen/go/proto/resources/livemap/tracker.pb.go b/gen/go/proto/resources/livemap/tracker.pb.go index 51cc4bdea..f499a0b15 100644 --- a/gen/go/proto/resources/livemap/tracker.pb.go +++ b/gen/go/proto/resources/livemap/tracker.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.35.2 +// protoc-gen-go v1.36.0 // protoc v3.20.3 // source: resources/livemap/tracker.proto @@ -21,12 +21,11 @@ const ( ) type UsersUpdateEvent struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Added []*UserMarker `protobuf:"bytes,1,rep,name=added,proto3" json:"added,omitempty"` + Removed []*UserMarker `protobuf:"bytes,2,rep,name=removed,proto3" json:"removed,omitempty"` unknownFields protoimpl.UnknownFields - - Added []*UserMarker `protobuf:"bytes,1,rep,name=added,proto3" json:"added,omitempty"` - Removed []*UserMarker `protobuf:"bytes,2,rep,name=removed,proto3" json:"removed,omitempty"` + sizeCache protoimpl.SizeCache } func (x *UsersUpdateEvent) Reset() { diff --git a/gen/go/proto/resources/mailer/access.pb.go b/gen/go/proto/resources/mailer/access.pb.go index dd164bddc..012e95222 100644 --- a/gen/go/proto/resources/mailer/access.pb.go +++ b/gen/go/proto/resources/mailer/access.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.35.2 +// protoc-gen-go v1.36.0 // protoc v3.20.3 // source: resources/mailer/access.proto @@ -80,13 +80,12 @@ func (AccessLevel) EnumDescriptor() ([]byte, []int) { } type Access struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - + state protoimpl.MessageState `protogen:"open.v1"` Jobs []*JobAccess `protobuf:"bytes,1,rep,name=jobs,proto3" json:"jobs,omitempty" alias:"job_access"` // @gotags: alias:"job_access" Users []*UserAccess `protobuf:"bytes,2,rep,name=users,proto3" json:"users,omitempty" alias:"user_access"` // @gotags: alias:"user_access" Qualifications []*QualificationAccess `protobuf:"bytes,3,rep,name=qualifications,proto3" json:"qualifications,omitempty" alias:"qualification_access"` // @gotags: alias:"qualification_access" + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *Access) Reset() { @@ -141,18 +140,17 @@ func (x *Access) GetQualifications() []*QualificationAccess { } type JobAccess struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty" sql:"primary_key" alias:"id"` // @gotags: sql:"primary_key" alias:"id" + CreatedAt *timestamp.Timestamp `protobuf:"bytes,2,opt,name=created_at,json=createdAt,proto3,oneof" json:"created_at,omitempty"` + TargetId uint64 `protobuf:"varint,4,opt,name=target_id,json=targetId,proto3" json:"target_id,omitempty" alias:"email_id"` // @gotags: alias:"email_id" + Job string `protobuf:"bytes,5,opt,name=job,proto3" json:"job,omitempty"` + JobLabel *string `protobuf:"bytes,6,opt,name=job_label,json=jobLabel,proto3,oneof" json:"job_label,omitempty"` + MinimumGrade int32 `protobuf:"varint,7,opt,name=minimum_grade,json=minimumGrade,proto3" json:"minimum_grade,omitempty"` + JobGradeLabel *string `protobuf:"bytes,8,opt,name=job_grade_label,json=jobGradeLabel,proto3,oneof" json:"job_grade_label,omitempty"` + Access AccessLevel `protobuf:"varint,9,opt,name=access,proto3,enum=resources.mailer.AccessLevel" json:"access,omitempty"` unknownFields protoimpl.UnknownFields - - Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty" sql:"primary_key" alias:"id"` // @gotags: sql:"primary_key" alias:"id" - CreatedAt *timestamp.Timestamp `protobuf:"bytes,2,opt,name=created_at,json=createdAt,proto3,oneof" json:"created_at,omitempty"` - TargetId uint64 `protobuf:"varint,4,opt,name=target_id,json=targetId,proto3" json:"target_id,omitempty" alias:"email_id"` // @gotags: alias:"email_id" - Job string `protobuf:"bytes,5,opt,name=job,proto3" json:"job,omitempty"` - JobLabel *string `protobuf:"bytes,6,opt,name=job_label,json=jobLabel,proto3,oneof" json:"job_label,omitempty"` - MinimumGrade int32 `protobuf:"varint,7,opt,name=minimum_grade,json=minimumGrade,proto3" json:"minimum_grade,omitempty"` - JobGradeLabel *string `protobuf:"bytes,8,opt,name=job_grade_label,json=jobGradeLabel,proto3,oneof" json:"job_grade_label,omitempty"` - Access AccessLevel `protobuf:"varint,9,opt,name=access,proto3,enum=resources.mailer.AccessLevel" json:"access,omitempty"` + sizeCache protoimpl.SizeCache } func (x *JobAccess) Reset() { @@ -242,16 +240,15 @@ func (x *JobAccess) GetAccess() AccessLevel { } type UserAccess struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` + CreatedAt *timestamp.Timestamp `protobuf:"bytes,2,opt,name=created_at,json=createdAt,proto3,oneof" json:"created_at,omitempty"` + TargetId uint64 `protobuf:"varint,3,opt,name=target_id,json=targetId,proto3" json:"target_id,omitempty" alias:"thread_id"` // @gotags: alias:"thread_id" + UserId int32 `protobuf:"varint,4,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` + User *users.UserShort `protobuf:"bytes,5,opt,name=user,proto3,oneof" json:"user,omitempty"` + Access AccessLevel `protobuf:"varint,6,opt,name=access,proto3,enum=resources.mailer.AccessLevel" json:"access,omitempty"` unknownFields protoimpl.UnknownFields - - Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` - CreatedAt *timestamp.Timestamp `protobuf:"bytes,2,opt,name=created_at,json=createdAt,proto3,oneof" json:"created_at,omitempty"` - TargetId uint64 `protobuf:"varint,3,opt,name=target_id,json=targetId,proto3" json:"target_id,omitempty" alias:"thread_id"` // @gotags: alias:"thread_id" - UserId int32 `protobuf:"varint,4,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` - User *users.UserShort `protobuf:"bytes,5,opt,name=user,proto3,oneof" json:"user,omitempty"` - Access AccessLevel `protobuf:"varint,6,opt,name=access,proto3,enum=resources.mailer.AccessLevel" json:"access,omitempty"` + sizeCache protoimpl.SizeCache } func (x *UserAccess) Reset() { @@ -327,16 +324,15 @@ func (x *UserAccess) GetAccess() AccessLevel { } type QualificationAccess struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - + state protoimpl.MessageState `protogen:"open.v1"` Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` CreatedAt *timestamp.Timestamp `protobuf:"bytes,2,opt,name=created_at,json=createdAt,proto3,oneof" json:"created_at,omitempty"` TargetId uint64 `protobuf:"varint,3,opt,name=target_id,json=targetId,proto3" json:"target_id,omitempty" alias:"thread_id"` // @gotags: alias:"thread_id" QualificationId uint64 `protobuf:"varint,4,opt,name=qualification_id,json=qualificationId,proto3" json:"qualification_id,omitempty"` Qualification *qualifications.QualificationShort `protobuf:"bytes,5,opt,name=qualification,proto3,oneof" json:"qualification,omitempty"` Access AccessLevel `protobuf:"varint,6,opt,name=access,proto3,enum=resources.mailer.AccessLevel" json:"access,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *QualificationAccess) Reset() { diff --git a/gen/go/proto/resources/mailer/email.pb.go b/gen/go/proto/resources/mailer/email.pb.go index a2cbb71b8..e8dd19a0f 100644 --- a/gen/go/proto/resources/mailer/email.pb.go +++ b/gen/go/proto/resources/mailer/email.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.35.2 +// protoc-gen-go v1.36.0 // protoc v3.20.3 // source: resources/mailer/email.proto @@ -24,26 +24,25 @@ const ( ) type Email struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` - CreatedAt *timestamp.Timestamp `protobuf:"bytes,2,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` - UpdatedAt *timestamp.Timestamp `protobuf:"bytes,3,opt,name=updated_at,json=updatedAt,proto3,oneof" json:"updated_at,omitempty"` - DeletedAt *timestamp.Timestamp `protobuf:"bytes,4,opt,name=deleted_at,json=deletedAt,proto3,oneof" json:"deleted_at,omitempty"` - Deactivated bool `protobuf:"varint,5,opt,name=deactivated,proto3" json:"deactivated,omitempty"` - Job *string `protobuf:"bytes,6,opt,name=job,proto3,oneof" json:"job,omitempty"` - UserId *int32 `protobuf:"varint,7,opt,name=user_id,json=userId,proto3,oneof" json:"user_id,omitempty"` - User *users.UserShort `protobuf:"bytes,8,opt,name=user,proto3,oneof" json:"user,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` + CreatedAt *timestamp.Timestamp `protobuf:"bytes,2,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` + UpdatedAt *timestamp.Timestamp `protobuf:"bytes,3,opt,name=updated_at,json=updatedAt,proto3,oneof" json:"updated_at,omitempty"` + DeletedAt *timestamp.Timestamp `protobuf:"bytes,4,opt,name=deleted_at,json=deletedAt,proto3,oneof" json:"deleted_at,omitempty"` + Deactivated bool `protobuf:"varint,5,opt,name=deactivated,proto3" json:"deactivated,omitempty"` + Job *string `protobuf:"bytes,6,opt,name=job,proto3,oneof" json:"job,omitempty"` + UserId *int32 `protobuf:"varint,7,opt,name=user_id,json=userId,proto3,oneof" json:"user_id,omitempty"` + User *users.UserShort `protobuf:"bytes,8,opt,name=user,proto3,oneof" json:"user,omitempty"` // @sanitize: method=StripTags Email string `protobuf:"bytes,9,opt,name=email,proto3" json:"email,omitempty"` EmailChanged *timestamp.Timestamp `protobuf:"bytes,10,opt,name=email_changed,json=emailChanged,proto3,oneof" json:"email_changed,omitempty"` // @sanitize: method=StripTags - Label *string `protobuf:"bytes,11,opt,name=label,proto3,oneof" json:"label,omitempty"` - Internal bool `protobuf:"varint,12,opt,name=internal,proto3" json:"internal,omitempty"` - Access *Access `protobuf:"bytes,13,opt,name=access,proto3" json:"access,omitempty"` - Settings *EmailSettings `protobuf:"bytes,14,opt,name=settings,proto3,oneof" json:"settings,omitempty"` + Label *string `protobuf:"bytes,11,opt,name=label,proto3,oneof" json:"label,omitempty"` + Internal bool `protobuf:"varint,12,opt,name=internal,proto3" json:"internal,omitempty"` + Access *Access `protobuf:"bytes,13,opt,name=access,proto3" json:"access,omitempty"` + Settings *EmailSettings `protobuf:"bytes,14,opt,name=settings,proto3,oneof" json:"settings,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *Email) Reset() { diff --git a/gen/go/proto/resources/mailer/events.pb.go b/gen/go/proto/resources/mailer/events.pb.go index 40688b493..18b882b21 100644 --- a/gen/go/proto/resources/mailer/events.pb.go +++ b/gen/go/proto/resources/mailer/events.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.35.2 +// protoc-gen-go v1.36.0 // protoc v3.20.3 // source: resources/mailer/events.proto @@ -21,11 +21,8 @@ const ( ) type MailerEvent struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Types that are assignable to Data: + state protoimpl.MessageState `protogen:"open.v1"` + // Types that are valid to be assigned to Data: // // *MailerEvent_EmailUpdate // *MailerEvent_EmailDelete @@ -35,7 +32,9 @@ type MailerEvent struct { // *MailerEvent_ThreadStateUpdate // *MailerEvent_MessageUpdate // *MailerEvent_MessageDelete - Data isMailerEvent_Data `protobuf_oneof:"data"` + Data isMailerEvent_Data `protobuf_oneof:"data"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *MailerEvent) Reset() { @@ -68,65 +67,81 @@ func (*MailerEvent) Descriptor() ([]byte, []int) { return file_resources_mailer_events_proto_rawDescGZIP(), []int{0} } -func (m *MailerEvent) GetData() isMailerEvent_Data { - if m != nil { - return m.Data +func (x *MailerEvent) GetData() isMailerEvent_Data { + if x != nil { + return x.Data } return nil } func (x *MailerEvent) GetEmailUpdate() *Email { - if x, ok := x.GetData().(*MailerEvent_EmailUpdate); ok { - return x.EmailUpdate + if x != nil { + if x, ok := x.Data.(*MailerEvent_EmailUpdate); ok { + return x.EmailUpdate + } } return nil } func (x *MailerEvent) GetEmailDelete() uint64 { - if x, ok := x.GetData().(*MailerEvent_EmailDelete); ok { - return x.EmailDelete + if x != nil { + if x, ok := x.Data.(*MailerEvent_EmailDelete); ok { + return x.EmailDelete + } } return 0 } func (x *MailerEvent) GetEmailSettingsUpdated() *EmailSettings { - if x, ok := x.GetData().(*MailerEvent_EmailSettingsUpdated); ok { - return x.EmailSettingsUpdated + if x != nil { + if x, ok := x.Data.(*MailerEvent_EmailSettingsUpdated); ok { + return x.EmailSettingsUpdated + } } return nil } func (x *MailerEvent) GetThreadUpdate() *Thread { - if x, ok := x.GetData().(*MailerEvent_ThreadUpdate); ok { - return x.ThreadUpdate + if x != nil { + if x, ok := x.Data.(*MailerEvent_ThreadUpdate); ok { + return x.ThreadUpdate + } } return nil } func (x *MailerEvent) GetThreadDelete() uint64 { - if x, ok := x.GetData().(*MailerEvent_ThreadDelete); ok { - return x.ThreadDelete + if x != nil { + if x, ok := x.Data.(*MailerEvent_ThreadDelete); ok { + return x.ThreadDelete + } } return 0 } func (x *MailerEvent) GetThreadStateUpdate() *ThreadState { - if x, ok := x.GetData().(*MailerEvent_ThreadStateUpdate); ok { - return x.ThreadStateUpdate + if x != nil { + if x, ok := x.Data.(*MailerEvent_ThreadStateUpdate); ok { + return x.ThreadStateUpdate + } } return nil } func (x *MailerEvent) GetMessageUpdate() *Message { - if x, ok := x.GetData().(*MailerEvent_MessageUpdate); ok { - return x.MessageUpdate + if x != nil { + if x, ok := x.Data.(*MailerEvent_MessageUpdate); ok { + return x.MessageUpdate + } } return nil } func (x *MailerEvent) GetMessageDelete() uint64 { - if x, ok := x.GetData().(*MailerEvent_MessageDelete); ok { - return x.MessageDelete + if x != nil { + if x, ok := x.Data.(*MailerEvent_MessageDelete); ok { + return x.MessageDelete + } } return 0 } diff --git a/gen/go/proto/resources/mailer/message.pb.go b/gen/go/proto/resources/mailer/message.pb.go index d80f0665e..9030f789d 100644 --- a/gen/go/proto/resources/mailer/message.pb.go +++ b/gen/go/proto/resources/mailer/message.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.35.2 +// protoc-gen-go v1.36.0 // protoc v3.20.3 // source: resources/mailer/message.proto @@ -24,24 +24,23 @@ const ( ) type Message struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` - ThreadId uint64 `protobuf:"varint,2,opt,name=thread_id,json=threadId,proto3" json:"thread_id,omitempty"` - SenderId uint64 `protobuf:"varint,3,opt,name=sender_id,json=senderId,proto3" json:"sender_id,omitempty"` - Sender *Email `protobuf:"bytes,4,opt,name=sender,proto3,oneof" json:"sender,omitempty" alias:"sender"` // @gotags: alias:"sender" - CreatedAt *timestamp.Timestamp `protobuf:"bytes,5,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` - UpdatedAt *timestamp.Timestamp `protobuf:"bytes,6,opt,name=updated_at,json=updatedAt,proto3,oneof" json:"updated_at,omitempty"` - DeletedAt *timestamp.Timestamp `protobuf:"bytes,7,opt,name=deleted_at,json=deletedAt,proto3,oneof" json:"deleted_at,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` + ThreadId uint64 `protobuf:"varint,2,opt,name=thread_id,json=threadId,proto3" json:"thread_id,omitempty"` + SenderId uint64 `protobuf:"varint,3,opt,name=sender_id,json=senderId,proto3" json:"sender_id,omitempty"` + Sender *Email `protobuf:"bytes,4,opt,name=sender,proto3,oneof" json:"sender,omitempty" alias:"sender"` // @gotags: alias:"sender" + CreatedAt *timestamp.Timestamp `protobuf:"bytes,5,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` + UpdatedAt *timestamp.Timestamp `protobuf:"bytes,6,opt,name=updated_at,json=updatedAt,proto3,oneof" json:"updated_at,omitempty"` + DeletedAt *timestamp.Timestamp `protobuf:"bytes,7,opt,name=deleted_at,json=deletedAt,proto3,oneof" json:"deleted_at,omitempty"` // @sanitize: method=StripTags Title string `protobuf:"bytes,8,opt,name=title,proto3" json:"title,omitempty"` // @sanitize - Content *content.Content `protobuf:"bytes,9,opt,name=content,proto3" json:"content,omitempty"` - Data *MessageData `protobuf:"bytes,10,opt,name=data,proto3,oneof" json:"data,omitempty"` - CreatorId *int32 `protobuf:"varint,11,opt,name=creator_id,json=creatorId,proto3,oneof" json:"creator_id,omitempty"` - CreatorJob *string `protobuf:"bytes,12,opt,name=creator_job,json=creatorJob,proto3,oneof" json:"creator_job,omitempty"` + Content *content.Content `protobuf:"bytes,9,opt,name=content,proto3" json:"content,omitempty"` + Data *MessageData `protobuf:"bytes,10,opt,name=data,proto3,oneof" json:"data,omitempty"` + CreatorId *int32 `protobuf:"varint,11,opt,name=creator_id,json=creatorId,proto3,oneof" json:"creator_id,omitempty"` + CreatorJob *string `protobuf:"bytes,12,opt,name=creator_job,json=creatorJob,proto3,oneof" json:"creator_job,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *Message) Reset() { @@ -159,11 +158,10 @@ func (x *Message) GetCreatorJob() string { } type MessageData struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Entry []*MessageDataEntry `protobuf:"bytes,1,rep,name=entry,proto3" json:"entry,omitempty"` unknownFields protoimpl.UnknownFields - - Entry []*MessageDataEntry `protobuf:"bytes,1,rep,name=entry,proto3" json:"entry,omitempty"` + sizeCache protoimpl.SizeCache } func (x *MessageData) Reset() { @@ -204,9 +202,9 @@ func (x *MessageData) GetEntry() []*MessageDataEntry { } type MessageDataEntry struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *MessageDataEntry) Reset() { diff --git a/gen/go/proto/resources/mailer/settings.pb.go b/gen/go/proto/resources/mailer/settings.pb.go index 053d7f175..c05e7daac 100644 --- a/gen/go/proto/resources/mailer/settings.pb.go +++ b/gen/go/proto/resources/mailer/settings.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.35.2 +// protoc-gen-go v1.36.0 // protoc v3.20.3 // source: resources/mailer/settings.proto @@ -22,15 +22,14 @@ const ( ) type EmailSettings struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - EmailId uint64 `protobuf:"varint,1,opt,name=email_id,json=emailId,proto3" json:"email_id,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + EmailId uint64 `protobuf:"varint,1,opt,name=email_id,json=emailId,proto3" json:"email_id,omitempty"` // @sanitize Signature *string `protobuf:"bytes,2,opt,name=signature,proto3,oneof" json:"signature,omitempty"` // @sanitize: method=StripTags BlockedEmails []string `protobuf:"bytes,3,rep,name=blocked_emails,json=blockedEmails,proto3" json:"blocked_emails,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *EmailSettings) Reset() { diff --git a/gen/go/proto/resources/mailer/template.pb.go b/gen/go/proto/resources/mailer/template.pb.go index b7beda7f2..c910e26c9 100644 --- a/gen/go/proto/resources/mailer/template.pb.go +++ b/gen/go/proto/resources/mailer/template.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.35.2 +// protoc-gen-go v1.36.0 // protoc v3.20.3 // source: resources/mailer/template.proto @@ -23,21 +23,20 @@ const ( ) type Template struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` - CreatedAt *timestamp.Timestamp `protobuf:"bytes,3,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` - UpdatedAt *timestamp.Timestamp `protobuf:"bytes,4,opt,name=updated_at,json=updatedAt,proto3,oneof" json:"updated_at,omitempty"` - DeletedAt *timestamp.Timestamp `protobuf:"bytes,5,opt,name=deleted_at,json=deletedAt,proto3,oneof" json:"deleted_at,omitempty"` - EmailId uint64 `protobuf:"varint,6,opt,name=email_id,json=emailId,proto3" json:"email_id,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` + CreatedAt *timestamp.Timestamp `protobuf:"bytes,3,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` + UpdatedAt *timestamp.Timestamp `protobuf:"bytes,4,opt,name=updated_at,json=updatedAt,proto3,oneof" json:"updated_at,omitempty"` + DeletedAt *timestamp.Timestamp `protobuf:"bytes,5,opt,name=deleted_at,json=deletedAt,proto3,oneof" json:"deleted_at,omitempty"` + EmailId uint64 `protobuf:"varint,6,opt,name=email_id,json=emailId,proto3" json:"email_id,omitempty"` // @sanitize: method=StripTags Title string `protobuf:"bytes,7,opt,name=title,proto3" json:"title,omitempty"` // @sanitize - Content string `protobuf:"bytes,8,opt,name=content,proto3" json:"content,omitempty"` - CreatorJob *string `protobuf:"bytes,9,opt,name=creator_job,json=creatorJob,proto3,oneof" json:"creator_job,omitempty"` - CreatorId *int32 `protobuf:"varint,10,opt,name=creator_id,json=creatorId,proto3,oneof" json:"creator_id,omitempty"` + Content string `protobuf:"bytes,8,opt,name=content,proto3" json:"content,omitempty"` + CreatorJob *string `protobuf:"bytes,9,opt,name=creator_job,json=creatorJob,proto3,oneof" json:"creator_job,omitempty"` + CreatorId *int32 `protobuf:"varint,10,opt,name=creator_id,json=creatorId,proto3,oneof" json:"creator_id,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *Template) Reset() { diff --git a/gen/go/proto/resources/mailer/thread.pb.go b/gen/go/proto/resources/mailer/thread.pb.go index a76987116..20658fabe 100644 --- a/gen/go/proto/resources/mailer/thread.pb.go +++ b/gen/go/proto/resources/mailer/thread.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.35.2 +// protoc-gen-go v1.36.0 // protoc v3.20.3 // source: resources/mailer/thread.proto @@ -24,22 +24,21 @@ const ( ) type Thread struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` - CreatedAt *timestamp.Timestamp `protobuf:"bytes,2,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` - UpdatedAt *timestamp.Timestamp `protobuf:"bytes,3,opt,name=updated_at,json=updatedAt,proto3,oneof" json:"updated_at,omitempty"` - DeletedAt *timestamp.Timestamp `protobuf:"bytes,4,opt,name=deleted_at,json=deletedAt,proto3,oneof" json:"deleted_at,omitempty"` - CreatorEmailId uint64 `protobuf:"varint,5,opt,name=creator_email_id,json=creatorEmailId,proto3" json:"creator_email_id,omitempty"` - CreatorEmail *Email `protobuf:"bytes,6,opt,name=creator_email,json=creatorEmail,proto3,oneof" json:"creator_email,omitempty"` - CreatorId *int32 `protobuf:"varint,7,opt,name=creator_id,json=creatorId,proto3,oneof" json:"creator_id,omitempty"` - Creator *users.UserShort `protobuf:"bytes,8,opt,name=creator,proto3,oneof" json:"creator,omitempty" alias:"creator"` // @gotags: alias:"creator" + state protoimpl.MessageState `protogen:"open.v1"` + Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` + CreatedAt *timestamp.Timestamp `protobuf:"bytes,2,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` + UpdatedAt *timestamp.Timestamp `protobuf:"bytes,3,opt,name=updated_at,json=updatedAt,proto3,oneof" json:"updated_at,omitempty"` + DeletedAt *timestamp.Timestamp `protobuf:"bytes,4,opt,name=deleted_at,json=deletedAt,proto3,oneof" json:"deleted_at,omitempty"` + CreatorEmailId uint64 `protobuf:"varint,5,opt,name=creator_email_id,json=creatorEmailId,proto3" json:"creator_email_id,omitempty"` + CreatorEmail *Email `protobuf:"bytes,6,opt,name=creator_email,json=creatorEmail,proto3,oneof" json:"creator_email,omitempty"` + CreatorId *int32 `protobuf:"varint,7,opt,name=creator_id,json=creatorId,proto3,oneof" json:"creator_id,omitempty"` + Creator *users.UserShort `protobuf:"bytes,8,opt,name=creator,proto3,oneof" json:"creator,omitempty" alias:"creator"` // @gotags: alias:"creator" // @sanitize: method=StripTags - Title string `protobuf:"bytes,9,opt,name=title,proto3" json:"title,omitempty"` - Recipients []*ThreadRecipientEmail `protobuf:"bytes,10,rep,name=recipients,proto3" json:"recipients,omitempty"` - State *ThreadState `protobuf:"bytes,11,opt,name=state,proto3,oneof" json:"state,omitempty" alias:"thread_state"` // @gotags: alias:"thread_state" + Title string `protobuf:"bytes,9,opt,name=title,proto3" json:"title,omitempty"` + Recipients []*ThreadRecipientEmail `protobuf:"bytes,10,rep,name=recipients,proto3" json:"recipients,omitempty"` + State *ThreadState `protobuf:"bytes,11,opt,name=state,proto3,oneof" json:"state,omitempty" alias:"thread_state"` // @gotags: alias:"thread_state" + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *Thread) Reset() { @@ -150,15 +149,14 @@ func (x *Thread) GetState() *ThreadState { } type ThreadRecipientEmail struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty" sql:"primary_key" alias:"id"` // @gotags: sql:"primary_key" alias:"id" + CreatedAt *timestamp.Timestamp `protobuf:"bytes,2,opt,name=created_at,json=createdAt,proto3,oneof" json:"created_at,omitempty"` + TargetId uint64 `protobuf:"varint,4,opt,name=target_id,json=targetId,proto3" json:"target_id,omitempty" alias:"thread_id"` // @gotags: alias:"thread_id" + EmailId uint64 `protobuf:"varint,5,opt,name=email_id,json=emailId,proto3" json:"email_id,omitempty"` + Email *Email `protobuf:"bytes,6,opt,name=email,proto3,oneof" json:"email,omitempty"` unknownFields protoimpl.UnknownFields - - Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty" sql:"primary_key" alias:"id"` // @gotags: sql:"primary_key" alias:"id" - CreatedAt *timestamp.Timestamp `protobuf:"bytes,2,opt,name=created_at,json=createdAt,proto3,oneof" json:"created_at,omitempty"` - TargetId uint64 `protobuf:"varint,4,opt,name=target_id,json=targetId,proto3" json:"target_id,omitempty" alias:"thread_id"` // @gotags: alias:"thread_id" - EmailId uint64 `protobuf:"varint,5,opt,name=email_id,json=emailId,proto3" json:"email_id,omitempty"` - Email *Email `protobuf:"bytes,6,opt,name=email,proto3,oneof" json:"email,omitempty"` + sizeCache protoimpl.SizeCache } func (x *ThreadRecipientEmail) Reset() { @@ -227,18 +225,17 @@ func (x *ThreadRecipientEmail) GetEmail() *Email { } type ThreadState struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + ThreadId uint64 `protobuf:"varint,1,opt,name=thread_id,json=threadId,proto3" json:"thread_id,omitempty"` + EmailId uint64 `protobuf:"varint,2,opt,name=email_id,json=emailId,proto3" json:"email_id,omitempty"` + LastRead *timestamp.Timestamp `protobuf:"bytes,3,opt,name=last_read,json=lastRead,proto3,oneof" json:"last_read,omitempty"` + Unread *bool `protobuf:"varint,4,opt,name=unread,proto3,oneof" json:"unread,omitempty"` + Important *bool `protobuf:"varint,5,opt,name=important,proto3,oneof" json:"important,omitempty"` + Favorite *bool `protobuf:"varint,6,opt,name=favorite,proto3,oneof" json:"favorite,omitempty"` + Muted *bool `protobuf:"varint,7,opt,name=muted,proto3,oneof" json:"muted,omitempty"` + Archived *bool `protobuf:"varint,8,opt,name=archived,proto3,oneof" json:"archived,omitempty"` unknownFields protoimpl.UnknownFields - - ThreadId uint64 `protobuf:"varint,1,opt,name=thread_id,json=threadId,proto3" json:"thread_id,omitempty"` - EmailId uint64 `protobuf:"varint,2,opt,name=email_id,json=emailId,proto3" json:"email_id,omitempty"` - LastRead *timestamp.Timestamp `protobuf:"bytes,3,opt,name=last_read,json=lastRead,proto3,oneof" json:"last_read,omitempty"` - Unread *bool `protobuf:"varint,4,opt,name=unread,proto3,oneof" json:"unread,omitempty"` - Important *bool `protobuf:"varint,5,opt,name=important,proto3,oneof" json:"important,omitempty"` - Favorite *bool `protobuf:"varint,6,opt,name=favorite,proto3,oneof" json:"favorite,omitempty"` - Muted *bool `protobuf:"varint,7,opt,name=muted,proto3,oneof" json:"muted,omitempty"` - Archived *bool `protobuf:"varint,8,opt,name=archived,proto3,oneof" json:"archived,omitempty"` + sizeCache protoimpl.SizeCache } func (x *ThreadState) Reset() { diff --git a/gen/go/proto/resources/notifications/events.pb.go b/gen/go/proto/resources/notifications/events.pb.go index 528120860..ec9889b88 100644 --- a/gen/go/proto/resources/notifications/events.pb.go +++ b/gen/go/proto/resources/notifications/events.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.35.2 +// protoc-gen-go v1.36.0 // protoc v3.20.3 // source: resources/notifications/events.proto @@ -22,16 +22,15 @@ const ( ) type UserEvent struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Types that are assignable to Data: + state protoimpl.MessageState `protogen:"open.v1"` + // Types that are valid to be assigned to Data: // // *UserEvent_RefreshToken // *UserEvent_Notification // *UserEvent_NotificationsReadCount - Data isUserEvent_Data `protobuf_oneof:"data"` + Data isUserEvent_Data `protobuf_oneof:"data"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *UserEvent) Reset() { @@ -64,30 +63,36 @@ func (*UserEvent) Descriptor() ([]byte, []int) { return file_resources_notifications_events_proto_rawDescGZIP(), []int{0} } -func (m *UserEvent) GetData() isUserEvent_Data { - if m != nil { - return m.Data +func (x *UserEvent) GetData() isUserEvent_Data { + if x != nil { + return x.Data } return nil } func (x *UserEvent) GetRefreshToken() bool { - if x, ok := x.GetData().(*UserEvent_RefreshToken); ok { - return x.RefreshToken + if x != nil { + if x, ok := x.Data.(*UserEvent_RefreshToken); ok { + return x.RefreshToken + } } return false } func (x *UserEvent) GetNotification() *Notification { - if x, ok := x.GetData().(*UserEvent_Notification); ok { - return x.Notification + if x != nil { + if x, ok := x.Data.(*UserEvent_Notification); ok { + return x.Notification + } } return nil } func (x *UserEvent) GetNotificationsReadCount() int32 { - if x, ok := x.GetData().(*UserEvent_NotificationsReadCount); ok { - return x.NotificationsReadCount + if x != nil { + if x, ok := x.Data.(*UserEvent_NotificationsReadCount); ok { + return x.NotificationsReadCount + } } return 0 } @@ -116,14 +121,13 @@ func (*UserEvent_Notification) isUserEvent_Data() {} func (*UserEvent_NotificationsReadCount) isUserEvent_Data() {} type JobEvent struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Types that are assignable to Data: + state protoimpl.MessageState `protogen:"open.v1"` + // Types that are valid to be assigned to Data: // // *JobEvent_JobProps - Data isJobEvent_Data `protobuf_oneof:"data"` + Data isJobEvent_Data `protobuf_oneof:"data"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *JobEvent) Reset() { @@ -156,16 +160,18 @@ func (*JobEvent) Descriptor() ([]byte, []int) { return file_resources_notifications_events_proto_rawDescGZIP(), []int{1} } -func (m *JobEvent) GetData() isJobEvent_Data { - if m != nil { - return m.Data +func (x *JobEvent) GetData() isJobEvent_Data { + if x != nil { + return x.Data } return nil } func (x *JobEvent) GetJobProps() *users.JobProps { - if x, ok := x.GetData().(*JobEvent_JobProps); ok { - return x.JobProps + if x != nil { + if x, ok := x.Data.(*JobEvent_JobProps); ok { + return x.JobProps + } } return nil } @@ -181,14 +187,13 @@ type JobEvent_JobProps struct { func (*JobEvent_JobProps) isJobEvent_Data() {} type JobGradeEvent struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Types that are assignable to Data: + state protoimpl.MessageState `protogen:"open.v1"` + // Types that are valid to be assigned to Data: // // *JobGradeEvent_RefreshToken - Data isJobGradeEvent_Data `protobuf_oneof:"data"` + Data isJobGradeEvent_Data `protobuf_oneof:"data"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *JobGradeEvent) Reset() { @@ -221,16 +226,18 @@ func (*JobGradeEvent) Descriptor() ([]byte, []int) { return file_resources_notifications_events_proto_rawDescGZIP(), []int{2} } -func (m *JobGradeEvent) GetData() isJobGradeEvent_Data { - if m != nil { - return m.Data +func (x *JobGradeEvent) GetData() isJobGradeEvent_Data { + if x != nil { + return x.Data } return nil } func (x *JobGradeEvent) GetRefreshToken() bool { - if x, ok := x.GetData().(*JobGradeEvent_RefreshToken); ok { - return x.RefreshToken + if x != nil { + if x, ok := x.Data.(*JobGradeEvent_RefreshToken); ok { + return x.RefreshToken + } } return false } @@ -246,9 +253,9 @@ type JobGradeEvent_RefreshToken struct { func (*JobGradeEvent_RefreshToken) isJobGradeEvent_Data() {} type SystemEvent struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *SystemEvent) Reset() { diff --git a/gen/go/proto/resources/notifications/notifications.pb.go b/gen/go/proto/resources/notifications/notifications.pb.go index ea3935e3a..13735278b 100644 --- a/gen/go/proto/resources/notifications/notifications.pb.go +++ b/gen/go/proto/resources/notifications/notifications.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.35.2 +// protoc-gen-go v1.36.0 // protoc v3.20.3 // source: resources/notifications/notifications.proto @@ -132,22 +132,21 @@ func (NotificationCategory) EnumDescriptor() ([]byte, []int) { } type Notification struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` - CreatedAt *timestamp.Timestamp `protobuf:"bytes,2,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` - ReadAt *timestamp.Timestamp `protobuf:"bytes,3,opt,name=read_at,json=readAt,proto3" json:"read_at,omitempty"` - UserId int32 `protobuf:"varint,4,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` + CreatedAt *timestamp.Timestamp `protobuf:"bytes,2,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` + ReadAt *timestamp.Timestamp `protobuf:"bytes,3,opt,name=read_at,json=readAt,proto3" json:"read_at,omitempty"` + UserId int32 `protobuf:"varint,4,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` // @sanitize Title *common.TranslateItem `protobuf:"bytes,5,opt,name=title,proto3" json:"title,omitempty"` Type NotificationType `protobuf:"varint,6,opt,name=type,proto3,enum=resources.notifications.NotificationType" json:"type,omitempty"` // @sanitize - Content *common.TranslateItem `protobuf:"bytes,7,opt,name=content,proto3" json:"content,omitempty"` - Category NotificationCategory `protobuf:"varint,8,opt,name=category,proto3,enum=resources.notifications.NotificationCategory" json:"category,omitempty"` - Data *Data `protobuf:"bytes,9,opt,name=data,proto3,oneof" json:"data,omitempty"` - Starred *bool `protobuf:"varint,10,opt,name=starred,proto3,oneof" json:"starred,omitempty"` + Content *common.TranslateItem `protobuf:"bytes,7,opt,name=content,proto3" json:"content,omitempty"` + Category NotificationCategory `protobuf:"varint,8,opt,name=category,proto3,enum=resources.notifications.NotificationCategory" json:"category,omitempty"` + Data *Data `protobuf:"bytes,9,opt,name=data,proto3,oneof" json:"data,omitempty"` + Starred *bool `protobuf:"varint,10,opt,name=starred,proto3,oneof" json:"starred,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *Notification) Reset() { @@ -251,13 +250,12 @@ func (x *Notification) GetStarred() bool { } type Data struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Link *Link `protobuf:"bytes,1,opt,name=link,proto3,oneof" json:"link,omitempty"` + CausedBy *users.UserShort `protobuf:"bytes,2,opt,name=caused_by,json=causedBy,proto3,oneof" json:"caused_by,omitempty"` + Calendar *CalendarData `protobuf:"bytes,3,opt,name=calendar,proto3,oneof" json:"calendar,omitempty"` unknownFields protoimpl.UnknownFields - - Link *Link `protobuf:"bytes,1,opt,name=link,proto3,oneof" json:"link,omitempty"` - CausedBy *users.UserShort `protobuf:"bytes,2,opt,name=caused_by,json=causedBy,proto3,oneof" json:"caused_by,omitempty"` - Calendar *CalendarData `protobuf:"bytes,3,opt,name=calendar,proto3,oneof" json:"calendar,omitempty"` + sizeCache protoimpl.SizeCache } func (x *Data) Reset() { @@ -312,13 +310,12 @@ func (x *Data) GetCalendar() *CalendarData { } type Link struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + To string `protobuf:"bytes,1,opt,name=to,proto3" json:"to,omitempty"` + Title *string `protobuf:"bytes,2,opt,name=title,proto3,oneof" json:"title,omitempty"` + External *bool `protobuf:"varint,3,opt,name=external,proto3,oneof" json:"external,omitempty"` unknownFields protoimpl.UnknownFields - - To string `protobuf:"bytes,1,opt,name=to,proto3" json:"to,omitempty"` - Title *string `protobuf:"bytes,2,opt,name=title,proto3,oneof" json:"title,omitempty"` - External *bool `protobuf:"varint,3,opt,name=external,proto3,oneof" json:"external,omitempty"` + sizeCache protoimpl.SizeCache } func (x *Link) Reset() { @@ -373,12 +370,11 @@ func (x *Link) GetExternal() bool { } type CalendarData struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - CalendarId *uint64 `protobuf:"varint,1,opt,name=calendar_id,json=calendarId,proto3,oneof" json:"calendar_id,omitempty"` - CalendarEntryId *uint64 `protobuf:"varint,2,opt,name=calendar_entry_id,json=calendarEntryId,proto3,oneof" json:"calendar_entry_id,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + CalendarId *uint64 `protobuf:"varint,1,opt,name=calendar_id,json=calendarId,proto3,oneof" json:"calendar_id,omitempty"` + CalendarEntryId *uint64 `protobuf:"varint,2,opt,name=calendar_entry_id,json=calendarEntryId,proto3,oneof" json:"calendar_entry_id,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *CalendarData) Reset() { diff --git a/gen/go/proto/resources/permissions/permissions.pb.go b/gen/go/proto/resources/permissions/permissions.pb.go index 6260e5499..61ff0f5a4 100644 --- a/gen/go/proto/resources/permissions/permissions.pb.go +++ b/gen/go/proto/resources/permissions/permissions.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.35.2 +// protoc-gen-go v1.36.0 // protoc v3.20.3 // source: resources/permissions/permissions.proto @@ -23,16 +23,15 @@ const ( ) type Permission struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` + CreatedAt *timestamp.Timestamp `protobuf:"bytes,2,opt,name=created_at,json=createdAt,proto3,oneof" json:"created_at,omitempty"` + Category string `protobuf:"bytes,3,opt,name=category,proto3" json:"category,omitempty"` + Name string `protobuf:"bytes,4,opt,name=name,proto3" json:"name,omitempty"` + GuardName string `protobuf:"bytes,5,opt,name=guard_name,json=guardName,proto3" json:"guard_name,omitempty"` + Val bool `protobuf:"varint,6,opt,name=val,proto3" json:"val,omitempty"` unknownFields protoimpl.UnknownFields - - Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` - CreatedAt *timestamp.Timestamp `protobuf:"bytes,2,opt,name=created_at,json=createdAt,proto3,oneof" json:"created_at,omitempty"` - Category string `protobuf:"bytes,3,opt,name=category,proto3" json:"category,omitempty"` - Name string `protobuf:"bytes,4,opt,name=name,proto3" json:"name,omitempty"` - GuardName string `protobuf:"bytes,5,opt,name=guard_name,json=guardName,proto3" json:"guard_name,omitempty"` - Val bool `protobuf:"varint,6,opt,name=val,proto3" json:"val,omitempty"` + sizeCache protoimpl.SizeCache } func (x *Permission) Reset() { @@ -108,18 +107,17 @@ func (x *Permission) GetVal() bool { } type Role struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` + CreatedAt *timestamp.Timestamp `protobuf:"bytes,2,opt,name=created_at,json=createdAt,proto3,oneof" json:"created_at,omitempty"` + Job string `protobuf:"bytes,3,opt,name=job,proto3" json:"job,omitempty"` + JobLabel *string `protobuf:"bytes,4,opt,name=job_label,json=jobLabel,proto3,oneof" json:"job_label,omitempty"` + Grade int32 `protobuf:"varint,5,opt,name=grade,proto3" json:"grade,omitempty"` + JobGradeLabel *string `protobuf:"bytes,6,opt,name=job_grade_label,json=jobGradeLabel,proto3,oneof" json:"job_grade_label,omitempty"` + Permissions []*Permission `protobuf:"bytes,7,rep,name=permissions,proto3" json:"permissions,omitempty"` + Attributes []*RoleAttribute `protobuf:"bytes,8,rep,name=attributes,proto3" json:"attributes,omitempty"` unknownFields protoimpl.UnknownFields - - Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` - CreatedAt *timestamp.Timestamp `protobuf:"bytes,2,opt,name=created_at,json=createdAt,proto3,oneof" json:"created_at,omitempty"` - Job string `protobuf:"bytes,3,opt,name=job,proto3" json:"job,omitempty"` - JobLabel *string `protobuf:"bytes,4,opt,name=job_label,json=jobLabel,proto3,oneof" json:"job_label,omitempty"` - Grade int32 `protobuf:"varint,5,opt,name=grade,proto3" json:"grade,omitempty"` - JobGradeLabel *string `protobuf:"bytes,6,opt,name=job_grade_label,json=jobGradeLabel,proto3,oneof" json:"job_grade_label,omitempty"` - Permissions []*Permission `protobuf:"bytes,7,rep,name=permissions,proto3" json:"permissions,omitempty"` - Attributes []*RoleAttribute `protobuf:"bytes,8,rep,name=attributes,proto3" json:"attributes,omitempty"` + sizeCache protoimpl.SizeCache } func (x *Role) Reset() { @@ -209,20 +207,19 @@ func (x *Role) GetAttributes() []*RoleAttribute { } type RawRoleAttribute struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + RoleId uint64 `protobuf:"varint,1,opt,name=role_id,json=roleId,proto3" json:"role_id,omitempty"` + CreatedAt *timestamp.Timestamp `protobuf:"bytes,2,opt,name=created_at,json=createdAt,proto3,oneof" json:"created_at,omitempty"` + AttrId uint64 `protobuf:"varint,3,opt,name=attr_id,json=attrId,proto3" json:"attr_id,omitempty"` + PermissionId uint64 `protobuf:"varint,4,opt,name=permission_id,json=permissionId,proto3" json:"permission_id,omitempty"` + Category string `protobuf:"bytes,5,opt,name=category,proto3" json:"category,omitempty"` + Name string `protobuf:"bytes,6,opt,name=name,proto3" json:"name,omitempty"` + Key string `protobuf:"bytes,7,opt,name=key,proto3" json:"key,omitempty"` + Type string `protobuf:"bytes,8,opt,name=type,proto3" json:"type,omitempty"` + ValidValues *AttributeValues `protobuf:"bytes,9,opt,name=valid_values,json=validValues,proto3" json:"valid_values,omitempty"` + Value *AttributeValues `protobuf:"bytes,10,opt,name=value,proto3" json:"value,omitempty"` unknownFields protoimpl.UnknownFields - - RoleId uint64 `protobuf:"varint,1,opt,name=role_id,json=roleId,proto3" json:"role_id,omitempty"` - CreatedAt *timestamp.Timestamp `protobuf:"bytes,2,opt,name=created_at,json=createdAt,proto3,oneof" json:"created_at,omitempty"` - AttrId uint64 `protobuf:"varint,3,opt,name=attr_id,json=attrId,proto3" json:"attr_id,omitempty"` - PermissionId uint64 `protobuf:"varint,4,opt,name=permission_id,json=permissionId,proto3" json:"permission_id,omitempty"` - Category string `protobuf:"bytes,5,opt,name=category,proto3" json:"category,omitempty"` - Name string `protobuf:"bytes,6,opt,name=name,proto3" json:"name,omitempty"` - Key string `protobuf:"bytes,7,opt,name=key,proto3" json:"key,omitempty"` - Type string `protobuf:"bytes,8,opt,name=type,proto3" json:"type,omitempty"` - ValidValues *AttributeValues `protobuf:"bytes,9,opt,name=valid_values,json=validValues,proto3" json:"valid_values,omitempty"` - Value *AttributeValues `protobuf:"bytes,10,opt,name=value,proto3" json:"value,omitempty"` + sizeCache protoimpl.SizeCache } func (x *RawRoleAttribute) Reset() { @@ -326,21 +323,20 @@ func (x *RawRoleAttribute) GetValue() *AttributeValues { } type RoleAttribute struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + RoleId uint64 `protobuf:"varint,1,opt,name=role_id,json=roleId,proto3" json:"role_id,omitempty"` + CreatedAt *timestamp.Timestamp `protobuf:"bytes,2,opt,name=created_at,json=createdAt,proto3,oneof" json:"created_at,omitempty"` + AttrId uint64 `protobuf:"varint,3,opt,name=attr_id,json=attrId,proto3" json:"attr_id,omitempty"` + PermissionId uint64 `protobuf:"varint,4,opt,name=permission_id,json=permissionId,proto3" json:"permission_id,omitempty"` + Category string `protobuf:"bytes,5,opt,name=category,proto3" json:"category,omitempty"` + Name string `protobuf:"bytes,6,opt,name=name,proto3" json:"name,omitempty"` + Key string `protobuf:"bytes,7,opt,name=key,proto3" json:"key,omitempty"` + Type string `protobuf:"bytes,8,opt,name=type,proto3" json:"type,omitempty"` + ValidValues *AttributeValues `protobuf:"bytes,9,opt,name=valid_values,json=validValues,proto3" json:"valid_values,omitempty"` + Value *AttributeValues `protobuf:"bytes,10,opt,name=value,proto3" json:"value,omitempty"` + MaxValues *AttributeValues `protobuf:"bytes,11,opt,name=max_values,json=maxValues,proto3,oneof" json:"max_values,omitempty"` unknownFields protoimpl.UnknownFields - - RoleId uint64 `protobuf:"varint,1,opt,name=role_id,json=roleId,proto3" json:"role_id,omitempty"` - CreatedAt *timestamp.Timestamp `protobuf:"bytes,2,opt,name=created_at,json=createdAt,proto3,oneof" json:"created_at,omitempty"` - AttrId uint64 `protobuf:"varint,3,opt,name=attr_id,json=attrId,proto3" json:"attr_id,omitempty"` - PermissionId uint64 `protobuf:"varint,4,opt,name=permission_id,json=permissionId,proto3" json:"permission_id,omitempty"` - Category string `protobuf:"bytes,5,opt,name=category,proto3" json:"category,omitempty"` - Name string `protobuf:"bytes,6,opt,name=name,proto3" json:"name,omitempty"` - Key string `protobuf:"bytes,7,opt,name=key,proto3" json:"key,omitempty"` - Type string `protobuf:"bytes,8,opt,name=type,proto3" json:"type,omitempty"` - ValidValues *AttributeValues `protobuf:"bytes,9,opt,name=valid_values,json=validValues,proto3" json:"valid_values,omitempty"` - Value *AttributeValues `protobuf:"bytes,10,opt,name=value,proto3" json:"value,omitempty"` - MaxValues *AttributeValues `protobuf:"bytes,11,opt,name=max_values,json=maxValues,proto3,oneof" json:"max_values,omitempty"` + sizeCache protoimpl.SizeCache } func (x *RoleAttribute) Reset() { @@ -451,16 +447,15 @@ func (x *RoleAttribute) GetMaxValues() *AttributeValues { } type AttributeValues struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Types that are assignable to ValidValues: + state protoimpl.MessageState `protogen:"open.v1"` + // Types that are valid to be assigned to ValidValues: // // *AttributeValues_StringList // *AttributeValues_JobList // *AttributeValues_JobGradeList - ValidValues isAttributeValues_ValidValues `protobuf_oneof:"valid_values"` + ValidValues isAttributeValues_ValidValues `protobuf_oneof:"valid_values"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *AttributeValues) Reset() { @@ -493,30 +488,36 @@ func (*AttributeValues) Descriptor() ([]byte, []int) { return file_resources_permissions_permissions_proto_rawDescGZIP(), []int{4} } -func (m *AttributeValues) GetValidValues() isAttributeValues_ValidValues { - if m != nil { - return m.ValidValues +func (x *AttributeValues) GetValidValues() isAttributeValues_ValidValues { + if x != nil { + return x.ValidValues } return nil } func (x *AttributeValues) GetStringList() *StringList { - if x, ok := x.GetValidValues().(*AttributeValues_StringList); ok { - return x.StringList + if x != nil { + if x, ok := x.ValidValues.(*AttributeValues_StringList); ok { + return x.StringList + } } return nil } func (x *AttributeValues) GetJobList() *StringList { - if x, ok := x.GetValidValues().(*AttributeValues_JobList); ok { - return x.JobList + if x != nil { + if x, ok := x.ValidValues.(*AttributeValues_JobList); ok { + return x.JobList + } } return nil } func (x *AttributeValues) GetJobGradeList() *JobGradeList { - if x, ok := x.GetValidValues().(*AttributeValues_JobGradeList); ok { - return x.JobGradeList + if x != nil { + if x, ok := x.ValidValues.(*AttributeValues_JobGradeList); ok { + return x.JobGradeList + } } return nil } @@ -544,12 +545,11 @@ func (*AttributeValues_JobList) isAttributeValues_ValidValues() {} func (*AttributeValues_JobGradeList) isAttributeValues_ValidValues() {} type StringList struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - + state protoimpl.MessageState `protogen:"open.v1"` // @sanitize: method=StripTags - Strings []string `protobuf:"bytes,1,rep,name=strings,proto3" json:"strings,omitempty"` + Strings []string `protobuf:"bytes,1,rep,name=strings,proto3" json:"strings,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *StringList) Reset() { @@ -590,11 +590,10 @@ func (x *StringList) GetStrings() []string { } type JobGradeList struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Jobs map[string]int32 `protobuf:"bytes,1,rep,name=jobs,proto3" json:"jobs,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"varint,2,opt,name=value"` unknownFields protoimpl.UnknownFields - - Jobs map[string]int32 `protobuf:"bytes,1,rep,name=jobs,proto3" json:"jobs,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"varint,2,opt,name=value,proto3"` + sizeCache protoimpl.SizeCache } func (x *JobGradeList) Reset() { diff --git a/gen/go/proto/resources/qualifications/access.pb.go b/gen/go/proto/resources/qualifications/access.pb.go index 0abe714ab..d437e78db 100644 --- a/gen/go/proto/resources/qualifications/access.pb.go +++ b/gen/go/proto/resources/qualifications/access.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.35.2 +// protoc-gen-go v1.36.0 // protoc v3.20.3 // source: resources/qualifications/access.proto @@ -87,11 +87,10 @@ func (AccessLevel) EnumDescriptor() ([]byte, []int) { } type QualificationAccess struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Jobs []*QualificationJobAccess `protobuf:"bytes,1,rep,name=jobs,proto3" json:"jobs,omitempty"` unknownFields protoimpl.UnknownFields - - Jobs []*QualificationJobAccess `protobuf:"bytes,1,rep,name=jobs,proto3" json:"jobs,omitempty"` + sizeCache protoimpl.SizeCache } func (x *QualificationAccess) Reset() { @@ -132,18 +131,17 @@ func (x *QualificationAccess) GetJobs() []*QualificationJobAccess { } type QualificationJobAccess struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty" sql:"primary_key" alias:"id"` // @gotags: sql:"primary_key" alias:"id" + CreatedAt *timestamp.Timestamp `protobuf:"bytes,2,opt,name=created_at,json=createdAt,proto3,oneof" json:"created_at,omitempty"` + TargetId uint64 `protobuf:"varint,4,opt,name=target_id,json=targetId,proto3" json:"target_id,omitempty" alias:"qualification_id"` // @gotags: alias:"qualification_id" + Job string `protobuf:"bytes,5,opt,name=job,proto3" json:"job,omitempty"` + JobLabel *string `protobuf:"bytes,6,opt,name=job_label,json=jobLabel,proto3,oneof" json:"job_label,omitempty"` + MinimumGrade int32 `protobuf:"varint,7,opt,name=minimum_grade,json=minimumGrade,proto3" json:"minimum_grade,omitempty"` + JobGradeLabel *string `protobuf:"bytes,8,opt,name=job_grade_label,json=jobGradeLabel,proto3,oneof" json:"job_grade_label,omitempty"` + Access AccessLevel `protobuf:"varint,9,opt,name=access,proto3,enum=resources.qualifications.AccessLevel" json:"access,omitempty"` unknownFields protoimpl.UnknownFields - - Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty" sql:"primary_key" alias:"id"` // @gotags: sql:"primary_key" alias:"id" - CreatedAt *timestamp.Timestamp `protobuf:"bytes,2,opt,name=created_at,json=createdAt,proto3,oneof" json:"created_at,omitempty"` - TargetId uint64 `protobuf:"varint,4,opt,name=target_id,json=targetId,proto3" json:"target_id,omitempty" alias:"qualification_id"` // @gotags: alias:"qualification_id" - Job string `protobuf:"bytes,5,opt,name=job,proto3" json:"job,omitempty"` - JobLabel *string `protobuf:"bytes,6,opt,name=job_label,json=jobLabel,proto3,oneof" json:"job_label,omitempty"` - MinimumGrade int32 `protobuf:"varint,7,opt,name=minimum_grade,json=minimumGrade,proto3" json:"minimum_grade,omitempty"` - JobGradeLabel *string `protobuf:"bytes,8,opt,name=job_grade_label,json=jobGradeLabel,proto3,oneof" json:"job_grade_label,omitempty"` - Access AccessLevel `protobuf:"varint,9,opt,name=access,proto3,enum=resources.qualifications.AccessLevel" json:"access,omitempty"` + sizeCache protoimpl.SizeCache } func (x *QualificationJobAccess) Reset() { @@ -234,9 +232,9 @@ func (x *QualificationJobAccess) GetAccess() AccessLevel { // Dummy - DO NOT USE! type QualificationUserAccess struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *QualificationUserAccess) Reset() { diff --git a/gen/go/proto/resources/qualifications/exam.pb.go b/gen/go/proto/resources/qualifications/exam.pb.go index b2642bdad..940db5a1c 100644 --- a/gen/go/proto/resources/qualifications/exam.pb.go +++ b/gen/go/proto/resources/qualifications/exam.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.35.2 +// protoc-gen-go v1.36.0 // protoc v3.20.3 // source: resources/qualifications/exam.proto @@ -24,11 +24,10 @@ const ( ) type ExamQuestions struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Questions []*ExamQuestion `protobuf:"bytes,1,rep,name=questions,proto3" json:"questions,omitempty"` unknownFields protoimpl.UnknownFields - - Questions []*ExamQuestion `protobuf:"bytes,1,rep,name=questions,proto3" json:"questions,omitempty"` + sizeCache protoimpl.SizeCache } func (x *ExamQuestions) Reset() { @@ -69,21 +68,20 @@ func (x *ExamQuestions) GetQuestions() []*ExamQuestion { } type ExamQuestion struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` - QualificationId uint64 `protobuf:"varint,2,opt,name=qualification_id,json=qualificationId,proto3" json:"qualification_id,omitempty"` - CreatedAt *timestamp.Timestamp `protobuf:"bytes,3,opt,name=created_at,json=createdAt,proto3,oneof" json:"created_at,omitempty"` - UpdatedAt *timestamp.Timestamp `protobuf:"bytes,4,opt,name=updated_at,json=updatedAt,proto3,oneof" json:"updated_at,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` + QualificationId uint64 `protobuf:"varint,2,opt,name=qualification_id,json=qualificationId,proto3" json:"qualification_id,omitempty"` + CreatedAt *timestamp.Timestamp `protobuf:"bytes,3,opt,name=created_at,json=createdAt,proto3,oneof" json:"created_at,omitempty"` + UpdatedAt *timestamp.Timestamp `protobuf:"bytes,4,opt,name=updated_at,json=updatedAt,proto3,oneof" json:"updated_at,omitempty"` // @sanitize: method=StripTags Title string `protobuf:"bytes,5,opt,name=title,proto3" json:"title,omitempty"` // @sanitize: method=StripTags - Description *string `protobuf:"bytes,6,opt,name=description,proto3,oneof" json:"description,omitempty"` - Data *ExamQuestionData `protobuf:"bytes,7,opt,name=data,proto3" json:"data,omitempty"` - Answer *ExamQuestionAnswerData `protobuf:"bytes,8,opt,name=answer,proto3,oneof" json:"answer,omitempty"` - Points *int32 `protobuf:"varint,9,opt,name=points,proto3,oneof" json:"points,omitempty"` + Description *string `protobuf:"bytes,6,opt,name=description,proto3,oneof" json:"description,omitempty"` + Data *ExamQuestionData `protobuf:"bytes,7,opt,name=data,proto3" json:"data,omitempty"` + Answer *ExamQuestionAnswerData `protobuf:"bytes,8,opt,name=answer,proto3,oneof" json:"answer,omitempty"` + Points *int32 `protobuf:"varint,9,opt,name=points,proto3,oneof" json:"points,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *ExamQuestion) Reset() { @@ -180,11 +178,8 @@ func (x *ExamQuestion) GetPoints() int32 { } type ExamQuestionData struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Types that are assignable to Data: + state protoimpl.MessageState `protogen:"open.v1"` + // Types that are valid to be assigned to Data: // // *ExamQuestionData_Separator // *ExamQuestionData_Image @@ -192,7 +187,9 @@ type ExamQuestionData struct { // *ExamQuestionData_FreeText // *ExamQuestionData_SingleChoice // *ExamQuestionData_MultipleChoice - Data isExamQuestionData_Data `protobuf_oneof:"data"` + Data isExamQuestionData_Data `protobuf_oneof:"data"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *ExamQuestionData) Reset() { @@ -225,51 +222,63 @@ func (*ExamQuestionData) Descriptor() ([]byte, []int) { return file_resources_qualifications_exam_proto_rawDescGZIP(), []int{2} } -func (m *ExamQuestionData) GetData() isExamQuestionData_Data { - if m != nil { - return m.Data +func (x *ExamQuestionData) GetData() isExamQuestionData_Data { + if x != nil { + return x.Data } return nil } func (x *ExamQuestionData) GetSeparator() *ExamQuestionSeparator { - if x, ok := x.GetData().(*ExamQuestionData_Separator); ok { - return x.Separator + if x != nil { + if x, ok := x.Data.(*ExamQuestionData_Separator); ok { + return x.Separator + } } return nil } func (x *ExamQuestionData) GetImage() *ExamQuestionImage { - if x, ok := x.GetData().(*ExamQuestionData_Image); ok { - return x.Image + if x != nil { + if x, ok := x.Data.(*ExamQuestionData_Image); ok { + return x.Image + } } return nil } func (x *ExamQuestionData) GetYesno() *ExamQuestionYesNo { - if x, ok := x.GetData().(*ExamQuestionData_Yesno); ok { - return x.Yesno + if x != nil { + if x, ok := x.Data.(*ExamQuestionData_Yesno); ok { + return x.Yesno + } } return nil } func (x *ExamQuestionData) GetFreeText() *ExamQuestionText { - if x, ok := x.GetData().(*ExamQuestionData_FreeText); ok { - return x.FreeText + if x != nil { + if x, ok := x.Data.(*ExamQuestionData_FreeText); ok { + return x.FreeText + } } return nil } func (x *ExamQuestionData) GetSingleChoice() *ExamQuestionSingleChoice { - if x, ok := x.GetData().(*ExamQuestionData_SingleChoice); ok { - return x.SingleChoice + if x != nil { + if x, ok := x.Data.(*ExamQuestionData_SingleChoice); ok { + return x.SingleChoice + } } return nil } func (x *ExamQuestionData) GetMultipleChoice() *ExamQuestionMultipleChoice { - if x, ok := x.GetData().(*ExamQuestionData_MultipleChoice); ok { - return x.MultipleChoice + if x != nil { + if x, ok := x.Data.(*ExamQuestionData_MultipleChoice); ok { + return x.MultipleChoice + } } return nil } @@ -315,9 +324,9 @@ func (*ExamQuestionData_SingleChoice) isExamQuestionData_Data() {} func (*ExamQuestionData_MultipleChoice) isExamQuestionData_Data() {} type ExamQuestionSeparator struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *ExamQuestionSeparator) Reset() { @@ -351,12 +360,11 @@ func (*ExamQuestionSeparator) Descriptor() ([]byte, []int) { } type ExamQuestionImage struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Image *filestore.File `protobuf:"bytes,1,opt,name=image,proto3" json:"image,omitempty"` + Alt *string `protobuf:"bytes,2,opt,name=alt,proto3,oneof" json:"alt,omitempty"` unknownFields protoimpl.UnknownFields - - Image *filestore.File `protobuf:"bytes,1,opt,name=image,proto3" json:"image,omitempty"` - Alt *string `protobuf:"bytes,2,opt,name=alt,proto3,oneof" json:"alt,omitempty"` + sizeCache protoimpl.SizeCache } func (x *ExamQuestionImage) Reset() { @@ -404,9 +412,9 @@ func (x *ExamQuestionImage) GetAlt() string { } type ExamQuestionYesNo struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *ExamQuestionYesNo) Reset() { @@ -440,12 +448,11 @@ func (*ExamQuestionYesNo) Descriptor() ([]byte, []int) { } type ExamQuestionText struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + MinLength int32 `protobuf:"varint,1,opt,name=min_length,json=minLength,proto3" json:"min_length,omitempty"` + MaxLength int32 `protobuf:"varint,2,opt,name=max_length,json=maxLength,proto3" json:"max_length,omitempty"` unknownFields protoimpl.UnknownFields - - MinLength int32 `protobuf:"varint,1,opt,name=min_length,json=minLength,proto3" json:"min_length,omitempty"` - MaxLength int32 `protobuf:"varint,2,opt,name=max_length,json=maxLength,proto3" json:"max_length,omitempty"` + sizeCache protoimpl.SizeCache } func (x *ExamQuestionText) Reset() { @@ -493,12 +500,11 @@ func (x *ExamQuestionText) GetMaxLength() int32 { } type ExamQuestionSingleChoice struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - + state protoimpl.MessageState `protogen:"open.v1"` // @sanitize: method=StripTags - Choices []string `protobuf:"bytes,1,rep,name=choices,proto3" json:"choices,omitempty"` + Choices []string `protobuf:"bytes,1,rep,name=choices,proto3" json:"choices,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *ExamQuestionSingleChoice) Reset() { @@ -539,13 +545,12 @@ func (x *ExamQuestionSingleChoice) GetChoices() []string { } type ExamQuestionMultipleChoice struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - + state protoimpl.MessageState `protogen:"open.v1"` // @sanitize: method=StripTags - Choices []string `protobuf:"bytes,1,rep,name=choices,proto3" json:"choices,omitempty"` - Limit *int32 `protobuf:"varint,2,opt,name=limit,proto3,oneof" json:"limit,omitempty"` + Choices []string `protobuf:"bytes,1,rep,name=choices,proto3" json:"choices,omitempty"` + Limit *int32 `protobuf:"varint,2,opt,name=limit,proto3,oneof" json:"limit,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *ExamQuestionMultipleChoice) Reset() { @@ -593,11 +598,10 @@ func (x *ExamQuestionMultipleChoice) GetLimit() int32 { } type ExamQuestionAnswerData struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + AnswerKey string `protobuf:"bytes,1,opt,name=answer_key,json=answerKey,proto3" json:"answer_key,omitempty"` unknownFields protoimpl.UnknownFields - - AnswerKey string `protobuf:"bytes,1,opt,name=answer_key,json=answerKey,proto3" json:"answer_key,omitempty"` + sizeCache protoimpl.SizeCache } func (x *ExamQuestionAnswerData) Reset() { @@ -638,16 +642,15 @@ func (x *ExamQuestionAnswerData) GetAnswerKey() string { } type ExamUser struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - QualificationId uint64 `protobuf:"varint,1,opt,name=qualification_id,json=qualificationId,proto3" json:"qualification_id,omitempty"` - UserId int32 `protobuf:"varint,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` - CreatedAt *timestamp.Timestamp `protobuf:"bytes,3,opt,name=created_at,json=createdAt,proto3,oneof" json:"created_at,omitempty"` - StartedAt *timestamp.Timestamp `protobuf:"bytes,4,opt,name=started_at,json=startedAt,proto3,oneof" json:"started_at,omitempty"` - EndsAt *timestamp.Timestamp `protobuf:"bytes,5,opt,name=ends_at,json=endsAt,proto3,oneof" json:"ends_at,omitempty"` - EndedAt *timestamp.Timestamp `protobuf:"bytes,6,opt,name=ended_at,json=endedAt,proto3,oneof" json:"ended_at,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + QualificationId uint64 `protobuf:"varint,1,opt,name=qualification_id,json=qualificationId,proto3" json:"qualification_id,omitempty"` + UserId int32 `protobuf:"varint,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` + CreatedAt *timestamp.Timestamp `protobuf:"bytes,3,opt,name=created_at,json=createdAt,proto3,oneof" json:"created_at,omitempty"` + StartedAt *timestamp.Timestamp `protobuf:"bytes,4,opt,name=started_at,json=startedAt,proto3,oneof" json:"started_at,omitempty"` + EndsAt *timestamp.Timestamp `protobuf:"bytes,5,opt,name=ends_at,json=endsAt,proto3,oneof" json:"ends_at,omitempty"` + EndedAt *timestamp.Timestamp `protobuf:"bytes,6,opt,name=ended_at,json=endedAt,proto3,oneof" json:"ended_at,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *ExamUser) Reset() { @@ -723,13 +726,12 @@ func (x *ExamUser) GetEndedAt() *timestamp.Timestamp { } type ExamResponses struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - QualificationId uint64 `protobuf:"varint,1,opt,name=qualification_id,json=qualificationId,proto3" json:"qualification_id,omitempty"` - UserId int32 `protobuf:"varint,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` - Responses []*ExamResponse `protobuf:"bytes,3,rep,name=responses,proto3" json:"responses,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + QualificationId uint64 `protobuf:"varint,1,opt,name=qualification_id,json=qualificationId,proto3" json:"qualification_id,omitempty"` + UserId int32 `protobuf:"varint,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` + Responses []*ExamResponse `protobuf:"bytes,3,rep,name=responses,proto3" json:"responses,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *ExamResponses) Reset() { @@ -784,14 +786,13 @@ func (x *ExamResponses) GetResponses() []*ExamResponse { } type ExamResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + QuestionId uint64 `protobuf:"varint,1,opt,name=question_id,json=questionId,proto3" json:"question_id,omitempty"` + UserId int32 `protobuf:"varint,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` + Question *ExamQuestion `protobuf:"bytes,3,opt,name=question,proto3" json:"question,omitempty"` + Response *ExamResponseData `protobuf:"bytes,4,opt,name=response,proto3" json:"response,omitempty"` unknownFields protoimpl.UnknownFields - - QuestionId uint64 `protobuf:"varint,1,opt,name=question_id,json=questionId,proto3" json:"question_id,omitempty"` - UserId int32 `protobuf:"varint,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` - Question *ExamQuestion `protobuf:"bytes,3,opt,name=question,proto3" json:"question,omitempty"` - Response *ExamResponseData `protobuf:"bytes,4,opt,name=response,proto3" json:"response,omitempty"` + sizeCache protoimpl.SizeCache } func (x *ExamResponse) Reset() { @@ -853,18 +854,17 @@ func (x *ExamResponse) GetResponse() *ExamResponseData { } type ExamResponseData struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Types that are assignable to Response: + state protoimpl.MessageState `protogen:"open.v1"` + // Types that are valid to be assigned to Response: // // *ExamResponseData_Separator // *ExamResponseData_Yesno // *ExamResponseData_FreeText // *ExamResponseData_SingleChoice // *ExamResponseData_MultipleChoice - Response isExamResponseData_Response `protobuf_oneof:"response"` + Response isExamResponseData_Response `protobuf_oneof:"response"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *ExamResponseData) Reset() { @@ -897,44 +897,54 @@ func (*ExamResponseData) Descriptor() ([]byte, []int) { return file_resources_qualifications_exam_proto_rawDescGZIP(), []int{13} } -func (m *ExamResponseData) GetResponse() isExamResponseData_Response { - if m != nil { - return m.Response +func (x *ExamResponseData) GetResponse() isExamResponseData_Response { + if x != nil { + return x.Response } return nil } func (x *ExamResponseData) GetSeparator() *ExamResponseSeparator { - if x, ok := x.GetResponse().(*ExamResponseData_Separator); ok { - return x.Separator + if x != nil { + if x, ok := x.Response.(*ExamResponseData_Separator); ok { + return x.Separator + } } return nil } func (x *ExamResponseData) GetYesno() *ExamResponseYesNo { - if x, ok := x.GetResponse().(*ExamResponseData_Yesno); ok { - return x.Yesno + if x != nil { + if x, ok := x.Response.(*ExamResponseData_Yesno); ok { + return x.Yesno + } } return nil } func (x *ExamResponseData) GetFreeText() *ExamResponseText { - if x, ok := x.GetResponse().(*ExamResponseData_FreeText); ok { - return x.FreeText + if x != nil { + if x, ok := x.Response.(*ExamResponseData_FreeText); ok { + return x.FreeText + } } return nil } func (x *ExamResponseData) GetSingleChoice() *ExamResponseSingleChoice { - if x, ok := x.GetResponse().(*ExamResponseData_SingleChoice); ok { - return x.SingleChoice + if x != nil { + if x, ok := x.Response.(*ExamResponseData_SingleChoice); ok { + return x.SingleChoice + } } return nil } func (x *ExamResponseData) GetMultipleChoice() *ExamResponseMultipleChoice { - if x, ok := x.GetResponse().(*ExamResponseData_MultipleChoice); ok { - return x.MultipleChoice + if x != nil { + if x, ok := x.Response.(*ExamResponseData_MultipleChoice); ok { + return x.MultipleChoice + } } return nil } @@ -974,9 +984,9 @@ func (*ExamResponseData_SingleChoice) isExamResponseData_Response() {} func (*ExamResponseData_MultipleChoice) isExamResponseData_Response() {} type ExamResponseSeparator struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *ExamResponseSeparator) Reset() { @@ -1010,11 +1020,10 @@ func (*ExamResponseSeparator) Descriptor() ([]byte, []int) { } type ExamResponseYesNo struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Value bool `protobuf:"varint,1,opt,name=value,proto3" json:"value,omitempty"` unknownFields protoimpl.UnknownFields - - Value bool `protobuf:"varint,1,opt,name=value,proto3" json:"value,omitempty"` + sizeCache protoimpl.SizeCache } func (x *ExamResponseYesNo) Reset() { @@ -1055,12 +1064,11 @@ func (x *ExamResponseYesNo) GetValue() bool { } type ExamResponseText struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - + state protoimpl.MessageState `protogen:"open.v1"` // @sanitize: method=StripTags - Text string `protobuf:"bytes,1,opt,name=text,proto3" json:"text,omitempty"` // 0.5 Megabyte + Text string `protobuf:"bytes,1,opt,name=text,proto3" json:"text,omitempty"` // 0.5 Megabyte + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *ExamResponseText) Reset() { @@ -1101,12 +1109,11 @@ func (x *ExamResponseText) GetText() string { } type ExamResponseSingleChoice struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - + state protoimpl.MessageState `protogen:"open.v1"` // @sanitize: method=StripTags - Choice string `protobuf:"bytes,1,opt,name=choice,proto3" json:"choice,omitempty"` + Choice string `protobuf:"bytes,1,opt,name=choice,proto3" json:"choice,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *ExamResponseSingleChoice) Reset() { @@ -1147,12 +1154,11 @@ func (x *ExamResponseSingleChoice) GetChoice() string { } type ExamResponseMultipleChoice struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - + state protoimpl.MessageState `protogen:"open.v1"` // @sanitize: method=StripTags - Choices []string `protobuf:"bytes,1,rep,name=choices,proto3" json:"choices,omitempty"` + Choices []string `protobuf:"bytes,1,rep,name=choices,proto3" json:"choices,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *ExamResponseMultipleChoice) Reset() { diff --git a/gen/go/proto/resources/qualifications/qualifications.pb.go b/gen/go/proto/resources/qualifications/qualifications.pb.go index f97340910..37a6257e7 100644 --- a/gen/go/proto/resources/qualifications/qualifications.pb.go +++ b/gen/go/proto/resources/qualifications/qualifications.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.35.2 +// protoc-gen-go v1.36.0 // protoc v3.20.3 // source: resources/qualifications/qualifications.proto @@ -191,17 +191,14 @@ func (ResultStatus) EnumDescriptor() ([]byte, []int) { } type Qualification struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty" sql:"primary_key" alias:"id"` // @gotags: sql:"primary_key" alias:"id" - CreatedAt *timestamp.Timestamp `protobuf:"bytes,2,opt,name=created_at,json=createdAt,proto3,oneof" json:"created_at,omitempty"` - UpdatedAt *timestamp.Timestamp `protobuf:"bytes,3,opt,name=updated_at,json=updatedAt,proto3,oneof" json:"updated_at,omitempty"` - DeletedAt *timestamp.Timestamp `protobuf:"bytes,4,opt,name=deleted_at,json=deletedAt,proto3,oneof" json:"deleted_at,omitempty"` - Job string `protobuf:"bytes,5,opt,name=job,proto3" json:"job,omitempty"` - Weight uint32 `protobuf:"varint,6,opt,name=weight,proto3" json:"weight,omitempty"` - Closed bool `protobuf:"varint,7,opt,name=closed,proto3" json:"closed,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty" sql:"primary_key" alias:"id"` // @gotags: sql:"primary_key" alias:"id" + CreatedAt *timestamp.Timestamp `protobuf:"bytes,2,opt,name=created_at,json=createdAt,proto3,oneof" json:"created_at,omitempty"` + UpdatedAt *timestamp.Timestamp `protobuf:"bytes,3,opt,name=updated_at,json=updatedAt,proto3,oneof" json:"updated_at,omitempty"` + DeletedAt *timestamp.Timestamp `protobuf:"bytes,4,opt,name=deleted_at,json=deletedAt,proto3,oneof" json:"deleted_at,omitempty"` + Job string `protobuf:"bytes,5,opt,name=job,proto3" json:"job,omitempty"` + Weight uint32 `protobuf:"varint,6,opt,name=weight,proto3" json:"weight,omitempty"` + Closed bool `protobuf:"varint,7,opt,name=closed,proto3" json:"closed,omitempty"` // @sanitize: method=StripTags Abbreviation string `protobuf:"bytes,8,opt,name=abbreviation,proto3" json:"abbreviation,omitempty"` // @sanitize @@ -224,6 +221,8 @@ type Qualification struct { LabelSyncEnabled bool `protobuf:"varint,24,opt,name=label_sync_enabled,json=labelSyncEnabled,proto3" json:"label_sync_enabled,omitempty"` // @sanitize: method=StripTags LabelSyncFormat *string `protobuf:"bytes,25,opt,name=label_sync_format,json=labelSyncFormat,proto3,oneof" json:"label_sync_format,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *Qualification) Reset() { @@ -432,30 +431,29 @@ func (x *Qualification) GetLabelSyncFormat() string { } type QualificationShort struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty" sql:"primary_key" alias:"id"` // @gotags: sql:"primary_key" alias:"id" - CreatedAt *timestamp.Timestamp `protobuf:"bytes,2,opt,name=created_at,json=createdAt,proto3,oneof" json:"created_at,omitempty"` - UpdatedAt *timestamp.Timestamp `protobuf:"bytes,3,opt,name=updated_at,json=updatedAt,proto3,oneof" json:"updated_at,omitempty"` - DeletedAt *timestamp.Timestamp `protobuf:"bytes,4,opt,name=deleted_at,json=deletedAt,proto3,oneof" json:"deleted_at,omitempty"` - Job string `protobuf:"bytes,5,opt,name=job,proto3" json:"job,omitempty"` - Weight uint32 `protobuf:"varint,6,opt,name=weight,proto3" json:"weight,omitempty"` - Closed bool `protobuf:"varint,7,opt,name=closed,proto3" json:"closed,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty" sql:"primary_key" alias:"id"` // @gotags: sql:"primary_key" alias:"id" + CreatedAt *timestamp.Timestamp `protobuf:"bytes,2,opt,name=created_at,json=createdAt,proto3,oneof" json:"created_at,omitempty"` + UpdatedAt *timestamp.Timestamp `protobuf:"bytes,3,opt,name=updated_at,json=updatedAt,proto3,oneof" json:"updated_at,omitempty"` + DeletedAt *timestamp.Timestamp `protobuf:"bytes,4,opt,name=deleted_at,json=deletedAt,proto3,oneof" json:"deleted_at,omitempty"` + Job string `protobuf:"bytes,5,opt,name=job,proto3" json:"job,omitempty"` + Weight uint32 `protobuf:"varint,6,opt,name=weight,proto3" json:"weight,omitempty"` + Closed bool `protobuf:"varint,7,opt,name=closed,proto3" json:"closed,omitempty"` // @sanitize: method=StripTags Abbreviation string `protobuf:"bytes,8,opt,name=abbreviation,proto3" json:"abbreviation,omitempty"` // @sanitize Title string `protobuf:"bytes,9,opt,name=title,proto3" json:"title,omitempty"` // @sanitize: method=StripTags - Description *string `protobuf:"bytes,10,opt,name=description,proto3,oneof" json:"description,omitempty"` - CreatorId *int32 `protobuf:"varint,12,opt,name=creator_id,json=creatorId,proto3,oneof" json:"creator_id,omitempty"` - Creator *users.UserShort `protobuf:"bytes,13,opt,name=creator,proto3,oneof" json:"creator,omitempty" alias:"creator"` // @gotags: alias:"creator" - CreatorJob string `protobuf:"bytes,14,opt,name=creator_job,json=creatorJob,proto3" json:"creator_job,omitempty"` - Requirements []*QualificationRequirement `protobuf:"bytes,16,rep,name=requirements,proto3" json:"requirements,omitempty"` - ExamMode QualificationExamMode `protobuf:"varint,18,opt,name=exam_mode,json=examMode,proto3,enum=resources.qualifications.QualificationExamMode" json:"exam_mode,omitempty"` - ExamSettings *QualificationExamSettings `protobuf:"bytes,19,opt,name=exam_settings,json=examSettings,proto3,oneof" json:"exam_settings,omitempty"` - Result *QualificationResult `protobuf:"bytes,21,opt,name=result,proto3,oneof" json:"result,omitempty"` + Description *string `protobuf:"bytes,10,opt,name=description,proto3,oneof" json:"description,omitempty"` + CreatorId *int32 `protobuf:"varint,12,opt,name=creator_id,json=creatorId,proto3,oneof" json:"creator_id,omitempty"` + Creator *users.UserShort `protobuf:"bytes,13,opt,name=creator,proto3,oneof" json:"creator,omitempty" alias:"creator"` // @gotags: alias:"creator" + CreatorJob string `protobuf:"bytes,14,opt,name=creator_job,json=creatorJob,proto3" json:"creator_job,omitempty"` + Requirements []*QualificationRequirement `protobuf:"bytes,16,rep,name=requirements,proto3" json:"requirements,omitempty"` + ExamMode QualificationExamMode `protobuf:"varint,18,opt,name=exam_mode,json=examMode,proto3,enum=resources.qualifications.QualificationExamMode" json:"exam_mode,omitempty"` + ExamSettings *QualificationExamSettings `protobuf:"bytes,19,opt,name=exam_settings,json=examSettings,proto3,oneof" json:"exam_settings,omitempty"` + Result *QualificationResult `protobuf:"bytes,21,opt,name=result,proto3,oneof" json:"result,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *QualificationShort) Reset() { @@ -608,15 +606,14 @@ func (x *QualificationShort) GetResult() *QualificationResult { } type QualificationRequirement struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty" sql:"primary_key" alias:"id"` // @gotags: sql:"primary_key" alias:"id" - CreatedAt *timestamp.Timestamp `protobuf:"bytes,2,opt,name=created_at,json=createdAt,proto3,oneof" json:"created_at,omitempty"` - QualificationId uint64 `protobuf:"varint,3,opt,name=qualification_id,json=qualificationId,proto3" json:"qualification_id,omitempty"` - TargetQualificationId uint64 `protobuf:"varint,4,opt,name=target_qualification_id,json=targetQualificationId,proto3" json:"target_qualification_id,omitempty"` - TargetQualification *QualificationShort `protobuf:"bytes,5,opt,name=target_qualification,json=targetQualification,proto3,oneof" json:"target_qualification,omitempty" alias:"targetqualification.*"` // @gotags: alias:"targetqualification.*" + state protoimpl.MessageState `protogen:"open.v1"` + Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty" sql:"primary_key" alias:"id"` // @gotags: sql:"primary_key" alias:"id" + CreatedAt *timestamp.Timestamp `protobuf:"bytes,2,opt,name=created_at,json=createdAt,proto3,oneof" json:"created_at,omitempty"` + QualificationId uint64 `protobuf:"varint,3,opt,name=qualification_id,json=qualificationId,proto3" json:"qualification_id,omitempty"` + TargetQualificationId uint64 `protobuf:"varint,4,opt,name=target_qualification_id,json=targetQualificationId,proto3" json:"target_qualification_id,omitempty"` + TargetQualification *QualificationShort `protobuf:"bytes,5,opt,name=target_qualification,json=targetQualification,proto3,oneof" json:"target_qualification,omitempty" alias:"targetqualification.*"` // @gotags: alias:"targetqualification.*" + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *QualificationRequirement) Reset() { @@ -685,12 +682,11 @@ func (x *QualificationRequirement) GetTargetQualification() *QualificationShort } type QualificationDiscordSettings struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + RoleName *string `protobuf:"bytes,1,opt,name=role_name,json=roleName,proto3,oneof" json:"role_name,omitempty"` + RoleFormat *string `protobuf:"bytes,2,opt,name=role_format,json=roleFormat,proto3,oneof" json:"role_format,omitempty"` unknownFields protoimpl.UnknownFields - - RoleName *string `protobuf:"bytes,1,opt,name=role_name,json=roleName,proto3,oneof" json:"role_name,omitempty"` - RoleFormat *string `protobuf:"bytes,2,opt,name=role_format,json=roleFormat,proto3,oneof" json:"role_format,omitempty"` + sizeCache protoimpl.SizeCache } func (x *QualificationDiscordSettings) Reset() { @@ -738,11 +734,10 @@ func (x *QualificationDiscordSettings) GetRoleFormat() string { } type QualificationExamSettings struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Time *durationpb.Duration `protobuf:"bytes,1,opt,name=time,proto3" json:"time,omitempty"` unknownFields protoimpl.UnknownFields - - Time *durationpb.Duration `protobuf:"bytes,1,opt,name=time,proto3" json:"time,omitempty"` + sizeCache protoimpl.SizeCache } func (x *QualificationExamSettings) Reset() { @@ -783,16 +778,13 @@ func (x *QualificationExamSettings) GetTime() *durationpb.Duration { } type QualificationRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - CreatedAt *timestamp.Timestamp `protobuf:"bytes,1,opt,name=created_at,json=createdAt,proto3,oneof" json:"created_at,omitempty"` - DeletedAt *timestamp.Timestamp `protobuf:"bytes,2,opt,name=deleted_at,json=deletedAt,proto3,oneof" json:"deleted_at,omitempty"` - QualificationId uint64 `protobuf:"varint,3,opt,name=qualification_id,json=qualificationId,proto3" json:"qualification_id,omitempty" sql:"primary_key" alias:"qualification_id"` // @gotags: sql:"primary_key" alias:"qualification_id" - Qualification *QualificationShort `protobuf:"bytes,4,opt,name=qualification,proto3,oneof" json:"qualification,omitempty"` - UserId int32 `protobuf:"varint,5,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty" sql:"primary_key"` // @gotags: sql:"primary_key" - User *users.UserShort `protobuf:"bytes,6,opt,name=user,proto3" json:"user,omitempty" alias:"user"` // @gotags: alias:"user" + state protoimpl.MessageState `protogen:"open.v1"` + CreatedAt *timestamp.Timestamp `protobuf:"bytes,1,opt,name=created_at,json=createdAt,proto3,oneof" json:"created_at,omitempty"` + DeletedAt *timestamp.Timestamp `protobuf:"bytes,2,opt,name=deleted_at,json=deletedAt,proto3,oneof" json:"deleted_at,omitempty"` + QualificationId uint64 `protobuf:"varint,3,opt,name=qualification_id,json=qualificationId,proto3" json:"qualification_id,omitempty" sql:"primary_key" alias:"qualification_id"` // @gotags: sql:"primary_key" alias:"qualification_id" + Qualification *QualificationShort `protobuf:"bytes,4,opt,name=qualification,proto3,oneof" json:"qualification,omitempty"` + UserId int32 `protobuf:"varint,5,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty" sql:"primary_key"` // @gotags: sql:"primary_key" + User *users.UserShort `protobuf:"bytes,6,opt,name=user,proto3" json:"user,omitempty" alias:"user"` // @gotags: alias:"user" // @sanitize: method=StripTags UserComment *string `protobuf:"bytes,7,opt,name=user_comment,json=userComment,proto3,oneof" json:"user_comment,omitempty"` Status *RequestStatus `protobuf:"varint,8,opt,name=status,proto3,enum=resources.qualifications.RequestStatus,oneof" json:"status,omitempty"` @@ -802,6 +794,8 @@ type QualificationRequest struct { ApproverId *int32 `protobuf:"varint,11,opt,name=approver_id,json=approverId,proto3,oneof" json:"approver_id,omitempty"` Approver *users.UserShort `protobuf:"bytes,12,opt,name=approver,proto3,oneof" json:"approver,omitempty" alias:"approver"` // @gotags: alias:"approver" ApproverJob *string `protobuf:"bytes,13,opt,name=approver_job,json=approverJob,proto3,oneof" json:"approver_job,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *QualificationRequest) Reset() { @@ -926,24 +920,23 @@ func (x *QualificationRequest) GetApproverJob() string { } type QualificationResult struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty" sql:"primary_key" alias:"id"` // @gotags: sql:"primary_key" alias:"id" - CreatedAt *timestamp.Timestamp `protobuf:"bytes,2,opt,name=created_at,json=createdAt,proto3,oneof" json:"created_at,omitempty"` - DeletedAt *timestamp.Timestamp `protobuf:"bytes,3,opt,name=deleted_at,json=deletedAt,proto3,oneof" json:"deleted_at,omitempty"` - QualificationId uint64 `protobuf:"varint,4,opt,name=qualification_id,json=qualificationId,proto3" json:"qualification_id,omitempty"` - Qualification *QualificationShort `protobuf:"bytes,5,opt,name=qualification,proto3,oneof" json:"qualification,omitempty"` - UserId int32 `protobuf:"varint,6,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` - User *users.UserShort `protobuf:"bytes,7,opt,name=user,proto3" json:"user,omitempty" alias:"user"` // @gotags: alias:"user" - Status ResultStatus `protobuf:"varint,8,opt,name=status,proto3,enum=resources.qualifications.ResultStatus" json:"status,omitempty"` - Score *uint32 `protobuf:"varint,9,opt,name=score,proto3,oneof" json:"score,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty" sql:"primary_key" alias:"id"` // @gotags: sql:"primary_key" alias:"id" + CreatedAt *timestamp.Timestamp `protobuf:"bytes,2,opt,name=created_at,json=createdAt,proto3,oneof" json:"created_at,omitempty"` + DeletedAt *timestamp.Timestamp `protobuf:"bytes,3,opt,name=deleted_at,json=deletedAt,proto3,oneof" json:"deleted_at,omitempty"` + QualificationId uint64 `protobuf:"varint,4,opt,name=qualification_id,json=qualificationId,proto3" json:"qualification_id,omitempty"` + Qualification *QualificationShort `protobuf:"bytes,5,opt,name=qualification,proto3,oneof" json:"qualification,omitempty"` + UserId int32 `protobuf:"varint,6,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` + User *users.UserShort `protobuf:"bytes,7,opt,name=user,proto3" json:"user,omitempty" alias:"user"` // @gotags: alias:"user" + Status ResultStatus `protobuf:"varint,8,opt,name=status,proto3,enum=resources.qualifications.ResultStatus" json:"status,omitempty"` + Score *uint32 `protobuf:"varint,9,opt,name=score,proto3,oneof" json:"score,omitempty"` // @sanitize: method=StripTags - Summary string `protobuf:"bytes,10,opt,name=summary,proto3" json:"summary,omitempty"` - CreatorId int32 `protobuf:"varint,11,opt,name=creator_id,json=creatorId,proto3" json:"creator_id,omitempty"` - Creator *users.UserShort `protobuf:"bytes,12,opt,name=creator,proto3" json:"creator,omitempty" alias:"creator"` // @gotags: alias:"creator" - CreatorJob string `protobuf:"bytes,13,opt,name=creator_job,json=creatorJob,proto3" json:"creator_job,omitempty"` + Summary string `protobuf:"bytes,10,opt,name=summary,proto3" json:"summary,omitempty"` + CreatorId int32 `protobuf:"varint,11,opt,name=creator_id,json=creatorId,proto3" json:"creator_id,omitempty"` + Creator *users.UserShort `protobuf:"bytes,12,opt,name=creator,proto3" json:"creator,omitempty" alias:"creator"` // @gotags: alias:"creator" + CreatorJob string `protobuf:"bytes,13,opt,name=creator_job,json=creatorJob,proto3" json:"creator_job,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *QualificationResult) Reset() { diff --git a/gen/go/proto/resources/rector/audit.pb.go b/gen/go/proto/resources/rector/audit.pb.go index d4b13ff7e..933b854a0 100644 --- a/gen/go/proto/resources/rector/audit.pb.go +++ b/gen/go/proto/resources/rector/audit.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.35.2 +// protoc-gen-go v1.36.0 // protoc v3.20.3 // source: resources/rector/audit.proto @@ -82,22 +82,21 @@ func (EventType) EnumDescriptor() ([]byte, []int) { } type AuditEntry struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty" alias:"id"` // @gotags: alias:"id" + CreatedAt *timestamp.Timestamp `protobuf:"bytes,2,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` + UserId uint64 `protobuf:"varint,3,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty" alias:"user_id"` // @gotags: alias:"user_id" + User *users.UserShort `protobuf:"bytes,4,opt,name=user,proto3,oneof" json:"user,omitempty"` + UserJob string `protobuf:"bytes,5,opt,name=user_job,json=userJob,proto3" json:"user_job,omitempty" alias:"user_job"` // @gotags: alias:"user_job" + TargetUserId *int32 `protobuf:"varint,6,opt,name=target_user_id,json=targetUserId,proto3,oneof" json:"target_user_id,omitempty" alias:"target_user_id"` // @gotags: alias:"target_user_id" + TargetUser *users.UserShort `protobuf:"bytes,7,opt,name=target_user,json=targetUser,proto3,oneof" json:"target_user,omitempty"` + TargetUserJob string `protobuf:"bytes,8,opt,name=target_user_job,json=targetUserJob,proto3" json:"target_user_job,omitempty" alias:"target_user_job"` // @gotags: alias:"target_user_job" + Service string `protobuf:"bytes,9,opt,name=service,proto3" json:"service,omitempty" alias:"service"` // @gotags: alias:"service" + Method string `protobuf:"bytes,10,opt,name=method,proto3" json:"method,omitempty" alias:"method"` // @gotags: alias:"method" + State EventType `protobuf:"varint,11,opt,name=state,proto3,enum=resources.rector.EventType" json:"state,omitempty" alias:"state"` // @gotags: alias:"state" + Data *string `protobuf:"bytes,12,opt,name=data,proto3,oneof" json:"data,omitempty" alias:"data"` // @gotags: alias:"data" unknownFields protoimpl.UnknownFields - - Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty" alias:"id"` // @gotags: alias:"id" - CreatedAt *timestamp.Timestamp `protobuf:"bytes,2,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` - UserId uint64 `protobuf:"varint,3,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty" alias:"user_id"` // @gotags: alias:"user_id" - User *users.UserShort `protobuf:"bytes,4,opt,name=user,proto3,oneof" json:"user,omitempty"` - UserJob string `protobuf:"bytes,5,opt,name=user_job,json=userJob,proto3" json:"user_job,omitempty" alias:"user_job"` // @gotags: alias:"user_job" - TargetUserId *int32 `protobuf:"varint,6,opt,name=target_user_id,json=targetUserId,proto3,oneof" json:"target_user_id,omitempty" alias:"target_user_id"` // @gotags: alias:"target_user_id" - TargetUser *users.UserShort `protobuf:"bytes,7,opt,name=target_user,json=targetUser,proto3,oneof" json:"target_user,omitempty"` - TargetUserJob string `protobuf:"bytes,8,opt,name=target_user_job,json=targetUserJob,proto3" json:"target_user_job,omitempty" alias:"target_user_job"` // @gotags: alias:"target_user_job" - Service string `protobuf:"bytes,9,opt,name=service,proto3" json:"service,omitempty" alias:"service"` // @gotags: alias:"service" - Method string `protobuf:"bytes,10,opt,name=method,proto3" json:"method,omitempty" alias:"method"` // @gotags: alias:"method" - State EventType `protobuf:"varint,11,opt,name=state,proto3,enum=resources.rector.EventType" json:"state,omitempty" alias:"state"` // @gotags: alias:"state" - Data *string `protobuf:"bytes,12,opt,name=data,proto3,oneof" json:"data,omitempty" alias:"data"` // @gotags: alias:"data" + sizeCache protoimpl.SizeCache } func (x *AuditEntry) Reset() { diff --git a/gen/go/proto/resources/rector/config.pb.go b/gen/go/proto/resources/rector/config.pb.go index 276045ce6..90843a0ff 100644 --- a/gen/go/proto/resources/rector/config.pb.go +++ b/gen/go/proto/resources/rector/config.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.35.2 +// protoc-gen-go v1.36.0 // protoc v3.20.3 // source: resources/rector/config.proto @@ -78,17 +78,16 @@ func (DiscordBotPresenceType) EnumDescriptor() ([]byte, []int) { } type AppConfig struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Version *string `protobuf:"bytes,1,opt,name=version,proto3,oneof" json:"version,omitempty"` + Auth *Auth `protobuf:"bytes,2,opt,name=auth,proto3" json:"auth,omitempty"` + Perms *Perms `protobuf:"bytes,3,opt,name=perms,proto3" json:"perms,omitempty"` + Website *Website `protobuf:"bytes,4,opt,name=website,proto3" json:"website,omitempty"` + JobInfo *JobInfo `protobuf:"bytes,5,opt,name=job_info,json=jobInfo,proto3" json:"job_info,omitempty"` + UserTracker *UserTracker `protobuf:"bytes,6,opt,name=user_tracker,json=userTracker,proto3" json:"user_tracker,omitempty"` + Discord *Discord `protobuf:"bytes,7,opt,name=discord,proto3" json:"discord,omitempty"` unknownFields protoimpl.UnknownFields - - Version *string `protobuf:"bytes,1,opt,name=version,proto3,oneof" json:"version,omitempty"` - Auth *Auth `protobuf:"bytes,2,opt,name=auth,proto3" json:"auth,omitempty"` - Perms *Perms `protobuf:"bytes,3,opt,name=perms,proto3" json:"perms,omitempty"` - Website *Website `protobuf:"bytes,4,opt,name=website,proto3" json:"website,omitempty"` - JobInfo *JobInfo `protobuf:"bytes,5,opt,name=job_info,json=jobInfo,proto3" json:"job_info,omitempty"` - UserTracker *UserTracker `protobuf:"bytes,6,opt,name=user_tracker,json=userTracker,proto3" json:"user_tracker,omitempty"` - Discord *Discord `protobuf:"bytes,7,opt,name=discord,proto3" json:"discord,omitempty"` + sizeCache protoimpl.SizeCache } func (x *AppConfig) Reset() { @@ -171,12 +170,11 @@ func (x *AppConfig) GetDiscord() *Discord { } type Auth struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + SignupEnabled bool `protobuf:"varint,1,opt,name=signup_enabled,json=signupEnabled,proto3" json:"signup_enabled,omitempty"` + LastCharLock bool `protobuf:"varint,2,opt,name=last_char_lock,json=lastCharLock,proto3" json:"last_char_lock,omitempty"` unknownFields protoimpl.UnknownFields - - SignupEnabled bool `protobuf:"varint,1,opt,name=signup_enabled,json=signupEnabled,proto3" json:"signup_enabled,omitempty"` - LastCharLock bool `protobuf:"varint,2,opt,name=last_char_lock,json=lastCharLock,proto3" json:"last_char_lock,omitempty"` + sizeCache protoimpl.SizeCache } func (x *Auth) Reset() { @@ -224,11 +222,10 @@ func (x *Auth) GetLastCharLock() bool { } type Perms struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Default []*Perm `protobuf:"bytes,1,rep,name=default,proto3" json:"default,omitempty"` unknownFields protoimpl.UnknownFields - - Default []*Perm `protobuf:"bytes,1,rep,name=default,proto3" json:"default,omitempty"` + sizeCache protoimpl.SizeCache } func (x *Perms) Reset() { @@ -269,14 +266,13 @@ func (x *Perms) GetDefault() []*Perm { } type Perm struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - + state protoimpl.MessageState `protogen:"open.v1"` // @sanitize: method=StripTags Category string `protobuf:"bytes,1,opt,name=category,proto3" json:"category,omitempty"` // @sanitize: method=StripTags - Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` + Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *Perm) Reset() { @@ -324,12 +320,11 @@ func (x *Perm) GetName() string { } type Website struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Links *Links `protobuf:"bytes,1,opt,name=links,proto3" json:"links,omitempty"` + StatsPage bool `protobuf:"varint,2,opt,name=stats_page,json=statsPage,proto3" json:"stats_page,omitempty"` unknownFields protoimpl.UnknownFields - - Links *Links `protobuf:"bytes,1,opt,name=links,proto3" json:"links,omitempty"` - StatsPage bool `protobuf:"varint,2,opt,name=stats_page,json=statsPage,proto3" json:"stats_page,omitempty"` + sizeCache protoimpl.SizeCache } func (x *Website) Reset() { @@ -377,14 +372,13 @@ func (x *Website) GetStatsPage() bool { } type Links struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - + state protoimpl.MessageState `protogen:"open.v1"` // @sanitize: method=StripTags PrivacyPolicy *string `protobuf:"bytes,1,opt,name=privacy_policy,json=privacyPolicy,proto3,oneof" json:"privacy_policy,omitempty"` // @sanitize: method=StripTags - Imprint *string `protobuf:"bytes,2,opt,name=imprint,proto3,oneof" json:"imprint,omitempty"` + Imprint *string `protobuf:"bytes,2,opt,name=imprint,proto3,oneof" json:"imprint,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *Links) Reset() { @@ -432,15 +426,14 @@ func (x *Links) GetImprint() string { } type JobInfo struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - UnemployedJob *UnemployedJob `protobuf:"bytes,1,opt,name=unemployed_job,json=unemployedJob,proto3" json:"unemployed_job,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + UnemployedJob *UnemployedJob `protobuf:"bytes,1,opt,name=unemployed_job,json=unemployedJob,proto3" json:"unemployed_job,omitempty"` // @sanitize: method=StripTags PublicJobs []string `protobuf:"bytes,2,rep,name=public_jobs,json=publicJobs,proto3" json:"public_jobs,omitempty"` // @sanitize: method=StripTags - HiddenJobs []string `protobuf:"bytes,3,rep,name=hidden_jobs,json=hiddenJobs,proto3" json:"hidden_jobs,omitempty"` + HiddenJobs []string `protobuf:"bytes,3,rep,name=hidden_jobs,json=hiddenJobs,proto3" json:"hidden_jobs,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *JobInfo) Reset() { @@ -495,12 +488,11 @@ func (x *JobInfo) GetHiddenJobs() []string { } type UnemployedJob struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + Grade int32 `protobuf:"varint,2,opt,name=grade,proto3" json:"grade,omitempty"` unknownFields protoimpl.UnknownFields - - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` - Grade int32 `protobuf:"varint,2,opt,name=grade,proto3" json:"grade,omitempty"` + sizeCache protoimpl.SizeCache } func (x *UnemployedJob) Reset() { @@ -548,14 +540,13 @@ func (x *UnemployedJob) GetGrade() int32 { } type UserTracker struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - RefreshTime *durationpb.Duration `protobuf:"bytes,1,opt,name=refresh_time,json=refreshTime,proto3" json:"refresh_time,omitempty"` - DbRefreshTime *durationpb.Duration `protobuf:"bytes,2,opt,name=db_refresh_time,json=dbRefreshTime,proto3" json:"db_refresh_time,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + RefreshTime *durationpb.Duration `protobuf:"bytes,1,opt,name=refresh_time,json=refreshTime,proto3" json:"refresh_time,omitempty"` + DbRefreshTime *durationpb.Duration `protobuf:"bytes,2,opt,name=db_refresh_time,json=dbRefreshTime,proto3" json:"db_refresh_time,omitempty"` // @sanitize: method=StripTags - LivemapJobs []string `protobuf:"bytes,3,rep,name=livemap_jobs,json=livemapJobs,proto3" json:"livemap_jobs,omitempty"` + LivemapJobs []string `protobuf:"bytes,3,rep,name=livemap_jobs,json=livemapJobs,proto3" json:"livemap_jobs,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *UserTracker) Reset() { @@ -610,17 +601,16 @@ func (x *UserTracker) GetLivemapJobs() []string { } type Discord struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Enabled bool `protobuf:"varint,1,opt,name=enabled,proto3" json:"enabled,omitempty"` - SyncInterval *durationpb.Duration `protobuf:"bytes,2,opt,name=sync_interval,json=syncInterval,proto3" json:"sync_interval,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + Enabled bool `protobuf:"varint,1,opt,name=enabled,proto3" json:"enabled,omitempty"` + SyncInterval *durationpb.Duration `protobuf:"bytes,2,opt,name=sync_interval,json=syncInterval,proto3" json:"sync_interval,omitempty"` // @sanitize: method=StripTags InviteUrl *string `protobuf:"bytes,3,opt,name=invite_url,json=inviteUrl,proto3,oneof" json:"invite_url,omitempty"` // @sanitize: method=StripTags - IgnoredJobs []string `protobuf:"bytes,4,rep,name=ignored_jobs,json=ignoredJobs,proto3" json:"ignored_jobs,omitempty"` - BotPresence *DiscordBotPresence `protobuf:"bytes,5,opt,name=bot_presence,json=botPresence,proto3,oneof" json:"bot_presence,omitempty"` + IgnoredJobs []string `protobuf:"bytes,4,rep,name=ignored_jobs,json=ignoredJobs,proto3" json:"ignored_jobs,omitempty"` + BotPresence *DiscordBotPresence `protobuf:"bytes,5,opt,name=bot_presence,json=botPresence,proto3,oneof" json:"bot_presence,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *Discord) Reset() { @@ -689,15 +679,14 @@ func (x *Discord) GetBotPresence() *DiscordBotPresence { } type DiscordBotPresence struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Type DiscordBotPresenceType `protobuf:"varint,1,opt,name=type,proto3,enum=resources.rector.DiscordBotPresenceType" json:"type,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + Type DiscordBotPresenceType `protobuf:"varint,1,opt,name=type,proto3,enum=resources.rector.DiscordBotPresenceType" json:"type,omitempty"` // @sanitize: method=StripTags Status *string `protobuf:"bytes,2,opt,name=status,proto3,oneof" json:"status,omitempty"` // @sanitize: method=StripTags - Url *string `protobuf:"bytes,3,opt,name=url,proto3,oneof" json:"url,omitempty"` + Url *string `protobuf:"bytes,3,opt,name=url,proto3,oneof" json:"url,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *DiscordBotPresence) Reset() { diff --git a/gen/go/proto/resources/stats/stats.pb.go b/gen/go/proto/resources/stats/stats.pb.go index 05abe442b..179f15da2 100644 --- a/gen/go/proto/resources/stats/stats.pb.go +++ b/gen/go/proto/resources/stats/stats.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.35.2 +// protoc-gen-go v1.36.0 // protoc v3.20.3 // source: resources/stats/stats.proto @@ -21,11 +21,10 @@ const ( ) type Stat struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Value *int32 `protobuf:"varint,1,opt,name=value,proto3,oneof" json:"value,omitempty"` unknownFields protoimpl.UnknownFields - - Value *int32 `protobuf:"varint,1,opt,name=value,proto3,oneof" json:"value,omitempty"` + sizeCache protoimpl.SizeCache } func (x *Stat) Reset() { diff --git a/gen/go/proto/resources/timestamp/timestamp.pb.go b/gen/go/proto/resources/timestamp/timestamp.pb.go index cf2059b63..0c18b07d9 100644 --- a/gen/go/proto/resources/timestamp/timestamp.pb.go +++ b/gen/go/proto/resources/timestamp/timestamp.pb.go @@ -3,7 +3,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.35.2 +// protoc-gen-go v1.36.0 // protoc v3.20.3 // source: resources/timestamp/timestamp.proto @@ -30,11 +30,10 @@ const ( // https://golang.org/pkg/database/sql/#Scanner // https://golang.org/pkg/database/sql/driver/#Valuer type Timestamp struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Timestamp *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=timestamp,proto3" json:"timestamp,omitempty"` unknownFields protoimpl.UnknownFields - - Timestamp *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=timestamp,proto3" json:"timestamp,omitempty"` + sizeCache protoimpl.SizeCache } func (x *Timestamp) Reset() { diff --git a/gen/go/proto/resources/users/job_props.pb.go b/gen/go/proto/resources/users/job_props.pb.go index 56f60cc49..f8df45039 100644 --- a/gen/go/proto/resources/users/job_props.pb.go +++ b/gen/go/proto/resources/users/job_props.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.35.2 +// protoc-gen-go v1.36.0 // protoc v3.20.3 // source: resources/users/job_props.proto @@ -73,23 +73,22 @@ func (UserInfoSyncUnemployedMode) EnumDescriptor() ([]byte, []int) { } type JobProps struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Job string `protobuf:"bytes,1,opt,name=job,proto3" json:"job,omitempty"` - JobLabel *string `protobuf:"bytes,2,opt,name=job_label,json=jobLabel,proto3,oneof" json:"job_label,omitempty"` - Theme string `protobuf:"bytes,3,opt,name=theme,proto3" json:"theme,omitempty"` - LivemapMarkerColor string `protobuf:"bytes,4,opt,name=livemap_marker_color,json=livemapMarkerColor,proto3" json:"livemap_marker_color,omitempty"` - QuickButtons *QuickButtons `protobuf:"bytes,5,opt,name=quick_buttons,json=quickButtons,proto3" json:"quick_buttons,omitempty"` - RadioFrequency *string `protobuf:"bytes,6,opt,name=radio_frequency,json=radioFrequency,proto3,oneof" json:"radio_frequency,omitempty"` - DiscordGuildId *string `protobuf:"bytes,7,opt,name=discord_guild_id,json=discordGuildId,proto3,oneof" json:"discord_guild_id,omitempty"` - DiscordLastSync *timestamp.Timestamp `protobuf:"bytes,8,opt,name=discord_last_sync,json=discordLastSync,proto3,oneof" json:"discord_last_sync,omitempty"` - DiscordSyncSettings *DiscordSyncSettings `protobuf:"bytes,9,opt,name=discord_sync_settings,json=discordSyncSettings,proto3" json:"discord_sync_settings,omitempty"` - DiscordSyncChanges *DiscordSyncChanges `protobuf:"bytes,10,opt,name=discord_sync_changes,json=discordSyncChanges,proto3,oneof" json:"discord_sync_changes,omitempty"` - Motd *string `protobuf:"bytes,11,opt,name=motd,proto3,oneof" json:"motd,omitempty"` - LogoUrl *filestore.File `protobuf:"bytes,12,opt,name=logo_url,json=logoUrl,proto3,oneof" json:"logo_url,omitempty"` - Settings *JobSettings `protobuf:"bytes,13,opt,name=settings,proto3" json:"settings,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + Job string `protobuf:"bytes,1,opt,name=job,proto3" json:"job,omitempty"` + JobLabel *string `protobuf:"bytes,2,opt,name=job_label,json=jobLabel,proto3,oneof" json:"job_label,omitempty"` + Theme string `protobuf:"bytes,3,opt,name=theme,proto3" json:"theme,omitempty"` + LivemapMarkerColor string `protobuf:"bytes,4,opt,name=livemap_marker_color,json=livemapMarkerColor,proto3" json:"livemap_marker_color,omitempty"` + QuickButtons *QuickButtons `protobuf:"bytes,5,opt,name=quick_buttons,json=quickButtons,proto3" json:"quick_buttons,omitempty"` + RadioFrequency *string `protobuf:"bytes,6,opt,name=radio_frequency,json=radioFrequency,proto3,oneof" json:"radio_frequency,omitempty"` + DiscordGuildId *string `protobuf:"bytes,7,opt,name=discord_guild_id,json=discordGuildId,proto3,oneof" json:"discord_guild_id,omitempty"` + DiscordLastSync *timestamp.Timestamp `protobuf:"bytes,8,opt,name=discord_last_sync,json=discordLastSync,proto3,oneof" json:"discord_last_sync,omitempty"` + DiscordSyncSettings *DiscordSyncSettings `protobuf:"bytes,9,opt,name=discord_sync_settings,json=discordSyncSettings,proto3" json:"discord_sync_settings,omitempty"` + DiscordSyncChanges *DiscordSyncChanges `protobuf:"bytes,10,opt,name=discord_sync_changes,json=discordSyncChanges,proto3,oneof" json:"discord_sync_changes,omitempty"` + Motd *string `protobuf:"bytes,11,opt,name=motd,proto3,oneof" json:"motd,omitempty"` + LogoUrl *filestore.File `protobuf:"bytes,12,opt,name=logo_url,json=logoUrl,proto3,oneof" json:"logo_url,omitempty"` + Settings *JobSettings `protobuf:"bytes,13,opt,name=settings,proto3" json:"settings,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *JobProps) Reset() { @@ -214,13 +213,12 @@ func (x *JobProps) GetSettings() *JobSettings { } type QuickButtons struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - PenaltyCalculator bool `protobuf:"varint,1,opt,name=penalty_calculator,json=penaltyCalculator,proto3" json:"penalty_calculator,omitempty"` - BodyCheckup bool `protobuf:"varint,2,opt,name=body_checkup,json=bodyCheckup,proto3" json:"body_checkup,omitempty"` - MathCalculator bool `protobuf:"varint,3,opt,name=math_calculator,json=mathCalculator,proto3" json:"math_calculator,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + PenaltyCalculator bool `protobuf:"varint,1,opt,name=penalty_calculator,json=penaltyCalculator,proto3" json:"penalty_calculator,omitempty"` + BodyCheckup bool `protobuf:"varint,2,opt,name=body_checkup,json=bodyCheckup,proto3" json:"body_checkup,omitempty"` + MathCalculator bool `protobuf:"varint,3,opt,name=math_calculator,json=mathCalculator,proto3" json:"math_calculator,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *QuickButtons) Reset() { @@ -275,19 +273,18 @@ func (x *QuickButtons) GetMathCalculator() bool { } type DiscordSyncSettings struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - DryRun bool `protobuf:"varint,1,opt,name=dry_run,json=dryRun,proto3" json:"dry_run,omitempty"` - UserInfoSync bool `protobuf:"varint,2,opt,name=user_info_sync,json=userInfoSync,proto3" json:"user_info_sync,omitempty"` - UserInfoSyncSettings *UserInfoSyncSettings `protobuf:"bytes,3,opt,name=user_info_sync_settings,json=userInfoSyncSettings,proto3" json:"user_info_sync_settings,omitempty"` - StatusLog bool `protobuf:"varint,4,opt,name=status_log,json=statusLog,proto3" json:"status_log,omitempty"` - StatusLogSettings *StatusLogSettings `protobuf:"bytes,5,opt,name=status_log_settings,json=statusLogSettings,proto3" json:"status_log_settings,omitempty"` - JobsAbsence bool `protobuf:"varint,6,opt,name=jobs_absence,json=jobsAbsence,proto3" json:"jobs_absence,omitempty"` - JobsAbsenceSettings *JobsAbsenceSettings `protobuf:"bytes,7,opt,name=jobs_absence_settings,json=jobsAbsenceSettings,proto3" json:"jobs_absence_settings,omitempty"` - GroupSyncSettings *GroupSyncSettings `protobuf:"bytes,8,opt,name=group_sync_settings,json=groupSyncSettings,proto3" json:"group_sync_settings,omitempty"` - QualificationsRoleFormat string `protobuf:"bytes,9,opt,name=qualifications_role_format,json=qualificationsRoleFormat,proto3" json:"qualifications_role_format,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + DryRun bool `protobuf:"varint,1,opt,name=dry_run,json=dryRun,proto3" json:"dry_run,omitempty"` + UserInfoSync bool `protobuf:"varint,2,opt,name=user_info_sync,json=userInfoSync,proto3" json:"user_info_sync,omitempty"` + UserInfoSyncSettings *UserInfoSyncSettings `protobuf:"bytes,3,opt,name=user_info_sync_settings,json=userInfoSyncSettings,proto3" json:"user_info_sync_settings,omitempty"` + StatusLog bool `protobuf:"varint,4,opt,name=status_log,json=statusLog,proto3" json:"status_log,omitempty"` + StatusLogSettings *StatusLogSettings `protobuf:"bytes,5,opt,name=status_log_settings,json=statusLogSettings,proto3" json:"status_log_settings,omitempty"` + JobsAbsence bool `protobuf:"varint,6,opt,name=jobs_absence,json=jobsAbsence,proto3" json:"jobs_absence,omitempty"` + JobsAbsenceSettings *JobsAbsenceSettings `protobuf:"bytes,7,opt,name=jobs_absence_settings,json=jobsAbsenceSettings,proto3" json:"jobs_absence_settings,omitempty"` + GroupSyncSettings *GroupSyncSettings `protobuf:"bytes,8,opt,name=group_sync_settings,json=groupSyncSettings,proto3" json:"group_sync_settings,omitempty"` + QualificationsRoleFormat string `protobuf:"bytes,9,opt,name=qualifications_role_format,json=qualificationsRoleFormat,proto3" json:"qualifications_role_format,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *DiscordSyncSettings) Reset() { @@ -384,11 +381,10 @@ func (x *DiscordSyncSettings) GetQualificationsRoleFormat() string { } type DiscordSyncChanges struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Changes []*DiscordSyncChange `protobuf:"bytes,1,rep,name=changes,proto3" json:"changes,omitempty"` unknownFields protoimpl.UnknownFields - - Changes []*DiscordSyncChange `protobuf:"bytes,1,rep,name=changes,proto3" json:"changes,omitempty"` + sizeCache protoimpl.SizeCache } func (x *DiscordSyncChanges) Reset() { @@ -429,12 +425,11 @@ func (x *DiscordSyncChanges) GetChanges() []*DiscordSyncChange { } type DiscordSyncChange struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Time *timestamp.Timestamp `protobuf:"bytes,1,opt,name=time,proto3" json:"time,omitempty"` + Plan string `protobuf:"bytes,2,opt,name=plan,proto3" json:"plan,omitempty"` unknownFields protoimpl.UnknownFields - - Time *timestamp.Timestamp `protobuf:"bytes,1,opt,name=time,proto3" json:"time,omitempty"` - Plan string `protobuf:"bytes,2,opt,name=plan,proto3" json:"plan,omitempty"` + sizeCache protoimpl.SizeCache } func (x *DiscordSyncChange) Reset() { @@ -482,10 +477,7 @@ func (x *DiscordSyncChange) GetPlan() string { } type UserInfoSyncSettings struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - + state protoimpl.MessageState `protogen:"open.v1"` EmployeeRoleEnabled bool `protobuf:"varint,1,opt,name=employee_role_enabled,json=employeeRoleEnabled,proto3" json:"employee_role_enabled,omitempty"` EmployeeRoleFormat string `protobuf:"bytes,2,opt,name=employee_role_format,json=employeeRoleFormat,proto3" json:"employee_role_format,omitempty"` GradeRoleFormat string `protobuf:"bytes,3,opt,name=grade_role_format,json=gradeRoleFormat,proto3" json:"grade_role_format,omitempty"` @@ -494,6 +486,8 @@ type UserInfoSyncSettings struct { UnemployedRoleName string `protobuf:"bytes,6,opt,name=unemployed_role_name,json=unemployedRoleName,proto3" json:"unemployed_role_name,omitempty"` SyncNicknames bool `protobuf:"varint,7,opt,name=sync_nicknames,json=syncNicknames,proto3" json:"sync_nicknames,omitempty"` GroupMapping []*GroupMapping `protobuf:"bytes,8,rep,name=group_mapping,json=groupMapping,proto3" json:"group_mapping,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *UserInfoSyncSettings) Reset() { @@ -583,13 +577,12 @@ func (x *UserInfoSyncSettings) GetGroupMapping() []*GroupMapping { } type GroupMapping struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + FromGrade int32 `protobuf:"varint,2,opt,name=from_grade,json=fromGrade,proto3" json:"from_grade,omitempty"` + ToGrade int32 `protobuf:"varint,3,opt,name=to_grade,json=toGrade,proto3" json:"to_grade,omitempty"` unknownFields protoimpl.UnknownFields - - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` - FromGrade int32 `protobuf:"varint,2,opt,name=from_grade,json=fromGrade,proto3" json:"from_grade,omitempty"` - ToGrade int32 `protobuf:"varint,3,opt,name=to_grade,json=toGrade,proto3" json:"to_grade,omitempty"` + sizeCache protoimpl.SizeCache } func (x *GroupMapping) Reset() { @@ -644,11 +637,10 @@ func (x *GroupMapping) GetToGrade() int32 { } type StatusLogSettings struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + ChannelId string `protobuf:"bytes,1,opt,name=channel_id,json=channelId,proto3" json:"channel_id,omitempty"` unknownFields protoimpl.UnknownFields - - ChannelId string `protobuf:"bytes,1,opt,name=channel_id,json=channelId,proto3" json:"channel_id,omitempty"` + sizeCache protoimpl.SizeCache } func (x *StatusLogSettings) Reset() { @@ -689,11 +681,10 @@ func (x *StatusLogSettings) GetChannelId() string { } type JobsAbsenceSettings struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + AbsenceRole string `protobuf:"bytes,1,opt,name=absence_role,json=absenceRole,proto3" json:"absence_role,omitempty"` unknownFields protoimpl.UnknownFields - - AbsenceRole string `protobuf:"bytes,1,opt,name=absence_role,json=absenceRole,proto3" json:"absence_role,omitempty"` + sizeCache protoimpl.SizeCache } func (x *JobsAbsenceSettings) Reset() { @@ -734,12 +725,11 @@ func (x *JobsAbsenceSettings) GetAbsenceRole() string { } type GroupSyncSettings struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - + state protoimpl.MessageState `protogen:"open.v1"` // @sanitize: method=StripTags IgnoredRoleIds []string `protobuf:"bytes,1,rep,name=ignored_role_ids,json=ignoredRoleIds,proto3" json:"ignored_role_ids,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *GroupSyncSettings) Reset() { @@ -780,9 +770,9 @@ func (x *GroupSyncSettings) GetIgnoredRoleIds() []string { } type JobSettings struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *JobSettings) Reset() { diff --git a/gen/go/proto/resources/users/jobs.pb.go b/gen/go/proto/resources/users/jobs.pb.go index 1e08e3a4f..334f761c1 100644 --- a/gen/go/proto/resources/users/jobs.pb.go +++ b/gen/go/proto/resources/users/jobs.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.35.2 +// protoc-gen-go v1.36.0 // protoc v3.20.3 // source: resources/users/jobs.proto @@ -22,13 +22,12 @@ const ( ) type Job struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty" sql:"primary_key" alias:"name"` // @gotags: sql:"primary_key" alias:"name" + Label string `protobuf:"bytes,2,opt,name=label,proto3" json:"label,omitempty"` + Grades []*JobGrade `protobuf:"bytes,3,rep,name=grades,proto3" json:"grades,omitempty"` unknownFields protoimpl.UnknownFields - - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty" sql:"primary_key" alias:"name"` // @gotags: sql:"primary_key" alias:"name" - Label string `protobuf:"bytes,2,opt,name=label,proto3" json:"label,omitempty"` - Grades []*JobGrade `protobuf:"bytes,3,rep,name=grades,proto3" json:"grades,omitempty"` + sizeCache protoimpl.SizeCache } func (x *Job) Reset() { @@ -83,13 +82,12 @@ func (x *Job) GetGrades() []*JobGrade { } type JobGrade struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + JobName *string `protobuf:"bytes,1,opt,name=job_name,json=jobName,proto3,oneof" json:"job_name,omitempty"` + Grade int32 `protobuf:"varint,2,opt,name=grade,proto3" json:"grade,omitempty"` + Label string `protobuf:"bytes,3,opt,name=label,proto3" json:"label,omitempty"` unknownFields protoimpl.UnknownFields - - JobName *string `protobuf:"bytes,1,opt,name=job_name,json=jobName,proto3,oneof" json:"job_name,omitempty"` - Grade int32 `protobuf:"varint,2,opt,name=grade,proto3" json:"grade,omitempty"` - Label string `protobuf:"bytes,3,opt,name=label,proto3" json:"label,omitempty"` + sizeCache protoimpl.SizeCache } func (x *JobGrade) Reset() { diff --git a/gen/go/proto/resources/users/users.pb.go b/gen/go/proto/resources/users/users.pb.go index 2e05f855f..dca236b76 100644 --- a/gen/go/proto/resources/users/users.pb.go +++ b/gen/go/proto/resources/users/users.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.35.2 +// protoc-gen-go v1.36.0 // protoc v3.20.3 // source: resources/users/users.proto @@ -76,21 +76,20 @@ func (UserActivityType) EnumDescriptor() ([]byte, []int) { } type UserShort struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + UserId int32 `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty" alias:"id"` // @gotags: alias:"id" + Identifier *string `protobuf:"bytes,2,opt,name=identifier,proto3,oneof" json:"identifier,omitempty"` + Job string `protobuf:"bytes,3,opt,name=job,proto3" json:"job,omitempty"` + JobLabel *string `protobuf:"bytes,4,opt,name=job_label,json=jobLabel,proto3,oneof" json:"job_label,omitempty"` + JobGrade int32 `protobuf:"varint,5,opt,name=job_grade,json=jobGrade,proto3" json:"job_grade,omitempty"` + JobGradeLabel *string `protobuf:"bytes,6,opt,name=job_grade_label,json=jobGradeLabel,proto3,oneof" json:"job_grade_label,omitempty"` + Firstname string `protobuf:"bytes,7,opt,name=firstname,proto3" json:"firstname,omitempty"` + Lastname string `protobuf:"bytes,8,opt,name=lastname,proto3" json:"lastname,omitempty"` + Dateofbirth string `protobuf:"bytes,9,opt,name=dateofbirth,proto3" json:"dateofbirth,omitempty"` + PhoneNumber *string `protobuf:"bytes,12,opt,name=phone_number,json=phoneNumber,proto3,oneof" json:"phone_number,omitempty"` + Avatar *filestore.File `protobuf:"bytes,17,opt,name=avatar,proto3,oneof" json:"avatar,omitempty"` unknownFields protoimpl.UnknownFields - - UserId int32 `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty" alias:"id"` // @gotags: alias:"id" - Identifier *string `protobuf:"bytes,2,opt,name=identifier,proto3,oneof" json:"identifier,omitempty"` - Job string `protobuf:"bytes,3,opt,name=job,proto3" json:"job,omitempty"` - JobLabel *string `protobuf:"bytes,4,opt,name=job_label,json=jobLabel,proto3,oneof" json:"job_label,omitempty"` - JobGrade int32 `protobuf:"varint,5,opt,name=job_grade,json=jobGrade,proto3" json:"job_grade,omitempty"` - JobGradeLabel *string `protobuf:"bytes,6,opt,name=job_grade_label,json=jobGradeLabel,proto3,oneof" json:"job_grade_label,omitempty"` - Firstname string `protobuf:"bytes,7,opt,name=firstname,proto3" json:"firstname,omitempty"` - Lastname string `protobuf:"bytes,8,opt,name=lastname,proto3" json:"lastname,omitempty"` - Dateofbirth string `protobuf:"bytes,9,opt,name=dateofbirth,proto3" json:"dateofbirth,omitempty"` - PhoneNumber *string `protobuf:"bytes,12,opt,name=phone_number,json=phoneNumber,proto3,oneof" json:"phone_number,omitempty"` - Avatar *filestore.File `protobuf:"bytes,17,opt,name=avatar,proto3,oneof" json:"avatar,omitempty"` + sizeCache protoimpl.SizeCache } func (x *UserShort) Reset() { @@ -201,27 +200,26 @@ func (x *UserShort) GetAvatar() *filestore.File { } type User struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + UserId int32 `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty" alias:"id"` // @gotags: alias:"id" + Identifier *string `protobuf:"bytes,2,opt,name=identifier,proto3,oneof" json:"identifier,omitempty"` + Job string `protobuf:"bytes,3,opt,name=job,proto3" json:"job,omitempty"` + JobLabel *string `protobuf:"bytes,4,opt,name=job_label,json=jobLabel,proto3,oneof" json:"job_label,omitempty"` + JobGrade int32 `protobuf:"varint,5,opt,name=job_grade,json=jobGrade,proto3" json:"job_grade,omitempty"` + JobGradeLabel *string `protobuf:"bytes,6,opt,name=job_grade_label,json=jobGradeLabel,proto3,oneof" json:"job_grade_label,omitempty"` + Firstname string `protobuf:"bytes,7,opt,name=firstname,proto3" json:"firstname,omitempty"` + Lastname string `protobuf:"bytes,8,opt,name=lastname,proto3" json:"lastname,omitempty"` + Dateofbirth string `protobuf:"bytes,9,opt,name=dateofbirth,proto3" json:"dateofbirth,omitempty"` + Sex *string `protobuf:"bytes,10,opt,name=sex,proto3,oneof" json:"sex,omitempty"` + Height *string `protobuf:"bytes,11,opt,name=height,proto3,oneof" json:"height,omitempty"` + PhoneNumber *string `protobuf:"bytes,12,opt,name=phone_number,json=phoneNumber,proto3,oneof" json:"phone_number,omitempty"` + Visum *int32 `protobuf:"varint,13,opt,name=visum,proto3,oneof" json:"visum,omitempty"` + Playtime *int32 `protobuf:"varint,14,opt,name=playtime,proto3,oneof" json:"playtime,omitempty"` + Props *UserProps `protobuf:"bytes,15,opt,name=props,proto3" json:"props,omitempty" alias:"fivenet_user_props"` // @gotags: alias:"fivenet_user_props" + Licenses []*License `protobuf:"bytes,16,rep,name=licenses,proto3" json:"licenses,omitempty" alias:"user_licenses"` // @gotags: alias:"user_licenses" + Avatar *filestore.File `protobuf:"bytes,17,opt,name=avatar,proto3,oneof" json:"avatar,omitempty"` unknownFields protoimpl.UnknownFields - - UserId int32 `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty" alias:"id"` // @gotags: alias:"id" - Identifier *string `protobuf:"bytes,2,opt,name=identifier,proto3,oneof" json:"identifier,omitempty"` - Job string `protobuf:"bytes,3,opt,name=job,proto3" json:"job,omitempty"` - JobLabel *string `protobuf:"bytes,4,opt,name=job_label,json=jobLabel,proto3,oneof" json:"job_label,omitempty"` - JobGrade int32 `protobuf:"varint,5,opt,name=job_grade,json=jobGrade,proto3" json:"job_grade,omitempty"` - JobGradeLabel *string `protobuf:"bytes,6,opt,name=job_grade_label,json=jobGradeLabel,proto3,oneof" json:"job_grade_label,omitempty"` - Firstname string `protobuf:"bytes,7,opt,name=firstname,proto3" json:"firstname,omitempty"` - Lastname string `protobuf:"bytes,8,opt,name=lastname,proto3" json:"lastname,omitempty"` - Dateofbirth string `protobuf:"bytes,9,opt,name=dateofbirth,proto3" json:"dateofbirth,omitempty"` - Sex *string `protobuf:"bytes,10,opt,name=sex,proto3,oneof" json:"sex,omitempty"` - Height *string `protobuf:"bytes,11,opt,name=height,proto3,oneof" json:"height,omitempty"` - PhoneNumber *string `protobuf:"bytes,12,opt,name=phone_number,json=phoneNumber,proto3,oneof" json:"phone_number,omitempty"` - Visum *int32 `protobuf:"varint,13,opt,name=visum,proto3,oneof" json:"visum,omitempty"` - Playtime *int32 `protobuf:"varint,14,opt,name=playtime,proto3,oneof" json:"playtime,omitempty"` - Props *UserProps `protobuf:"bytes,15,opt,name=props,proto3" json:"props,omitempty" alias:"fivenet_user_props"` // @gotags: alias:"fivenet_user_props" - Licenses []*License `protobuf:"bytes,16,rep,name=licenses,proto3" json:"licenses,omitempty" alias:"user_licenses"` // @gotags: alias:"user_licenses" - Avatar *filestore.File `protobuf:"bytes,17,opt,name=avatar,proto3,oneof" json:"avatar,omitempty"` + sizeCache protoimpl.SizeCache } func (x *User) Reset() { @@ -374,12 +372,11 @@ func (x *User) GetAvatar() *filestore.File { } type License struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"` + Label string `protobuf:"bytes,2,opt,name=label,proto3" json:"label,omitempty"` unknownFields protoimpl.UnknownFields - - Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"` - Label string `protobuf:"bytes,2,opt,name=label,proto3" json:"label,omitempty"` + sizeCache protoimpl.SizeCache } func (x *License) Reset() { @@ -427,24 +424,23 @@ func (x *License) GetLabel() string { } type UserProps struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - UserId int32 `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` - UpdatedAt *timestamp.Timestamp `protobuf:"bytes,2,opt,name=updated_at,json=updatedAt,proto3,oneof" json:"updated_at,omitempty"` - Wanted *bool `protobuf:"varint,3,opt,name=wanted,proto3,oneof" json:"wanted,omitempty"` - JobName *string `protobuf:"bytes,4,opt,name=job_name,json=jobName,proto3,oneof" json:"job_name,omitempty" alias:"job"` // @gotags: alias:"job" - Job *Job `protobuf:"bytes,5,opt,name=job,proto3,oneof" json:"job,omitempty"` - JobGradeNumber *int32 `protobuf:"varint,6,opt,name=job_grade_number,json=jobGradeNumber,proto3,oneof" json:"job_grade_number,omitempty" alias:"job_grade"` // @gotags: alias:"job_grade" - JobGrade *JobGrade `protobuf:"bytes,7,opt,name=job_grade,json=jobGrade,proto3,oneof" json:"job_grade,omitempty"` - TrafficInfractionPoints *uint32 `protobuf:"varint,8,opt,name=traffic_infraction_points,json=trafficInfractionPoints,proto3,oneof" json:"traffic_infraction_points,omitempty"` - OpenFines *int64 `protobuf:"varint,9,opt,name=open_fines,json=openFines,proto3,oneof" json:"open_fines,omitempty"` - BloodType *string `protobuf:"bytes,10,opt,name=blood_type,json=bloodType,proto3,oneof" json:"blood_type,omitempty"` - MugShot *filestore.File `protobuf:"bytes,11,opt,name=mug_shot,json=mugShot,proto3,oneof" json:"mug_shot,omitempty"` - Attributes *CitizenAttributes `protobuf:"bytes,12,opt,name=attributes,proto3,oneof" json:"attributes,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + UserId int32 `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` + UpdatedAt *timestamp.Timestamp `protobuf:"bytes,2,opt,name=updated_at,json=updatedAt,proto3,oneof" json:"updated_at,omitempty"` + Wanted *bool `protobuf:"varint,3,opt,name=wanted,proto3,oneof" json:"wanted,omitempty"` + JobName *string `protobuf:"bytes,4,opt,name=job_name,json=jobName,proto3,oneof" json:"job_name,omitempty" alias:"job"` // @gotags: alias:"job" + Job *Job `protobuf:"bytes,5,opt,name=job,proto3,oneof" json:"job,omitempty"` + JobGradeNumber *int32 `protobuf:"varint,6,opt,name=job_grade_number,json=jobGradeNumber,proto3,oneof" json:"job_grade_number,omitempty" alias:"job_grade"` // @gotags: alias:"job_grade" + JobGrade *JobGrade `protobuf:"bytes,7,opt,name=job_grade,json=jobGrade,proto3,oneof" json:"job_grade,omitempty"` + TrafficInfractionPoints *uint32 `protobuf:"varint,8,opt,name=traffic_infraction_points,json=trafficInfractionPoints,proto3,oneof" json:"traffic_infraction_points,omitempty"` + OpenFines *int64 `protobuf:"varint,9,opt,name=open_fines,json=openFines,proto3,oneof" json:"open_fines,omitempty"` + BloodType *string `protobuf:"bytes,10,opt,name=blood_type,json=bloodType,proto3,oneof" json:"blood_type,omitempty"` + MugShot *filestore.File `protobuf:"bytes,11,opt,name=mug_shot,json=mugShot,proto3,oneof" json:"mug_shot,omitempty"` + Attributes *CitizenAttributes `protobuf:"bytes,12,opt,name=attributes,proto3,oneof" json:"attributes,omitempty"` // @sanitize: method=StripTags - Email *string `protobuf:"bytes,19,opt,name=email,proto3,oneof" json:"email,omitempty"` + Email *string `protobuf:"bytes,19,opt,name=email,proto3,oneof" json:"email,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *UserProps) Reset() { @@ -569,21 +565,20 @@ func (x *UserProps) GetEmail() string { } type UserActivity struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty" alias:"fivenet_user_activity.id"` // @gotags: alias:"fivenet_user_activity.id" - Type UserActivityType `protobuf:"varint,2,opt,name=type,proto3,enum=resources.users.UserActivityType" json:"type,omitempty" alias:"fivenet_user_activity.type"` // @gotags: alias:"fivenet_user_activity.type" - CreatedAt *timestamp.Timestamp `protobuf:"bytes,3,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty" alias:"fivenet_user_activity.created_at"` // @gotags: alias:"fivenet_user_activity.created_at" - SourceUser *UserShort `protobuf:"bytes,4,opt,name=source_user,json=sourceUser,proto3" json:"source_user,omitempty" alias:"source_user"` // @gotags: alias:"source_user" - TargetUser *UserShort `protobuf:"bytes,5,opt,name=target_user,json=targetUser,proto3" json:"target_user,omitempty" alias:"target_user"` // @gotags: alias:"target_user" + state protoimpl.MessageState `protogen:"open.v1"` + Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty" alias:"fivenet_user_activity.id"` // @gotags: alias:"fivenet_user_activity.id" + Type UserActivityType `protobuf:"varint,2,opt,name=type,proto3,enum=resources.users.UserActivityType" json:"type,omitempty" alias:"fivenet_user_activity.type"` // @gotags: alias:"fivenet_user_activity.type" + CreatedAt *timestamp.Timestamp `protobuf:"bytes,3,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty" alias:"fivenet_user_activity.created_at"` // @gotags: alias:"fivenet_user_activity.created_at" + SourceUser *UserShort `protobuf:"bytes,4,opt,name=source_user,json=sourceUser,proto3" json:"source_user,omitempty" alias:"source_user"` // @gotags: alias:"source_user" + TargetUser *UserShort `protobuf:"bytes,5,opt,name=target_user,json=targetUser,proto3" json:"target_user,omitempty" alias:"target_user"` // @gotags: alias:"target_user" // @sanitize Key string `protobuf:"bytes,6,opt,name=key,proto3" json:"key,omitempty" alias:"fivenet_user_activity.key"` // @gotags: alias:"fivenet_user_activity.key" OldValue string `protobuf:"bytes,7,opt,name=old_value,json=oldValue,proto3" json:"old_value,omitempty" alias:"fivenet_user_activity.old_value"` // @gotags: alias:"fivenet_user_activity.old_value" NewValue string `protobuf:"bytes,8,opt,name=new_value,json=newValue,proto3" json:"new_value,omitempty" alias:"fivenet_user_activity.new_value"` // @gotags: alias:"fivenet_user_activity.new_value" // @sanitize - Reason string `protobuf:"bytes,9,opt,name=reason,proto3" json:"reason,omitempty" alias:"fivenet_user_activity.reason"` // @gotags: alias:"fivenet_user_activity.reason" + Reason string `protobuf:"bytes,9,opt,name=reason,proto3" json:"reason,omitempty" alias:"fivenet_user_activity.reason"` // @gotags: alias:"fivenet_user_activity.reason" + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *UserActivity) Reset() { @@ -680,11 +675,10 @@ func (x *UserActivity) GetReason() string { } type CitizenAttributes struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + List []*CitizenAttribute `protobuf:"bytes,1,rep,name=list,proto3" json:"list,omitempty"` unknownFields protoimpl.UnknownFields - - List []*CitizenAttribute `protobuf:"bytes,1,rep,name=list,proto3" json:"list,omitempty"` + sizeCache protoimpl.SizeCache } func (x *CitizenAttributes) Reset() { @@ -725,15 +719,14 @@ func (x *CitizenAttributes) GetList() []*CitizenAttribute { } type CitizenAttribute struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty" sql:"primary_key" alias:"id"` // @gotags: sql:"primary_key" alias:"id" - Job *string `protobuf:"bytes,2,opt,name=job,proto3,oneof" json:"job,omitempty"` - Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty" sql:"primary_key" alias:"id"` // @gotags: sql:"primary_key" alias:"id" + Job *string `protobuf:"bytes,2,opt,name=job,proto3,oneof" json:"job,omitempty"` + Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` // @sanitize: method=StripTags - Color string `protobuf:"bytes,4,opt,name=color,proto3" json:"color,omitempty"` + Color string `protobuf:"bytes,4,opt,name=color,proto3" json:"color,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *CitizenAttribute) Reset() { diff --git a/gen/go/proto/resources/vehicles/vehicles.pb.go b/gen/go/proto/resources/vehicles/vehicles.pb.go index f8fc0aabc..283de6210 100644 --- a/gen/go/proto/resources/vehicles/vehicles.pb.go +++ b/gen/go/proto/resources/vehicles/vehicles.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.35.2 +// protoc-gen-go v1.36.0 // protoc v3.20.3 // source: resources/vehicles/vehicles.proto @@ -22,14 +22,13 @@ const ( ) type Vehicle struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Plate string `protobuf:"bytes,1,opt,name=plate,proto3" json:"plate,omitempty"` + Model *string `protobuf:"bytes,2,opt,name=model,proto3,oneof" json:"model,omitempty"` + Type string `protobuf:"bytes,3,opt,name=type,proto3" json:"type,omitempty"` + Owner *users.UserShort `protobuf:"bytes,4,opt,name=owner,proto3" json:"owner,omitempty"` unknownFields protoimpl.UnknownFields - - Plate string `protobuf:"bytes,1,opt,name=plate,proto3" json:"plate,omitempty"` - Model *string `protobuf:"bytes,2,opt,name=model,proto3,oneof" json:"model,omitempty"` - Type string `protobuf:"bytes,3,opt,name=type,proto3" json:"type,omitempty"` - Owner *users.UserShort `protobuf:"bytes,4,opt,name=owner,proto3" json:"owner,omitempty"` + sizeCache protoimpl.SizeCache } func (x *Vehicle) Reset() { diff --git a/gen/go/proto/resources/wiki/access.pb.go b/gen/go/proto/resources/wiki/access.pb.go index 2a1375a0f..5907cff0c 100644 --- a/gen/go/proto/resources/wiki/access.pb.go +++ b/gen/go/proto/resources/wiki/access.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.35.2 +// protoc-gen-go v1.36.0 // protoc v3.20.3 // source: resources/wiki/access.proto @@ -82,12 +82,11 @@ func (AccessLevel) EnumDescriptor() ([]byte, []int) { } type PageAccess struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Jobs []*PageJobAccess `protobuf:"bytes,1,rep,name=jobs,proto3" json:"jobs,omitempty" alias:"job_access"` // @gotags: alias:"job_access" + Users []*PageUserAccess `protobuf:"bytes,2,rep,name=users,proto3" json:"users,omitempty" alias:"user_access"` // @gotags: alias:"user_access" unknownFields protoimpl.UnknownFields - - Jobs []*PageJobAccess `protobuf:"bytes,1,rep,name=jobs,proto3" json:"jobs,omitempty" alias:"job_access"` // @gotags: alias:"job_access" - Users []*PageUserAccess `protobuf:"bytes,2,rep,name=users,proto3" json:"users,omitempty" alias:"user_access"` // @gotags: alias:"user_access" + sizeCache protoimpl.SizeCache } func (x *PageAccess) Reset() { @@ -135,18 +134,17 @@ func (x *PageAccess) GetUsers() []*PageUserAccess { } type PageJobAccess struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` + CreatedAt *timestamp.Timestamp `protobuf:"bytes,2,opt,name=created_at,json=createdAt,proto3,oneof" json:"created_at,omitempty"` + TargetId uint64 `protobuf:"varint,3,opt,name=target_id,json=targetId,proto3" json:"target_id,omitempty" alias:"page_id"` // @gotags: alias:"page_id" + Job string `protobuf:"bytes,4,opt,name=job,proto3" json:"job,omitempty"` + JobLabel *string `protobuf:"bytes,5,opt,name=job_label,json=jobLabel,proto3,oneof" json:"job_label,omitempty"` + MinimumGrade int32 `protobuf:"varint,6,opt,name=minimum_grade,json=minimumGrade,proto3" json:"minimum_grade,omitempty"` + JobGradeLabel *string `protobuf:"bytes,7,opt,name=job_grade_label,json=jobGradeLabel,proto3,oneof" json:"job_grade_label,omitempty"` + Access AccessLevel `protobuf:"varint,8,opt,name=access,proto3,enum=resources.wiki.AccessLevel" json:"access,omitempty"` unknownFields protoimpl.UnknownFields - - Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` - CreatedAt *timestamp.Timestamp `protobuf:"bytes,2,opt,name=created_at,json=createdAt,proto3,oneof" json:"created_at,omitempty"` - TargetId uint64 `protobuf:"varint,3,opt,name=target_id,json=targetId,proto3" json:"target_id,omitempty" alias:"page_id"` // @gotags: alias:"page_id" - Job string `protobuf:"bytes,4,opt,name=job,proto3" json:"job,omitempty"` - JobLabel *string `protobuf:"bytes,5,opt,name=job_label,json=jobLabel,proto3,oneof" json:"job_label,omitempty"` - MinimumGrade int32 `protobuf:"varint,6,opt,name=minimum_grade,json=minimumGrade,proto3" json:"minimum_grade,omitempty"` - JobGradeLabel *string `protobuf:"bytes,7,opt,name=job_grade_label,json=jobGradeLabel,proto3,oneof" json:"job_grade_label,omitempty"` - Access AccessLevel `protobuf:"varint,8,opt,name=access,proto3,enum=resources.wiki.AccessLevel" json:"access,omitempty"` + sizeCache protoimpl.SizeCache } func (x *PageJobAccess) Reset() { @@ -236,16 +234,15 @@ func (x *PageJobAccess) GetAccess() AccessLevel { } type PageUserAccess struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` + CreatedAt *timestamp.Timestamp `protobuf:"bytes,2,opt,name=created_at,json=createdAt,proto3,oneof" json:"created_at,omitempty"` + TargetId uint64 `protobuf:"varint,3,opt,name=target_id,json=targetId,proto3" json:"target_id,omitempty" alias:"page_id"` // @gotags: alias:"page_id" + UserId int32 `protobuf:"varint,4,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` + User *users.UserShort `protobuf:"bytes,5,opt,name=user,proto3,oneof" json:"user,omitempty"` + Access AccessLevel `protobuf:"varint,6,opt,name=access,proto3,enum=resources.wiki.AccessLevel" json:"access,omitempty"` unknownFields protoimpl.UnknownFields - - Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` - CreatedAt *timestamp.Timestamp `protobuf:"bytes,2,opt,name=created_at,json=createdAt,proto3,oneof" json:"created_at,omitempty"` - TargetId uint64 `protobuf:"varint,3,opt,name=target_id,json=targetId,proto3" json:"target_id,omitempty" alias:"page_id"` // @gotags: alias:"page_id" - UserId int32 `protobuf:"varint,4,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` - User *users.UserShort `protobuf:"bytes,5,opt,name=user,proto3,oneof" json:"user,omitempty"` - Access AccessLevel `protobuf:"varint,6,opt,name=access,proto3,enum=resources.wiki.AccessLevel" json:"access,omitempty"` + sizeCache protoimpl.SizeCache } func (x *PageUserAccess) Reset() { diff --git a/gen/go/proto/resources/wiki/activity.pb.go b/gen/go/proto/resources/wiki/activity.pb.go index af848b85b..8988f672c 100644 --- a/gen/go/proto/resources/wiki/activity.pb.go +++ b/gen/go/proto/resources/wiki/activity.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.35.2 +// protoc-gen-go v1.36.0 // protoc v3.20.3 // source: resources/wiki/activity.proto @@ -83,20 +83,19 @@ func (PageActivityType) EnumDescriptor() ([]byte, []int) { } type PageActivity struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` - CreatedAt *timestamp.Timestamp `protobuf:"bytes,2,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` - PageId uint64 `protobuf:"varint,3,opt,name=page_id,json=pageId,proto3" json:"page_id,omitempty"` - ActivityType PageActivityType `protobuf:"varint,4,opt,name=activity_type,json=activityType,proto3,enum=resources.wiki.PageActivityType" json:"activity_type,omitempty"` - CreatorId *int32 `protobuf:"varint,5,opt,name=creator_id,json=creatorId,proto3,oneof" json:"creator_id,omitempty"` - Creator *users.UserShort `protobuf:"bytes,6,opt,name=creator,proto3,oneof" json:"creator,omitempty" alias:"creator"` // @gotags: alias:"creator" - CreatorJob string `protobuf:"bytes,7,opt,name=creator_job,json=creatorJob,proto3" json:"creator_job,omitempty"` - CreatorJobLabel *string `protobuf:"bytes,8,opt,name=creator_job_label,json=creatorJobLabel,proto3,oneof" json:"creator_job_label,omitempty"` - Reason *string `protobuf:"bytes,9,opt,name=reason,proto3,oneof" json:"reason,omitempty"` - Data *PageActivityData `protobuf:"bytes,10,opt,name=data,proto3" json:"data,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` + CreatedAt *timestamp.Timestamp `protobuf:"bytes,2,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` + PageId uint64 `protobuf:"varint,3,opt,name=page_id,json=pageId,proto3" json:"page_id,omitempty"` + ActivityType PageActivityType `protobuf:"varint,4,opt,name=activity_type,json=activityType,proto3,enum=resources.wiki.PageActivityType" json:"activity_type,omitempty"` + CreatorId *int32 `protobuf:"varint,5,opt,name=creator_id,json=creatorId,proto3,oneof" json:"creator_id,omitempty"` + Creator *users.UserShort `protobuf:"bytes,6,opt,name=creator,proto3,oneof" json:"creator,omitempty" alias:"creator"` // @gotags: alias:"creator" + CreatorJob string `protobuf:"bytes,7,opt,name=creator_job,json=creatorJob,proto3" json:"creator_job,omitempty"` + CreatorJobLabel *string `protobuf:"bytes,8,opt,name=creator_job_label,json=creatorJobLabel,proto3,oneof" json:"creator_job_label,omitempty"` + Reason *string `protobuf:"bytes,9,opt,name=reason,proto3,oneof" json:"reason,omitempty"` + Data *PageActivityData `protobuf:"bytes,10,opt,name=data,proto3" json:"data,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *PageActivity) Reset() { @@ -200,15 +199,14 @@ func (x *PageActivity) GetData() *PageActivityData { } type PageActivityData struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Types that are assignable to Data: + state protoimpl.MessageState `protogen:"open.v1"` + // Types that are valid to be assigned to Data: // // *PageActivityData_Updated // *PageActivityData_AccessUpdated - Data isPageActivityData_Data `protobuf_oneof:"data"` + Data isPageActivityData_Data `protobuf_oneof:"data"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *PageActivityData) Reset() { @@ -241,23 +239,27 @@ func (*PageActivityData) Descriptor() ([]byte, []int) { return file_resources_wiki_activity_proto_rawDescGZIP(), []int{1} } -func (m *PageActivityData) GetData() isPageActivityData_Data { - if m != nil { - return m.Data +func (x *PageActivityData) GetData() isPageActivityData_Data { + if x != nil { + return x.Data } return nil } func (x *PageActivityData) GetUpdated() *PageUpdated { - if x, ok := x.GetData().(*PageActivityData_Updated); ok { - return x.Updated + if x != nil { + if x, ok := x.Data.(*PageActivityData_Updated); ok { + return x.Updated + } } return nil } func (x *PageActivityData) GetAccessUpdated() *PageAccessUpdated { - if x, ok := x.GetData().(*PageActivityData_AccessUpdated); ok { - return x.AccessUpdated + if x != nil { + if x, ok := x.Data.(*PageActivityData_AccessUpdated); ok { + return x.AccessUpdated + } } return nil } @@ -279,13 +281,12 @@ func (*PageActivityData_Updated) isPageActivityData_Data() {} func (*PageActivityData_AccessUpdated) isPageActivityData_Data() {} type PageUpdated struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - TitleDiff *string `protobuf:"bytes,1,opt,name=title_diff,json=titleDiff,proto3,oneof" json:"title_diff,omitempty"` - DescriptionDiff *string `protobuf:"bytes,2,opt,name=description_diff,json=descriptionDiff,proto3,oneof" json:"description_diff,omitempty"` - ContentDiff *string `protobuf:"bytes,3,opt,name=content_diff,json=contentDiff,proto3,oneof" json:"content_diff,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + TitleDiff *string `protobuf:"bytes,1,opt,name=title_diff,json=titleDiff,proto3,oneof" json:"title_diff,omitempty"` + DescriptionDiff *string `protobuf:"bytes,2,opt,name=description_diff,json=descriptionDiff,proto3,oneof" json:"description_diff,omitempty"` + ContentDiff *string `protobuf:"bytes,3,opt,name=content_diff,json=contentDiff,proto3,oneof" json:"content_diff,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *PageUpdated) Reset() { @@ -340,12 +341,11 @@ func (x *PageUpdated) GetContentDiff() string { } type PageAccessUpdated struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Jobs *PageAccessJobsDiff `protobuf:"bytes,1,opt,name=jobs,proto3" json:"jobs,omitempty"` + Users *PageAccessUsersDiff `protobuf:"bytes,2,opt,name=users,proto3" json:"users,omitempty"` unknownFields protoimpl.UnknownFields - - Jobs *PageAccessJobsDiff `protobuf:"bytes,1,opt,name=jobs,proto3" json:"jobs,omitempty"` - Users *PageAccessUsersDiff `protobuf:"bytes,2,opt,name=users,proto3" json:"users,omitempty"` + sizeCache protoimpl.SizeCache } func (x *PageAccessUpdated) Reset() { @@ -393,13 +393,12 @@ func (x *PageAccessUpdated) GetUsers() *PageAccessUsersDiff { } type PageAccessJobsDiff struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + ToCreate []*PageJobAccess `protobuf:"bytes,1,rep,name=to_create,json=toCreate,proto3" json:"to_create,omitempty"` + ToUpdate []*PageJobAccess `protobuf:"bytes,2,rep,name=to_update,json=toUpdate,proto3" json:"to_update,omitempty"` + ToDelete []*PageJobAccess `protobuf:"bytes,3,rep,name=to_delete,json=toDelete,proto3" json:"to_delete,omitempty"` unknownFields protoimpl.UnknownFields - - ToCreate []*PageJobAccess `protobuf:"bytes,1,rep,name=to_create,json=toCreate,proto3" json:"to_create,omitempty"` - ToUpdate []*PageJobAccess `protobuf:"bytes,2,rep,name=to_update,json=toUpdate,proto3" json:"to_update,omitempty"` - ToDelete []*PageJobAccess `protobuf:"bytes,3,rep,name=to_delete,json=toDelete,proto3" json:"to_delete,omitempty"` + sizeCache protoimpl.SizeCache } func (x *PageAccessJobsDiff) Reset() { @@ -454,13 +453,12 @@ func (x *PageAccessJobsDiff) GetToDelete() []*PageJobAccess { } type PageAccessUsersDiff struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + ToCreate []*PageUserAccess `protobuf:"bytes,1,rep,name=to_create,json=toCreate,proto3" json:"to_create,omitempty"` + ToUpdate []*PageUserAccess `protobuf:"bytes,2,rep,name=to_update,json=toUpdate,proto3" json:"to_update,omitempty"` + ToDelete []*PageUserAccess `protobuf:"bytes,3,rep,name=to_delete,json=toDelete,proto3" json:"to_delete,omitempty"` unknownFields protoimpl.UnknownFields - - ToCreate []*PageUserAccess `protobuf:"bytes,1,rep,name=to_create,json=toCreate,proto3" json:"to_create,omitempty"` - ToUpdate []*PageUserAccess `protobuf:"bytes,2,rep,name=to_update,json=toUpdate,proto3" json:"to_update,omitempty"` - ToDelete []*PageUserAccess `protobuf:"bytes,3,rep,name=to_delete,json=toDelete,proto3" json:"to_delete,omitempty"` + sizeCache protoimpl.SizeCache } func (x *PageAccessUsersDiff) Reset() { diff --git a/gen/go/proto/resources/wiki/page.pb.go b/gen/go/proto/resources/wiki/page.pb.go index f025437de..6f4021b5b 100644 --- a/gen/go/proto/resources/wiki/page.pb.go +++ b/gen/go/proto/resources/wiki/page.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.35.2 +// protoc-gen-go v1.36.0 // protoc v3.20.3 // source: resources/wiki/page.proto @@ -26,18 +26,17 @@ const ( ) type Page struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty" sql:"primary_key" alias:"id"` // @gotags: sql:"primary_key" alias:"id" + state protoimpl.MessageState `protogen:"open.v1"` + Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty" sql:"primary_key" alias:"id"` // @gotags: sql:"primary_key" alias:"id" // @sanitize: method=StripTags - Job string `protobuf:"bytes,2,opt,name=job,proto3" json:"job,omitempty"` - JobLabel *string `protobuf:"bytes,3,opt,name=job_label,json=jobLabel,proto3,oneof" json:"job_label,omitempty"` - ParentId *uint64 `protobuf:"varint,4,opt,name=parent_id,json=parentId,proto3,oneof" json:"parent_id,omitempty"` - Meta *PageMeta `protobuf:"bytes,5,opt,name=meta,proto3" json:"meta,omitempty"` - Content *content.Content `protobuf:"bytes,6,opt,name=content,proto3" json:"content,omitempty"` - Access *PageAccess `protobuf:"bytes,7,opt,name=access,proto3" json:"access,omitempty"` + Job string `protobuf:"bytes,2,opt,name=job,proto3" json:"job,omitempty"` + JobLabel *string `protobuf:"bytes,3,opt,name=job_label,json=jobLabel,proto3,oneof" json:"job_label,omitempty"` + ParentId *uint64 `protobuf:"varint,4,opt,name=parent_id,json=parentId,proto3,oneof" json:"parent_id,omitempty"` + Meta *PageMeta `protobuf:"bytes,5,opt,name=meta,proto3" json:"meta,omitempty"` + Content *content.Content `protobuf:"bytes,6,opt,name=content,proto3" json:"content,omitempty"` + Access *PageAccess `protobuf:"bytes,7,opt,name=access,proto3" json:"access,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *Page) Reset() { @@ -120,13 +119,10 @@ func (x *Page) GetAccess() *PageAccess { } type PageMeta struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - CreatedAt *timestamp.Timestamp `protobuf:"bytes,1,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` - UpdatedAt *timestamp.Timestamp `protobuf:"bytes,2,opt,name=updated_at,json=updatedAt,proto3,oneof" json:"updated_at,omitempty"` - DeletedAt *timestamp.Timestamp `protobuf:"bytes,3,opt,name=deleted_at,json=deletedAt,proto3,oneof" json:"deleted_at,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + CreatedAt *timestamp.Timestamp `protobuf:"bytes,1,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` + UpdatedAt *timestamp.Timestamp `protobuf:"bytes,2,opt,name=updated_at,json=updatedAt,proto3,oneof" json:"updated_at,omitempty"` + DeletedAt *timestamp.Timestamp `protobuf:"bytes,3,opt,name=deleted_at,json=deletedAt,proto3,oneof" json:"deleted_at,omitempty"` // @sanitize: method=StripTags Slug *string `protobuf:"bytes,4,opt,name=slug,proto3,oneof" json:"slug,omitempty"` // @sanitize @@ -137,9 +133,11 @@ type PageMeta struct { Creator *users.UserShort `protobuf:"bytes,8,opt,name=creator,proto3,oneof" json:"creator,omitempty" alias:"creator"` // @gotags: alias:"creator" ContentType content.ContentType `protobuf:"varint,9,opt,name=content_type,json=contentType,proto3,enum=resources.common.content.ContentType" json:"content_type,omitempty"` // @sanitize: method=StripTags - Tags []string `protobuf:"bytes,10,rep,name=tags,proto3" json:"tags,omitempty"` - Toc *bool `protobuf:"varint,11,opt,name=toc,proto3,oneof" json:"toc,omitempty"` - Public bool `protobuf:"varint,12,opt,name=public,proto3" json:"public,omitempty"` + Tags []string `protobuf:"bytes,10,rep,name=tags,proto3" json:"tags,omitempty"` + Toc *bool `protobuf:"varint,11,opt,name=toc,proto3,oneof" json:"toc,omitempty"` + Public bool `protobuf:"varint,12,opt,name=public,proto3" json:"public,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *PageMeta) Reset() { @@ -257,21 +255,20 @@ func (x *PageMeta) GetPublic() bool { } type PageShort struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty" sql:"primary_key" alias:"id"` // @gotags: sql:"primary_key" alias:"id" - Job string `protobuf:"bytes,2,opt,name=job,proto3" json:"job,omitempty"` - JobLabel *string `protobuf:"bytes,3,opt,name=job_label,json=jobLabel,proto3,oneof" json:"job_label,omitempty"` - ParentId *uint64 `protobuf:"varint,4,opt,name=parent_id,json=parentId,proto3,oneof" json:"parent_id,omitempty"` - DeletedAt *timestamp.Timestamp `protobuf:"bytes,5,opt,name=deleted_at,json=deletedAt,proto3,oneof" json:"deleted_at,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty" sql:"primary_key" alias:"id"` // @gotags: sql:"primary_key" alias:"id" + Job string `protobuf:"bytes,2,opt,name=job,proto3" json:"job,omitempty"` + JobLabel *string `protobuf:"bytes,3,opt,name=job_label,json=jobLabel,proto3,oneof" json:"job_label,omitempty"` + ParentId *uint64 `protobuf:"varint,4,opt,name=parent_id,json=parentId,proto3,oneof" json:"parent_id,omitempty"` + DeletedAt *timestamp.Timestamp `protobuf:"bytes,5,opt,name=deleted_at,json=deletedAt,proto3,oneof" json:"deleted_at,omitempty"` // @sanitize: method=StripTags - Slug *string `protobuf:"bytes,6,opt,name=slug,proto3,oneof" json:"slug,omitempty"` - Title string `protobuf:"bytes,7,opt,name=title,proto3" json:"title,omitempty"` - Description string `protobuf:"bytes,8,opt,name=description,proto3" json:"description,omitempty"` - Children []*PageShort `protobuf:"bytes,9,rep,name=children,proto3" json:"children,omitempty"` - RootInfo *PageRootInfo `protobuf:"bytes,10,opt,name=root_info,json=rootInfo,proto3,oneof" json:"root_info,omitempty"` + Slug *string `protobuf:"bytes,6,opt,name=slug,proto3,oneof" json:"slug,omitempty"` + Title string `protobuf:"bytes,7,opt,name=title,proto3" json:"title,omitempty"` + Description string `protobuf:"bytes,8,opt,name=description,proto3" json:"description,omitempty"` + Children []*PageShort `protobuf:"bytes,9,rep,name=children,proto3" json:"children,omitempty"` + RootInfo *PageRootInfo `protobuf:"bytes,10,opt,name=root_info,json=rootInfo,proto3,oneof" json:"root_info,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *PageShort) Reset() { @@ -375,11 +372,10 @@ func (x *PageShort) GetRootInfo() *PageRootInfo { } type PageRootInfo struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Logo *filestore.File `protobuf:"bytes,1,opt,name=logo,proto3,oneof" json:"logo,omitempty"` unknownFields protoimpl.UnknownFields - - Logo *filestore.File `protobuf:"bytes,1,opt,name=logo,proto3,oneof" json:"logo,omitempty"` + sizeCache protoimpl.SizeCache } func (x *PageRootInfo) Reset() { diff --git a/gen/go/proto/services/auth/auth.pb.go b/gen/go/proto/services/auth/auth.pb.go index 603ef35e6..18a04ff93 100644 --- a/gen/go/proto/services/auth/auth.pb.go +++ b/gen/go/proto/services/auth/auth.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.35.2 +// protoc-gen-go v1.36.0 // protoc v3.20.3 // source: services/auth/auth.proto @@ -25,13 +25,12 @@ const ( ) type CreateAccountRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + RegToken string `protobuf:"bytes,1,opt,name=reg_token,json=regToken,proto3" json:"reg_token,omitempty"` + Username string `protobuf:"bytes,2,opt,name=username,proto3" json:"username,omitempty"` + Password string `protobuf:"bytes,3,opt,name=password,proto3" json:"password,omitempty"` unknownFields protoimpl.UnknownFields - - RegToken string `protobuf:"bytes,1,opt,name=reg_token,json=regToken,proto3" json:"reg_token,omitempty"` - Username string `protobuf:"bytes,2,opt,name=username,proto3" json:"username,omitempty"` - Password string `protobuf:"bytes,3,opt,name=password,proto3" json:"password,omitempty"` + sizeCache protoimpl.SizeCache } func (x *CreateAccountRequest) Reset() { @@ -86,11 +85,10 @@ func (x *CreateAccountRequest) GetPassword() string { } type CreateAccountResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + AccountId uint64 `protobuf:"varint,1,opt,name=account_id,json=accountId,proto3" json:"account_id,omitempty"` unknownFields protoimpl.UnknownFields - - AccountId uint64 `protobuf:"varint,1,opt,name=account_id,json=accountId,proto3" json:"account_id,omitempty"` + sizeCache protoimpl.SizeCache } func (x *CreateAccountResponse) Reset() { @@ -131,12 +129,11 @@ func (x *CreateAccountResponse) GetAccountId() uint64 { } type LoginRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"` + Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"` unknownFields protoimpl.UnknownFields - - Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"` - Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"` + sizeCache protoimpl.SizeCache } func (x *LoginRequest) Reset() { @@ -184,13 +181,12 @@ func (x *LoginRequest) GetPassword() string { } type LoginResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Expires *timestamp.Timestamp `protobuf:"bytes,1,opt,name=expires,proto3" json:"expires,omitempty"` + AccountId uint64 `protobuf:"varint,2,opt,name=account_id,json=accountId,proto3" json:"account_id,omitempty"` + Char *ChooseCharacterResponse `protobuf:"bytes,3,opt,name=char,proto3,oneof" json:"char,omitempty"` unknownFields protoimpl.UnknownFields - - Expires *timestamp.Timestamp `protobuf:"bytes,1,opt,name=expires,proto3" json:"expires,omitempty"` - AccountId uint64 `protobuf:"varint,2,opt,name=account_id,json=accountId,proto3" json:"account_id,omitempty"` - Char *ChooseCharacterResponse `protobuf:"bytes,3,opt,name=char,proto3,oneof" json:"char,omitempty"` + sizeCache protoimpl.SizeCache } func (x *LoginResponse) Reset() { @@ -245,12 +241,11 @@ func (x *LoginResponse) GetChar() *ChooseCharacterResponse { } type ChangePasswordRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Current string `protobuf:"bytes,1,opt,name=current,proto3" json:"current,omitempty"` + New string `protobuf:"bytes,2,opt,name=new,proto3" json:"new,omitempty"` unknownFields protoimpl.UnknownFields - - Current string `protobuf:"bytes,1,opt,name=current,proto3" json:"current,omitempty"` - New string `protobuf:"bytes,2,opt,name=new,proto3" json:"new,omitempty"` + sizeCache protoimpl.SizeCache } func (x *ChangePasswordRequest) Reset() { @@ -298,11 +293,10 @@ func (x *ChangePasswordRequest) GetNew() string { } type ChangePasswordResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Expires *timestamp.Timestamp `protobuf:"bytes,1,opt,name=expires,proto3" json:"expires,omitempty"` unknownFields protoimpl.UnknownFields - - Expires *timestamp.Timestamp `protobuf:"bytes,1,opt,name=expires,proto3" json:"expires,omitempty"` + sizeCache protoimpl.SizeCache } func (x *ChangePasswordResponse) Reset() { @@ -343,12 +337,11 @@ func (x *ChangePasswordResponse) GetExpires() *timestamp.Timestamp { } type ChangeUsernameRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Current string `protobuf:"bytes,1,opt,name=current,proto3" json:"current,omitempty"` + New string `protobuf:"bytes,2,opt,name=new,proto3" json:"new,omitempty"` unknownFields protoimpl.UnknownFields - - Current string `protobuf:"bytes,1,opt,name=current,proto3" json:"current,omitempty"` - New string `protobuf:"bytes,2,opt,name=new,proto3" json:"new,omitempty"` + sizeCache protoimpl.SizeCache } func (x *ChangeUsernameRequest) Reset() { @@ -396,9 +389,9 @@ func (x *ChangeUsernameRequest) GetNew() string { } type ChangeUsernameResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *ChangeUsernameResponse) Reset() { @@ -432,12 +425,11 @@ func (*ChangeUsernameResponse) Descriptor() ([]byte, []int) { } type ForgotPasswordRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + RegToken string `protobuf:"bytes,1,opt,name=reg_token,json=regToken,proto3" json:"reg_token,omitempty"` + New string `protobuf:"bytes,2,opt,name=new,proto3" json:"new,omitempty"` unknownFields protoimpl.UnknownFields - - RegToken string `protobuf:"bytes,1,opt,name=reg_token,json=regToken,proto3" json:"reg_token,omitempty"` - New string `protobuf:"bytes,2,opt,name=new,proto3" json:"new,omitempty"` + sizeCache protoimpl.SizeCache } func (x *ForgotPasswordRequest) Reset() { @@ -485,9 +477,9 @@ func (x *ForgotPasswordRequest) GetNew() string { } type ForgotPasswordResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *ForgotPasswordResponse) Reset() { @@ -521,9 +513,9 @@ func (*ForgotPasswordResponse) Descriptor() ([]byte, []int) { } type GetAccountInfoRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *GetAccountInfoRequest) Reset() { @@ -557,13 +549,12 @@ func (*GetAccountInfoRequest) Descriptor() ([]byte, []int) { } type GetAccountInfoResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - + state protoimpl.MessageState `protogen:"open.v1"` Account *accounts.Account `protobuf:"bytes,1,opt,name=account,proto3" json:"account,omitempty"` Oauth2Providers []*accounts.OAuth2Provider `protobuf:"bytes,2,rep,name=oauth2_providers,json=oauth2Providers,proto3" json:"oauth2_providers,omitempty"` Oauth2Connections []*accounts.OAuth2Account `protobuf:"bytes,3,rep,name=oauth2_connections,json=oauth2Connections,proto3" json:"oauth2_connections,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *GetAccountInfoResponse) Reset() { @@ -618,9 +609,9 @@ func (x *GetAccountInfoResponse) GetOauth2Connections() []*accounts.OAuth2Accoun } type GetCharactersRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *GetCharactersRequest) Reset() { @@ -654,11 +645,10 @@ func (*GetCharactersRequest) Descriptor() ([]byte, []int) { } type GetCharactersResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Chars []*accounts.Character `protobuf:"bytes,1,rep,name=chars,proto3" json:"chars,omitempty"` unknownFields protoimpl.UnknownFields - - Chars []*accounts.Character `protobuf:"bytes,1,rep,name=chars,proto3" json:"chars,omitempty"` + sizeCache protoimpl.SizeCache } func (x *GetCharactersResponse) Reset() { @@ -699,11 +689,10 @@ func (x *GetCharactersResponse) GetChars() []*accounts.Character { } type ChooseCharacterRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + CharId int32 `protobuf:"varint,1,opt,name=char_id,json=charId,proto3" json:"char_id,omitempty"` unknownFields protoimpl.UnknownFields - - CharId int32 `protobuf:"varint,1,opt,name=char_id,json=charId,proto3" json:"char_id,omitempty"` + sizeCache protoimpl.SizeCache } func (x *ChooseCharacterRequest) Reset() { @@ -744,15 +733,14 @@ func (x *ChooseCharacterRequest) GetCharId() int32 { } type ChooseCharacterResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Expires *timestamp.Timestamp `protobuf:"bytes,1,opt,name=expires,proto3" json:"expires,omitempty"` + Permissions []string `protobuf:"bytes,2,rep,name=permissions,proto3" json:"permissions,omitempty"` + JobProps *users.JobProps `protobuf:"bytes,3,opt,name=job_props,json=jobProps,proto3" json:"job_props,omitempty"` + Char *users.User `protobuf:"bytes,4,opt,name=char,proto3" json:"char,omitempty" alias:"user"` // @gotags: alias:"user" + Username string `protobuf:"bytes,5,opt,name=username,proto3" json:"username,omitempty"` unknownFields protoimpl.UnknownFields - - Expires *timestamp.Timestamp `protobuf:"bytes,1,opt,name=expires,proto3" json:"expires,omitempty"` - Permissions []string `protobuf:"bytes,2,rep,name=permissions,proto3" json:"permissions,omitempty"` - JobProps *users.JobProps `protobuf:"bytes,3,opt,name=job_props,json=jobProps,proto3" json:"job_props,omitempty"` - Char *users.User `protobuf:"bytes,4,opt,name=char,proto3" json:"char,omitempty" alias:"user"` // @gotags: alias:"user" - Username string `protobuf:"bytes,5,opt,name=username,proto3" json:"username,omitempty"` + sizeCache protoimpl.SizeCache } func (x *ChooseCharacterResponse) Reset() { @@ -821,9 +809,9 @@ func (x *ChooseCharacterResponse) GetUsername() string { } type LogoutRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *LogoutRequest) Reset() { @@ -857,11 +845,10 @@ func (*LogoutRequest) Descriptor() ([]byte, []int) { } type LogoutResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"` unknownFields protoimpl.UnknownFields - - Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"` + sizeCache protoimpl.SizeCache } func (x *LogoutResponse) Reset() { @@ -902,11 +889,10 @@ func (x *LogoutResponse) GetSuccess() bool { } type DeleteOAuth2ConnectionRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Provider string `protobuf:"bytes,1,opt,name=provider,proto3" json:"provider,omitempty"` unknownFields protoimpl.UnknownFields - - Provider string `protobuf:"bytes,1,opt,name=provider,proto3" json:"provider,omitempty"` + sizeCache protoimpl.SizeCache } func (x *DeleteOAuth2ConnectionRequest) Reset() { @@ -947,11 +933,10 @@ func (x *DeleteOAuth2ConnectionRequest) GetProvider() string { } type DeleteOAuth2ConnectionResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"` unknownFields protoimpl.UnknownFields - - Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"` + sizeCache protoimpl.SizeCache } func (x *DeleteOAuth2ConnectionResponse) Reset() { @@ -992,12 +977,11 @@ func (x *DeleteOAuth2ConnectionResponse) GetSuccess() bool { } type SetSuperUserModeRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Superuser bool `protobuf:"varint,1,opt,name=superuser,proto3" json:"superuser,omitempty"` + Job *string `protobuf:"bytes,2,opt,name=job,proto3,oneof" json:"job,omitempty"` unknownFields protoimpl.UnknownFields - - Superuser bool `protobuf:"varint,1,opt,name=superuser,proto3" json:"superuser,omitempty"` - Job *string `protobuf:"bytes,2,opt,name=job,proto3,oneof" json:"job,omitempty"` + sizeCache protoimpl.SizeCache } func (x *SetSuperUserModeRequest) Reset() { @@ -1045,13 +1029,12 @@ func (x *SetSuperUserModeRequest) GetJob() string { } type SetSuperUserModeResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Expires *timestamp.Timestamp `protobuf:"bytes,1,opt,name=expires,proto3" json:"expires,omitempty"` + JobProps *users.JobProps `protobuf:"bytes,2,opt,name=job_props,json=jobProps,proto3,oneof" json:"job_props,omitempty"` + Char *users.User `protobuf:"bytes,3,opt,name=char,proto3" json:"char,omitempty"` unknownFields protoimpl.UnknownFields - - Expires *timestamp.Timestamp `protobuf:"bytes,1,opt,name=expires,proto3" json:"expires,omitempty"` - JobProps *users.JobProps `protobuf:"bytes,2,opt,name=job_props,json=jobProps,proto3,oneof" json:"job_props,omitempty"` - Char *users.User `protobuf:"bytes,3,opt,name=char,proto3" json:"char,omitempty"` + sizeCache protoimpl.SizeCache } func (x *SetSuperUserModeResponse) Reset() { diff --git a/gen/go/proto/services/auth/auth_grpc.pb.go b/gen/go/proto/services/auth/auth_grpc.pb.go index b59e072e8..b78f823d3 100644 --- a/gen/go/proto/services/auth/auth_grpc.pb.go +++ b/gen/go/proto/services/auth/auth_grpc.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: -// - protoc-gen-go-grpc v1.3.0 +// - protoc-gen-go-grpc v1.5.1 // - protoc v3.20.3 // source: services/auth/auth.proto @@ -15,8 +15,8 @@ import ( // This is a compile-time assertion to ensure that this generated file // is compatible with the grpc package it is being compiled against. -// Requires gRPC-Go v1.32.0 or later. -const _ = grpc.SupportPackageIsVersion7 +// Requires gRPC-Go v1.64.0 or later. +const _ = grpc.SupportPackageIsVersion9 const ( AuthService_Login_FullMethodName = "/services.auth.AuthService/Login" @@ -59,8 +59,9 @@ func NewAuthServiceClient(cc grpc.ClientConnInterface) AuthServiceClient { } func (c *authServiceClient) Login(ctx context.Context, in *LoginRequest, opts ...grpc.CallOption) (*LoginResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(LoginResponse) - err := c.cc.Invoke(ctx, AuthService_Login_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, AuthService_Login_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -68,8 +69,9 @@ func (c *authServiceClient) Login(ctx context.Context, in *LoginRequest, opts .. } func (c *authServiceClient) Logout(ctx context.Context, in *LogoutRequest, opts ...grpc.CallOption) (*LogoutResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(LogoutResponse) - err := c.cc.Invoke(ctx, AuthService_Logout_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, AuthService_Logout_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -77,8 +79,9 @@ func (c *authServiceClient) Logout(ctx context.Context, in *LogoutRequest, opts } func (c *authServiceClient) CreateAccount(ctx context.Context, in *CreateAccountRequest, opts ...grpc.CallOption) (*CreateAccountResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(CreateAccountResponse) - err := c.cc.Invoke(ctx, AuthService_CreateAccount_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, AuthService_CreateAccount_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -86,8 +89,9 @@ func (c *authServiceClient) CreateAccount(ctx context.Context, in *CreateAccount } func (c *authServiceClient) ChangeUsername(ctx context.Context, in *ChangeUsernameRequest, opts ...grpc.CallOption) (*ChangeUsernameResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(ChangeUsernameResponse) - err := c.cc.Invoke(ctx, AuthService_ChangeUsername_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, AuthService_ChangeUsername_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -95,8 +99,9 @@ func (c *authServiceClient) ChangeUsername(ctx context.Context, in *ChangeUserna } func (c *authServiceClient) ChangePassword(ctx context.Context, in *ChangePasswordRequest, opts ...grpc.CallOption) (*ChangePasswordResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(ChangePasswordResponse) - err := c.cc.Invoke(ctx, AuthService_ChangePassword_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, AuthService_ChangePassword_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -104,8 +109,9 @@ func (c *authServiceClient) ChangePassword(ctx context.Context, in *ChangePasswo } func (c *authServiceClient) ForgotPassword(ctx context.Context, in *ForgotPasswordRequest, opts ...grpc.CallOption) (*ForgotPasswordResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(ForgotPasswordResponse) - err := c.cc.Invoke(ctx, AuthService_ForgotPassword_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, AuthService_ForgotPassword_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -113,8 +119,9 @@ func (c *authServiceClient) ForgotPassword(ctx context.Context, in *ForgotPasswo } func (c *authServiceClient) GetCharacters(ctx context.Context, in *GetCharactersRequest, opts ...grpc.CallOption) (*GetCharactersResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(GetCharactersResponse) - err := c.cc.Invoke(ctx, AuthService_GetCharacters_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, AuthService_GetCharacters_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -122,8 +129,9 @@ func (c *authServiceClient) GetCharacters(ctx context.Context, in *GetCharacters } func (c *authServiceClient) ChooseCharacter(ctx context.Context, in *ChooseCharacterRequest, opts ...grpc.CallOption) (*ChooseCharacterResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(ChooseCharacterResponse) - err := c.cc.Invoke(ctx, AuthService_ChooseCharacter_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, AuthService_ChooseCharacter_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -131,8 +139,9 @@ func (c *authServiceClient) ChooseCharacter(ctx context.Context, in *ChooseChara } func (c *authServiceClient) GetAccountInfo(ctx context.Context, in *GetAccountInfoRequest, opts ...grpc.CallOption) (*GetAccountInfoResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(GetAccountInfoResponse) - err := c.cc.Invoke(ctx, AuthService_GetAccountInfo_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, AuthService_GetAccountInfo_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -140,8 +149,9 @@ func (c *authServiceClient) GetAccountInfo(ctx context.Context, in *GetAccountIn } func (c *authServiceClient) DeleteOAuth2Connection(ctx context.Context, in *DeleteOAuth2ConnectionRequest, opts ...grpc.CallOption) (*DeleteOAuth2ConnectionResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(DeleteOAuth2ConnectionResponse) - err := c.cc.Invoke(ctx, AuthService_DeleteOAuth2Connection_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, AuthService_DeleteOAuth2Connection_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -149,8 +159,9 @@ func (c *authServiceClient) DeleteOAuth2Connection(ctx context.Context, in *Dele } func (c *authServiceClient) SetSuperUserMode(ctx context.Context, in *SetSuperUserModeRequest, opts ...grpc.CallOption) (*SetSuperUserModeResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(SetSuperUserModeResponse) - err := c.cc.Invoke(ctx, AuthService_SetSuperUserMode_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, AuthService_SetSuperUserMode_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -159,7 +170,7 @@ func (c *authServiceClient) SetSuperUserMode(ctx context.Context, in *SetSuperUs // AuthServiceServer is the server API for AuthService service. // All implementations must embed UnimplementedAuthServiceServer -// for forward compatibility +// for forward compatibility. type AuthServiceServer interface { Login(context.Context, *LoginRequest) (*LoginResponse, error) Logout(context.Context, *LogoutRequest) (*LogoutResponse, error) @@ -176,9 +187,12 @@ type AuthServiceServer interface { mustEmbedUnimplementedAuthServiceServer() } -// UnimplementedAuthServiceServer must be embedded to have forward compatible implementations. -type UnimplementedAuthServiceServer struct { -} +// UnimplementedAuthServiceServer must be embedded to have +// forward compatible implementations. +// +// NOTE: this should be embedded by value instead of pointer to avoid a nil +// pointer dereference when methods are called. +type UnimplementedAuthServiceServer struct{} func (UnimplementedAuthServiceServer) Login(context.Context, *LoginRequest) (*LoginResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method Login not implemented") @@ -214,6 +228,7 @@ func (UnimplementedAuthServiceServer) SetSuperUserMode(context.Context, *SetSupe return nil, status.Errorf(codes.Unimplemented, "method SetSuperUserMode not implemented") } func (UnimplementedAuthServiceServer) mustEmbedUnimplementedAuthServiceServer() {} +func (UnimplementedAuthServiceServer) testEmbeddedByValue() {} // UnsafeAuthServiceServer may be embedded to opt out of forward compatibility for this service. // Use of this interface is not recommended, as added methods to AuthServiceServer will @@ -223,6 +238,13 @@ type UnsafeAuthServiceServer interface { } func RegisterAuthServiceServer(s grpc.ServiceRegistrar, srv AuthServiceServer) { + // If the following call pancis, it indicates UnimplementedAuthServiceServer was + // embedded by pointer and is nil. This will cause panics if an + // unimplemented method is ever invoked, so we test this at initialization + // time to prevent it from happening at runtime later due to I/O. + if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { + t.testEmbeddedByValue() + } s.RegisterService(&AuthService_ServiceDesc, srv) } diff --git a/gen/go/proto/services/calendar/calendar.pb.go b/gen/go/proto/services/calendar/calendar.pb.go index 32489c5b6..59a0719cd 100644 --- a/gen/go/proto/services/calendar/calendar.pb.go +++ b/gen/go/proto/services/calendar/calendar.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.35.2 +// protoc-gen-go v1.36.0 // protoc v3.20.3 // source: services/calendar/calendar.proto @@ -25,14 +25,13 @@ const ( ) type ListCalendarsRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - + state protoimpl.MessageState `protogen:"open.v1"` Pagination *database.PaginationRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"` OnlyPublic bool `protobuf:"varint,2,opt,name=only_public,json=onlyPublic,proto3" json:"only_public,omitempty"` MinAccessLevel *calendar.AccessLevel `protobuf:"varint,3,opt,name=min_access_level,json=minAccessLevel,proto3,enum=resources.calendar.AccessLevel,oneof" json:"min_access_level,omitempty"` After *timestamp.Timestamp `protobuf:"bytes,4,opt,name=after,proto3,oneof" json:"after,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *ListCalendarsRequest) Reset() { @@ -94,12 +93,11 @@ func (x *ListCalendarsRequest) GetAfter() *timestamp.Timestamp { } type ListCalendarsResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Pagination *database.PaginationResponse `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"` + Calendars []*calendar.Calendar `protobuf:"bytes,2,rep,name=calendars,proto3" json:"calendars,omitempty"` unknownFields protoimpl.UnknownFields - - Pagination *database.PaginationResponse `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"` - Calendars []*calendar.Calendar `protobuf:"bytes,2,rep,name=calendars,proto3" json:"calendars,omitempty"` + sizeCache protoimpl.SizeCache } func (x *ListCalendarsResponse) Reset() { @@ -147,11 +145,10 @@ func (x *ListCalendarsResponse) GetCalendars() []*calendar.Calendar { } type GetCalendarRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + CalendarId uint64 `protobuf:"varint,1,opt,name=calendar_id,json=calendarId,proto3" json:"calendar_id,omitempty"` unknownFields protoimpl.UnknownFields - - CalendarId uint64 `protobuf:"varint,1,opt,name=calendar_id,json=calendarId,proto3" json:"calendar_id,omitempty"` + sizeCache protoimpl.SizeCache } func (x *GetCalendarRequest) Reset() { @@ -192,11 +189,10 @@ func (x *GetCalendarRequest) GetCalendarId() uint64 { } type GetCalendarResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Calendar *calendar.Calendar `protobuf:"bytes,1,opt,name=calendar,proto3" json:"calendar,omitempty"` unknownFields protoimpl.UnknownFields - - Calendar *calendar.Calendar `protobuf:"bytes,1,opt,name=calendar,proto3" json:"calendar,omitempty"` + sizeCache protoimpl.SizeCache } func (x *GetCalendarResponse) Reset() { @@ -237,11 +233,10 @@ func (x *GetCalendarResponse) GetCalendar() *calendar.Calendar { } type CreateOrUpdateCalendarRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Calendar *calendar.Calendar `protobuf:"bytes,1,opt,name=calendar,proto3" json:"calendar,omitempty"` unknownFields protoimpl.UnknownFields - - Calendar *calendar.Calendar `protobuf:"bytes,1,opt,name=calendar,proto3" json:"calendar,omitempty"` + sizeCache protoimpl.SizeCache } func (x *CreateOrUpdateCalendarRequest) Reset() { @@ -282,11 +277,10 @@ func (x *CreateOrUpdateCalendarRequest) GetCalendar() *calendar.Calendar { } type CreateOrUpdateCalendarResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Calendar *calendar.Calendar `protobuf:"bytes,1,opt,name=calendar,proto3" json:"calendar,omitempty"` unknownFields protoimpl.UnknownFields - - Calendar *calendar.Calendar `protobuf:"bytes,1,opt,name=calendar,proto3" json:"calendar,omitempty"` + sizeCache protoimpl.SizeCache } func (x *CreateOrUpdateCalendarResponse) Reset() { @@ -327,11 +321,10 @@ func (x *CreateOrUpdateCalendarResponse) GetCalendar() *calendar.Calendar { } type DeleteCalendarRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + CalendarId uint64 `protobuf:"varint,1,opt,name=calendar_id,json=calendarId,proto3" json:"calendar_id,omitempty"` unknownFields protoimpl.UnknownFields - - CalendarId uint64 `protobuf:"varint,1,opt,name=calendar_id,json=calendarId,proto3" json:"calendar_id,omitempty"` + sizeCache protoimpl.SizeCache } func (x *DeleteCalendarRequest) Reset() { @@ -372,9 +365,9 @@ func (x *DeleteCalendarRequest) GetCalendarId() uint64 { } type DeleteCalendarResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *DeleteCalendarResponse) Reset() { @@ -408,15 +401,14 @@ func (*DeleteCalendarResponse) Descriptor() ([]byte, []int) { } type ListCalendarEntriesRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Year int32 `protobuf:"varint,1,opt,name=year,proto3" json:"year,omitempty"` + Month int32 `protobuf:"varint,2,opt,name=month,proto3" json:"month,omitempty"` + CalendarIds []uint64 `protobuf:"varint,3,rep,packed,name=calendar_ids,json=calendarIds,proto3" json:"calendar_ids,omitempty"` + ShowHidden *bool `protobuf:"varint,4,opt,name=show_hidden,json=showHidden,proto3,oneof" json:"show_hidden,omitempty"` + After *timestamp.Timestamp `protobuf:"bytes,5,opt,name=after,proto3,oneof" json:"after,omitempty"` unknownFields protoimpl.UnknownFields - - Year int32 `protobuf:"varint,1,opt,name=year,proto3" json:"year,omitempty"` - Month int32 `protobuf:"varint,2,opt,name=month,proto3" json:"month,omitempty"` - CalendarIds []uint64 `protobuf:"varint,3,rep,packed,name=calendar_ids,json=calendarIds,proto3" json:"calendar_ids,omitempty"` - ShowHidden *bool `protobuf:"varint,4,opt,name=show_hidden,json=showHidden,proto3,oneof" json:"show_hidden,omitempty"` - After *timestamp.Timestamp `protobuf:"bytes,5,opt,name=after,proto3,oneof" json:"after,omitempty"` + sizeCache protoimpl.SizeCache } func (x *ListCalendarEntriesRequest) Reset() { @@ -485,11 +477,10 @@ func (x *ListCalendarEntriesRequest) GetAfter() *timestamp.Timestamp { } type ListCalendarEntriesResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Entries []*calendar.CalendarEntry `protobuf:"bytes,1,rep,name=entries,proto3" json:"entries,omitempty"` unknownFields protoimpl.UnknownFields - - Entries []*calendar.CalendarEntry `protobuf:"bytes,1,rep,name=entries,proto3" json:"entries,omitempty"` + sizeCache protoimpl.SizeCache } func (x *ListCalendarEntriesResponse) Reset() { @@ -530,11 +521,10 @@ func (x *ListCalendarEntriesResponse) GetEntries() []*calendar.CalendarEntry { } type GetUpcomingEntriesRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Seconds int32 `protobuf:"varint,1,opt,name=seconds,proto3" json:"seconds,omitempty"` unknownFields protoimpl.UnknownFields - - Seconds int32 `protobuf:"varint,1,opt,name=seconds,proto3" json:"seconds,omitempty"` + sizeCache protoimpl.SizeCache } func (x *GetUpcomingEntriesRequest) Reset() { @@ -575,11 +565,10 @@ func (x *GetUpcomingEntriesRequest) GetSeconds() int32 { } type GetUpcomingEntriesResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Entries []*calendar.CalendarEntry `protobuf:"bytes,1,rep,name=entries,proto3" json:"entries,omitempty"` unknownFields protoimpl.UnknownFields - - Entries []*calendar.CalendarEntry `protobuf:"bytes,1,rep,name=entries,proto3" json:"entries,omitempty"` + sizeCache protoimpl.SizeCache } func (x *GetUpcomingEntriesResponse) Reset() { @@ -620,11 +609,10 @@ func (x *GetUpcomingEntriesResponse) GetEntries() []*calendar.CalendarEntry { } type GetCalendarEntryRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + EntryId uint64 `protobuf:"varint,1,opt,name=entry_id,json=entryId,proto3" json:"entry_id,omitempty"` unknownFields protoimpl.UnknownFields - - EntryId uint64 `protobuf:"varint,1,opt,name=entry_id,json=entryId,proto3" json:"entry_id,omitempty"` + sizeCache protoimpl.SizeCache } func (x *GetCalendarEntryRequest) Reset() { @@ -665,11 +653,10 @@ func (x *GetCalendarEntryRequest) GetEntryId() uint64 { } type GetCalendarEntryResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Entry *calendar.CalendarEntry `protobuf:"bytes,1,opt,name=entry,proto3" json:"entry,omitempty"` unknownFields protoimpl.UnknownFields - - Entry *calendar.CalendarEntry `protobuf:"bytes,1,opt,name=entry,proto3" json:"entry,omitempty"` + sizeCache protoimpl.SizeCache } func (x *GetCalendarEntryResponse) Reset() { @@ -710,12 +697,11 @@ func (x *GetCalendarEntryResponse) GetEntry() *calendar.CalendarEntry { } type CreateOrUpdateCalendarEntryRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Entry *calendar.CalendarEntry `protobuf:"bytes,1,opt,name=entry,proto3" json:"entry,omitempty"` + UserIds []int32 `protobuf:"varint,2,rep,packed,name=user_ids,json=userIds,proto3" json:"user_ids,omitempty"` unknownFields protoimpl.UnknownFields - - Entry *calendar.CalendarEntry `protobuf:"bytes,1,opt,name=entry,proto3" json:"entry,omitempty"` - UserIds []int32 `protobuf:"varint,2,rep,packed,name=user_ids,json=userIds,proto3" json:"user_ids,omitempty"` + sizeCache protoimpl.SizeCache } func (x *CreateOrUpdateCalendarEntryRequest) Reset() { @@ -763,11 +749,10 @@ func (x *CreateOrUpdateCalendarEntryRequest) GetUserIds() []int32 { } type CreateOrUpdateCalendarEntryResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Entry *calendar.CalendarEntry `protobuf:"bytes,1,opt,name=entry,proto3" json:"entry,omitempty"` unknownFields protoimpl.UnknownFields - - Entry *calendar.CalendarEntry `protobuf:"bytes,1,opt,name=entry,proto3" json:"entry,omitempty"` + sizeCache protoimpl.SizeCache } func (x *CreateOrUpdateCalendarEntryResponse) Reset() { @@ -808,11 +793,10 @@ func (x *CreateOrUpdateCalendarEntryResponse) GetEntry() *calendar.CalendarEntry } type DeleteCalendarEntryRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + EntryId uint64 `protobuf:"varint,1,opt,name=entry_id,json=entryId,proto3" json:"entry_id,omitempty"` unknownFields protoimpl.UnknownFields - - EntryId uint64 `protobuf:"varint,1,opt,name=entry_id,json=entryId,proto3" json:"entry_id,omitempty"` + sizeCache protoimpl.SizeCache } func (x *DeleteCalendarEntryRequest) Reset() { @@ -853,9 +837,9 @@ func (x *DeleteCalendarEntryRequest) GetEntryId() uint64 { } type DeleteCalendarEntryResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *DeleteCalendarEntryResponse) Reset() { @@ -889,12 +873,11 @@ func (*DeleteCalendarEntryResponse) Descriptor() ([]byte, []int) { } type ShareCalendarEntryRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + EntryId uint64 `protobuf:"varint,1,opt,name=entry_id,json=entryId,proto3" json:"entry_id,omitempty"` + UserIds []int32 `protobuf:"varint,2,rep,packed,name=user_ids,json=userIds,proto3" json:"user_ids,omitempty"` unknownFields protoimpl.UnknownFields - - EntryId uint64 `protobuf:"varint,1,opt,name=entry_id,json=entryId,proto3" json:"entry_id,omitempty"` - UserIds []int32 `protobuf:"varint,2,rep,packed,name=user_ids,json=userIds,proto3" json:"user_ids,omitempty"` + sizeCache protoimpl.SizeCache } func (x *ShareCalendarEntryRequest) Reset() { @@ -942,9 +925,9 @@ func (x *ShareCalendarEntryRequest) GetUserIds() []int32 { } type ShareCalendarEntryResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *ShareCalendarEntryResponse) Reset() { @@ -978,12 +961,11 @@ func (*ShareCalendarEntryResponse) Descriptor() ([]byte, []int) { } type ListCalendarEntryRSVPRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Pagination *database.PaginationRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"` + EntryId uint64 `protobuf:"varint,2,opt,name=entry_id,json=entryId,proto3" json:"entry_id,omitempty"` unknownFields protoimpl.UnknownFields - - Pagination *database.PaginationRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"` - EntryId uint64 `protobuf:"varint,2,opt,name=entry_id,json=entryId,proto3" json:"entry_id,omitempty"` + sizeCache protoimpl.SizeCache } func (x *ListCalendarEntryRSVPRequest) Reset() { @@ -1031,12 +1013,11 @@ func (x *ListCalendarEntryRSVPRequest) GetEntryId() uint64 { } type ListCalendarEntryRSVPResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Pagination *database.PaginationResponse `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"` + Entries []*calendar.CalendarEntryRSVP `protobuf:"bytes,2,rep,name=entries,proto3" json:"entries,omitempty"` unknownFields protoimpl.UnknownFields - - Pagination *database.PaginationResponse `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"` - Entries []*calendar.CalendarEntryRSVP `protobuf:"bytes,2,rep,name=entries,proto3" json:"entries,omitempty"` + sizeCache protoimpl.SizeCache } func (x *ListCalendarEntryRSVPResponse) Reset() { @@ -1084,13 +1065,12 @@ func (x *ListCalendarEntryRSVPResponse) GetEntries() []*calendar.CalendarEntryRS } type RSVPCalendarEntryRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Entry *calendar.CalendarEntryRSVP `protobuf:"bytes,1,opt,name=entry,proto3" json:"entry,omitempty"` + Subscribe bool `protobuf:"varint,2,opt,name=subscribe,proto3" json:"subscribe,omitempty"` + Remove *bool `protobuf:"varint,3,opt,name=remove,proto3,oneof" json:"remove,omitempty"` unknownFields protoimpl.UnknownFields - - Entry *calendar.CalendarEntryRSVP `protobuf:"bytes,1,opt,name=entry,proto3" json:"entry,omitempty"` - Subscribe bool `protobuf:"varint,2,opt,name=subscribe,proto3" json:"subscribe,omitempty"` - Remove *bool `protobuf:"varint,3,opt,name=remove,proto3,oneof" json:"remove,omitempty"` + sizeCache protoimpl.SizeCache } func (x *RSVPCalendarEntryRequest) Reset() { @@ -1145,11 +1125,10 @@ func (x *RSVPCalendarEntryRequest) GetRemove() bool { } type RSVPCalendarEntryResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Entry *calendar.CalendarEntryRSVP `protobuf:"bytes,1,opt,name=entry,proto3,oneof" json:"entry,omitempty"` unknownFields protoimpl.UnknownFields - - Entry *calendar.CalendarEntryRSVP `protobuf:"bytes,1,opt,name=entry,proto3,oneof" json:"entry,omitempty"` + sizeCache protoimpl.SizeCache } func (x *RSVPCalendarEntryResponse) Reset() { @@ -1190,11 +1169,10 @@ func (x *RSVPCalendarEntryResponse) GetEntry() *calendar.CalendarEntryRSVP { } type ListSubscriptionsRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Pagination *database.PaginationRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"` unknownFields protoimpl.UnknownFields - - Pagination *database.PaginationRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"` + sizeCache protoimpl.SizeCache } func (x *ListSubscriptionsRequest) Reset() { @@ -1235,12 +1213,11 @@ func (x *ListSubscriptionsRequest) GetPagination() *database.PaginationRequest { } type ListSubscriptionsResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Pagination *database.PaginationResponse `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"` + Subs []*calendar.CalendarSub `protobuf:"bytes,2,rep,name=subs,proto3" json:"subs,omitempty"` unknownFields protoimpl.UnknownFields - - Pagination *database.PaginationResponse `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"` - Subs []*calendar.CalendarSub `protobuf:"bytes,2,rep,name=subs,proto3" json:"subs,omitempty"` + sizeCache protoimpl.SizeCache } func (x *ListSubscriptionsResponse) Reset() { @@ -1288,12 +1265,11 @@ func (x *ListSubscriptionsResponse) GetSubs() []*calendar.CalendarSub { } type SubscribeToCalendarRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Sub *calendar.CalendarSub `protobuf:"bytes,1,opt,name=sub,proto3" json:"sub,omitempty"` + Delete bool `protobuf:"varint,2,opt,name=delete,proto3" json:"delete,omitempty"` unknownFields protoimpl.UnknownFields - - Sub *calendar.CalendarSub `protobuf:"bytes,1,opt,name=sub,proto3" json:"sub,omitempty"` - Delete bool `protobuf:"varint,2,opt,name=delete,proto3" json:"delete,omitempty"` + sizeCache protoimpl.SizeCache } func (x *SubscribeToCalendarRequest) Reset() { @@ -1341,11 +1317,10 @@ func (x *SubscribeToCalendarRequest) GetDelete() bool { } type SubscribeToCalendarResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Sub *calendar.CalendarSub `protobuf:"bytes,1,opt,name=sub,proto3" json:"sub,omitempty"` unknownFields protoimpl.UnknownFields - - Sub *calendar.CalendarSub `protobuf:"bytes,1,opt,name=sub,proto3" json:"sub,omitempty"` + sizeCache protoimpl.SizeCache } func (x *SubscribeToCalendarResponse) Reset() { diff --git a/gen/go/proto/services/calendar/calendar_grpc.pb.go b/gen/go/proto/services/calendar/calendar_grpc.pb.go index 6bfedef1a..af6f8937e 100644 --- a/gen/go/proto/services/calendar/calendar_grpc.pb.go +++ b/gen/go/proto/services/calendar/calendar_grpc.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: -// - protoc-gen-go-grpc v1.3.0 +// - protoc-gen-go-grpc v1.5.1 // - protoc v3.20.3 // source: services/calendar/calendar.proto @@ -15,8 +15,8 @@ import ( // This is a compile-time assertion to ensure that this generated file // is compatible with the grpc package it is being compiled against. -// Requires gRPC-Go v1.32.0 or later. -const _ = grpc.SupportPackageIsVersion7 +// Requires gRPC-Go v1.64.0 or later. +const _ = grpc.SupportPackageIsVersion9 const ( CalendarService_ListCalendars_FullMethodName = "/services.calendar.CalendarService/ListCalendars" @@ -78,8 +78,9 @@ func NewCalendarServiceClient(cc grpc.ClientConnInterface) CalendarServiceClient } func (c *calendarServiceClient) ListCalendars(ctx context.Context, in *ListCalendarsRequest, opts ...grpc.CallOption) (*ListCalendarsResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(ListCalendarsResponse) - err := c.cc.Invoke(ctx, CalendarService_ListCalendars_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, CalendarService_ListCalendars_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -87,8 +88,9 @@ func (c *calendarServiceClient) ListCalendars(ctx context.Context, in *ListCalen } func (c *calendarServiceClient) GetCalendar(ctx context.Context, in *GetCalendarRequest, opts ...grpc.CallOption) (*GetCalendarResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(GetCalendarResponse) - err := c.cc.Invoke(ctx, CalendarService_GetCalendar_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, CalendarService_GetCalendar_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -96,8 +98,9 @@ func (c *calendarServiceClient) GetCalendar(ctx context.Context, in *GetCalendar } func (c *calendarServiceClient) CreateOrUpdateCalendar(ctx context.Context, in *CreateOrUpdateCalendarRequest, opts ...grpc.CallOption) (*CreateOrUpdateCalendarResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(CreateOrUpdateCalendarResponse) - err := c.cc.Invoke(ctx, CalendarService_CreateOrUpdateCalendar_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, CalendarService_CreateOrUpdateCalendar_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -105,8 +108,9 @@ func (c *calendarServiceClient) CreateOrUpdateCalendar(ctx context.Context, in * } func (c *calendarServiceClient) DeleteCalendar(ctx context.Context, in *DeleteCalendarRequest, opts ...grpc.CallOption) (*DeleteCalendarResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(DeleteCalendarResponse) - err := c.cc.Invoke(ctx, CalendarService_DeleteCalendar_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, CalendarService_DeleteCalendar_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -114,8 +118,9 @@ func (c *calendarServiceClient) DeleteCalendar(ctx context.Context, in *DeleteCa } func (c *calendarServiceClient) ListCalendarEntries(ctx context.Context, in *ListCalendarEntriesRequest, opts ...grpc.CallOption) (*ListCalendarEntriesResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(ListCalendarEntriesResponse) - err := c.cc.Invoke(ctx, CalendarService_ListCalendarEntries_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, CalendarService_ListCalendarEntries_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -123,8 +128,9 @@ func (c *calendarServiceClient) ListCalendarEntries(ctx context.Context, in *Lis } func (c *calendarServiceClient) GetUpcomingEntries(ctx context.Context, in *GetUpcomingEntriesRequest, opts ...grpc.CallOption) (*GetUpcomingEntriesResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(GetUpcomingEntriesResponse) - err := c.cc.Invoke(ctx, CalendarService_GetUpcomingEntries_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, CalendarService_GetUpcomingEntries_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -132,8 +138,9 @@ func (c *calendarServiceClient) GetUpcomingEntries(ctx context.Context, in *GetU } func (c *calendarServiceClient) GetCalendarEntry(ctx context.Context, in *GetCalendarEntryRequest, opts ...grpc.CallOption) (*GetCalendarEntryResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(GetCalendarEntryResponse) - err := c.cc.Invoke(ctx, CalendarService_GetCalendarEntry_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, CalendarService_GetCalendarEntry_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -141,8 +148,9 @@ func (c *calendarServiceClient) GetCalendarEntry(ctx context.Context, in *GetCal } func (c *calendarServiceClient) CreateOrUpdateCalendarEntry(ctx context.Context, in *CreateOrUpdateCalendarEntryRequest, opts ...grpc.CallOption) (*CreateOrUpdateCalendarEntryResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(CreateOrUpdateCalendarEntryResponse) - err := c.cc.Invoke(ctx, CalendarService_CreateOrUpdateCalendarEntry_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, CalendarService_CreateOrUpdateCalendarEntry_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -150,8 +158,9 @@ func (c *calendarServiceClient) CreateOrUpdateCalendarEntry(ctx context.Context, } func (c *calendarServiceClient) DeleteCalendarEntry(ctx context.Context, in *DeleteCalendarEntryRequest, opts ...grpc.CallOption) (*DeleteCalendarEntryResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(DeleteCalendarEntryResponse) - err := c.cc.Invoke(ctx, CalendarService_DeleteCalendarEntry_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, CalendarService_DeleteCalendarEntry_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -159,8 +168,9 @@ func (c *calendarServiceClient) DeleteCalendarEntry(ctx context.Context, in *Del } func (c *calendarServiceClient) ShareCalendarEntry(ctx context.Context, in *ShareCalendarEntryRequest, opts ...grpc.CallOption) (*ShareCalendarEntryResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(ShareCalendarEntryResponse) - err := c.cc.Invoke(ctx, CalendarService_ShareCalendarEntry_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, CalendarService_ShareCalendarEntry_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -168,8 +178,9 @@ func (c *calendarServiceClient) ShareCalendarEntry(ctx context.Context, in *Shar } func (c *calendarServiceClient) ListCalendarEntryRSVP(ctx context.Context, in *ListCalendarEntryRSVPRequest, opts ...grpc.CallOption) (*ListCalendarEntryRSVPResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(ListCalendarEntryRSVPResponse) - err := c.cc.Invoke(ctx, CalendarService_ListCalendarEntryRSVP_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, CalendarService_ListCalendarEntryRSVP_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -177,8 +188,9 @@ func (c *calendarServiceClient) ListCalendarEntryRSVP(ctx context.Context, in *L } func (c *calendarServiceClient) RSVPCalendarEntry(ctx context.Context, in *RSVPCalendarEntryRequest, opts ...grpc.CallOption) (*RSVPCalendarEntryResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(RSVPCalendarEntryResponse) - err := c.cc.Invoke(ctx, CalendarService_RSVPCalendarEntry_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, CalendarService_RSVPCalendarEntry_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -186,8 +198,9 @@ func (c *calendarServiceClient) RSVPCalendarEntry(ctx context.Context, in *RSVPC } func (c *calendarServiceClient) ListSubscriptions(ctx context.Context, in *ListSubscriptionsRequest, opts ...grpc.CallOption) (*ListSubscriptionsResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(ListSubscriptionsResponse) - err := c.cc.Invoke(ctx, CalendarService_ListSubscriptions_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, CalendarService_ListSubscriptions_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -195,8 +208,9 @@ func (c *calendarServiceClient) ListSubscriptions(ctx context.Context, in *ListS } func (c *calendarServiceClient) SubscribeToCalendar(ctx context.Context, in *SubscribeToCalendarRequest, opts ...grpc.CallOption) (*SubscribeToCalendarResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(SubscribeToCalendarResponse) - err := c.cc.Invoke(ctx, CalendarService_SubscribeToCalendar_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, CalendarService_SubscribeToCalendar_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -205,7 +219,7 @@ func (c *calendarServiceClient) SubscribeToCalendar(ctx context.Context, in *Sub // CalendarServiceServer is the server API for CalendarService service. // All implementations must embed UnimplementedCalendarServiceServer -// for forward compatibility +// for forward compatibility. type CalendarServiceServer interface { // @perm: Name=Any ListCalendars(context.Context, *ListCalendarsRequest) (*ListCalendarsResponse, error) @@ -238,9 +252,12 @@ type CalendarServiceServer interface { mustEmbedUnimplementedCalendarServiceServer() } -// UnimplementedCalendarServiceServer must be embedded to have forward compatible implementations. -type UnimplementedCalendarServiceServer struct { -} +// UnimplementedCalendarServiceServer must be embedded to have +// forward compatible implementations. +// +// NOTE: this should be embedded by value instead of pointer to avoid a nil +// pointer dereference when methods are called. +type UnimplementedCalendarServiceServer struct{} func (UnimplementedCalendarServiceServer) ListCalendars(context.Context, *ListCalendarsRequest) (*ListCalendarsResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method ListCalendars not implemented") @@ -285,6 +302,7 @@ func (UnimplementedCalendarServiceServer) SubscribeToCalendar(context.Context, * return nil, status.Errorf(codes.Unimplemented, "method SubscribeToCalendar not implemented") } func (UnimplementedCalendarServiceServer) mustEmbedUnimplementedCalendarServiceServer() {} +func (UnimplementedCalendarServiceServer) testEmbeddedByValue() {} // UnsafeCalendarServiceServer may be embedded to opt out of forward compatibility for this service. // Use of this interface is not recommended, as added methods to CalendarServiceServer will @@ -294,6 +312,13 @@ type UnsafeCalendarServiceServer interface { } func RegisterCalendarServiceServer(s grpc.ServiceRegistrar, srv CalendarServiceServer) { + // If the following call pancis, it indicates UnimplementedCalendarServiceServer was + // embedded by pointer and is nil. This will cause panics if an + // unimplemented method is ever invoked, so we test this at initialization + // time to prevent it from happening at runtime later due to I/O. + if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { + t.testEmbeddedByValue() + } s.RegisterService(&CalendarService_ServiceDesc, srv) } diff --git a/gen/go/proto/services/centrum/centrum.pb.go b/gen/go/proto/services/centrum/centrum.pb.go index bb86fc990..61c362668 100644 --- a/gen/go/proto/services/centrum/centrum.pb.go +++ b/gen/go/proto/services/centrum/centrum.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.35.2 +// protoc-gen-go v1.36.0 // protoc v3.20.3 // source: services/centrum/centrum.proto @@ -26,12 +26,11 @@ const ( ) type ListDispatchActivityRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Pagination *database.PaginationRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"` + Id uint64 `protobuf:"varint,2,opt,name=id,proto3" json:"id,omitempty"` unknownFields protoimpl.UnknownFields - - Pagination *database.PaginationRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"` - Id uint64 `protobuf:"varint,2,opt,name=id,proto3" json:"id,omitempty"` + sizeCache protoimpl.SizeCache } func (x *ListDispatchActivityRequest) Reset() { @@ -79,12 +78,11 @@ func (x *ListDispatchActivityRequest) GetId() uint64 { } type ListUnitActivityRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Pagination *database.PaginationRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"` + Id uint64 `protobuf:"varint,2,opt,name=id,proto3" json:"id,omitempty"` unknownFields protoimpl.UnknownFields - - Pagination *database.PaginationRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"` - Id uint64 `protobuf:"varint,2,opt,name=id,proto3" json:"id,omitempty"` + sizeCache protoimpl.SizeCache } func (x *ListUnitActivityRequest) Reset() { @@ -132,9 +130,9 @@ func (x *ListUnitActivityRequest) GetId() uint64 { } type GetSettingsRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *GetSettingsRequest) Reset() { @@ -168,11 +166,10 @@ func (*GetSettingsRequest) Descriptor() ([]byte, []int) { } type GetSettingsResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Settings *centrum.Settings `protobuf:"bytes,1,opt,name=settings,proto3" json:"settings,omitempty"` unknownFields protoimpl.UnknownFields - - Settings *centrum.Settings `protobuf:"bytes,1,opt,name=settings,proto3" json:"settings,omitempty"` + sizeCache protoimpl.SizeCache } func (x *GetSettingsResponse) Reset() { @@ -213,11 +210,10 @@ func (x *GetSettingsResponse) GetSettings() *centrum.Settings { } type UpdateSettingsRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Settings *centrum.Settings `protobuf:"bytes,1,opt,name=settings,proto3" json:"settings,omitempty"` unknownFields protoimpl.UnknownFields - - Settings *centrum.Settings `protobuf:"bytes,1,opt,name=settings,proto3" json:"settings,omitempty"` + sizeCache protoimpl.SizeCache } func (x *UpdateSettingsRequest) Reset() { @@ -258,11 +254,10 @@ func (x *UpdateSettingsRequest) GetSettings() *centrum.Settings { } type UpdateSettingsResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Settings *centrum.Settings `protobuf:"bytes,1,opt,name=settings,proto3" json:"settings,omitempty"` unknownFields protoimpl.UnknownFields - - Settings *centrum.Settings `protobuf:"bytes,1,opt,name=settings,proto3" json:"settings,omitempty"` + sizeCache protoimpl.SizeCache } func (x *UpdateSettingsResponse) Reset() { @@ -303,11 +298,10 @@ func (x *UpdateSettingsResponse) GetSettings() *centrum.Settings { } type ListUnitsRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Status []centrum.StatusUnit `protobuf:"varint,1,rep,packed,name=status,proto3,enum=resources.centrum.StatusUnit" json:"status,omitempty"` unknownFields protoimpl.UnknownFields - - Status []centrum.StatusUnit `protobuf:"varint,1,rep,packed,name=status,proto3,enum=resources.centrum.StatusUnit" json:"status,omitempty"` + sizeCache protoimpl.SizeCache } func (x *ListUnitsRequest) Reset() { @@ -348,11 +342,10 @@ func (x *ListUnitsRequest) GetStatus() []centrum.StatusUnit { } type ListUnitsResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Units []*centrum.Unit `protobuf:"bytes,1,rep,name=units,proto3" json:"units,omitempty"` unknownFields protoimpl.UnknownFields - - Units []*centrum.Unit `protobuf:"bytes,1,rep,name=units,proto3" json:"units,omitempty"` + sizeCache protoimpl.SizeCache } func (x *ListUnitsResponse) Reset() { @@ -393,11 +386,10 @@ func (x *ListUnitsResponse) GetUnits() []*centrum.Unit { } type CreateOrUpdateUnitRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Unit *centrum.Unit `protobuf:"bytes,1,opt,name=unit,proto3" json:"unit,omitempty"` unknownFields protoimpl.UnknownFields - - Unit *centrum.Unit `protobuf:"bytes,1,opt,name=unit,proto3" json:"unit,omitempty"` + sizeCache protoimpl.SizeCache } func (x *CreateOrUpdateUnitRequest) Reset() { @@ -438,11 +430,10 @@ func (x *CreateOrUpdateUnitRequest) GetUnit() *centrum.Unit { } type CreateOrUpdateUnitResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Unit *centrum.Unit `protobuf:"bytes,1,opt,name=unit,proto3" json:"unit,omitempty"` unknownFields protoimpl.UnknownFields - - Unit *centrum.Unit `protobuf:"bytes,1,opt,name=unit,proto3" json:"unit,omitempty"` + sizeCache protoimpl.SizeCache } func (x *CreateOrUpdateUnitResponse) Reset() { @@ -483,11 +474,10 @@ func (x *CreateOrUpdateUnitResponse) GetUnit() *centrum.Unit { } type DeleteUnitRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + UnitId uint64 `protobuf:"varint,1,opt,name=unit_id,json=unitId,proto3" json:"unit_id,omitempty"` unknownFields protoimpl.UnknownFields - - UnitId uint64 `protobuf:"varint,1,opt,name=unit_id,json=unitId,proto3" json:"unit_id,omitempty"` + sizeCache protoimpl.SizeCache } func (x *DeleteUnitRequest) Reset() { @@ -528,9 +518,9 @@ func (x *DeleteUnitRequest) GetUnitId() uint64 { } type DeleteUnitResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *DeleteUnitResponse) Reset() { @@ -564,16 +554,15 @@ func (*DeleteUnitResponse) Descriptor() ([]byte, []int) { } type UpdateUnitStatusRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - UnitId uint64 `protobuf:"varint,1,opt,name=unit_id,json=unitId,proto3" json:"unit_id,omitempty"` - Status centrum.StatusUnit `protobuf:"varint,2,opt,name=status,proto3,enum=resources.centrum.StatusUnit" json:"status,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + UnitId uint64 `protobuf:"varint,1,opt,name=unit_id,json=unitId,proto3" json:"unit_id,omitempty"` + Status centrum.StatusUnit `protobuf:"varint,2,opt,name=status,proto3,enum=resources.centrum.StatusUnit" json:"status,omitempty"` // @sanitize Reason *string `protobuf:"bytes,3,opt,name=reason,proto3,oneof" json:"reason,omitempty"` // @sanitize - Code *string `protobuf:"bytes,4,opt,name=code,proto3,oneof" json:"code,omitempty"` + Code *string `protobuf:"bytes,4,opt,name=code,proto3,oneof" json:"code,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *UpdateUnitStatusRequest) Reset() { @@ -635,9 +624,9 @@ func (x *UpdateUnitStatusRequest) GetCode() string { } type UpdateUnitStatusResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *UpdateUnitStatusResponse) Reset() { @@ -671,13 +660,12 @@ func (*UpdateUnitStatusResponse) Descriptor() ([]byte, []int) { } type AssignUnitRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + UnitId uint64 `protobuf:"varint,1,opt,name=unit_id,json=unitId,proto3" json:"unit_id,omitempty"` + ToAdd []int32 `protobuf:"varint,2,rep,packed,name=to_add,json=toAdd,proto3" json:"to_add,omitempty"` + ToRemove []int32 `protobuf:"varint,3,rep,packed,name=to_remove,json=toRemove,proto3" json:"to_remove,omitempty"` unknownFields protoimpl.UnknownFields - - UnitId uint64 `protobuf:"varint,1,opt,name=unit_id,json=unitId,proto3" json:"unit_id,omitempty"` - ToAdd []int32 `protobuf:"varint,2,rep,packed,name=to_add,json=toAdd,proto3" json:"to_add,omitempty"` - ToRemove []int32 `protobuf:"varint,3,rep,packed,name=to_remove,json=toRemove,proto3" json:"to_remove,omitempty"` + sizeCache protoimpl.SizeCache } func (x *AssignUnitRequest) Reset() { @@ -732,9 +720,9 @@ func (x *AssignUnitRequest) GetToRemove() []int32 { } type AssignUnitResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *AssignUnitResponse) Reset() { @@ -768,12 +756,11 @@ func (*AssignUnitResponse) Descriptor() ([]byte, []int) { } type ListUnitActivityResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Pagination *database.PaginationResponse `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"` + Activity []*centrum.UnitStatus `protobuf:"bytes,2,rep,name=activity,proto3" json:"activity,omitempty"` unknownFields protoimpl.UnknownFields - - Pagination *database.PaginationResponse `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"` - Activity []*centrum.UnitStatus `protobuf:"bytes,2,rep,name=activity,proto3" json:"activity,omitempty"` + sizeCache protoimpl.SizeCache } func (x *ListUnitActivityResponse) Reset() { @@ -821,11 +808,10 @@ func (x *ListUnitActivityResponse) GetActivity() []*centrum.UnitStatus { } type TakeControlRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Signon bool `protobuf:"varint,1,opt,name=signon,proto3" json:"signon,omitempty"` unknownFields protoimpl.UnknownFields - - Signon bool `protobuf:"varint,1,opt,name=signon,proto3" json:"signon,omitempty"` + sizeCache protoimpl.SizeCache } func (x *TakeControlRequest) Reset() { @@ -866,9 +852,9 @@ func (x *TakeControlRequest) GetSignon() bool { } type TakeControlResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *TakeControlResponse) Reset() { @@ -902,15 +888,14 @@ func (*TakeControlResponse) Descriptor() ([]byte, []int) { } type ListDispatchesRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Pagination *database.PaginationRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"` + Status []centrum.StatusDispatch `protobuf:"varint,2,rep,packed,name=status,proto3,enum=resources.centrum.StatusDispatch" json:"status,omitempty"` + NotStatus []centrum.StatusDispatch `protobuf:"varint,3,rep,packed,name=not_status,json=notStatus,proto3,enum=resources.centrum.StatusDispatch" json:"not_status,omitempty"` + Ids []uint64 `protobuf:"varint,4,rep,packed,name=ids,proto3" json:"ids,omitempty"` + Postal *string `protobuf:"bytes,5,opt,name=postal,proto3,oneof" json:"postal,omitempty"` unknownFields protoimpl.UnknownFields - - Pagination *database.PaginationRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"` - Status []centrum.StatusDispatch `protobuf:"varint,2,rep,packed,name=status,proto3,enum=resources.centrum.StatusDispatch" json:"status,omitempty"` - NotStatus []centrum.StatusDispatch `protobuf:"varint,3,rep,packed,name=not_status,json=notStatus,proto3,enum=resources.centrum.StatusDispatch" json:"not_status,omitempty"` - Ids []uint64 `protobuf:"varint,4,rep,packed,name=ids,proto3" json:"ids,omitempty"` - Postal *string `protobuf:"bytes,5,opt,name=postal,proto3,oneof" json:"postal,omitempty"` + sizeCache protoimpl.SizeCache } func (x *ListDispatchesRequest) Reset() { @@ -979,12 +964,11 @@ func (x *ListDispatchesRequest) GetPostal() string { } type ListDispatchesResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Pagination *database.PaginationResponse `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"` + Dispatches []*centrum.Dispatch `protobuf:"bytes,2,rep,name=dispatches,proto3" json:"dispatches,omitempty"` unknownFields protoimpl.UnknownFields - - Pagination *database.PaginationResponse `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"` - Dispatches []*centrum.Dispatch `protobuf:"bytes,2,rep,name=dispatches,proto3" json:"dispatches,omitempty"` + sizeCache protoimpl.SizeCache } func (x *ListDispatchesResponse) Reset() { @@ -1032,11 +1016,10 @@ func (x *ListDispatchesResponse) GetDispatches() []*centrum.Dispatch { } type GetDispatchRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` unknownFields protoimpl.UnknownFields - - Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` + sizeCache protoimpl.SizeCache } func (x *GetDispatchRequest) Reset() { @@ -1077,11 +1060,10 @@ func (x *GetDispatchRequest) GetId() uint64 { } type GetDispatchResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Dispatch *centrum.Dispatch `protobuf:"bytes,1,opt,name=dispatch,proto3" json:"dispatch,omitempty"` unknownFields protoimpl.UnknownFields - - Dispatch *centrum.Dispatch `protobuf:"bytes,1,opt,name=dispatch,proto3" json:"dispatch,omitempty"` + sizeCache protoimpl.SizeCache } func (x *GetDispatchResponse) Reset() { @@ -1122,11 +1104,10 @@ func (x *GetDispatchResponse) GetDispatch() *centrum.Dispatch { } type CreateDispatchRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Dispatch *centrum.Dispatch `protobuf:"bytes,1,opt,name=dispatch,proto3" json:"dispatch,omitempty"` unknownFields protoimpl.UnknownFields - - Dispatch *centrum.Dispatch `protobuf:"bytes,1,opt,name=dispatch,proto3" json:"dispatch,omitempty"` + sizeCache protoimpl.SizeCache } func (x *CreateDispatchRequest) Reset() { @@ -1167,11 +1148,10 @@ func (x *CreateDispatchRequest) GetDispatch() *centrum.Dispatch { } type CreateDispatchResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Dispatch *centrum.Dispatch `protobuf:"bytes,1,opt,name=dispatch,proto3" json:"dispatch,omitempty"` unknownFields protoimpl.UnknownFields - - Dispatch *centrum.Dispatch `protobuf:"bytes,1,opt,name=dispatch,proto3" json:"dispatch,omitempty"` + sizeCache protoimpl.SizeCache } func (x *CreateDispatchResponse) Reset() { @@ -1212,11 +1192,10 @@ func (x *CreateDispatchResponse) GetDispatch() *centrum.Dispatch { } type UpdateDispatchRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Dispatch *centrum.Dispatch `protobuf:"bytes,1,opt,name=dispatch,proto3" json:"dispatch,omitempty"` unknownFields protoimpl.UnknownFields - - Dispatch *centrum.Dispatch `protobuf:"bytes,1,opt,name=dispatch,proto3" json:"dispatch,omitempty"` + sizeCache protoimpl.SizeCache } func (x *UpdateDispatchRequest) Reset() { @@ -1257,9 +1236,9 @@ func (x *UpdateDispatchRequest) GetDispatch() *centrum.Dispatch { } type UpdateDispatchResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *UpdateDispatchResponse) Reset() { @@ -1293,11 +1272,10 @@ func (*UpdateDispatchResponse) Descriptor() ([]byte, []int) { } type DeleteDispatchRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` unknownFields protoimpl.UnknownFields - - Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` + sizeCache protoimpl.SizeCache } func (x *DeleteDispatchRequest) Reset() { @@ -1338,9 +1316,9 @@ func (x *DeleteDispatchRequest) GetId() uint64 { } type DeleteDispatchResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *DeleteDispatchResponse) Reset() { @@ -1374,16 +1352,15 @@ func (*DeleteDispatchResponse) Descriptor() ([]byte, []int) { } type UpdateDispatchStatusRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - + state protoimpl.MessageState `protogen:"open.v1"` DispatchId uint64 `protobuf:"varint,1,opt,name=dispatch_id,json=dispatchId,proto3" json:"dispatch_id,omitempty"` Status centrum.StatusDispatch `protobuf:"varint,2,opt,name=status,proto3,enum=resources.centrum.StatusDispatch" json:"status,omitempty"` // @sanitize Reason *string `protobuf:"bytes,3,opt,name=reason,proto3,oneof" json:"reason,omitempty"` // @sanitize - Code *string `protobuf:"bytes,4,opt,name=code,proto3,oneof" json:"code,omitempty"` + Code *string `protobuf:"bytes,4,opt,name=code,proto3,oneof" json:"code,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *UpdateDispatchStatusRequest) Reset() { @@ -1445,9 +1422,9 @@ func (x *UpdateDispatchStatusRequest) GetCode() string { } type UpdateDispatchStatusResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *UpdateDispatchStatusResponse) Reset() { @@ -1481,14 +1458,13 @@ func (*UpdateDispatchStatusResponse) Descriptor() ([]byte, []int) { } type AssignDispatchRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + DispatchId uint64 `protobuf:"varint,1,opt,name=dispatch_id,json=dispatchId,proto3" json:"dispatch_id,omitempty"` + ToAdd []uint64 `protobuf:"varint,2,rep,packed,name=to_add,json=toAdd,proto3" json:"to_add,omitempty"` + ToRemove []uint64 `protobuf:"varint,3,rep,packed,name=to_remove,json=toRemove,proto3" json:"to_remove,omitempty"` + Forced *bool `protobuf:"varint,4,opt,name=forced,proto3,oneof" json:"forced,omitempty"` unknownFields protoimpl.UnknownFields - - DispatchId uint64 `protobuf:"varint,1,opt,name=dispatch_id,json=dispatchId,proto3" json:"dispatch_id,omitempty"` - ToAdd []uint64 `protobuf:"varint,2,rep,packed,name=to_add,json=toAdd,proto3" json:"to_add,omitempty"` - ToRemove []uint64 `protobuf:"varint,3,rep,packed,name=to_remove,json=toRemove,proto3" json:"to_remove,omitempty"` - Forced *bool `protobuf:"varint,4,opt,name=forced,proto3,oneof" json:"forced,omitempty"` + sizeCache protoimpl.SizeCache } func (x *AssignDispatchRequest) Reset() { @@ -1550,9 +1526,9 @@ func (x *AssignDispatchRequest) GetForced() bool { } type AssignDispatchResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *AssignDispatchResponse) Reset() { @@ -1586,12 +1562,11 @@ func (*AssignDispatchResponse) Descriptor() ([]byte, []int) { } type ListDispatchActivityResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Pagination *database.PaginationResponse `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"` + Activity []*centrum.DispatchStatus `protobuf:"bytes,2,rep,name=activity,proto3" json:"activity,omitempty"` unknownFields protoimpl.UnknownFields - - Pagination *database.PaginationResponse `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"` - Activity []*centrum.DispatchStatus `protobuf:"bytes,2,rep,name=activity,proto3" json:"activity,omitempty"` + sizeCache protoimpl.SizeCache } func (x *ListDispatchActivityResponse) Reset() { @@ -1639,11 +1614,10 @@ func (x *ListDispatchActivityResponse) GetActivity() []*centrum.DispatchStatus { } type JoinUnitRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + UnitId *uint64 `protobuf:"varint,1,opt,name=unit_id,json=unitId,proto3,oneof" json:"unit_id,omitempty"` unknownFields protoimpl.UnknownFields - - UnitId *uint64 `protobuf:"varint,1,opt,name=unit_id,json=unitId,proto3,oneof" json:"unit_id,omitempty"` + sizeCache protoimpl.SizeCache } func (x *JoinUnitRequest) Reset() { @@ -1684,11 +1658,10 @@ func (x *JoinUnitRequest) GetUnitId() uint64 { } type JoinUnitResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Unit *centrum.Unit `protobuf:"bytes,1,opt,name=unit,proto3" json:"unit,omitempty"` unknownFields protoimpl.UnknownFields - - Unit *centrum.Unit `protobuf:"bytes,1,opt,name=unit,proto3" json:"unit,omitempty"` + sizeCache protoimpl.SizeCache } func (x *JoinUnitResponse) Reset() { @@ -1729,14 +1702,13 @@ func (x *JoinUnitResponse) GetUnit() *centrum.Unit { } type TakeDispatchRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - + state protoimpl.MessageState `protogen:"open.v1"` DispatchIds []uint64 `protobuf:"varint,1,rep,packed,name=dispatch_ids,json=dispatchIds,proto3" json:"dispatch_ids,omitempty"` Resp centrum.TakeDispatchResp `protobuf:"varint,2,opt,name=resp,proto3,enum=resources.centrum.TakeDispatchResp" json:"resp,omitempty"` // @sanitize - Reason *string `protobuf:"bytes,3,opt,name=reason,proto3,oneof" json:"reason,omitempty"` + Reason *string `protobuf:"bytes,3,opt,name=reason,proto3,oneof" json:"reason,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *TakeDispatchRequest) Reset() { @@ -1791,9 +1763,9 @@ func (x *TakeDispatchRequest) GetReason() string { } type TakeDispatchResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *TakeDispatchResponse) Reset() { @@ -1827,17 +1799,16 @@ func (*TakeDispatchResponse) Descriptor() ([]byte, []int) { } type LatestState struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - ServerTime *timestamp.Timestamp `protobuf:"bytes,1,opt,name=server_time,json=serverTime,proto3" json:"server_time,omitempty"` - Settings *centrum.Settings `protobuf:"bytes,2,opt,name=settings,proto3" json:"settings,omitempty"` - Disponents []*jobs.Colleague `protobuf:"bytes,3,rep,name=disponents,proto3" json:"disponents,omitempty"` - OwnUnitId *uint64 `protobuf:"varint,4,opt,name=own_unit_id,json=ownUnitId,proto3,oneof" json:"own_unit_id,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + ServerTime *timestamp.Timestamp `protobuf:"bytes,1,opt,name=server_time,json=serverTime,proto3" json:"server_time,omitempty"` + Settings *centrum.Settings `protobuf:"bytes,2,opt,name=settings,proto3" json:"settings,omitempty"` + Disponents []*jobs.Colleague `protobuf:"bytes,3,rep,name=disponents,proto3" json:"disponents,omitempty"` + OwnUnitId *uint64 `protobuf:"varint,4,opt,name=own_unit_id,json=ownUnitId,proto3,oneof" json:"own_unit_id,omitempty"` // Send the current units and dispatches - Units []*centrum.Unit `protobuf:"bytes,5,rep,name=units,proto3" json:"units,omitempty"` - Dispatches []*centrum.Dispatch `protobuf:"bytes,6,rep,name=dispatches,proto3" json:"dispatches,omitempty"` + Units []*centrum.Unit `protobuf:"bytes,5,rep,name=units,proto3" json:"units,omitempty"` + Dispatches []*centrum.Dispatch `protobuf:"bytes,6,rep,name=dispatches,proto3" json:"dispatches,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *LatestState) Reset() { @@ -1913,9 +1884,9 @@ func (x *LatestState) GetDispatches() []*centrum.Dispatch { } type StreamRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *StreamRequest) Reset() { @@ -1949,11 +1920,8 @@ func (*StreamRequest) Descriptor() ([]byte, []int) { } type StreamResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Types that are assignable to Change: + state protoimpl.MessageState `protogen:"open.v1"` + // Types that are valid to be assigned to Change: // // *StreamResponse_LatestState // *StreamResponse_Settings @@ -1966,7 +1934,9 @@ type StreamResponse struct { // *StreamResponse_DispatchDeleted // *StreamResponse_DispatchUpdated // *StreamResponse_DispatchStatus - Change isStreamResponse_Change `protobuf_oneof:"change"` + Change isStreamResponse_Change `protobuf_oneof:"change"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *StreamResponse) Reset() { @@ -1999,86 +1969,108 @@ func (*StreamResponse) Descriptor() ([]byte, []int) { return file_services_centrum_centrum_proto_rawDescGZIP(), []int{40} } -func (m *StreamResponse) GetChange() isStreamResponse_Change { - if m != nil { - return m.Change +func (x *StreamResponse) GetChange() isStreamResponse_Change { + if x != nil { + return x.Change } return nil } func (x *StreamResponse) GetLatestState() *LatestState { - if x, ok := x.GetChange().(*StreamResponse_LatestState); ok { - return x.LatestState + if x != nil { + if x, ok := x.Change.(*StreamResponse_LatestState); ok { + return x.LatestState + } } return nil } func (x *StreamResponse) GetSettings() *centrum.Settings { - if x, ok := x.GetChange().(*StreamResponse_Settings); ok { - return x.Settings + if x != nil { + if x, ok := x.Change.(*StreamResponse_Settings); ok { + return x.Settings + } } return nil } func (x *StreamResponse) GetDisponents() *centrum.Disponents { - if x, ok := x.GetChange().(*StreamResponse_Disponents); ok { - return x.Disponents + if x != nil { + if x, ok := x.Change.(*StreamResponse_Disponents); ok { + return x.Disponents + } } return nil } func (x *StreamResponse) GetUnitCreated() *centrum.Unit { - if x, ok := x.GetChange().(*StreamResponse_UnitCreated); ok { - return x.UnitCreated + if x != nil { + if x, ok := x.Change.(*StreamResponse_UnitCreated); ok { + return x.UnitCreated + } } return nil } func (x *StreamResponse) GetUnitDeleted() *centrum.Unit { - if x, ok := x.GetChange().(*StreamResponse_UnitDeleted); ok { - return x.UnitDeleted + if x != nil { + if x, ok := x.Change.(*StreamResponse_UnitDeleted); ok { + return x.UnitDeleted + } } return nil } func (x *StreamResponse) GetUnitUpdated() *centrum.Unit { - if x, ok := x.GetChange().(*StreamResponse_UnitUpdated); ok { - return x.UnitUpdated + if x != nil { + if x, ok := x.Change.(*StreamResponse_UnitUpdated); ok { + return x.UnitUpdated + } } return nil } func (x *StreamResponse) GetUnitStatus() *centrum.UnitStatus { - if x, ok := x.GetChange().(*StreamResponse_UnitStatus); ok { - return x.UnitStatus + if x != nil { + if x, ok := x.Change.(*StreamResponse_UnitStatus); ok { + return x.UnitStatus + } } return nil } func (x *StreamResponse) GetDispatchCreated() *centrum.Dispatch { - if x, ok := x.GetChange().(*StreamResponse_DispatchCreated); ok { - return x.DispatchCreated + if x != nil { + if x, ok := x.Change.(*StreamResponse_DispatchCreated); ok { + return x.DispatchCreated + } } return nil } func (x *StreamResponse) GetDispatchDeleted() *centrum.Dispatch { - if x, ok := x.GetChange().(*StreamResponse_DispatchDeleted); ok { - return x.DispatchDeleted + if x != nil { + if x, ok := x.Change.(*StreamResponse_DispatchDeleted); ok { + return x.DispatchDeleted + } } return nil } func (x *StreamResponse) GetDispatchUpdated() *centrum.Dispatch { - if x, ok := x.GetChange().(*StreamResponse_DispatchUpdated); ok { - return x.DispatchUpdated + if x != nil { + if x, ok := x.Change.(*StreamResponse_DispatchUpdated); ok { + return x.DispatchUpdated + } } return nil } func (x *StreamResponse) GetDispatchStatus() *centrum.DispatchStatus { - if x, ok := x.GetChange().(*StreamResponse_DispatchStatus); ok { - return x.DispatchStatus + if x != nil { + if x, ok := x.Change.(*StreamResponse_DispatchStatus); ok { + return x.DispatchStatus + } } return nil } diff --git a/gen/go/proto/services/centrum/centrum_grpc.pb.go b/gen/go/proto/services/centrum/centrum_grpc.pb.go index 2fcfa1c2e..6b5ecee7d 100644 --- a/gen/go/proto/services/centrum/centrum_grpc.pb.go +++ b/gen/go/proto/services/centrum/centrum_grpc.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: -// - protoc-gen-go-grpc v1.3.0 +// - protoc-gen-go-grpc v1.5.1 // - protoc v3.20.3 // source: services/centrum/centrum.proto @@ -15,8 +15,8 @@ import ( // This is a compile-time assertion to ensure that this generated file // is compatible with the grpc package it is being compiled against. -// Requires gRPC-Go v1.32.0 or later. -const _ = grpc.SupportPackageIsVersion7 +// Requires gRPC-Go v1.64.0 or later. +const _ = grpc.SupportPackageIsVersion9 const ( CentrumService_UpdateSettings_FullMethodName = "/services.centrum.CentrumService/UpdateSettings" @@ -60,7 +60,7 @@ type CentrumServiceClient interface { // @perm: Name=TakeControl AssignUnit(ctx context.Context, in *AssignUnitRequest, opts ...grpc.CallOption) (*AssignUnitResponse, error) // @perm - Stream(ctx context.Context, in *StreamRequest, opts ...grpc.CallOption) (CentrumService_StreamClient, error) + Stream(ctx context.Context, in *StreamRequest, opts ...grpc.CallOption) (grpc.ServerStreamingClient[StreamResponse], error) // @perm: Name=Stream GetSettings(ctx context.Context, in *GetSettingsRequest, opts ...grpc.CallOption) (*GetSettingsResponse, error) // @perm: Name=Stream @@ -96,8 +96,9 @@ func NewCentrumServiceClient(cc grpc.ClientConnInterface) CentrumServiceClient { } func (c *centrumServiceClient) UpdateSettings(ctx context.Context, in *UpdateSettingsRequest, opts ...grpc.CallOption) (*UpdateSettingsResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(UpdateSettingsResponse) - err := c.cc.Invoke(ctx, CentrumService_UpdateSettings_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, CentrumService_UpdateSettings_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -105,8 +106,9 @@ func (c *centrumServiceClient) UpdateSettings(ctx context.Context, in *UpdateSet } func (c *centrumServiceClient) CreateDispatch(ctx context.Context, in *CreateDispatchRequest, opts ...grpc.CallOption) (*CreateDispatchResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(CreateDispatchResponse) - err := c.cc.Invoke(ctx, CentrumService_CreateDispatch_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, CentrumService_CreateDispatch_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -114,8 +116,9 @@ func (c *centrumServiceClient) CreateDispatch(ctx context.Context, in *CreateDis } func (c *centrumServiceClient) UpdateDispatch(ctx context.Context, in *UpdateDispatchRequest, opts ...grpc.CallOption) (*UpdateDispatchResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(UpdateDispatchResponse) - err := c.cc.Invoke(ctx, CentrumService_UpdateDispatch_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, CentrumService_UpdateDispatch_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -123,8 +126,9 @@ func (c *centrumServiceClient) UpdateDispatch(ctx context.Context, in *UpdateDis } func (c *centrumServiceClient) DeleteDispatch(ctx context.Context, in *DeleteDispatchRequest, opts ...grpc.CallOption) (*DeleteDispatchResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(DeleteDispatchResponse) - err := c.cc.Invoke(ctx, CentrumService_DeleteDispatch_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, CentrumService_DeleteDispatch_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -132,8 +136,9 @@ func (c *centrumServiceClient) DeleteDispatch(ctx context.Context, in *DeleteDis } func (c *centrumServiceClient) TakeControl(ctx context.Context, in *TakeControlRequest, opts ...grpc.CallOption) (*TakeControlResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(TakeControlResponse) - err := c.cc.Invoke(ctx, CentrumService_TakeControl_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, CentrumService_TakeControl_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -141,8 +146,9 @@ func (c *centrumServiceClient) TakeControl(ctx context.Context, in *TakeControlR } func (c *centrumServiceClient) AssignDispatch(ctx context.Context, in *AssignDispatchRequest, opts ...grpc.CallOption) (*AssignDispatchResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(AssignDispatchResponse) - err := c.cc.Invoke(ctx, CentrumService_AssignDispatch_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, CentrumService_AssignDispatch_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -150,20 +156,22 @@ func (c *centrumServiceClient) AssignDispatch(ctx context.Context, in *AssignDis } func (c *centrumServiceClient) AssignUnit(ctx context.Context, in *AssignUnitRequest, opts ...grpc.CallOption) (*AssignUnitResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(AssignUnitResponse) - err := c.cc.Invoke(ctx, CentrumService_AssignUnit_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, CentrumService_AssignUnit_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } return out, nil } -func (c *centrumServiceClient) Stream(ctx context.Context, in *StreamRequest, opts ...grpc.CallOption) (CentrumService_StreamClient, error) { - stream, err := c.cc.NewStream(ctx, &CentrumService_ServiceDesc.Streams[0], CentrumService_Stream_FullMethodName, opts...) +func (c *centrumServiceClient) Stream(ctx context.Context, in *StreamRequest, opts ...grpc.CallOption) (grpc.ServerStreamingClient[StreamResponse], error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + stream, err := c.cc.NewStream(ctx, &CentrumService_ServiceDesc.Streams[0], CentrumService_Stream_FullMethodName, cOpts...) if err != nil { return nil, err } - x := ¢rumServiceStreamClient{stream} + x := &grpc.GenericClientStream[StreamRequest, StreamResponse]{ClientStream: stream} if err := x.ClientStream.SendMsg(in); err != nil { return nil, err } @@ -173,26 +181,13 @@ func (c *centrumServiceClient) Stream(ctx context.Context, in *StreamRequest, op return x, nil } -type CentrumService_StreamClient interface { - Recv() (*StreamResponse, error) - grpc.ClientStream -} - -type centrumServiceStreamClient struct { - grpc.ClientStream -} - -func (x *centrumServiceStreamClient) Recv() (*StreamResponse, error) { - m := new(StreamResponse) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} +// This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name. +type CentrumService_StreamClient = grpc.ServerStreamingClient[StreamResponse] func (c *centrumServiceClient) GetSettings(ctx context.Context, in *GetSettingsRequest, opts ...grpc.CallOption) (*GetSettingsResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(GetSettingsResponse) - err := c.cc.Invoke(ctx, CentrumService_GetSettings_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, CentrumService_GetSettings_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -200,8 +195,9 @@ func (c *centrumServiceClient) GetSettings(ctx context.Context, in *GetSettingsR } func (c *centrumServiceClient) JoinUnit(ctx context.Context, in *JoinUnitRequest, opts ...grpc.CallOption) (*JoinUnitResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(JoinUnitResponse) - err := c.cc.Invoke(ctx, CentrumService_JoinUnit_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, CentrumService_JoinUnit_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -209,8 +205,9 @@ func (c *centrumServiceClient) JoinUnit(ctx context.Context, in *JoinUnitRequest } func (c *centrumServiceClient) ListUnits(ctx context.Context, in *ListUnitsRequest, opts ...grpc.CallOption) (*ListUnitsResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(ListUnitsResponse) - err := c.cc.Invoke(ctx, CentrumService_ListUnits_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, CentrumService_ListUnits_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -218,8 +215,9 @@ func (c *centrumServiceClient) ListUnits(ctx context.Context, in *ListUnitsReque } func (c *centrumServiceClient) ListUnitActivity(ctx context.Context, in *ListUnitActivityRequest, opts ...grpc.CallOption) (*ListUnitActivityResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(ListUnitActivityResponse) - err := c.cc.Invoke(ctx, CentrumService_ListUnitActivity_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, CentrumService_ListUnitActivity_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -227,8 +225,9 @@ func (c *centrumServiceClient) ListUnitActivity(ctx context.Context, in *ListUni } func (c *centrumServiceClient) GetDispatch(ctx context.Context, in *GetDispatchRequest, opts ...grpc.CallOption) (*GetDispatchResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(GetDispatchResponse) - err := c.cc.Invoke(ctx, CentrumService_GetDispatch_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, CentrumService_GetDispatch_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -236,8 +235,9 @@ func (c *centrumServiceClient) GetDispatch(ctx context.Context, in *GetDispatchR } func (c *centrumServiceClient) ListDispatches(ctx context.Context, in *ListDispatchesRequest, opts ...grpc.CallOption) (*ListDispatchesResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(ListDispatchesResponse) - err := c.cc.Invoke(ctx, CentrumService_ListDispatches_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, CentrumService_ListDispatches_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -245,8 +245,9 @@ func (c *centrumServiceClient) ListDispatches(ctx context.Context, in *ListDispa } func (c *centrumServiceClient) ListDispatchActivity(ctx context.Context, in *ListDispatchActivityRequest, opts ...grpc.CallOption) (*ListDispatchActivityResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(ListDispatchActivityResponse) - err := c.cc.Invoke(ctx, CentrumService_ListDispatchActivity_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, CentrumService_ListDispatchActivity_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -254,8 +255,9 @@ func (c *centrumServiceClient) ListDispatchActivity(ctx context.Context, in *Lis } func (c *centrumServiceClient) CreateOrUpdateUnit(ctx context.Context, in *CreateOrUpdateUnitRequest, opts ...grpc.CallOption) (*CreateOrUpdateUnitResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(CreateOrUpdateUnitResponse) - err := c.cc.Invoke(ctx, CentrumService_CreateOrUpdateUnit_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, CentrumService_CreateOrUpdateUnit_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -263,8 +265,9 @@ func (c *centrumServiceClient) CreateOrUpdateUnit(ctx context.Context, in *Creat } func (c *centrumServiceClient) DeleteUnit(ctx context.Context, in *DeleteUnitRequest, opts ...grpc.CallOption) (*DeleteUnitResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(DeleteUnitResponse) - err := c.cc.Invoke(ctx, CentrumService_DeleteUnit_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, CentrumService_DeleteUnit_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -272,8 +275,9 @@ func (c *centrumServiceClient) DeleteUnit(ctx context.Context, in *DeleteUnitReq } func (c *centrumServiceClient) TakeDispatch(ctx context.Context, in *TakeDispatchRequest, opts ...grpc.CallOption) (*TakeDispatchResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(TakeDispatchResponse) - err := c.cc.Invoke(ctx, CentrumService_TakeDispatch_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, CentrumService_TakeDispatch_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -281,8 +285,9 @@ func (c *centrumServiceClient) TakeDispatch(ctx context.Context, in *TakeDispatc } func (c *centrumServiceClient) UpdateUnitStatus(ctx context.Context, in *UpdateUnitStatusRequest, opts ...grpc.CallOption) (*UpdateUnitStatusResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(UpdateUnitStatusResponse) - err := c.cc.Invoke(ctx, CentrumService_UpdateUnitStatus_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, CentrumService_UpdateUnitStatus_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -290,8 +295,9 @@ func (c *centrumServiceClient) UpdateUnitStatus(ctx context.Context, in *UpdateU } func (c *centrumServiceClient) UpdateDispatchStatus(ctx context.Context, in *UpdateDispatchStatusRequest, opts ...grpc.CallOption) (*UpdateDispatchStatusResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(UpdateDispatchStatusResponse) - err := c.cc.Invoke(ctx, CentrumService_UpdateDispatchStatus_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, CentrumService_UpdateDispatchStatus_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -300,7 +306,7 @@ func (c *centrumServiceClient) UpdateDispatchStatus(ctx context.Context, in *Upd // CentrumServiceServer is the server API for CentrumService service. // All implementations must embed UnimplementedCentrumServiceServer -// for forward compatibility +// for forward compatibility. type CentrumServiceServer interface { // @perm UpdateSettings(context.Context, *UpdateSettingsRequest) (*UpdateSettingsResponse, error) @@ -317,7 +323,7 @@ type CentrumServiceServer interface { // @perm: Name=TakeControl AssignUnit(context.Context, *AssignUnitRequest) (*AssignUnitResponse, error) // @perm - Stream(*StreamRequest, CentrumService_StreamServer) error + Stream(*StreamRequest, grpc.ServerStreamingServer[StreamResponse]) error // @perm: Name=Stream GetSettings(context.Context, *GetSettingsRequest) (*GetSettingsResponse, error) // @perm: Name=Stream @@ -345,9 +351,12 @@ type CentrumServiceServer interface { mustEmbedUnimplementedCentrumServiceServer() } -// UnimplementedCentrumServiceServer must be embedded to have forward compatible implementations. -type UnimplementedCentrumServiceServer struct { -} +// UnimplementedCentrumServiceServer must be embedded to have +// forward compatible implementations. +// +// NOTE: this should be embedded by value instead of pointer to avoid a nil +// pointer dereference when methods are called. +type UnimplementedCentrumServiceServer struct{} func (UnimplementedCentrumServiceServer) UpdateSettings(context.Context, *UpdateSettingsRequest) (*UpdateSettingsResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method UpdateSettings not implemented") @@ -370,7 +379,7 @@ func (UnimplementedCentrumServiceServer) AssignDispatch(context.Context, *Assign func (UnimplementedCentrumServiceServer) AssignUnit(context.Context, *AssignUnitRequest) (*AssignUnitResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method AssignUnit not implemented") } -func (UnimplementedCentrumServiceServer) Stream(*StreamRequest, CentrumService_StreamServer) error { +func (UnimplementedCentrumServiceServer) Stream(*StreamRequest, grpc.ServerStreamingServer[StreamResponse]) error { return status.Errorf(codes.Unimplemented, "method Stream not implemented") } func (UnimplementedCentrumServiceServer) GetSettings(context.Context, *GetSettingsRequest) (*GetSettingsResponse, error) { @@ -410,6 +419,7 @@ func (UnimplementedCentrumServiceServer) UpdateDispatchStatus(context.Context, * return nil, status.Errorf(codes.Unimplemented, "method UpdateDispatchStatus not implemented") } func (UnimplementedCentrumServiceServer) mustEmbedUnimplementedCentrumServiceServer() {} +func (UnimplementedCentrumServiceServer) testEmbeddedByValue() {} // UnsafeCentrumServiceServer may be embedded to opt out of forward compatibility for this service. // Use of this interface is not recommended, as added methods to CentrumServiceServer will @@ -419,6 +429,13 @@ type UnsafeCentrumServiceServer interface { } func RegisterCentrumServiceServer(s grpc.ServiceRegistrar, srv CentrumServiceServer) { + // If the following call pancis, it indicates UnimplementedCentrumServiceServer was + // embedded by pointer and is nil. This will cause panics if an + // unimplemented method is ever invoked, so we test this at initialization + // time to prevent it from happening at runtime later due to I/O. + if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { + t.testEmbeddedByValue() + } s.RegisterService(&CentrumService_ServiceDesc, srv) } @@ -553,21 +570,11 @@ func _CentrumService_Stream_Handler(srv interface{}, stream grpc.ServerStream) e if err := stream.RecvMsg(m); err != nil { return err } - return srv.(CentrumServiceServer).Stream(m, ¢rumServiceStreamServer{stream}) -} - -type CentrumService_StreamServer interface { - Send(*StreamResponse) error - grpc.ServerStream + return srv.(CentrumServiceServer).Stream(m, &grpc.GenericServerStream[StreamRequest, StreamResponse]{ServerStream: stream}) } -type centrumServiceStreamServer struct { - grpc.ServerStream -} - -func (x *centrumServiceStreamServer) Send(m *StreamResponse) error { - return x.ServerStream.SendMsg(m) -} +// This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name. +type CentrumService_StreamServer = grpc.ServerStreamingServer[StreamResponse] func _CentrumService_GetSettings_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(GetSettingsRequest) diff --git a/gen/go/proto/services/citizenstore/citizenstore.pb.go b/gen/go/proto/services/citizenstore/citizenstore.pb.go index bf135b590..4a157c1b6 100644 --- a/gen/go/proto/services/citizenstore/citizenstore.pb.go +++ b/gen/go/proto/services/citizenstore/citizenstore.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.35.2 +// protoc-gen-go v1.36.0 // protoc v3.20.3 // source: services/citizenstore/citizenstore.proto @@ -25,10 +25,7 @@ const ( ) type ListCitizensRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - + state protoimpl.MessageState `protogen:"open.v1"` Pagination *database.PaginationRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"` Sort *database.Sort `protobuf:"bytes,2,opt,name=sort,proto3,oneof" json:"sort,omitempty"` // Search params @@ -38,6 +35,8 @@ type ListCitizensRequest struct { TrafficInfractionPoints *uint32 `protobuf:"varint,6,opt,name=traffic_infraction_points,json=trafficInfractionPoints,proto3,oneof" json:"traffic_infraction_points,omitempty"` Dateofbirth *string `protobuf:"bytes,7,opt,name=dateofbirth,proto3,oneof" json:"dateofbirth,omitempty"` OpenFines *uint64 `protobuf:"varint,8,opt,name=open_fines,json=openFines,proto3,oneof" json:"open_fines,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *ListCitizensRequest) Reset() { @@ -127,12 +126,11 @@ func (x *ListCitizensRequest) GetOpenFines() uint64 { } type ListCitizensResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Pagination *database.PaginationResponse `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"` + Users []*users.User `protobuf:"bytes,2,rep,name=users,proto3" json:"users,omitempty"` unknownFields protoimpl.UnknownFields - - Pagination *database.PaginationResponse `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"` - Users []*users.User `protobuf:"bytes,2,rep,name=users,proto3" json:"users,omitempty"` + sizeCache protoimpl.SizeCache } func (x *ListCitizensResponse) Reset() { @@ -180,12 +178,11 @@ func (x *ListCitizensResponse) GetUsers() []*users.User { } type GetUserRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + UserId int32 `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` + InfoOnly *bool `protobuf:"varint,2,opt,name=info_only,json=infoOnly,proto3,oneof" json:"info_only,omitempty"` unknownFields protoimpl.UnknownFields - - UserId int32 `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` - InfoOnly *bool `protobuf:"varint,2,opt,name=info_only,json=infoOnly,proto3,oneof" json:"info_only,omitempty"` + sizeCache protoimpl.SizeCache } func (x *GetUserRequest) Reset() { @@ -233,11 +230,10 @@ func (x *GetUserRequest) GetInfoOnly() bool { } type GetUserResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + User *users.User `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"` unknownFields protoimpl.UnknownFields - - User *users.User `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"` + sizeCache protoimpl.SizeCache } func (x *GetUserResponse) Reset() { @@ -278,13 +274,12 @@ func (x *GetUserResponse) GetUser() *users.User { } type ListUserActivityRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Pagination *database.PaginationRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"` + Sort *database.Sort `protobuf:"bytes,2,opt,name=sort,proto3,oneof" json:"sort,omitempty"` + UserId int32 `protobuf:"varint,3,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` unknownFields protoimpl.UnknownFields - - Pagination *database.PaginationRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"` - Sort *database.Sort `protobuf:"bytes,2,opt,name=sort,proto3,oneof" json:"sort,omitempty"` - UserId int32 `protobuf:"varint,3,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` + sizeCache protoimpl.SizeCache } func (x *ListUserActivityRequest) Reset() { @@ -339,12 +334,11 @@ func (x *ListUserActivityRequest) GetUserId() int32 { } type ListUserActivityResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Pagination *database.PaginationResponse `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"` + Activity []*users.UserActivity `protobuf:"bytes,2,rep,name=activity,proto3" json:"activity,omitempty"` unknownFields protoimpl.UnknownFields - - Pagination *database.PaginationResponse `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"` - Activity []*users.UserActivity `protobuf:"bytes,2,rep,name=activity,proto3" json:"activity,omitempty"` + sizeCache protoimpl.SizeCache } func (x *ListUserActivityResponse) Reset() { @@ -392,13 +386,12 @@ func (x *ListUserActivityResponse) GetActivity() []*users.UserActivity { } type SetUserPropsRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Props *users.UserProps `protobuf:"bytes,1,opt,name=props,proto3" json:"props,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + Props *users.UserProps `protobuf:"bytes,1,opt,name=props,proto3" json:"props,omitempty"` // @sanitize - Reason string `protobuf:"bytes,2,opt,name=reason,proto3" json:"reason,omitempty"` + Reason string `protobuf:"bytes,2,opt,name=reason,proto3" json:"reason,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *SetUserPropsRequest) Reset() { @@ -446,11 +439,10 @@ func (x *SetUserPropsRequest) GetReason() string { } type SetUserPropsResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Props *users.UserProps `protobuf:"bytes,1,opt,name=props,proto3" json:"props,omitempty"` unknownFields protoimpl.UnknownFields - - Props *users.UserProps `protobuf:"bytes,1,opt,name=props,proto3" json:"props,omitempty"` + sizeCache protoimpl.SizeCache } func (x *SetUserPropsResponse) Reset() { @@ -491,11 +483,10 @@ func (x *SetUserPropsResponse) GetProps() *users.UserProps { } type SetProfilePictureRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Avatar *filestore.File `protobuf:"bytes,1,opt,name=avatar,proto3" json:"avatar,omitempty"` unknownFields protoimpl.UnknownFields - - Avatar *filestore.File `protobuf:"bytes,1,opt,name=avatar,proto3" json:"avatar,omitempty"` + sizeCache protoimpl.SizeCache } func (x *SetProfilePictureRequest) Reset() { @@ -536,11 +527,10 @@ func (x *SetProfilePictureRequest) GetAvatar() *filestore.File { } type SetProfilePictureResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Avatar *filestore.File `protobuf:"bytes,1,opt,name=avatar,proto3" json:"avatar,omitempty"` unknownFields protoimpl.UnknownFields - - Avatar *filestore.File `protobuf:"bytes,1,opt,name=avatar,proto3" json:"avatar,omitempty"` + sizeCache protoimpl.SizeCache } func (x *SetProfilePictureResponse) Reset() { @@ -581,11 +571,10 @@ func (x *SetProfilePictureResponse) GetAvatar() *filestore.File { } type ManageCitizenAttributesRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Attributes []*users.CitizenAttribute `protobuf:"bytes,1,rep,name=attributes,proto3" json:"attributes,omitempty"` unknownFields protoimpl.UnknownFields - - Attributes []*users.CitizenAttribute `protobuf:"bytes,1,rep,name=attributes,proto3" json:"attributes,omitempty"` + sizeCache protoimpl.SizeCache } func (x *ManageCitizenAttributesRequest) Reset() { @@ -626,11 +615,10 @@ func (x *ManageCitizenAttributesRequest) GetAttributes() []*users.CitizenAttribu } type ManageCitizenAttributesResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Attributes []*users.CitizenAttribute `protobuf:"bytes,1,rep,name=attributes,proto3" json:"attributes,omitempty"` unknownFields protoimpl.UnknownFields - - Attributes []*users.CitizenAttribute `protobuf:"bytes,1,rep,name=attributes,proto3" json:"attributes,omitempty"` + sizeCache protoimpl.SizeCache } func (x *ManageCitizenAttributesResponse) Reset() { diff --git a/gen/go/proto/services/citizenstore/citizenstore_grpc.pb.go b/gen/go/proto/services/citizenstore/citizenstore_grpc.pb.go index e81cec814..8e89084c3 100644 --- a/gen/go/proto/services/citizenstore/citizenstore_grpc.pb.go +++ b/gen/go/proto/services/citizenstore/citizenstore_grpc.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: -// - protoc-gen-go-grpc v1.3.0 +// - protoc-gen-go-grpc v1.5.1 // - protoc v3.20.3 // source: services/citizenstore/citizenstore.proto @@ -15,8 +15,8 @@ import ( // This is a compile-time assertion to ensure that this generated file // is compatible with the grpc package it is being compiled against. -// Requires gRPC-Go v1.32.0 or later. -const _ = grpc.SupportPackageIsVersion7 +// Requires gRPC-Go v1.64.0 or later. +const _ = grpc.SupportPackageIsVersion9 const ( CitizenStoreService_ListCitizens_FullMethodName = "/services.citizenstore.CitizenStoreService/ListCitizens" @@ -54,8 +54,9 @@ func NewCitizenStoreServiceClient(cc grpc.ClientConnInterface) CitizenStoreServi } func (c *citizenStoreServiceClient) ListCitizens(ctx context.Context, in *ListCitizensRequest, opts ...grpc.CallOption) (*ListCitizensResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(ListCitizensResponse) - err := c.cc.Invoke(ctx, CitizenStoreService_ListCitizens_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, CitizenStoreService_ListCitizens_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -63,8 +64,9 @@ func (c *citizenStoreServiceClient) ListCitizens(ctx context.Context, in *ListCi } func (c *citizenStoreServiceClient) GetUser(ctx context.Context, in *GetUserRequest, opts ...grpc.CallOption) (*GetUserResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(GetUserResponse) - err := c.cc.Invoke(ctx, CitizenStoreService_GetUser_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, CitizenStoreService_GetUser_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -72,8 +74,9 @@ func (c *citizenStoreServiceClient) GetUser(ctx context.Context, in *GetUserRequ } func (c *citizenStoreServiceClient) ListUserActivity(ctx context.Context, in *ListUserActivityRequest, opts ...grpc.CallOption) (*ListUserActivityResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(ListUserActivityResponse) - err := c.cc.Invoke(ctx, CitizenStoreService_ListUserActivity_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, CitizenStoreService_ListUserActivity_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -81,8 +84,9 @@ func (c *citizenStoreServiceClient) ListUserActivity(ctx context.Context, in *Li } func (c *citizenStoreServiceClient) SetUserProps(ctx context.Context, in *SetUserPropsRequest, opts ...grpc.CallOption) (*SetUserPropsResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(SetUserPropsResponse) - err := c.cc.Invoke(ctx, CitizenStoreService_SetUserProps_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, CitizenStoreService_SetUserProps_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -90,8 +94,9 @@ func (c *citizenStoreServiceClient) SetUserProps(ctx context.Context, in *SetUse } func (c *citizenStoreServiceClient) SetProfilePicture(ctx context.Context, in *SetProfilePictureRequest, opts ...grpc.CallOption) (*SetProfilePictureResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(SetProfilePictureResponse) - err := c.cc.Invoke(ctx, CitizenStoreService_SetProfilePicture_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, CitizenStoreService_SetProfilePicture_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -99,8 +104,9 @@ func (c *citizenStoreServiceClient) SetProfilePicture(ctx context.Context, in *S } func (c *citizenStoreServiceClient) ManageCitizenAttributes(ctx context.Context, in *ManageCitizenAttributesRequest, opts ...grpc.CallOption) (*ManageCitizenAttributesResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(ManageCitizenAttributesResponse) - err := c.cc.Invoke(ctx, CitizenStoreService_ManageCitizenAttributes_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, CitizenStoreService_ManageCitizenAttributes_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -109,7 +115,7 @@ func (c *citizenStoreServiceClient) ManageCitizenAttributes(ctx context.Context, // CitizenStoreServiceServer is the server API for CitizenStoreService service. // All implementations must embed UnimplementedCitizenStoreServiceServer -// for forward compatibility +// for forward compatibility. type CitizenStoreServiceServer interface { // @perm: Attrs=Fields/StringList:[]string{"PhoneNumber", "Licenses", "UserProps.Wanted", "UserProps.Job", "UserProps.TrafficInfractionPoints", "UserProps.OpenFines", "UserProps.BloodType", "UserProps.MugShot", "UserProps.Attributes", "UserProps.Email"} ListCitizens(context.Context, *ListCitizensRequest) (*ListCitizensResponse, error) @@ -126,9 +132,12 @@ type CitizenStoreServiceServer interface { mustEmbedUnimplementedCitizenStoreServiceServer() } -// UnimplementedCitizenStoreServiceServer must be embedded to have forward compatible implementations. -type UnimplementedCitizenStoreServiceServer struct { -} +// UnimplementedCitizenStoreServiceServer must be embedded to have +// forward compatible implementations. +// +// NOTE: this should be embedded by value instead of pointer to avoid a nil +// pointer dereference when methods are called. +type UnimplementedCitizenStoreServiceServer struct{} func (UnimplementedCitizenStoreServiceServer) ListCitizens(context.Context, *ListCitizensRequest) (*ListCitizensResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method ListCitizens not implemented") @@ -149,6 +158,7 @@ func (UnimplementedCitizenStoreServiceServer) ManageCitizenAttributes(context.Co return nil, status.Errorf(codes.Unimplemented, "method ManageCitizenAttributes not implemented") } func (UnimplementedCitizenStoreServiceServer) mustEmbedUnimplementedCitizenStoreServiceServer() {} +func (UnimplementedCitizenStoreServiceServer) testEmbeddedByValue() {} // UnsafeCitizenStoreServiceServer may be embedded to opt out of forward compatibility for this service. // Use of this interface is not recommended, as added methods to CitizenStoreServiceServer will @@ -158,6 +168,13 @@ type UnsafeCitizenStoreServiceServer interface { } func RegisterCitizenStoreServiceServer(s grpc.ServiceRegistrar, srv CitizenStoreServiceServer) { + // If the following call pancis, it indicates UnimplementedCitizenStoreServiceServer was + // embedded by pointer and is nil. This will cause panics if an + // unimplemented method is ever invoked, so we test this at initialization + // time to prevent it from happening at runtime later due to I/O. + if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { + t.testEmbeddedByValue() + } s.RegisterService(&CitizenStoreService_ServiceDesc, srv) } diff --git a/gen/go/proto/services/completor/completor.pb.go b/gen/go/proto/services/completor/completor.pb.go index 104d2c910..8900928ea 100644 --- a/gen/go/proto/services/completor/completor.pb.go +++ b/gen/go/proto/services/completor/completor.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.35.2 +// protoc-gen-go v1.36.0 // protoc v3.20.3 // source: services/completor/completor.proto @@ -25,14 +25,13 @@ const ( ) type CompleteCitizensRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Search string `protobuf:"bytes,1,opt,name=search,proto3" json:"search,omitempty"` + CurrentJob *bool `protobuf:"varint,2,opt,name=current_job,json=currentJob,proto3,oneof" json:"current_job,omitempty"` + OnDuty *bool `protobuf:"varint,3,opt,name=on_duty,json=onDuty,proto3,oneof" json:"on_duty,omitempty"` + UserId *int32 `protobuf:"varint,4,opt,name=user_id,json=userId,proto3,oneof" json:"user_id,omitempty"` unknownFields protoimpl.UnknownFields - - Search string `protobuf:"bytes,1,opt,name=search,proto3" json:"search,omitempty"` - CurrentJob *bool `protobuf:"varint,2,opt,name=current_job,json=currentJob,proto3,oneof" json:"current_job,omitempty"` - OnDuty *bool `protobuf:"varint,3,opt,name=on_duty,json=onDuty,proto3,oneof" json:"on_duty,omitempty"` - UserId *int32 `protobuf:"varint,4,opt,name=user_id,json=userId,proto3,oneof" json:"user_id,omitempty"` + sizeCache protoimpl.SizeCache } func (x *CompleteCitizensRequest) Reset() { @@ -94,11 +93,10 @@ func (x *CompleteCitizensRequest) GetUserId() int32 { } type CompleteCitizensRespoonse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Users []*users.UserShort `protobuf:"bytes,1,rep,name=users,proto3" json:"users,omitempty" alias:"user"` // @gotags: alias:"user" unknownFields protoimpl.UnknownFields - - Users []*users.UserShort `protobuf:"bytes,1,rep,name=users,proto3" json:"users,omitempty" alias:"user"` // @gotags: alias:"user" + sizeCache protoimpl.SizeCache } func (x *CompleteCitizensRespoonse) Reset() { @@ -139,13 +137,12 @@ func (x *CompleteCitizensRespoonse) GetUsers() []*users.UserShort { } type CompleteJobsRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Search *string `protobuf:"bytes,1,opt,name=search,proto3,oneof" json:"search,omitempty"` + ExactMatch *bool `protobuf:"varint,2,opt,name=exact_match,json=exactMatch,proto3,oneof" json:"exact_match,omitempty"` + CurrentJob *bool `protobuf:"varint,3,opt,name=current_job,json=currentJob,proto3,oneof" json:"current_job,omitempty"` unknownFields protoimpl.UnknownFields - - Search *string `protobuf:"bytes,1,opt,name=search,proto3,oneof" json:"search,omitempty"` - ExactMatch *bool `protobuf:"varint,2,opt,name=exact_match,json=exactMatch,proto3,oneof" json:"exact_match,omitempty"` - CurrentJob *bool `protobuf:"varint,3,opt,name=current_job,json=currentJob,proto3,oneof" json:"current_job,omitempty"` + sizeCache protoimpl.SizeCache } func (x *CompleteJobsRequest) Reset() { @@ -200,11 +197,10 @@ func (x *CompleteJobsRequest) GetCurrentJob() bool { } type CompleteJobsResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Jobs []*users.Job `protobuf:"bytes,1,rep,name=jobs,proto3" json:"jobs,omitempty"` unknownFields protoimpl.UnknownFields - - Jobs []*users.Job `protobuf:"bytes,1,rep,name=jobs,proto3" json:"jobs,omitempty"` + sizeCache protoimpl.SizeCache } func (x *CompleteJobsResponse) Reset() { @@ -245,11 +241,10 @@ func (x *CompleteJobsResponse) GetJobs() []*users.Job { } type CompleteDocumentCategoriesRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Search string `protobuf:"bytes,1,opt,name=search,proto3" json:"search,omitempty"` unknownFields protoimpl.UnknownFields - - Search string `protobuf:"bytes,1,opt,name=search,proto3" json:"search,omitempty"` + sizeCache protoimpl.SizeCache } func (x *CompleteDocumentCategoriesRequest) Reset() { @@ -290,11 +285,10 @@ func (x *CompleteDocumentCategoriesRequest) GetSearch() string { } type CompleteDocumentCategoriesResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Categories []*documents.Category `protobuf:"bytes,1,rep,name=categories,proto3" json:"categories,omitempty"` unknownFields protoimpl.UnknownFields - - Categories []*documents.Category `protobuf:"bytes,1,rep,name=categories,proto3" json:"categories,omitempty"` + sizeCache protoimpl.SizeCache } func (x *CompleteDocumentCategoriesResponse) Reset() { @@ -335,9 +329,9 @@ func (x *CompleteDocumentCategoriesResponse) GetCategories() []*documents.Catego } type ListLawBooksRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *ListLawBooksRequest) Reset() { @@ -371,11 +365,10 @@ func (*ListLawBooksRequest) Descriptor() ([]byte, []int) { } type ListLawBooksResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Books []*laws.LawBook `protobuf:"bytes,1,rep,name=books,proto3" json:"books,omitempty"` unknownFields protoimpl.UnknownFields - - Books []*laws.LawBook `protobuf:"bytes,1,rep,name=books,proto3" json:"books,omitempty"` + sizeCache protoimpl.SizeCache } func (x *ListLawBooksResponse) Reset() { @@ -416,11 +409,10 @@ func (x *ListLawBooksResponse) GetBooks() []*laws.LawBook { } type CompleteCitizenAttributesRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Search string `protobuf:"bytes,1,opt,name=search,proto3" json:"search,omitempty"` unknownFields protoimpl.UnknownFields - - Search string `protobuf:"bytes,1,opt,name=search,proto3" json:"search,omitempty"` + sizeCache protoimpl.SizeCache } func (x *CompleteCitizenAttributesRequest) Reset() { @@ -461,11 +453,10 @@ func (x *CompleteCitizenAttributesRequest) GetSearch() string { } type CompleteCitizenAttributesResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Attributes []*users.CitizenAttribute `protobuf:"bytes,1,rep,name=attributes,proto3" json:"attributes,omitempty"` unknownFields protoimpl.UnknownFields - - Attributes []*users.CitizenAttribute `protobuf:"bytes,1,rep,name=attributes,proto3" json:"attributes,omitempty"` + sizeCache protoimpl.SizeCache } func (x *CompleteCitizenAttributesResponse) Reset() { diff --git a/gen/go/proto/services/completor/completor_grpc.pb.go b/gen/go/proto/services/completor/completor_grpc.pb.go index 7f213d0cf..cd39a42ab 100644 --- a/gen/go/proto/services/completor/completor_grpc.pb.go +++ b/gen/go/proto/services/completor/completor_grpc.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: -// - protoc-gen-go-grpc v1.3.0 +// - protoc-gen-go-grpc v1.5.1 // - protoc v3.20.3 // source: services/completor/completor.proto @@ -15,8 +15,8 @@ import ( // This is a compile-time assertion to ensure that this generated file // is compatible with the grpc package it is being compiled against. -// Requires gRPC-Go v1.32.0 or later. -const _ = grpc.SupportPackageIsVersion7 +// Requires gRPC-Go v1.64.0 or later. +const _ = grpc.SupportPackageIsVersion9 const ( CompletorService_CompleteCitizens_FullMethodName = "/services.completor.CompletorService/CompleteCitizens" @@ -51,8 +51,9 @@ func NewCompletorServiceClient(cc grpc.ClientConnInterface) CompletorServiceClie } func (c *completorServiceClient) CompleteCitizens(ctx context.Context, in *CompleteCitizensRequest, opts ...grpc.CallOption) (*CompleteCitizensRespoonse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(CompleteCitizensRespoonse) - err := c.cc.Invoke(ctx, CompletorService_CompleteCitizens_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, CompletorService_CompleteCitizens_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -60,8 +61,9 @@ func (c *completorServiceClient) CompleteCitizens(ctx context.Context, in *Compl } func (c *completorServiceClient) CompleteJobs(ctx context.Context, in *CompleteJobsRequest, opts ...grpc.CallOption) (*CompleteJobsResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(CompleteJobsResponse) - err := c.cc.Invoke(ctx, CompletorService_CompleteJobs_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, CompletorService_CompleteJobs_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -69,8 +71,9 @@ func (c *completorServiceClient) CompleteJobs(ctx context.Context, in *CompleteJ } func (c *completorServiceClient) CompleteDocumentCategories(ctx context.Context, in *CompleteDocumentCategoriesRequest, opts ...grpc.CallOption) (*CompleteDocumentCategoriesResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(CompleteDocumentCategoriesResponse) - err := c.cc.Invoke(ctx, CompletorService_CompleteDocumentCategories_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, CompletorService_CompleteDocumentCategories_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -78,8 +81,9 @@ func (c *completorServiceClient) CompleteDocumentCategories(ctx context.Context, } func (c *completorServiceClient) ListLawBooks(ctx context.Context, in *ListLawBooksRequest, opts ...grpc.CallOption) (*ListLawBooksResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(ListLawBooksResponse) - err := c.cc.Invoke(ctx, CompletorService_ListLawBooks_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, CompletorService_ListLawBooks_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -87,8 +91,9 @@ func (c *completorServiceClient) ListLawBooks(ctx context.Context, in *ListLawBo } func (c *completorServiceClient) CompleteCitizenAttributes(ctx context.Context, in *CompleteCitizenAttributesRequest, opts ...grpc.CallOption) (*CompleteCitizenAttributesResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(CompleteCitizenAttributesResponse) - err := c.cc.Invoke(ctx, CompletorService_CompleteCitizenAttributes_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, CompletorService_CompleteCitizenAttributes_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -97,7 +102,7 @@ func (c *completorServiceClient) CompleteCitizenAttributes(ctx context.Context, // CompletorServiceServer is the server API for CompletorService service. // All implementations must embed UnimplementedCompletorServiceServer -// for forward compatibility +// for forward compatibility. type CompletorServiceServer interface { // @perm CompleteCitizens(context.Context, *CompleteCitizensRequest) (*CompleteCitizensRespoonse, error) @@ -112,9 +117,12 @@ type CompletorServiceServer interface { mustEmbedUnimplementedCompletorServiceServer() } -// UnimplementedCompletorServiceServer must be embedded to have forward compatible implementations. -type UnimplementedCompletorServiceServer struct { -} +// UnimplementedCompletorServiceServer must be embedded to have +// forward compatible implementations. +// +// NOTE: this should be embedded by value instead of pointer to avoid a nil +// pointer dereference when methods are called. +type UnimplementedCompletorServiceServer struct{} func (UnimplementedCompletorServiceServer) CompleteCitizens(context.Context, *CompleteCitizensRequest) (*CompleteCitizensRespoonse, error) { return nil, status.Errorf(codes.Unimplemented, "method CompleteCitizens not implemented") @@ -132,6 +140,7 @@ func (UnimplementedCompletorServiceServer) CompleteCitizenAttributes(context.Con return nil, status.Errorf(codes.Unimplemented, "method CompleteCitizenAttributes not implemented") } func (UnimplementedCompletorServiceServer) mustEmbedUnimplementedCompletorServiceServer() {} +func (UnimplementedCompletorServiceServer) testEmbeddedByValue() {} // UnsafeCompletorServiceServer may be embedded to opt out of forward compatibility for this service. // Use of this interface is not recommended, as added methods to CompletorServiceServer will @@ -141,6 +150,13 @@ type UnsafeCompletorServiceServer interface { } func RegisterCompletorServiceServer(s grpc.ServiceRegistrar, srv CompletorServiceServer) { + // If the following call pancis, it indicates UnimplementedCompletorServiceServer was + // embedded by pointer and is nil. This will cause panics if an + // unimplemented method is ever invoked, so we test this at initialization + // time to prevent it from happening at runtime later due to I/O. + if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { + t.testEmbeddedByValue() + } s.RegisterService(&CompletorService_ServiceDesc, srv) } diff --git a/gen/go/proto/services/dmv/vehicles.pb.go b/gen/go/proto/services/dmv/vehicles.pb.go index a8ea19c46..e084bc290 100644 --- a/gen/go/proto/services/dmv/vehicles.pb.go +++ b/gen/go/proto/services/dmv/vehicles.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.35.2 +// protoc-gen-go v1.36.0 // protoc v3.20.3 // source: services/dmv/vehicles.proto @@ -24,16 +24,15 @@ const ( ) type ListVehiclesRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - + state protoimpl.MessageState `protogen:"open.v1"` Pagination *database.PaginationRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"` Sort *database.Sort `protobuf:"bytes,2,opt,name=sort,proto3,oneof" json:"sort,omitempty"` // Search params - LicensePlate *string `protobuf:"bytes,3,opt,name=license_plate,json=licensePlate,proto3,oneof" json:"license_plate,omitempty"` - Model *string `protobuf:"bytes,4,opt,name=model,proto3,oneof" json:"model,omitempty"` - UserId *int32 `protobuf:"varint,5,opt,name=user_id,json=userId,proto3,oneof" json:"user_id,omitempty"` + LicensePlate *string `protobuf:"bytes,3,opt,name=license_plate,json=licensePlate,proto3,oneof" json:"license_plate,omitempty"` + Model *string `protobuf:"bytes,4,opt,name=model,proto3,oneof" json:"model,omitempty"` + UserId *int32 `protobuf:"varint,5,opt,name=user_id,json=userId,proto3,oneof" json:"user_id,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *ListVehiclesRequest) Reset() { @@ -102,12 +101,11 @@ func (x *ListVehiclesRequest) GetUserId() int32 { } type ListVehiclesResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Pagination *database.PaginationResponse `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"` + Vehicles []*vehicles.Vehicle `protobuf:"bytes,2,rep,name=vehicles,proto3" json:"vehicles,omitempty"` unknownFields protoimpl.UnknownFields - - Pagination *database.PaginationResponse `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"` - Vehicles []*vehicles.Vehicle `protobuf:"bytes,2,rep,name=vehicles,proto3" json:"vehicles,omitempty"` + sizeCache protoimpl.SizeCache } func (x *ListVehiclesResponse) Reset() { diff --git a/gen/go/proto/services/dmv/vehicles_grpc.pb.go b/gen/go/proto/services/dmv/vehicles_grpc.pb.go index e178d3dff..b4410fd47 100644 --- a/gen/go/proto/services/dmv/vehicles_grpc.pb.go +++ b/gen/go/proto/services/dmv/vehicles_grpc.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: -// - protoc-gen-go-grpc v1.3.0 +// - protoc-gen-go-grpc v1.5.1 // - protoc v3.20.3 // source: services/dmv/vehicles.proto @@ -15,8 +15,8 @@ import ( // This is a compile-time assertion to ensure that this generated file // is compatible with the grpc package it is being compiled against. -// Requires gRPC-Go v1.32.0 or later. -const _ = grpc.SupportPackageIsVersion7 +// Requires gRPC-Go v1.64.0 or later. +const _ = grpc.SupportPackageIsVersion9 const ( DMVService_ListVehicles_FullMethodName = "/services.dmv.DMVService/ListVehicles" @@ -39,8 +39,9 @@ func NewDMVServiceClient(cc grpc.ClientConnInterface) DMVServiceClient { } func (c *dMVServiceClient) ListVehicles(ctx context.Context, in *ListVehiclesRequest, opts ...grpc.CallOption) (*ListVehiclesResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(ListVehiclesResponse) - err := c.cc.Invoke(ctx, DMVService_ListVehicles_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, DMVService_ListVehicles_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -49,21 +50,25 @@ func (c *dMVServiceClient) ListVehicles(ctx context.Context, in *ListVehiclesReq // DMVServiceServer is the server API for DMVService service. // All implementations must embed UnimplementedDMVServiceServer -// for forward compatibility +// for forward compatibility. type DMVServiceServer interface { // @perm ListVehicles(context.Context, *ListVehiclesRequest) (*ListVehiclesResponse, error) mustEmbedUnimplementedDMVServiceServer() } -// UnimplementedDMVServiceServer must be embedded to have forward compatible implementations. -type UnimplementedDMVServiceServer struct { -} +// UnimplementedDMVServiceServer must be embedded to have +// forward compatible implementations. +// +// NOTE: this should be embedded by value instead of pointer to avoid a nil +// pointer dereference when methods are called. +type UnimplementedDMVServiceServer struct{} func (UnimplementedDMVServiceServer) ListVehicles(context.Context, *ListVehiclesRequest) (*ListVehiclesResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method ListVehicles not implemented") } func (UnimplementedDMVServiceServer) mustEmbedUnimplementedDMVServiceServer() {} +func (UnimplementedDMVServiceServer) testEmbeddedByValue() {} // UnsafeDMVServiceServer may be embedded to opt out of forward compatibility for this service. // Use of this interface is not recommended, as added methods to DMVServiceServer will @@ -73,6 +78,13 @@ type UnsafeDMVServiceServer interface { } func RegisterDMVServiceServer(s grpc.ServiceRegistrar, srv DMVServiceServer) { + // If the following call pancis, it indicates UnimplementedDMVServiceServer was + // embedded by pointer and is nil. This will cause panics if an + // unimplemented method is ever invoked, so we test this at initialization + // time to prevent it from happening at runtime later due to I/O. + if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { + t.testEmbeddedByValue() + } s.RegisterService(&DMVService_ServiceDesc, srv) } diff --git a/gen/go/proto/services/docstore/docstore.pb.go b/gen/go/proto/services/docstore/docstore.pb.go index 27de350a7..2d237c303 100644 --- a/gen/go/proto/services/docstore/docstore.pb.go +++ b/gen/go/proto/services/docstore/docstore.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.35.2 +// protoc-gen-go v1.36.0 // protoc v3.20.3 // source: services/docstore/docstore.proto @@ -26,9 +26,9 @@ const ( ) type ListTemplatesRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *ListTemplatesRequest) Reset() { @@ -62,11 +62,10 @@ func (*ListTemplatesRequest) Descriptor() ([]byte, []int) { } type ListTemplatesResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Templates []*documents.TemplateShort `protobuf:"bytes,1,rep,name=templates,proto3" json:"templates,omitempty"` unknownFields protoimpl.UnknownFields - - Templates []*documents.TemplateShort `protobuf:"bytes,1,rep,name=templates,proto3" json:"templates,omitempty"` + sizeCache protoimpl.SizeCache } func (x *ListTemplatesResponse) Reset() { @@ -107,13 +106,12 @@ func (x *ListTemplatesResponse) GetTemplates() []*documents.TemplateShort { } type GetTemplateRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + TemplateId uint64 `protobuf:"varint,1,opt,name=template_id,json=templateId,proto3" json:"template_id,omitempty"` + Data *documents.TemplateData `protobuf:"bytes,2,opt,name=data,proto3,oneof" json:"data,omitempty"` + Render *bool `protobuf:"varint,3,opt,name=render,proto3,oneof" json:"render,omitempty"` unknownFields protoimpl.UnknownFields - - TemplateId uint64 `protobuf:"varint,1,opt,name=template_id,json=templateId,proto3" json:"template_id,omitempty"` - Data *documents.TemplateData `protobuf:"bytes,2,opt,name=data,proto3,oneof" json:"data,omitempty"` - Render *bool `protobuf:"varint,3,opt,name=render,proto3,oneof" json:"render,omitempty"` + sizeCache protoimpl.SizeCache } func (x *GetTemplateRequest) Reset() { @@ -168,12 +166,11 @@ func (x *GetTemplateRequest) GetRender() bool { } type GetTemplateResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + 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"` unknownFields protoimpl.UnknownFields - - 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"` + sizeCache protoimpl.SizeCache } func (x *GetTemplateResponse) Reset() { @@ -221,11 +218,10 @@ func (x *GetTemplateResponse) GetRendered() bool { } type CreateTemplateRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Template *documents.Template `protobuf:"bytes,1,opt,name=template,proto3" json:"template,omitempty"` unknownFields protoimpl.UnknownFields - - Template *documents.Template `protobuf:"bytes,1,opt,name=template,proto3" json:"template,omitempty"` + sizeCache protoimpl.SizeCache } func (x *CreateTemplateRequest) Reset() { @@ -266,11 +262,10 @@ func (x *CreateTemplateRequest) GetTemplate() *documents.Template { } type CreateTemplateResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` unknownFields protoimpl.UnknownFields - - Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` + sizeCache protoimpl.SizeCache } func (x *CreateTemplateResponse) Reset() { @@ -311,11 +306,10 @@ func (x *CreateTemplateResponse) GetId() uint64 { } type UpdateTemplateRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Template *documents.Template `protobuf:"bytes,1,opt,name=template,proto3" json:"template,omitempty"` unknownFields protoimpl.UnknownFields - - Template *documents.Template `protobuf:"bytes,1,opt,name=template,proto3" json:"template,omitempty"` + sizeCache protoimpl.SizeCache } func (x *UpdateTemplateRequest) Reset() { @@ -356,11 +350,10 @@ func (x *UpdateTemplateRequest) GetTemplate() *documents.Template { } type UpdateTemplateResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Template *documents.Template `protobuf:"bytes,1,opt,name=template,proto3" json:"template,omitempty"` unknownFields protoimpl.UnknownFields - - Template *documents.Template `protobuf:"bytes,1,opt,name=template,proto3" json:"template,omitempty"` + sizeCache protoimpl.SizeCache } func (x *UpdateTemplateResponse) Reset() { @@ -401,11 +394,10 @@ func (x *UpdateTemplateResponse) GetTemplate() *documents.Template { } type DeleteTemplateRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` unknownFields protoimpl.UnknownFields - - Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` + sizeCache protoimpl.SizeCache } func (x *DeleteTemplateRequest) Reset() { @@ -446,9 +438,9 @@ func (x *DeleteTemplateRequest) GetId() uint64 { } type DeleteTemplateResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *DeleteTemplateResponse) Reset() { @@ -482,20 +474,19 @@ func (*DeleteTemplateResponse) Descriptor() ([]byte, []int) { } type ListDocumentsRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - + state protoimpl.MessageState `protogen:"open.v1"` Pagination *database.PaginationRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"` Sort *database.Sort `protobuf:"bytes,2,opt,name=sort,proto3,oneof" json:"sort,omitempty"` // Search params - 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"` - Closed *bool `protobuf:"varint,8,opt,name=closed,proto3,oneof" json:"closed,omitempty"` - DocumentIds []uint64 `protobuf:"varint,9,rep,packed,name=document_ids,json=documentIds,proto3" json:"document_ids,omitempty"` + 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"` + Closed *bool `protobuf:"varint,8,opt,name=closed,proto3,oneof" json:"closed,omitempty"` + DocumentIds []uint64 `protobuf:"varint,9,rep,packed,name=document_ids,json=documentIds,proto3" json:"document_ids,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *ListDocumentsRequest) Reset() { @@ -592,12 +583,11 @@ func (x *ListDocumentsRequest) GetDocumentIds() []uint64 { } type ListDocumentsResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + 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"` unknownFields protoimpl.UnknownFields - - 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"` + sizeCache protoimpl.SizeCache } func (x *ListDocumentsResponse) Reset() { @@ -645,12 +635,11 @@ func (x *ListDocumentsResponse) GetDocuments() []*documents.DocumentShort { } type GetDocumentRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + DocumentId uint64 `protobuf:"varint,1,opt,name=document_id,json=documentId,proto3" json:"document_id,omitempty"` + InfoOnly *bool `protobuf:"varint,2,opt,name=info_only,json=infoOnly,proto3,oneof" json:"info_only,omitempty"` unknownFields protoimpl.UnknownFields - - DocumentId uint64 `protobuf:"varint,1,opt,name=document_id,json=documentId,proto3" json:"document_id,omitempty"` - InfoOnly *bool `protobuf:"varint,2,opt,name=info_only,json=infoOnly,proto3,oneof" json:"info_only,omitempty"` + sizeCache protoimpl.SizeCache } func (x *GetDocumentRequest) Reset() { @@ -698,12 +687,11 @@ func (x *GetDocumentRequest) GetInfoOnly() bool { } type GetDocumentResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + 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"` unknownFields protoimpl.UnknownFields - - 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"` + sizeCache protoimpl.SizeCache } func (x *GetDocumentResponse) Reset() { @@ -751,11 +739,10 @@ func (x *GetDocumentResponse) GetAccess() *documents.DocumentAccess { } type GetDocumentReferencesRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + DocumentId uint64 `protobuf:"varint,1,opt,name=document_id,json=documentId,proto3" json:"document_id,omitempty"` unknownFields protoimpl.UnknownFields - - DocumentId uint64 `protobuf:"varint,1,opt,name=document_id,json=documentId,proto3" json:"document_id,omitempty"` + sizeCache protoimpl.SizeCache } func (x *GetDocumentReferencesRequest) Reset() { @@ -796,11 +783,10 @@ func (x *GetDocumentReferencesRequest) GetDocumentId() uint64 { } type GetDocumentReferencesResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + References []*documents.DocumentReference `protobuf:"bytes,1,rep,name=references,proto3" json:"references,omitempty" alias:"reference"` // @gotags: alias:"reference" unknownFields protoimpl.UnknownFields - - References []*documents.DocumentReference `protobuf:"bytes,1,rep,name=references,proto3" json:"references,omitempty" alias:"reference"` // @gotags: alias:"reference" + sizeCache protoimpl.SizeCache } func (x *GetDocumentReferencesResponse) Reset() { @@ -841,11 +827,10 @@ func (x *GetDocumentReferencesResponse) GetReferences() []*documents.DocumentRef } type GetDocumentRelationsRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + DocumentId uint64 `protobuf:"varint,1,opt,name=document_id,json=documentId,proto3" json:"document_id,omitempty"` unknownFields protoimpl.UnknownFields - - DocumentId uint64 `protobuf:"varint,1,opt,name=document_id,json=documentId,proto3" json:"document_id,omitempty"` + sizeCache protoimpl.SizeCache } func (x *GetDocumentRelationsRequest) Reset() { @@ -886,11 +871,10 @@ func (x *GetDocumentRelationsRequest) GetDocumentId() uint64 { } type GetDocumentRelationsResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Relations []*documents.DocumentRelation `protobuf:"bytes,1,rep,name=relations,proto3" json:"relations,omitempty" alias:"relation"` // @gotags: alias:"relation" unknownFields protoimpl.UnknownFields - - Relations []*documents.DocumentRelation `protobuf:"bytes,1,rep,name=relations,proto3" json:"relations,omitempty" alias:"relation"` // @gotags: alias:"relation" + sizeCache protoimpl.SizeCache } func (x *GetDocumentRelationsResponse) Reset() { @@ -931,11 +915,10 @@ func (x *GetDocumentRelationsResponse) GetRelations() []*documents.DocumentRelat } type AddDocumentReferenceRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Reference *documents.DocumentReference `protobuf:"bytes,1,opt,name=reference,proto3" json:"reference,omitempty"` unknownFields protoimpl.UnknownFields - - Reference *documents.DocumentReference `protobuf:"bytes,1,opt,name=reference,proto3" json:"reference,omitempty"` + sizeCache protoimpl.SizeCache } func (x *AddDocumentReferenceRequest) Reset() { @@ -976,11 +959,10 @@ func (x *AddDocumentReferenceRequest) GetReference() *documents.DocumentReferenc } type AddDocumentReferenceResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` unknownFields protoimpl.UnknownFields - - Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` + sizeCache protoimpl.SizeCache } func (x *AddDocumentReferenceResponse) Reset() { @@ -1021,11 +1003,10 @@ func (x *AddDocumentReferenceResponse) GetId() uint64 { } type RemoveDocumentReferenceRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` unknownFields protoimpl.UnknownFields - - Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` + sizeCache protoimpl.SizeCache } func (x *RemoveDocumentReferenceRequest) Reset() { @@ -1066,9 +1047,9 @@ func (x *RemoveDocumentReferenceRequest) GetId() uint64 { } type RemoveDocumentReferenceResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *RemoveDocumentReferenceResponse) Reset() { @@ -1102,11 +1083,10 @@ func (*RemoveDocumentReferenceResponse) Descriptor() ([]byte, []int) { } type AddDocumentRelationRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Relation *documents.DocumentRelation `protobuf:"bytes,1,opt,name=relation,proto3" json:"relation,omitempty"` unknownFields protoimpl.UnknownFields - - Relation *documents.DocumentRelation `protobuf:"bytes,1,opt,name=relation,proto3" json:"relation,omitempty"` + sizeCache protoimpl.SizeCache } func (x *AddDocumentRelationRequest) Reset() { @@ -1147,11 +1127,10 @@ func (x *AddDocumentRelationRequest) GetRelation() *documents.DocumentRelation { } type AddDocumentRelationResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` unknownFields protoimpl.UnknownFields - - Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` + sizeCache protoimpl.SizeCache } func (x *AddDocumentRelationResponse) Reset() { @@ -1192,11 +1171,10 @@ func (x *AddDocumentRelationResponse) GetId() uint64 { } type RemoveDocumentRelationRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` unknownFields protoimpl.UnknownFields - - Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` + sizeCache protoimpl.SizeCache } func (x *RemoveDocumentRelationRequest) Reset() { @@ -1237,9 +1215,9 @@ func (x *RemoveDocumentRelationRequest) GetId() uint64 { } type RemoveDocumentRelationResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *RemoveDocumentRelationResponse) Reset() { @@ -1273,12 +1251,11 @@ func (*RemoveDocumentRelationResponse) Descriptor() ([]byte, []int) { } type GetCommentsRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + 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"` unknownFields protoimpl.UnknownFields - - 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"` + sizeCache protoimpl.SizeCache } func (x *GetCommentsRequest) Reset() { @@ -1326,12 +1303,11 @@ func (x *GetCommentsRequest) GetDocumentId() uint64 { } type GetCommentsResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Pagination *database.PaginationResponse `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"` + Comments []*documents.Comment `protobuf:"bytes,2,rep,name=comments,proto3" json:"comments,omitempty"` unknownFields protoimpl.UnknownFields - - Pagination *database.PaginationResponse `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"` - Comments []*documents.Comment `protobuf:"bytes,2,rep,name=comments,proto3" json:"comments,omitempty"` + sizeCache protoimpl.SizeCache } func (x *GetCommentsResponse) Reset() { @@ -1379,11 +1355,10 @@ func (x *GetCommentsResponse) GetComments() []*documents.Comment { } type PostCommentRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Comment *documents.Comment `protobuf:"bytes,1,opt,name=comment,proto3" json:"comment,omitempty"` unknownFields protoimpl.UnknownFields - - Comment *documents.Comment `protobuf:"bytes,1,opt,name=comment,proto3" json:"comment,omitempty"` + sizeCache protoimpl.SizeCache } func (x *PostCommentRequest) Reset() { @@ -1424,11 +1399,10 @@ func (x *PostCommentRequest) GetComment() *documents.Comment { } type PostCommentResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Comment *documents.Comment `protobuf:"bytes,1,opt,name=comment,proto3" json:"comment,omitempty"` unknownFields protoimpl.UnknownFields - - Comment *documents.Comment `protobuf:"bytes,1,opt,name=comment,proto3" json:"comment,omitempty"` + sizeCache protoimpl.SizeCache } func (x *PostCommentResponse) Reset() { @@ -1469,11 +1443,10 @@ func (x *PostCommentResponse) GetComment() *documents.Comment { } type EditCommentRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Comment *documents.Comment `protobuf:"bytes,1,opt,name=comment,proto3" json:"comment,omitempty"` unknownFields protoimpl.UnknownFields - - Comment *documents.Comment `protobuf:"bytes,1,opt,name=comment,proto3" json:"comment,omitempty"` + sizeCache protoimpl.SizeCache } func (x *EditCommentRequest) Reset() { @@ -1514,11 +1487,10 @@ func (x *EditCommentRequest) GetComment() *documents.Comment { } type EditCommentResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Comment *documents.Comment `protobuf:"bytes,1,opt,name=comment,proto3" json:"comment,omitempty"` unknownFields protoimpl.UnknownFields - - Comment *documents.Comment `protobuf:"bytes,1,opt,name=comment,proto3" json:"comment,omitempty"` + sizeCache protoimpl.SizeCache } func (x *EditCommentResponse) Reset() { @@ -1559,11 +1531,10 @@ func (x *EditCommentResponse) GetComment() *documents.Comment { } type DeleteCommentRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + CommentId uint64 `protobuf:"varint,1,opt,name=comment_id,json=commentId,proto3" json:"comment_id,omitempty"` unknownFields protoimpl.UnknownFields - - CommentId uint64 `protobuf:"varint,1,opt,name=comment_id,json=commentId,proto3" json:"comment_id,omitempty"` + sizeCache protoimpl.SizeCache } func (x *DeleteCommentRequest) Reset() { @@ -1604,9 +1575,9 @@ func (x *DeleteCommentRequest) GetCommentId() uint64 { } type DeleteCommentResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *DeleteCommentResponse) Reset() { @@ -1640,11 +1611,10 @@ func (*DeleteCommentResponse) Descriptor() ([]byte, []int) { } type UpdateDocumentResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + DocumentId uint64 `protobuf:"varint,1,opt,name=document_id,json=documentId,proto3" json:"document_id,omitempty" alias:"id"` // @gotags: alias:"id" unknownFields protoimpl.UnknownFields - - DocumentId uint64 `protobuf:"varint,1,opt,name=document_id,json=documentId,proto3" json:"document_id,omitempty" alias:"id"` // @gotags: alias:"id" + sizeCache protoimpl.SizeCache } func (x *UpdateDocumentResponse) Reset() { @@ -1685,11 +1655,10 @@ func (x *UpdateDocumentResponse) GetDocumentId() uint64 { } type DeleteDocumentRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + DocumentId uint64 `protobuf:"varint,1,opt,name=document_id,json=documentId,proto3" json:"document_id,omitempty" alias:"id"` // @gotags: alias:"id" unknownFields protoimpl.UnknownFields - - DocumentId uint64 `protobuf:"varint,1,opt,name=document_id,json=documentId,proto3" json:"document_id,omitempty" alias:"id"` // @gotags: alias:"id" + sizeCache protoimpl.SizeCache } func (x *DeleteDocumentRequest) Reset() { @@ -1730,9 +1699,9 @@ func (x *DeleteDocumentRequest) GetDocumentId() uint64 { } type DeleteDocumentResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *DeleteDocumentResponse) Reset() { @@ -1766,12 +1735,11 @@ func (*DeleteDocumentResponse) Descriptor() ([]byte, []int) { } type ToggleDocumentRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + DocumentId uint64 `protobuf:"varint,1,opt,name=document_id,json=documentId,proto3" json:"document_id,omitempty"` + Closed bool `protobuf:"varint,2,opt,name=closed,proto3" json:"closed,omitempty"` unknownFields protoimpl.UnknownFields - - DocumentId uint64 `protobuf:"varint,1,opt,name=document_id,json=documentId,proto3" json:"document_id,omitempty"` - Closed bool `protobuf:"varint,2,opt,name=closed,proto3" json:"closed,omitempty"` + sizeCache protoimpl.SizeCache } func (x *ToggleDocumentRequest) Reset() { @@ -1819,9 +1787,9 @@ func (x *ToggleDocumentRequest) GetClosed() bool { } type ToggleDocumentResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *ToggleDocumentResponse) Reset() { @@ -1855,12 +1823,11 @@ func (*ToggleDocumentResponse) Descriptor() ([]byte, []int) { } type ChangeDocumentOwnerRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + DocumentId uint64 `protobuf:"varint,1,opt,name=document_id,json=documentId,proto3" json:"document_id,omitempty"` + NewUserId *int32 `protobuf:"varint,2,opt,name=new_user_id,json=newUserId,proto3,oneof" json:"new_user_id,omitempty"` unknownFields protoimpl.UnknownFields - - DocumentId uint64 `protobuf:"varint,1,opt,name=document_id,json=documentId,proto3" json:"document_id,omitempty"` - NewUserId *int32 `protobuf:"varint,2,opt,name=new_user_id,json=newUserId,proto3,oneof" json:"new_user_id,omitempty"` + sizeCache protoimpl.SizeCache } func (x *ChangeDocumentOwnerRequest) Reset() { @@ -1908,9 +1875,9 @@ func (x *ChangeDocumentOwnerRequest) GetNewUserId() int32 { } type ChangeDocumentOwnerResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *ChangeDocumentOwnerResponse) Reset() { @@ -1944,11 +1911,8 @@ func (*ChangeDocumentOwnerResponse) Descriptor() ([]byte, []int) { } type CreateDocumentRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - CategoryId *uint64 `protobuf:"varint,1,opt,name=category_id,json=categoryId,proto3,oneof" json:"category_id,omitempty" alias:"category_id"` // @gotags: alias:"category_id" + state protoimpl.MessageState `protogen:"open.v1"` + CategoryId *uint64 `protobuf:"varint,1,opt,name=category_id,json=categoryId,proto3,oneof" json:"category_id,omitempty" alias:"category_id"` // @gotags: alias:"category_id" // @sanitize: method=StripTags Title string `protobuf:"bytes,2,opt,name=title,proto3" json:"title,omitempty" alias:"title"` // @gotags: alias:"title" // @sanitize @@ -1956,11 +1920,13 @@ type CreateDocumentRequest struct { ContentType content.ContentType `protobuf:"varint,4,opt,name=content_type,json=contentType,proto3,enum=resources.common.content.ContentType" json:"content_type,omitempty" alias:"content_type"` // @gotags: alias:"content_type" Data *string `protobuf:"bytes,5,opt,name=data,proto3,oneof" json:"data,omitempty" alias:"data"` // @gotags: alias:"data" // @sanitize - 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"` - TemplateId *uint64 `protobuf:"varint,10,opt,name=template_id,json=templateId,proto3,oneof" json:"template_id,omitempty"` + 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"` + TemplateId *uint64 `protobuf:"varint,10,opt,name=template_id,json=templateId,proto3,oneof" json:"template_id,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *CreateDocumentRequest) Reset() { @@ -2064,11 +2030,10 @@ func (x *CreateDocumentRequest) GetTemplateId() uint64 { } type CreateDocumentResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + DocumentId uint64 `protobuf:"varint,1,opt,name=document_id,json=documentId,proto3" json:"document_id,omitempty" alias:"id"` // @gotags: alias:"id" unknownFields protoimpl.UnknownFields - - DocumentId uint64 `protobuf:"varint,1,opt,name=document_id,json=documentId,proto3" json:"document_id,omitempty" alias:"id"` // @gotags: alias:"id" + sizeCache protoimpl.SizeCache } func (x *CreateDocumentResponse) Reset() { @@ -2109,12 +2074,9 @@ func (x *CreateDocumentResponse) GetDocumentId() uint64 { } type UpdateDocumentRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - 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" + state protoimpl.MessageState `protogen:"open.v1"` + 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" // @sanitize: method=StripTags Title string `protobuf:"bytes,3,opt,name=title,proto3" json:"title,omitempty" alias:"title"` // @gotags: alias:"title" // @sanitize @@ -2122,10 +2084,12 @@ type UpdateDocumentRequest struct { ContentType content.ContentType `protobuf:"varint,5,opt,name=content_type,json=contentType,proto3,enum=resources.common.content.ContentType" json:"content_type,omitempty" alias:"content_type"` // @gotags: alias:"content_type" Data *string `protobuf:"bytes,6,opt,name=data,proto3,oneof" json:"data,omitempty" alias:"data"` // @gotags: alias:"data" // @sanitize - 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"` + 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"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *UpdateDocumentRequest) Reset() { @@ -2229,14 +2193,13 @@ func (x *UpdateDocumentRequest) GetAccess() *documents.DocumentAccess { } type ListDocumentActivityRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - + state protoimpl.MessageState `protogen:"open.v1"` 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"` // Search params ActivityTypes []documents.DocActivityType `protobuf:"varint,3,rep,packed,name=activity_types,json=activityTypes,proto3,enum=resources.documents.DocActivityType" json:"activity_types,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *ListDocumentActivityRequest) Reset() { @@ -2291,12 +2254,11 @@ func (x *ListDocumentActivityRequest) GetActivityTypes() []documents.DocActivity } type ListDocumentActivityResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Pagination *database.PaginationResponse `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"` + Activity []*documents.DocActivity `protobuf:"bytes,2,rep,name=activity,proto3" json:"activity,omitempty"` unknownFields protoimpl.UnknownFields - - Pagination *database.PaginationResponse `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"` - Activity []*documents.DocActivity `protobuf:"bytes,2,rep,name=activity,proto3" json:"activity,omitempty"` + sizeCache protoimpl.SizeCache } func (x *ListDocumentActivityResponse) Reset() { @@ -2344,12 +2306,11 @@ func (x *ListDocumentActivityResponse) GetActivity() []*documents.DocActivity { } type ListDocumentReqsRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + 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"` unknownFields protoimpl.UnknownFields - - 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"` + sizeCache protoimpl.SizeCache } func (x *ListDocumentReqsRequest) Reset() { @@ -2397,12 +2358,11 @@ func (x *ListDocumentReqsRequest) GetDocumentId() uint64 { } type ListDocumentReqsResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Pagination *database.PaginationResponse `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"` + Requests []*documents.DocRequest `protobuf:"bytes,2,rep,name=requests,proto3" json:"requests,omitempty"` unknownFields protoimpl.UnknownFields - - Pagination *database.PaginationResponse `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"` - Requests []*documents.DocRequest `protobuf:"bytes,2,rep,name=requests,proto3" json:"requests,omitempty"` + sizeCache protoimpl.SizeCache } func (x *ListDocumentReqsResponse) Reset() { @@ -2450,15 +2410,14 @@ func (x *ListDocumentReqsResponse) GetRequests() []*documents.DocRequest { } type CreateDocumentReqRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - + state protoimpl.MessageState `protogen:"open.v1"` DocumentId uint64 `protobuf:"varint,1,opt,name=document_id,json=documentId,proto3" json:"document_id,omitempty"` RequestType documents.DocActivityType `protobuf:"varint,2,opt,name=request_type,json=requestType,proto3,enum=resources.documents.DocActivityType" json:"request_type,omitempty"` // @sanitize - Reason *string `protobuf:"bytes,3,opt,name=reason,proto3,oneof" json:"reason,omitempty"` - Data *documents.DocActivityData `protobuf:"bytes,4,opt,name=data,proto3,oneof" json:"data,omitempty"` + Reason *string `protobuf:"bytes,3,opt,name=reason,proto3,oneof" json:"reason,omitempty"` + Data *documents.DocActivityData `protobuf:"bytes,4,opt,name=data,proto3,oneof" json:"data,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *CreateDocumentReqRequest) Reset() { @@ -2520,11 +2479,10 @@ func (x *CreateDocumentReqRequest) GetData() *documents.DocActivityData { } type CreateDocumentReqResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Request *documents.DocRequest `protobuf:"bytes,1,opt,name=request,proto3" json:"request,omitempty"` unknownFields protoimpl.UnknownFields - - Request *documents.DocRequest `protobuf:"bytes,1,opt,name=request,proto3" json:"request,omitempty"` + sizeCache protoimpl.SizeCache } func (x *CreateDocumentReqResponse) Reset() { @@ -2565,16 +2523,15 @@ func (x *CreateDocumentReqResponse) GetRequest() *documents.DocRequest { } type UpdateDocumentReqRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - DocumentId uint64 `protobuf:"varint,1,opt,name=document_id,json=documentId,proto3" json:"document_id,omitempty"` - RequestId uint64 `protobuf:"varint,2,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + DocumentId uint64 `protobuf:"varint,1,opt,name=document_id,json=documentId,proto3" json:"document_id,omitempty"` + RequestId uint64 `protobuf:"varint,2,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"` // @sanitize - Reason *string `protobuf:"bytes,3,opt,name=reason,proto3,oneof" json:"reason,omitempty"` - Data *documents.DocActivityData `protobuf:"bytes,4,opt,name=data,proto3,oneof" json:"data,omitempty"` - Accepted bool `protobuf:"varint,5,opt,name=accepted,proto3" json:"accepted,omitempty"` + Reason *string `protobuf:"bytes,3,opt,name=reason,proto3,oneof" json:"reason,omitempty"` + Data *documents.DocActivityData `protobuf:"bytes,4,opt,name=data,proto3,oneof" json:"data,omitempty"` + Accepted bool `protobuf:"varint,5,opt,name=accepted,proto3" json:"accepted,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *UpdateDocumentReqRequest) Reset() { @@ -2643,11 +2600,10 @@ func (x *UpdateDocumentReqRequest) GetAccepted() bool { } type UpdateDocumentReqResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Request *documents.DocRequest `protobuf:"bytes,1,opt,name=request,proto3" json:"request,omitempty"` unknownFields protoimpl.UnknownFields - - Request *documents.DocRequest `protobuf:"bytes,1,opt,name=request,proto3" json:"request,omitempty"` + sizeCache protoimpl.SizeCache } func (x *UpdateDocumentReqResponse) Reset() { @@ -2688,11 +2644,10 @@ func (x *UpdateDocumentReqResponse) GetRequest() *documents.DocRequest { } type DeleteDocumentReqRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + RequestId uint64 `protobuf:"varint,1,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"` unknownFields protoimpl.UnknownFields - - RequestId uint64 `protobuf:"varint,1,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"` + sizeCache protoimpl.SizeCache } func (x *DeleteDocumentReqRequest) Reset() { @@ -2733,9 +2688,9 @@ func (x *DeleteDocumentReqRequest) GetRequestId() uint64 { } type DeleteDocumentReqResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *DeleteDocumentReqResponse) Reset() { @@ -2769,11 +2724,10 @@ func (*DeleteDocumentReqResponse) Descriptor() ([]byte, []int) { } type GetDocumentAccessRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + DocumentId uint64 `protobuf:"varint,1,opt,name=document_id,json=documentId,proto3" json:"document_id,omitempty"` unknownFields protoimpl.UnknownFields - - DocumentId uint64 `protobuf:"varint,1,opt,name=document_id,json=documentId,proto3" json:"document_id,omitempty"` + sizeCache protoimpl.SizeCache } func (x *GetDocumentAccessRequest) Reset() { @@ -2814,11 +2768,10 @@ func (x *GetDocumentAccessRequest) GetDocumentId() uint64 { } type GetDocumentAccessResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Access *documents.DocumentAccess `protobuf:"bytes,1,opt,name=access,proto3" json:"access,omitempty"` unknownFields protoimpl.UnknownFields - - Access *documents.DocumentAccess `protobuf:"bytes,1,opt,name=access,proto3" json:"access,omitempty"` + sizeCache protoimpl.SizeCache } func (x *GetDocumentAccessResponse) Reset() { @@ -2859,12 +2812,11 @@ func (x *GetDocumentAccessResponse) GetAccess() *documents.DocumentAccess { } type SetDocumentAccessRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + DocumentId uint64 `protobuf:"varint,1,opt,name=document_id,json=documentId,proto3" json:"document_id,omitempty"` + Access *documents.DocumentAccess `protobuf:"bytes,2,opt,name=access,proto3" json:"access,omitempty"` unknownFields protoimpl.UnknownFields - - DocumentId uint64 `protobuf:"varint,1,opt,name=document_id,json=documentId,proto3" json:"document_id,omitempty"` - Access *documents.DocumentAccess `protobuf:"bytes,2,opt,name=access,proto3" json:"access,omitempty"` + sizeCache protoimpl.SizeCache } func (x *SetDocumentAccessRequest) Reset() { @@ -2912,9 +2864,9 @@ func (x *SetDocumentAccessRequest) GetAccess() *documents.DocumentAccess { } type SetDocumentAccessResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *SetDocumentAccessResponse) Reset() { @@ -2948,14 +2900,13 @@ func (*SetDocumentAccessResponse) Descriptor() ([]byte, []int) { } type ListUserDocumentsRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + 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.DocRelation `protobuf:"varint,3,rep,packed,name=relations,proto3,enum=resources.documents.DocRelation" json:"relations,omitempty"` + Closed *bool `protobuf:"varint,8,opt,name=closed,proto3,oneof" json:"closed,omitempty"` unknownFields protoimpl.UnknownFields - - 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.DocRelation `protobuf:"varint,3,rep,packed,name=relations,proto3,enum=resources.documents.DocRelation" json:"relations,omitempty"` - Closed *bool `protobuf:"varint,8,opt,name=closed,proto3,oneof" json:"closed,omitempty"` + sizeCache protoimpl.SizeCache } func (x *ListUserDocumentsRequest) Reset() { @@ -3017,12 +2968,11 @@ func (x *ListUserDocumentsRequest) GetClosed() bool { } type ListUserDocumentsResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + 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"` unknownFields protoimpl.UnknownFields - - 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"` + sizeCache protoimpl.SizeCache } func (x *ListUserDocumentsResponse) Reset() { @@ -3070,9 +3020,9 @@ func (x *ListUserDocumentsResponse) GetRelations() []*documents.DocumentRelation } type ListCategoriesRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *ListCategoriesRequest) Reset() { @@ -3106,11 +3056,10 @@ func (*ListCategoriesRequest) Descriptor() ([]byte, []int) { } type ListCategoriesResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Category []*documents.Category `protobuf:"bytes,1,rep,name=category,proto3" json:"category,omitempty"` unknownFields protoimpl.UnknownFields - - Category []*documents.Category `protobuf:"bytes,1,rep,name=category,proto3" json:"category,omitempty"` + sizeCache protoimpl.SizeCache } func (x *ListCategoriesResponse) Reset() { @@ -3151,11 +3100,10 @@ func (x *ListCategoriesResponse) GetCategory() []*documents.Category { } type CreateCategoryRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Category *documents.Category `protobuf:"bytes,1,opt,name=category,proto3" json:"category,omitempty"` unknownFields protoimpl.UnknownFields - - Category *documents.Category `protobuf:"bytes,1,opt,name=category,proto3" json:"category,omitempty"` + sizeCache protoimpl.SizeCache } func (x *CreateCategoryRequest) Reset() { @@ -3196,11 +3144,10 @@ func (x *CreateCategoryRequest) GetCategory() *documents.Category { } type CreateCategoryResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` unknownFields protoimpl.UnknownFields - - Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` + sizeCache protoimpl.SizeCache } func (x *CreateCategoryResponse) Reset() { @@ -3241,11 +3188,10 @@ func (x *CreateCategoryResponse) GetId() uint64 { } type UpdateCategoryRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Category *documents.Category `protobuf:"bytes,1,opt,name=category,proto3" json:"category,omitempty"` unknownFields protoimpl.UnknownFields - - Category *documents.Category `protobuf:"bytes,1,opt,name=category,proto3" json:"category,omitempty"` + sizeCache protoimpl.SizeCache } func (x *UpdateCategoryRequest) Reset() { @@ -3286,9 +3232,9 @@ func (x *UpdateCategoryRequest) GetCategory() *documents.Category { } type UpdateCategoryResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *UpdateCategoryResponse) Reset() { @@ -3322,11 +3268,10 @@ func (*UpdateCategoryResponse) Descriptor() ([]byte, []int) { } type DeleteCategoryRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Ids []uint64 `protobuf:"varint,1,rep,packed,name=ids,proto3" json:"ids,omitempty"` unknownFields protoimpl.UnknownFields - - Ids []uint64 `protobuf:"varint,1,rep,packed,name=ids,proto3" json:"ids,omitempty"` + sizeCache protoimpl.SizeCache } func (x *DeleteCategoryRequest) Reset() { @@ -3367,9 +3312,9 @@ func (x *DeleteCategoryRequest) GetIds() []uint64 { } type DeleteCategoryResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *DeleteCategoryResponse) Reset() { @@ -3403,11 +3348,10 @@ func (*DeleteCategoryResponse) Descriptor() ([]byte, []int) { } type ListDocumentPinsRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Pagination *database.PaginationRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"` unknownFields protoimpl.UnknownFields - - Pagination *database.PaginationRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"` + sizeCache protoimpl.SizeCache } func (x *ListDocumentPinsRequest) Reset() { @@ -3448,12 +3392,11 @@ func (x *ListDocumentPinsRequest) GetPagination() *database.PaginationRequest { } type ListDocumentPinsResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + 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"` unknownFields protoimpl.UnknownFields - - 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"` + sizeCache protoimpl.SizeCache } func (x *ListDocumentPinsResponse) Reset() { @@ -3501,12 +3444,11 @@ func (x *ListDocumentPinsResponse) GetDocuments() []*documents.DocumentShort { } type ToggleDocumentPinRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + DocumentId uint64 `protobuf:"varint,1,opt,name=document_id,json=documentId,proto3" json:"document_id,omitempty"` + State bool `protobuf:"varint,2,opt,name=state,proto3" json:"state,omitempty"` unknownFields protoimpl.UnknownFields - - DocumentId uint64 `protobuf:"varint,1,opt,name=document_id,json=documentId,proto3" json:"document_id,omitempty"` - State bool `protobuf:"varint,2,opt,name=state,proto3" json:"state,omitempty"` + sizeCache protoimpl.SizeCache } func (x *ToggleDocumentPinRequest) Reset() { @@ -3554,11 +3496,10 @@ func (x *ToggleDocumentPinRequest) GetState() bool { } type ToggleDocumentPinResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + State bool `protobuf:"varint,1,opt,name=state,proto3" json:"state,omitempty"` unknownFields protoimpl.UnknownFields - - State bool `protobuf:"varint,1,opt,name=state,proto3" json:"state,omitempty"` + sizeCache protoimpl.SizeCache } func (x *ToggleDocumentPinResponse) Reset() { @@ -3599,14 +3540,13 @@ func (x *ToggleDocumentPinResponse) GetState() bool { } type SetDocumentReminderRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - DocumentId uint64 `protobuf:"varint,1,opt,name=document_id,json=documentId,proto3" json:"document_id,omitempty"` - ReminderTime *timestamp.Timestamp `protobuf:"bytes,2,opt,name=reminder_time,json=reminderTime,proto3,oneof" json:"reminder_time,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + DocumentId uint64 `protobuf:"varint,1,opt,name=document_id,json=documentId,proto3" json:"document_id,omitempty"` + ReminderTime *timestamp.Timestamp `protobuf:"bytes,2,opt,name=reminder_time,json=reminderTime,proto3,oneof" json:"reminder_time,omitempty"` // @sanitize: method=StripTags - Message *string `protobuf:"bytes,3,opt,name=message,proto3,oneof" json:"message,omitempty"` + Message *string `protobuf:"bytes,3,opt,name=message,proto3,oneof" json:"message,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *SetDocumentReminderRequest) Reset() { @@ -3661,9 +3601,9 @@ func (x *SetDocumentReminderRequest) GetMessage() string { } type SetDocumentReminderResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *SetDocumentReminderResponse) Reset() { diff --git a/gen/go/proto/services/docstore/docstore_grpc.pb.go b/gen/go/proto/services/docstore/docstore_grpc.pb.go index 4a04179be..747aea400 100644 --- a/gen/go/proto/services/docstore/docstore_grpc.pb.go +++ b/gen/go/proto/services/docstore/docstore_grpc.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: -// - protoc-gen-go-grpc v1.3.0 +// - protoc-gen-go-grpc v1.5.1 // - protoc v3.20.3 // source: services/docstore/docstore.proto @@ -15,8 +15,8 @@ import ( // This is a compile-time assertion to ensure that this generated file // is compatible with the grpc package it is being compiled against. -// Requires gRPC-Go v1.32.0 or later. -const _ = grpc.SupportPackageIsVersion7 +// Requires gRPC-Go v1.64.0 or later. +const _ = grpc.SupportPackageIsVersion9 const ( DocStoreService_ListTemplates_FullMethodName = "/services.docstore.DocStoreService/ListTemplates" @@ -147,8 +147,9 @@ func NewDocStoreServiceClient(cc grpc.ClientConnInterface) DocStoreServiceClient } func (c *docStoreServiceClient) ListTemplates(ctx context.Context, in *ListTemplatesRequest, opts ...grpc.CallOption) (*ListTemplatesResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(ListTemplatesResponse) - err := c.cc.Invoke(ctx, DocStoreService_ListTemplates_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, DocStoreService_ListTemplates_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -156,8 +157,9 @@ func (c *docStoreServiceClient) ListTemplates(ctx context.Context, in *ListTempl } func (c *docStoreServiceClient) GetTemplate(ctx context.Context, in *GetTemplateRequest, opts ...grpc.CallOption) (*GetTemplateResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(GetTemplateResponse) - err := c.cc.Invoke(ctx, DocStoreService_GetTemplate_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, DocStoreService_GetTemplate_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -165,8 +167,9 @@ func (c *docStoreServiceClient) GetTemplate(ctx context.Context, in *GetTemplate } func (c *docStoreServiceClient) CreateTemplate(ctx context.Context, in *CreateTemplateRequest, opts ...grpc.CallOption) (*CreateTemplateResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(CreateTemplateResponse) - err := c.cc.Invoke(ctx, DocStoreService_CreateTemplate_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, DocStoreService_CreateTemplate_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -174,8 +177,9 @@ func (c *docStoreServiceClient) CreateTemplate(ctx context.Context, in *CreateTe } func (c *docStoreServiceClient) UpdateTemplate(ctx context.Context, in *UpdateTemplateRequest, opts ...grpc.CallOption) (*UpdateTemplateResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(UpdateTemplateResponse) - err := c.cc.Invoke(ctx, DocStoreService_UpdateTemplate_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, DocStoreService_UpdateTemplate_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -183,8 +187,9 @@ func (c *docStoreServiceClient) UpdateTemplate(ctx context.Context, in *UpdateTe } func (c *docStoreServiceClient) DeleteTemplate(ctx context.Context, in *DeleteTemplateRequest, opts ...grpc.CallOption) (*DeleteTemplateResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(DeleteTemplateResponse) - err := c.cc.Invoke(ctx, DocStoreService_DeleteTemplate_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, DocStoreService_DeleteTemplate_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -192,8 +197,9 @@ func (c *docStoreServiceClient) DeleteTemplate(ctx context.Context, in *DeleteTe } func (c *docStoreServiceClient) ListDocuments(ctx context.Context, in *ListDocumentsRequest, opts ...grpc.CallOption) (*ListDocumentsResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(ListDocumentsResponse) - err := c.cc.Invoke(ctx, DocStoreService_ListDocuments_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, DocStoreService_ListDocuments_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -201,8 +207,9 @@ func (c *docStoreServiceClient) ListDocuments(ctx context.Context, in *ListDocum } func (c *docStoreServiceClient) GetDocument(ctx context.Context, in *GetDocumentRequest, opts ...grpc.CallOption) (*GetDocumentResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(GetDocumentResponse) - err := c.cc.Invoke(ctx, DocStoreService_GetDocument_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, DocStoreService_GetDocument_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -210,8 +217,9 @@ func (c *docStoreServiceClient) GetDocument(ctx context.Context, in *GetDocument } func (c *docStoreServiceClient) CreateDocument(ctx context.Context, in *CreateDocumentRequest, opts ...grpc.CallOption) (*CreateDocumentResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(CreateDocumentResponse) - err := c.cc.Invoke(ctx, DocStoreService_CreateDocument_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, DocStoreService_CreateDocument_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -219,8 +227,9 @@ func (c *docStoreServiceClient) CreateDocument(ctx context.Context, in *CreateDo } func (c *docStoreServiceClient) UpdateDocument(ctx context.Context, in *UpdateDocumentRequest, opts ...grpc.CallOption) (*UpdateDocumentResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(UpdateDocumentResponse) - err := c.cc.Invoke(ctx, DocStoreService_UpdateDocument_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, DocStoreService_UpdateDocument_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -228,8 +237,9 @@ func (c *docStoreServiceClient) UpdateDocument(ctx context.Context, in *UpdateDo } func (c *docStoreServiceClient) DeleteDocument(ctx context.Context, in *DeleteDocumentRequest, opts ...grpc.CallOption) (*DeleteDocumentResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(DeleteDocumentResponse) - err := c.cc.Invoke(ctx, DocStoreService_DeleteDocument_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, DocStoreService_DeleteDocument_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -237,8 +247,9 @@ func (c *docStoreServiceClient) DeleteDocument(ctx context.Context, in *DeleteDo } func (c *docStoreServiceClient) ToggleDocument(ctx context.Context, in *ToggleDocumentRequest, opts ...grpc.CallOption) (*ToggleDocumentResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(ToggleDocumentResponse) - err := c.cc.Invoke(ctx, DocStoreService_ToggleDocument_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, DocStoreService_ToggleDocument_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -246,8 +257,9 @@ func (c *docStoreServiceClient) ToggleDocument(ctx context.Context, in *ToggleDo } func (c *docStoreServiceClient) ChangeDocumentOwner(ctx context.Context, in *ChangeDocumentOwnerRequest, opts ...grpc.CallOption) (*ChangeDocumentOwnerResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(ChangeDocumentOwnerResponse) - err := c.cc.Invoke(ctx, DocStoreService_ChangeDocumentOwner_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, DocStoreService_ChangeDocumentOwner_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -255,8 +267,9 @@ func (c *docStoreServiceClient) ChangeDocumentOwner(ctx context.Context, in *Cha } func (c *docStoreServiceClient) GetDocumentReferences(ctx context.Context, in *GetDocumentReferencesRequest, opts ...grpc.CallOption) (*GetDocumentReferencesResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(GetDocumentReferencesResponse) - err := c.cc.Invoke(ctx, DocStoreService_GetDocumentReferences_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, DocStoreService_GetDocumentReferences_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -264,8 +277,9 @@ func (c *docStoreServiceClient) GetDocumentReferences(ctx context.Context, in *G } func (c *docStoreServiceClient) GetDocumentRelations(ctx context.Context, in *GetDocumentRelationsRequest, opts ...grpc.CallOption) (*GetDocumentRelationsResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(GetDocumentRelationsResponse) - err := c.cc.Invoke(ctx, DocStoreService_GetDocumentRelations_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, DocStoreService_GetDocumentRelations_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -273,8 +287,9 @@ func (c *docStoreServiceClient) GetDocumentRelations(ctx context.Context, in *Ge } func (c *docStoreServiceClient) AddDocumentReference(ctx context.Context, in *AddDocumentReferenceRequest, opts ...grpc.CallOption) (*AddDocumentReferenceResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(AddDocumentReferenceResponse) - err := c.cc.Invoke(ctx, DocStoreService_AddDocumentReference_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, DocStoreService_AddDocumentReference_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -282,8 +297,9 @@ func (c *docStoreServiceClient) AddDocumentReference(ctx context.Context, in *Ad } func (c *docStoreServiceClient) RemoveDocumentReference(ctx context.Context, in *RemoveDocumentReferenceRequest, opts ...grpc.CallOption) (*RemoveDocumentReferenceResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(RemoveDocumentReferenceResponse) - err := c.cc.Invoke(ctx, DocStoreService_RemoveDocumentReference_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, DocStoreService_RemoveDocumentReference_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -291,8 +307,9 @@ func (c *docStoreServiceClient) RemoveDocumentReference(ctx context.Context, in } func (c *docStoreServiceClient) AddDocumentRelation(ctx context.Context, in *AddDocumentRelationRequest, opts ...grpc.CallOption) (*AddDocumentRelationResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(AddDocumentRelationResponse) - err := c.cc.Invoke(ctx, DocStoreService_AddDocumentRelation_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, DocStoreService_AddDocumentRelation_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -300,8 +317,9 @@ func (c *docStoreServiceClient) AddDocumentRelation(ctx context.Context, in *Add } func (c *docStoreServiceClient) RemoveDocumentRelation(ctx context.Context, in *RemoveDocumentRelationRequest, opts ...grpc.CallOption) (*RemoveDocumentRelationResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(RemoveDocumentRelationResponse) - err := c.cc.Invoke(ctx, DocStoreService_RemoveDocumentRelation_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, DocStoreService_RemoveDocumentRelation_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -309,8 +327,9 @@ func (c *docStoreServiceClient) RemoveDocumentRelation(ctx context.Context, in * } func (c *docStoreServiceClient) GetComments(ctx context.Context, in *GetCommentsRequest, opts ...grpc.CallOption) (*GetCommentsResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(GetCommentsResponse) - err := c.cc.Invoke(ctx, DocStoreService_GetComments_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, DocStoreService_GetComments_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -318,8 +337,9 @@ func (c *docStoreServiceClient) GetComments(ctx context.Context, in *GetComments } func (c *docStoreServiceClient) PostComment(ctx context.Context, in *PostCommentRequest, opts ...grpc.CallOption) (*PostCommentResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(PostCommentResponse) - err := c.cc.Invoke(ctx, DocStoreService_PostComment_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, DocStoreService_PostComment_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -327,8 +347,9 @@ func (c *docStoreServiceClient) PostComment(ctx context.Context, in *PostComment } func (c *docStoreServiceClient) EditComment(ctx context.Context, in *EditCommentRequest, opts ...grpc.CallOption) (*EditCommentResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(EditCommentResponse) - err := c.cc.Invoke(ctx, DocStoreService_EditComment_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, DocStoreService_EditComment_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -336,8 +357,9 @@ func (c *docStoreServiceClient) EditComment(ctx context.Context, in *EditComment } func (c *docStoreServiceClient) DeleteComment(ctx context.Context, in *DeleteCommentRequest, opts ...grpc.CallOption) (*DeleteCommentResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(DeleteCommentResponse) - err := c.cc.Invoke(ctx, DocStoreService_DeleteComment_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, DocStoreService_DeleteComment_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -345,8 +367,9 @@ func (c *docStoreServiceClient) DeleteComment(ctx context.Context, in *DeleteCom } func (c *docStoreServiceClient) GetDocumentAccess(ctx context.Context, in *GetDocumentAccessRequest, opts ...grpc.CallOption) (*GetDocumentAccessResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(GetDocumentAccessResponse) - err := c.cc.Invoke(ctx, DocStoreService_GetDocumentAccess_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, DocStoreService_GetDocumentAccess_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -354,8 +377,9 @@ func (c *docStoreServiceClient) GetDocumentAccess(ctx context.Context, in *GetDo } func (c *docStoreServiceClient) SetDocumentAccess(ctx context.Context, in *SetDocumentAccessRequest, opts ...grpc.CallOption) (*SetDocumentAccessResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(SetDocumentAccessResponse) - err := c.cc.Invoke(ctx, DocStoreService_SetDocumentAccess_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, DocStoreService_SetDocumentAccess_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -363,8 +387,9 @@ func (c *docStoreServiceClient) SetDocumentAccess(ctx context.Context, in *SetDo } func (c *docStoreServiceClient) ListDocumentActivity(ctx context.Context, in *ListDocumentActivityRequest, opts ...grpc.CallOption) (*ListDocumentActivityResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(ListDocumentActivityResponse) - err := c.cc.Invoke(ctx, DocStoreService_ListDocumentActivity_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, DocStoreService_ListDocumentActivity_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -372,8 +397,9 @@ func (c *docStoreServiceClient) ListDocumentActivity(ctx context.Context, in *Li } func (c *docStoreServiceClient) ListDocumentReqs(ctx context.Context, in *ListDocumentReqsRequest, opts ...grpc.CallOption) (*ListDocumentReqsResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(ListDocumentReqsResponse) - err := c.cc.Invoke(ctx, DocStoreService_ListDocumentReqs_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, DocStoreService_ListDocumentReqs_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -381,8 +407,9 @@ func (c *docStoreServiceClient) ListDocumentReqs(ctx context.Context, in *ListDo } func (c *docStoreServiceClient) CreateDocumentReq(ctx context.Context, in *CreateDocumentReqRequest, opts ...grpc.CallOption) (*CreateDocumentReqResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(CreateDocumentReqResponse) - err := c.cc.Invoke(ctx, DocStoreService_CreateDocumentReq_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, DocStoreService_CreateDocumentReq_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -390,8 +417,9 @@ func (c *docStoreServiceClient) CreateDocumentReq(ctx context.Context, in *Creat } func (c *docStoreServiceClient) UpdateDocumentReq(ctx context.Context, in *UpdateDocumentReqRequest, opts ...grpc.CallOption) (*UpdateDocumentReqResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(UpdateDocumentReqResponse) - err := c.cc.Invoke(ctx, DocStoreService_UpdateDocumentReq_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, DocStoreService_UpdateDocumentReq_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -399,8 +427,9 @@ func (c *docStoreServiceClient) UpdateDocumentReq(ctx context.Context, in *Updat } func (c *docStoreServiceClient) DeleteDocumentReq(ctx context.Context, in *DeleteDocumentReqRequest, opts ...grpc.CallOption) (*DeleteDocumentReqResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(DeleteDocumentReqResponse) - err := c.cc.Invoke(ctx, DocStoreService_DeleteDocumentReq_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, DocStoreService_DeleteDocumentReq_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -408,8 +437,9 @@ func (c *docStoreServiceClient) DeleteDocumentReq(ctx context.Context, in *Delet } func (c *docStoreServiceClient) ListUserDocuments(ctx context.Context, in *ListUserDocumentsRequest, opts ...grpc.CallOption) (*ListUserDocumentsResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(ListUserDocumentsResponse) - err := c.cc.Invoke(ctx, DocStoreService_ListUserDocuments_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, DocStoreService_ListUserDocuments_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -417,8 +447,9 @@ func (c *docStoreServiceClient) ListUserDocuments(ctx context.Context, in *ListU } func (c *docStoreServiceClient) ListCategories(ctx context.Context, in *ListCategoriesRequest, opts ...grpc.CallOption) (*ListCategoriesResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(ListCategoriesResponse) - err := c.cc.Invoke(ctx, DocStoreService_ListCategories_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, DocStoreService_ListCategories_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -426,8 +457,9 @@ func (c *docStoreServiceClient) ListCategories(ctx context.Context, in *ListCate } func (c *docStoreServiceClient) CreateCategory(ctx context.Context, in *CreateCategoryRequest, opts ...grpc.CallOption) (*CreateCategoryResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(CreateCategoryResponse) - err := c.cc.Invoke(ctx, DocStoreService_CreateCategory_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, DocStoreService_CreateCategory_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -435,8 +467,9 @@ func (c *docStoreServiceClient) CreateCategory(ctx context.Context, in *CreateCa } func (c *docStoreServiceClient) UpdateCategory(ctx context.Context, in *UpdateCategoryRequest, opts ...grpc.CallOption) (*UpdateCategoryResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(UpdateCategoryResponse) - err := c.cc.Invoke(ctx, DocStoreService_UpdateCategory_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, DocStoreService_UpdateCategory_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -444,8 +477,9 @@ func (c *docStoreServiceClient) UpdateCategory(ctx context.Context, in *UpdateCa } func (c *docStoreServiceClient) DeleteCategory(ctx context.Context, in *DeleteCategoryRequest, opts ...grpc.CallOption) (*DeleteCategoryResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(DeleteCategoryResponse) - err := c.cc.Invoke(ctx, DocStoreService_DeleteCategory_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, DocStoreService_DeleteCategory_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -453,8 +487,9 @@ func (c *docStoreServiceClient) DeleteCategory(ctx context.Context, in *DeleteCa } func (c *docStoreServiceClient) ListDocumentPins(ctx context.Context, in *ListDocumentPinsRequest, opts ...grpc.CallOption) (*ListDocumentPinsResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(ListDocumentPinsResponse) - err := c.cc.Invoke(ctx, DocStoreService_ListDocumentPins_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, DocStoreService_ListDocumentPins_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -462,8 +497,9 @@ func (c *docStoreServiceClient) ListDocumentPins(ctx context.Context, in *ListDo } func (c *docStoreServiceClient) ToggleDocumentPin(ctx context.Context, in *ToggleDocumentPinRequest, opts ...grpc.CallOption) (*ToggleDocumentPinResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(ToggleDocumentPinResponse) - err := c.cc.Invoke(ctx, DocStoreService_ToggleDocumentPin_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, DocStoreService_ToggleDocumentPin_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -471,8 +507,9 @@ func (c *docStoreServiceClient) ToggleDocumentPin(ctx context.Context, in *Toggl } func (c *docStoreServiceClient) SetDocumentReminder(ctx context.Context, in *SetDocumentReminderRequest, opts ...grpc.CallOption) (*SetDocumentReminderResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(SetDocumentReminderResponse) - err := c.cc.Invoke(ctx, DocStoreService_SetDocumentReminder_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, DocStoreService_SetDocumentReminder_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -481,7 +518,7 @@ func (c *docStoreServiceClient) SetDocumentReminder(ctx context.Context, in *Set // DocStoreServiceServer is the server API for DocStoreService service. // All implementations must embed UnimplementedDocStoreServiceServer -// for forward compatibility +// for forward compatibility. type DocStoreServiceServer interface { // @perm ListTemplates(context.Context, *ListTemplatesRequest) (*ListTemplatesResponse, error) @@ -560,9 +597,12 @@ type DocStoreServiceServer interface { mustEmbedUnimplementedDocStoreServiceServer() } -// UnimplementedDocStoreServiceServer must be embedded to have forward compatible implementations. -type UnimplementedDocStoreServiceServer struct { -} +// UnimplementedDocStoreServiceServer must be embedded to have +// forward compatible implementations. +// +// NOTE: this should be embedded by value instead of pointer to avoid a nil +// pointer dereference when methods are called. +type UnimplementedDocStoreServiceServer struct{} func (UnimplementedDocStoreServiceServer) ListTemplates(context.Context, *ListTemplatesRequest) (*ListTemplatesResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method ListTemplates not implemented") @@ -676,6 +716,7 @@ func (UnimplementedDocStoreServiceServer) SetDocumentReminder(context.Context, * return nil, status.Errorf(codes.Unimplemented, "method SetDocumentReminder not implemented") } func (UnimplementedDocStoreServiceServer) mustEmbedUnimplementedDocStoreServiceServer() {} +func (UnimplementedDocStoreServiceServer) testEmbeddedByValue() {} // 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 @@ -685,6 +726,13 @@ type UnsafeDocStoreServiceServer interface { } func RegisterDocStoreServiceServer(s grpc.ServiceRegistrar, srv DocStoreServiceServer) { + // If the following call pancis, it indicates UnimplementedDocStoreServiceServer was + // embedded by pointer and is nil. This will cause panics if an + // unimplemented method is ever invoked, so we test this at initialization + // time to prevent it from happening at runtime later due to I/O. + if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { + t.testEmbeddedByValue() + } s.RegisterService(&DocStoreService_ServiceDesc, srv) } diff --git a/gen/go/proto/services/internet/ads.pb.go b/gen/go/proto/services/internet/ads.pb.go index bf88d3039..b36545960 100644 --- a/gen/go/proto/services/internet/ads.pb.go +++ b/gen/go/proto/services/internet/ads.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.35.2 +// protoc-gen-go v1.36.0 // protoc v3.20.3 // source: services/internet/ads.proto @@ -23,12 +23,11 @@ const ( ) type GetAdsRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + AdType internet.AdType `protobuf:"varint,1,opt,name=ad_type,json=adType,proto3,enum=resources.internet.AdType" json:"ad_type,omitempty"` + Count int32 `protobuf:"varint,2,opt,name=count,proto3" json:"count,omitempty"` unknownFields protoimpl.UnknownFields - - AdType internet.AdType `protobuf:"varint,1,opt,name=ad_type,json=adType,proto3,enum=resources.internet.AdType" json:"ad_type,omitempty"` - Count int32 `protobuf:"varint,2,opt,name=count,proto3" json:"count,omitempty"` + sizeCache protoimpl.SizeCache } func (x *GetAdsRequest) Reset() { @@ -76,11 +75,10 @@ func (x *GetAdsRequest) GetCount() int32 { } type GetAdsResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Ads []*internet.Ad `protobuf:"bytes,1,rep,name=ads,proto3" json:"ads,omitempty"` unknownFields protoimpl.UnknownFields - - Ads []*internet.Ad `protobuf:"bytes,1,rep,name=ads,proto3" json:"ads,omitempty"` + sizeCache protoimpl.SizeCache } func (x *GetAdsResponse) Reset() { diff --git a/gen/go/proto/services/internet/ads_grpc.pb.go b/gen/go/proto/services/internet/ads_grpc.pb.go index d5dc0d705..6e7f9b2bb 100644 --- a/gen/go/proto/services/internet/ads_grpc.pb.go +++ b/gen/go/proto/services/internet/ads_grpc.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: -// - protoc-gen-go-grpc v1.3.0 +// - protoc-gen-go-grpc v1.5.1 // - protoc v3.20.3 // source: services/internet/ads.proto @@ -15,8 +15,8 @@ import ( // This is a compile-time assertion to ensure that this generated file // is compatible with the grpc package it is being compiled against. -// Requires gRPC-Go v1.32.0 or later. -const _ = grpc.SupportPackageIsVersion7 +// Requires gRPC-Go v1.64.0 or later. +const _ = grpc.SupportPackageIsVersion9 const ( AdsService_GetAds_FullMethodName = "/services.internet.AdsService/GetAds" @@ -39,8 +39,9 @@ func NewAdsServiceClient(cc grpc.ClientConnInterface) AdsServiceClient { } func (c *adsServiceClient) GetAds(ctx context.Context, in *GetAdsRequest, opts ...grpc.CallOption) (*GetAdsResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(GetAdsResponse) - err := c.cc.Invoke(ctx, AdsService_GetAds_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, AdsService_GetAds_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -49,21 +50,25 @@ func (c *adsServiceClient) GetAds(ctx context.Context, in *GetAdsRequest, opts . // AdsServiceServer is the server API for AdsService service. // All implementations must embed UnimplementedAdsServiceServer -// for forward compatibility +// for forward compatibility. type AdsServiceServer interface { // @perm: Name=Any GetAds(context.Context, *GetAdsRequest) (*GetAdsResponse, error) mustEmbedUnimplementedAdsServiceServer() } -// UnimplementedAdsServiceServer must be embedded to have forward compatible implementations. -type UnimplementedAdsServiceServer struct { -} +// UnimplementedAdsServiceServer must be embedded to have +// forward compatible implementations. +// +// NOTE: this should be embedded by value instead of pointer to avoid a nil +// pointer dereference when methods are called. +type UnimplementedAdsServiceServer struct{} func (UnimplementedAdsServiceServer) GetAds(context.Context, *GetAdsRequest) (*GetAdsResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method GetAds not implemented") } func (UnimplementedAdsServiceServer) mustEmbedUnimplementedAdsServiceServer() {} +func (UnimplementedAdsServiceServer) testEmbeddedByValue() {} // UnsafeAdsServiceServer may be embedded to opt out of forward compatibility for this service. // Use of this interface is not recommended, as added methods to AdsServiceServer will @@ -73,6 +78,13 @@ type UnsafeAdsServiceServer interface { } func RegisterAdsServiceServer(s grpc.ServiceRegistrar, srv AdsServiceServer) { + // If the following call pancis, it indicates UnimplementedAdsServiceServer was + // embedded by pointer and is nil. This will cause panics if an + // unimplemented method is ever invoked, so we test this at initialization + // time to prevent it from happening at runtime later due to I/O. + if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { + t.testEmbeddedByValue() + } s.RegisterService(&AdsService_ServiceDesc, srv) } diff --git a/gen/go/proto/services/internet/internet.pb.go b/gen/go/proto/services/internet/internet.pb.go index 2c9771efd..78cbedbc1 100644 --- a/gen/go/proto/services/internet/internet.pb.go +++ b/gen/go/proto/services/internet/internet.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.35.2 +// protoc-gen-go v1.36.0 // protoc v3.20.3 // source: services/internet/internet.proto @@ -22,11 +22,10 @@ const ( ) type SearchRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Search string `protobuf:"bytes,1,opt,name=search,proto3" json:"search,omitempty"` unknownFields protoimpl.UnknownFields - - Search string `protobuf:"bytes,1,opt,name=search,proto3" json:"search,omitempty"` + sizeCache protoimpl.SizeCache } func (x *SearchRequest) Reset() { @@ -67,11 +66,10 @@ func (x *SearchRequest) GetSearch() string { } type SearchResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Results []*internet.SearchResult `protobuf:"bytes,1,rep,name=results,proto3" json:"results,omitempty"` unknownFields protoimpl.UnknownFields - - Results []*internet.SearchResult `protobuf:"bytes,1,rep,name=results,proto3" json:"results,omitempty"` + sizeCache protoimpl.SizeCache } func (x *SearchResponse) Reset() { @@ -112,12 +110,11 @@ func (x *SearchResponse) GetResults() []*internet.SearchResult { } type GetPageRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Domain string `protobuf:"bytes,1,opt,name=domain,proto3" json:"domain,omitempty"` + Path string `protobuf:"bytes,2,opt,name=path,proto3" json:"path,omitempty"` unknownFields protoimpl.UnknownFields - - Domain string `protobuf:"bytes,1,opt,name=domain,proto3" json:"domain,omitempty"` - Path string `protobuf:"bytes,2,opt,name=path,proto3" json:"path,omitempty"` + sizeCache protoimpl.SizeCache } func (x *GetPageRequest) Reset() { @@ -165,11 +162,10 @@ func (x *GetPageRequest) GetPath() string { } type GetPageResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Page *internet.Page `protobuf:"bytes,1,opt,name=page,proto3,oneof" json:"page,omitempty"` unknownFields protoimpl.UnknownFields - - Page *internet.Page `protobuf:"bytes,1,opt,name=page,proto3,oneof" json:"page,omitempty"` + sizeCache protoimpl.SizeCache } func (x *GetPageResponse) Reset() { diff --git a/gen/go/proto/services/internet/internet_grpc.pb.go b/gen/go/proto/services/internet/internet_grpc.pb.go index 2eda70da3..78a742079 100644 --- a/gen/go/proto/services/internet/internet_grpc.pb.go +++ b/gen/go/proto/services/internet/internet_grpc.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: -// - protoc-gen-go-grpc v1.3.0 +// - protoc-gen-go-grpc v1.5.1 // - protoc v3.20.3 // source: services/internet/internet.proto @@ -15,8 +15,8 @@ import ( // This is a compile-time assertion to ensure that this generated file // is compatible with the grpc package it is being compiled against. -// Requires gRPC-Go v1.32.0 or later. -const _ = grpc.SupportPackageIsVersion7 +// Requires gRPC-Go v1.64.0 or later. +const _ = grpc.SupportPackageIsVersion9 const ( InternetService_Search_FullMethodName = "/services.internet.InternetService/Search" @@ -42,8 +42,9 @@ func NewInternetServiceClient(cc grpc.ClientConnInterface) InternetServiceClient } func (c *internetServiceClient) Search(ctx context.Context, in *SearchRequest, opts ...grpc.CallOption) (*SearchResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(SearchResponse) - err := c.cc.Invoke(ctx, InternetService_Search_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, InternetService_Search_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -51,8 +52,9 @@ func (c *internetServiceClient) Search(ctx context.Context, in *SearchRequest, o } func (c *internetServiceClient) GetPage(ctx context.Context, in *GetPageRequest, opts ...grpc.CallOption) (*GetPageResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(GetPageResponse) - err := c.cc.Invoke(ctx, InternetService_GetPage_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, InternetService_GetPage_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -61,7 +63,7 @@ func (c *internetServiceClient) GetPage(ctx context.Context, in *GetPageRequest, // InternetServiceServer is the server API for InternetService service. // All implementations must embed UnimplementedInternetServiceServer -// for forward compatibility +// for forward compatibility. type InternetServiceServer interface { // @perm: Name=Any Search(context.Context, *SearchRequest) (*SearchResponse, error) @@ -70,9 +72,12 @@ type InternetServiceServer interface { mustEmbedUnimplementedInternetServiceServer() } -// UnimplementedInternetServiceServer must be embedded to have forward compatible implementations. -type UnimplementedInternetServiceServer struct { -} +// UnimplementedInternetServiceServer must be embedded to have +// forward compatible implementations. +// +// NOTE: this should be embedded by value instead of pointer to avoid a nil +// pointer dereference when methods are called. +type UnimplementedInternetServiceServer struct{} func (UnimplementedInternetServiceServer) Search(context.Context, *SearchRequest) (*SearchResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method Search not implemented") @@ -81,6 +86,7 @@ func (UnimplementedInternetServiceServer) GetPage(context.Context, *GetPageReque return nil, status.Errorf(codes.Unimplemented, "method GetPage not implemented") } func (UnimplementedInternetServiceServer) mustEmbedUnimplementedInternetServiceServer() {} +func (UnimplementedInternetServiceServer) testEmbeddedByValue() {} // UnsafeInternetServiceServer may be embedded to opt out of forward compatibility for this service. // Use of this interface is not recommended, as added methods to InternetServiceServer will @@ -90,6 +96,13 @@ type UnsafeInternetServiceServer interface { } func RegisterInternetServiceServer(s grpc.ServiceRegistrar, srv InternetServiceServer) { + // If the following call pancis, it indicates UnimplementedInternetServiceServer was + // embedded by pointer and is nil. This will cause panics if an + // unimplemented method is ever invoked, so we test this at initialization + // time to prevent it from happening at runtime later due to I/O. + if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { + t.testEmbeddedByValue() + } s.RegisterService(&InternetService_ServiceDesc, srv) } diff --git a/gen/go/proto/services/jobs/conduct.pb.go b/gen/go/proto/services/jobs/conduct.pb.go index 4d696b8ae..acd249534 100644 --- a/gen/go/proto/services/jobs/conduct.pb.go +++ b/gen/go/proto/services/jobs/conduct.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.35.2 +// protoc-gen-go v1.36.0 // protoc v3.20.3 // source: services/jobs/conduct.proto @@ -24,17 +24,16 @@ const ( ) type ListConductEntriesRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - + state protoimpl.MessageState `protogen:"open.v1"` Pagination *database.PaginationRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"` Sort *database.Sort `protobuf:"bytes,2,opt,name=sort,proto3,oneof" json:"sort,omitempty"` // Search params - Types []jobs.ConductType `protobuf:"varint,3,rep,packed,name=types,proto3,enum=resources.jobs.ConductType" json:"types,omitempty"` - ShowExpired *bool `protobuf:"varint,4,opt,name=show_expired,json=showExpired,proto3,oneof" json:"show_expired,omitempty"` - UserIds []int32 `protobuf:"varint,5,rep,packed,name=user_ids,json=userIds,proto3" json:"user_ids,omitempty"` - Ids []uint64 `protobuf:"varint,6,rep,packed,name=ids,proto3" json:"ids,omitempty"` + Types []jobs.ConductType `protobuf:"varint,3,rep,packed,name=types,proto3,enum=resources.jobs.ConductType" json:"types,omitempty"` + ShowExpired *bool `protobuf:"varint,4,opt,name=show_expired,json=showExpired,proto3,oneof" json:"show_expired,omitempty"` + UserIds []int32 `protobuf:"varint,5,rep,packed,name=user_ids,json=userIds,proto3" json:"user_ids,omitempty"` + Ids []uint64 `protobuf:"varint,6,rep,packed,name=ids,proto3" json:"ids,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *ListConductEntriesRequest) Reset() { @@ -110,12 +109,11 @@ func (x *ListConductEntriesRequest) GetIds() []uint64 { } type ListConductEntriesResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Pagination *database.PaginationResponse `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"` + Entries []*jobs.ConductEntry `protobuf:"bytes,2,rep,name=entries,proto3" json:"entries,omitempty"` unknownFields protoimpl.UnknownFields - - Pagination *database.PaginationResponse `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"` - Entries []*jobs.ConductEntry `protobuf:"bytes,2,rep,name=entries,proto3" json:"entries,omitempty"` + sizeCache protoimpl.SizeCache } func (x *ListConductEntriesResponse) Reset() { @@ -163,11 +161,10 @@ func (x *ListConductEntriesResponse) GetEntries() []*jobs.ConductEntry { } type CreateConductEntryRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Entry *jobs.ConductEntry `protobuf:"bytes,1,opt,name=entry,proto3" json:"entry,omitempty"` unknownFields protoimpl.UnknownFields - - Entry *jobs.ConductEntry `protobuf:"bytes,1,opt,name=entry,proto3" json:"entry,omitempty"` + sizeCache protoimpl.SizeCache } func (x *CreateConductEntryRequest) Reset() { @@ -208,11 +205,10 @@ func (x *CreateConductEntryRequest) GetEntry() *jobs.ConductEntry { } type CreateConductEntryResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Entry *jobs.ConductEntry `protobuf:"bytes,1,opt,name=entry,proto3" json:"entry,omitempty"` unknownFields protoimpl.UnknownFields - - Entry *jobs.ConductEntry `protobuf:"bytes,1,opt,name=entry,proto3" json:"entry,omitempty"` + sizeCache protoimpl.SizeCache } func (x *CreateConductEntryResponse) Reset() { @@ -253,11 +249,10 @@ func (x *CreateConductEntryResponse) GetEntry() *jobs.ConductEntry { } type UpdateConductEntryRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Entry *jobs.ConductEntry `protobuf:"bytes,1,opt,name=entry,proto3" json:"entry,omitempty"` unknownFields protoimpl.UnknownFields - - Entry *jobs.ConductEntry `protobuf:"bytes,1,opt,name=entry,proto3" json:"entry,omitempty"` + sizeCache protoimpl.SizeCache } func (x *UpdateConductEntryRequest) Reset() { @@ -298,11 +293,10 @@ func (x *UpdateConductEntryRequest) GetEntry() *jobs.ConductEntry { } type UpdateConductEntryResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Entry *jobs.ConductEntry `protobuf:"bytes,1,opt,name=entry,proto3" json:"entry,omitempty"` unknownFields protoimpl.UnknownFields - - Entry *jobs.ConductEntry `protobuf:"bytes,1,opt,name=entry,proto3" json:"entry,omitempty"` + sizeCache protoimpl.SizeCache } func (x *UpdateConductEntryResponse) Reset() { @@ -343,11 +337,10 @@ func (x *UpdateConductEntryResponse) GetEntry() *jobs.ConductEntry { } type DeleteConductEntryRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` unknownFields protoimpl.UnknownFields - - Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` + sizeCache protoimpl.SizeCache } func (x *DeleteConductEntryRequest) Reset() { @@ -388,9 +381,9 @@ func (x *DeleteConductEntryRequest) GetId() uint64 { } type DeleteConductEntryResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *DeleteConductEntryResponse) Reset() { diff --git a/gen/go/proto/services/jobs/conduct_grpc.pb.go b/gen/go/proto/services/jobs/conduct_grpc.pb.go index 756dc519f..9b9eb5d71 100644 --- a/gen/go/proto/services/jobs/conduct_grpc.pb.go +++ b/gen/go/proto/services/jobs/conduct_grpc.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: -// - protoc-gen-go-grpc v1.3.0 +// - protoc-gen-go-grpc v1.5.1 // - protoc v3.20.3 // source: services/jobs/conduct.proto @@ -15,8 +15,8 @@ import ( // This is a compile-time assertion to ensure that this generated file // is compatible with the grpc package it is being compiled against. -// Requires gRPC-Go v1.32.0 or later. -const _ = grpc.SupportPackageIsVersion7 +// Requires gRPC-Go v1.64.0 or later. +const _ = grpc.SupportPackageIsVersion9 const ( JobsConductService_ListConductEntries_FullMethodName = "/services.jobs.JobsConductService/ListConductEntries" @@ -48,8 +48,9 @@ func NewJobsConductServiceClient(cc grpc.ClientConnInterface) JobsConductService } func (c *jobsConductServiceClient) ListConductEntries(ctx context.Context, in *ListConductEntriesRequest, opts ...grpc.CallOption) (*ListConductEntriesResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(ListConductEntriesResponse) - err := c.cc.Invoke(ctx, JobsConductService_ListConductEntries_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, JobsConductService_ListConductEntries_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -57,8 +58,9 @@ func (c *jobsConductServiceClient) ListConductEntries(ctx context.Context, in *L } func (c *jobsConductServiceClient) CreateConductEntry(ctx context.Context, in *CreateConductEntryRequest, opts ...grpc.CallOption) (*CreateConductEntryResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(CreateConductEntryResponse) - err := c.cc.Invoke(ctx, JobsConductService_CreateConductEntry_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, JobsConductService_CreateConductEntry_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -66,8 +68,9 @@ func (c *jobsConductServiceClient) CreateConductEntry(ctx context.Context, in *C } func (c *jobsConductServiceClient) UpdateConductEntry(ctx context.Context, in *UpdateConductEntryRequest, opts ...grpc.CallOption) (*UpdateConductEntryResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(UpdateConductEntryResponse) - err := c.cc.Invoke(ctx, JobsConductService_UpdateConductEntry_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, JobsConductService_UpdateConductEntry_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -75,8 +78,9 @@ func (c *jobsConductServiceClient) UpdateConductEntry(ctx context.Context, in *U } func (c *jobsConductServiceClient) DeleteConductEntry(ctx context.Context, in *DeleteConductEntryRequest, opts ...grpc.CallOption) (*DeleteConductEntryResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(DeleteConductEntryResponse) - err := c.cc.Invoke(ctx, JobsConductService_DeleteConductEntry_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, JobsConductService_DeleteConductEntry_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -85,7 +89,7 @@ func (c *jobsConductServiceClient) DeleteConductEntry(ctx context.Context, in *D // JobsConductServiceServer is the server API for JobsConductService service. // All implementations must embed UnimplementedJobsConductServiceServer -// for forward compatibility +// for forward compatibility. type JobsConductServiceServer interface { // @perm: Attrs=Access/StringList:[]string{"Own", "All"} ListConductEntries(context.Context, *ListConductEntriesRequest) (*ListConductEntriesResponse, error) @@ -98,9 +102,12 @@ type JobsConductServiceServer interface { mustEmbedUnimplementedJobsConductServiceServer() } -// UnimplementedJobsConductServiceServer must be embedded to have forward compatible implementations. -type UnimplementedJobsConductServiceServer struct { -} +// UnimplementedJobsConductServiceServer must be embedded to have +// forward compatible implementations. +// +// NOTE: this should be embedded by value instead of pointer to avoid a nil +// pointer dereference when methods are called. +type UnimplementedJobsConductServiceServer struct{} func (UnimplementedJobsConductServiceServer) ListConductEntries(context.Context, *ListConductEntriesRequest) (*ListConductEntriesResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method ListConductEntries not implemented") @@ -115,6 +122,7 @@ func (UnimplementedJobsConductServiceServer) DeleteConductEntry(context.Context, return nil, status.Errorf(codes.Unimplemented, "method DeleteConductEntry not implemented") } func (UnimplementedJobsConductServiceServer) mustEmbedUnimplementedJobsConductServiceServer() {} +func (UnimplementedJobsConductServiceServer) testEmbeddedByValue() {} // UnsafeJobsConductServiceServer may be embedded to opt out of forward compatibility for this service. // Use of this interface is not recommended, as added methods to JobsConductServiceServer will @@ -124,6 +132,13 @@ type UnsafeJobsConductServiceServer interface { } func RegisterJobsConductServiceServer(s grpc.ServiceRegistrar, srv JobsConductServiceServer) { + // If the following call pancis, it indicates UnimplementedJobsConductServiceServer was + // embedded by pointer and is nil. This will cause panics if an + // unimplemented method is ever invoked, so we test this at initialization + // time to prevent it from happening at runtime later due to I/O. + if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { + t.testEmbeddedByValue() + } s.RegisterService(&JobsConductService_ServiceDesc, srv) } diff --git a/gen/go/proto/services/jobs/jobs.pb.go b/gen/go/proto/services/jobs/jobs.pb.go index aee8a7fd0..3bc9b5e88 100644 --- a/gen/go/proto/services/jobs/jobs.pb.go +++ b/gen/go/proto/services/jobs/jobs.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.35.2 +// protoc-gen-go v1.36.0 // protoc v3.20.3 // source: services/jobs/jobs.proto @@ -24,19 +24,18 @@ const ( ) type ListColleaguesRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - + state protoimpl.MessageState `protogen:"open.v1"` Pagination *database.PaginationRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"` Sort *database.Sort `protobuf:"bytes,2,opt,name=sort,proto3,oneof" json:"sort,omitempty"` // Search params - Search string `protobuf:"bytes,3,opt,name=search,proto3" json:"search,omitempty"` - UserId *int32 `protobuf:"varint,4,opt,name=user_id,json=userId,proto3,oneof" json:"user_id,omitempty"` - Absent *bool `protobuf:"varint,5,opt,name=absent,proto3,oneof" json:"absent,omitempty"` - LabelIds []uint64 `protobuf:"varint,6,rep,packed,name=label_ids,json=labelIds,proto3" json:"label_ids,omitempty"` - NamePrefix *string `protobuf:"bytes,7,opt,name=name_prefix,json=namePrefix,proto3,oneof" json:"name_prefix,omitempty"` - NameSuffix *string `protobuf:"bytes,8,opt,name=name_suffix,json=nameSuffix,proto3,oneof" json:"name_suffix,omitempty"` + Search string `protobuf:"bytes,3,opt,name=search,proto3" json:"search,omitempty"` + UserId *int32 `protobuf:"varint,4,opt,name=user_id,json=userId,proto3,oneof" json:"user_id,omitempty"` + Absent *bool `protobuf:"varint,5,opt,name=absent,proto3,oneof" json:"absent,omitempty"` + LabelIds []uint64 `protobuf:"varint,6,rep,packed,name=label_ids,json=labelIds,proto3" json:"label_ids,omitempty"` + NamePrefix *string `protobuf:"bytes,7,opt,name=name_prefix,json=namePrefix,proto3,oneof" json:"name_prefix,omitempty"` + NameSuffix *string `protobuf:"bytes,8,opt,name=name_suffix,json=nameSuffix,proto3,oneof" json:"name_suffix,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *ListColleaguesRequest) Reset() { @@ -126,12 +125,11 @@ func (x *ListColleaguesRequest) GetNameSuffix() string { } type ListColleaguesResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Pagination *database.PaginationResponse `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"` + Colleagues []*jobs.Colleague `protobuf:"bytes,2,rep,name=colleagues,proto3" json:"colleagues,omitempty"` unknownFields protoimpl.UnknownFields - - Pagination *database.PaginationResponse `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"` - Colleagues []*jobs.Colleague `protobuf:"bytes,2,rep,name=colleagues,proto3" json:"colleagues,omitempty"` + sizeCache protoimpl.SizeCache } func (x *ListColleaguesResponse) Reset() { @@ -179,9 +177,9 @@ func (x *ListColleaguesResponse) GetColleagues() []*jobs.Colleague { } type GetSelfRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *GetSelfRequest) Reset() { @@ -215,11 +213,10 @@ func (*GetSelfRequest) Descriptor() ([]byte, []int) { } type GetSelfResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Colleague *jobs.Colleague `protobuf:"bytes,1,opt,name=colleague,proto3" json:"colleague,omitempty"` unknownFields protoimpl.UnknownFields - - Colleague *jobs.Colleague `protobuf:"bytes,1,opt,name=colleague,proto3" json:"colleague,omitempty"` + sizeCache protoimpl.SizeCache } func (x *GetSelfResponse) Reset() { @@ -260,12 +257,11 @@ func (x *GetSelfResponse) GetColleague() *jobs.Colleague { } type GetColleagueRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + UserId int32 `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` + InfoOnly *bool `protobuf:"varint,2,opt,name=info_only,json=infoOnly,proto3,oneof" json:"info_only,omitempty"` unknownFields protoimpl.UnknownFields - - UserId int32 `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` - InfoOnly *bool `protobuf:"varint,2,opt,name=info_only,json=infoOnly,proto3,oneof" json:"info_only,omitempty"` + sizeCache protoimpl.SizeCache } func (x *GetColleagueRequest) Reset() { @@ -313,11 +309,10 @@ func (x *GetColleagueRequest) GetInfoOnly() bool { } type GetColleagueResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Colleague *jobs.Colleague `protobuf:"bytes,1,opt,name=colleague,proto3" json:"colleague,omitempty"` unknownFields protoimpl.UnknownFields - - Colleague *jobs.Colleague `protobuf:"bytes,1,opt,name=colleague,proto3" json:"colleague,omitempty"` + sizeCache protoimpl.SizeCache } func (x *GetColleagueResponse) Reset() { @@ -358,15 +353,14 @@ func (x *GetColleagueResponse) GetColleague() *jobs.Colleague { } type ListColleagueActivityRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - + state protoimpl.MessageState `protogen:"open.v1"` Pagination *database.PaginationRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"` Sort *database.Sort `protobuf:"bytes,2,opt,name=sort,proto3,oneof" json:"sort,omitempty"` // Search params UserIds []int32 `protobuf:"varint,3,rep,packed,name=user_ids,json=userIds,proto3" json:"user_ids,omitempty"` ActivityTypes []jobs.JobsUserActivityType `protobuf:"varint,4,rep,packed,name=activity_types,json=activityTypes,proto3,enum=resources.jobs.JobsUserActivityType" json:"activity_types,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *ListColleagueActivityRequest) Reset() { @@ -428,12 +422,11 @@ func (x *ListColleagueActivityRequest) GetActivityTypes() []jobs.JobsUserActivit } type ListColleagueActivityResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Pagination *database.PaginationResponse `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"` + Activity []*jobs.JobsUserActivity `protobuf:"bytes,2,rep,name=activity,proto3" json:"activity,omitempty"` unknownFields protoimpl.UnknownFields - - Pagination *database.PaginationResponse `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"` - Activity []*jobs.JobsUserActivity `protobuf:"bytes,2,rep,name=activity,proto3" json:"activity,omitempty"` + sizeCache protoimpl.SizeCache } func (x *ListColleagueActivityResponse) Reset() { @@ -481,13 +474,12 @@ func (x *ListColleagueActivityResponse) GetActivity() []*jobs.JobsUserActivity { } type SetJobsUserPropsRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Props *jobs.JobsUserProps `protobuf:"bytes,1,opt,name=props,proto3" json:"props,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + Props *jobs.JobsUserProps `protobuf:"bytes,1,opt,name=props,proto3" json:"props,omitempty"` // @sanitize - Reason string `protobuf:"bytes,2,opt,name=reason,proto3" json:"reason,omitempty"` + Reason string `protobuf:"bytes,2,opt,name=reason,proto3" json:"reason,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *SetJobsUserPropsRequest) Reset() { @@ -535,11 +527,10 @@ func (x *SetJobsUserPropsRequest) GetReason() string { } type SetJobsUserPropsResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Props *jobs.JobsUserProps `protobuf:"bytes,1,opt,name=props,proto3" json:"props,omitempty"` unknownFields protoimpl.UnknownFields - - Props *jobs.JobsUserProps `protobuf:"bytes,1,opt,name=props,proto3" json:"props,omitempty"` + sizeCache protoimpl.SizeCache } func (x *SetJobsUserPropsResponse) Reset() { @@ -580,11 +571,10 @@ func (x *SetJobsUserPropsResponse) GetProps() *jobs.JobsUserProps { } type GetColleagueLabelsRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Search *string `protobuf:"bytes,1,opt,name=search,proto3,oneof" json:"search,omitempty"` unknownFields protoimpl.UnknownFields - - Search *string `protobuf:"bytes,1,opt,name=search,proto3,oneof" json:"search,omitempty"` + sizeCache protoimpl.SizeCache } func (x *GetColleagueLabelsRequest) Reset() { @@ -625,11 +615,10 @@ func (x *GetColleagueLabelsRequest) GetSearch() string { } type GetColleagueLabelsResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Labels []*jobs.Label `protobuf:"bytes,1,rep,name=labels,proto3" json:"labels,omitempty"` unknownFields protoimpl.UnknownFields - - Labels []*jobs.Label `protobuf:"bytes,1,rep,name=labels,proto3" json:"labels,omitempty"` + sizeCache protoimpl.SizeCache } func (x *GetColleagueLabelsResponse) Reset() { @@ -670,11 +659,10 @@ func (x *GetColleagueLabelsResponse) GetLabels() []*jobs.Label { } type ManageColleagueLabelsRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Labels []*jobs.Label `protobuf:"bytes,1,rep,name=labels,proto3" json:"labels,omitempty"` unknownFields protoimpl.UnknownFields - - Labels []*jobs.Label `protobuf:"bytes,1,rep,name=labels,proto3" json:"labels,omitempty"` + sizeCache protoimpl.SizeCache } func (x *ManageColleagueLabelsRequest) Reset() { @@ -715,11 +703,10 @@ func (x *ManageColleagueLabelsRequest) GetLabels() []*jobs.Label { } type ManageColleagueLabelsResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Labels []*jobs.Label `protobuf:"bytes,1,rep,name=labels,proto3" json:"labels,omitempty"` unknownFields protoimpl.UnknownFields - - Labels []*jobs.Label `protobuf:"bytes,1,rep,name=labels,proto3" json:"labels,omitempty"` + sizeCache protoimpl.SizeCache } func (x *ManageColleagueLabelsResponse) Reset() { @@ -760,11 +747,10 @@ func (x *ManageColleagueLabelsResponse) GetLabels() []*jobs.Label { } type GetColleagueLabelsStatsRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + LabelIds []uint64 `protobuf:"varint,1,rep,packed,name=label_ids,json=labelIds,proto3" json:"label_ids,omitempty"` unknownFields protoimpl.UnknownFields - - LabelIds []uint64 `protobuf:"varint,1,rep,packed,name=label_ids,json=labelIds,proto3" json:"label_ids,omitempty"` + sizeCache protoimpl.SizeCache } func (x *GetColleagueLabelsStatsRequest) Reset() { @@ -805,11 +791,10 @@ func (x *GetColleagueLabelsStatsRequest) GetLabelIds() []uint64 { } type GetColleagueLabelsStatsResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Count []*jobs.LabelCount `protobuf:"bytes,1,rep,name=count,proto3" json:"count,omitempty"` unknownFields protoimpl.UnknownFields - - Count []*jobs.LabelCount `protobuf:"bytes,1,rep,name=count,proto3" json:"count,omitempty"` + sizeCache protoimpl.SizeCache } func (x *GetColleagueLabelsStatsResponse) Reset() { @@ -850,9 +835,9 @@ func (x *GetColleagueLabelsStatsResponse) GetCount() []*jobs.LabelCount { } type GetMOTDRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *GetMOTDRequest) Reset() { @@ -886,11 +871,10 @@ func (*GetMOTDRequest) Descriptor() ([]byte, []int) { } type GetMOTDResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Motd string `protobuf:"bytes,1,opt,name=motd,proto3" json:"motd,omitempty"` unknownFields protoimpl.UnknownFields - - Motd string `protobuf:"bytes,1,opt,name=motd,proto3" json:"motd,omitempty"` + sizeCache protoimpl.SizeCache } func (x *GetMOTDResponse) Reset() { @@ -931,12 +915,11 @@ func (x *GetMOTDResponse) GetMotd() string { } type SetMOTDRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - + state protoimpl.MessageState `protogen:"open.v1"` // @sanitize: method=StripTags - Motd string `protobuf:"bytes,1,opt,name=motd,proto3" json:"motd,omitempty"` + Motd string `protobuf:"bytes,1,opt,name=motd,proto3" json:"motd,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *SetMOTDRequest) Reset() { @@ -977,11 +960,10 @@ func (x *SetMOTDRequest) GetMotd() string { } type SetMOTDResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Motd string `protobuf:"bytes,1,opt,name=motd,proto3" json:"motd,omitempty"` unknownFields protoimpl.UnknownFields - - Motd string `protobuf:"bytes,1,opt,name=motd,proto3" json:"motd,omitempty"` + sizeCache protoimpl.SizeCache } func (x *SetMOTDResponse) Reset() { diff --git a/gen/go/proto/services/jobs/jobs_grpc.pb.go b/gen/go/proto/services/jobs/jobs_grpc.pb.go index 778607782..2f80b8048 100644 --- a/gen/go/proto/services/jobs/jobs_grpc.pb.go +++ b/gen/go/proto/services/jobs/jobs_grpc.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: -// - protoc-gen-go-grpc v1.3.0 +// - protoc-gen-go-grpc v1.5.1 // - protoc v3.20.3 // source: services/jobs/jobs.proto @@ -15,8 +15,8 @@ import ( // This is a compile-time assertion to ensure that this generated file // is compatible with the grpc package it is being compiled against. -// Requires gRPC-Go v1.32.0 or later. -const _ = grpc.SupportPackageIsVersion7 +// Requires gRPC-Go v1.64.0 or later. +const _ = grpc.SupportPackageIsVersion9 const ( JobsService_ListColleagues_FullMethodName = "/services.jobs.JobsService/ListColleagues" @@ -66,8 +66,9 @@ func NewJobsServiceClient(cc grpc.ClientConnInterface) JobsServiceClient { } func (c *jobsServiceClient) ListColleagues(ctx context.Context, in *ListColleaguesRequest, opts ...grpc.CallOption) (*ListColleaguesResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(ListColleaguesResponse) - err := c.cc.Invoke(ctx, JobsService_ListColleagues_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, JobsService_ListColleagues_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -75,8 +76,9 @@ func (c *jobsServiceClient) ListColleagues(ctx context.Context, in *ListColleagu } func (c *jobsServiceClient) GetSelf(ctx context.Context, in *GetSelfRequest, opts ...grpc.CallOption) (*GetSelfResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(GetSelfResponse) - err := c.cc.Invoke(ctx, JobsService_GetSelf_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, JobsService_GetSelf_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -84,8 +86,9 @@ func (c *jobsServiceClient) GetSelf(ctx context.Context, in *GetSelfRequest, opt } func (c *jobsServiceClient) GetColleague(ctx context.Context, in *GetColleagueRequest, opts ...grpc.CallOption) (*GetColleagueResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(GetColleagueResponse) - err := c.cc.Invoke(ctx, JobsService_GetColleague_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, JobsService_GetColleague_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -93,8 +96,9 @@ func (c *jobsServiceClient) GetColleague(ctx context.Context, in *GetColleagueRe } func (c *jobsServiceClient) ListColleagueActivity(ctx context.Context, in *ListColleagueActivityRequest, opts ...grpc.CallOption) (*ListColleagueActivityResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(ListColleagueActivityResponse) - err := c.cc.Invoke(ctx, JobsService_ListColleagueActivity_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, JobsService_ListColleagueActivity_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -102,8 +106,9 @@ func (c *jobsServiceClient) ListColleagueActivity(ctx context.Context, in *ListC } func (c *jobsServiceClient) SetJobsUserProps(ctx context.Context, in *SetJobsUserPropsRequest, opts ...grpc.CallOption) (*SetJobsUserPropsResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(SetJobsUserPropsResponse) - err := c.cc.Invoke(ctx, JobsService_SetJobsUserProps_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, JobsService_SetJobsUserProps_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -111,8 +116,9 @@ func (c *jobsServiceClient) SetJobsUserProps(ctx context.Context, in *SetJobsUse } func (c *jobsServiceClient) GetColleagueLabels(ctx context.Context, in *GetColleagueLabelsRequest, opts ...grpc.CallOption) (*GetColleagueLabelsResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(GetColleagueLabelsResponse) - err := c.cc.Invoke(ctx, JobsService_GetColleagueLabels_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, JobsService_GetColleagueLabels_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -120,8 +126,9 @@ func (c *jobsServiceClient) GetColleagueLabels(ctx context.Context, in *GetColle } func (c *jobsServiceClient) ManageColleagueLabels(ctx context.Context, in *ManageColleagueLabelsRequest, opts ...grpc.CallOption) (*ManageColleagueLabelsResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(ManageColleagueLabelsResponse) - err := c.cc.Invoke(ctx, JobsService_ManageColleagueLabels_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, JobsService_ManageColleagueLabels_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -129,8 +136,9 @@ func (c *jobsServiceClient) ManageColleagueLabels(ctx context.Context, in *Manag } func (c *jobsServiceClient) GetColleagueLabelsStats(ctx context.Context, in *GetColleagueLabelsStatsRequest, opts ...grpc.CallOption) (*GetColleagueLabelsStatsResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(GetColleagueLabelsStatsResponse) - err := c.cc.Invoke(ctx, JobsService_GetColleagueLabelsStats_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, JobsService_GetColleagueLabelsStats_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -138,8 +146,9 @@ func (c *jobsServiceClient) GetColleagueLabelsStats(ctx context.Context, in *Get } func (c *jobsServiceClient) GetMOTD(ctx context.Context, in *GetMOTDRequest, opts ...grpc.CallOption) (*GetMOTDResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(GetMOTDResponse) - err := c.cc.Invoke(ctx, JobsService_GetMOTD_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, JobsService_GetMOTD_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -147,8 +156,9 @@ func (c *jobsServiceClient) GetMOTD(ctx context.Context, in *GetMOTDRequest, opt } func (c *jobsServiceClient) SetMOTD(ctx context.Context, in *SetMOTDRequest, opts ...grpc.CallOption) (*SetMOTDResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(SetMOTDResponse) - err := c.cc.Invoke(ctx, JobsService_SetMOTD_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, JobsService_SetMOTD_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -157,7 +167,7 @@ func (c *jobsServiceClient) SetMOTD(ctx context.Context, in *SetMOTDRequest, opt // JobsServiceServer is the server API for JobsService service. // All implementations must embed UnimplementedJobsServiceServer -// for forward compatibility +// for forward compatibility. type JobsServiceServer interface { // @perm ListColleagues(context.Context, *ListColleaguesRequest) (*ListColleaguesResponse, error) @@ -182,9 +192,12 @@ type JobsServiceServer interface { mustEmbedUnimplementedJobsServiceServer() } -// UnimplementedJobsServiceServer must be embedded to have forward compatible implementations. -type UnimplementedJobsServiceServer struct { -} +// UnimplementedJobsServiceServer must be embedded to have +// forward compatible implementations. +// +// NOTE: this should be embedded by value instead of pointer to avoid a nil +// pointer dereference when methods are called. +type UnimplementedJobsServiceServer struct{} func (UnimplementedJobsServiceServer) ListColleagues(context.Context, *ListColleaguesRequest) (*ListColleaguesResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method ListColleagues not implemented") @@ -217,6 +230,7 @@ func (UnimplementedJobsServiceServer) SetMOTD(context.Context, *SetMOTDRequest) return nil, status.Errorf(codes.Unimplemented, "method SetMOTD not implemented") } func (UnimplementedJobsServiceServer) mustEmbedUnimplementedJobsServiceServer() {} +func (UnimplementedJobsServiceServer) testEmbeddedByValue() {} // UnsafeJobsServiceServer may be embedded to opt out of forward compatibility for this service. // Use of this interface is not recommended, as added methods to JobsServiceServer will @@ -226,6 +240,13 @@ type UnsafeJobsServiceServer interface { } func RegisterJobsServiceServer(s grpc.ServiceRegistrar, srv JobsServiceServer) { + // If the following call pancis, it indicates UnimplementedJobsServiceServer was + // embedded by pointer and is nil. This will cause panics if an + // unimplemented method is ever invoked, so we test this at initialization + // time to prevent it from happening at runtime later due to I/O. + if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { + t.testEmbeddedByValue() + } s.RegisterService(&JobsService_ServiceDesc, srv) } diff --git a/gen/go/proto/services/jobs/timeclock.pb.go b/gen/go/proto/services/jobs/timeclock.pb.go index c9223ab43..d5f859ab3 100644 --- a/gen/go/proto/services/jobs/timeclock.pb.go +++ b/gen/go/proto/services/jobs/timeclock.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.35.2 +// protoc-gen-go v1.36.0 // protoc v3.20.3 // source: services/jobs/timeclock.proto @@ -25,18 +25,17 @@ const ( ) type ListTimeclockRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - + state protoimpl.MessageState `protogen:"open.v1"` Pagination *database.PaginationRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"` Sort *database.Sort `protobuf:"bytes,2,opt,name=sort,proto3,oneof" json:"sort,omitempty"` // Search params - UserMode jobs.TimeclockUserMode `protobuf:"varint,3,opt,name=user_mode,json=userMode,proto3,enum=resources.jobs.TimeclockUserMode" json:"user_mode,omitempty"` - Mode jobs.TimeclockMode `protobuf:"varint,4,opt,name=mode,proto3,enum=resources.jobs.TimeclockMode" json:"mode,omitempty"` - Date *database.DateRange `protobuf:"bytes,5,opt,name=date,proto3,oneof" json:"date,omitempty"` - PerDay bool `protobuf:"varint,6,opt,name=per_day,json=perDay,proto3" json:"per_day,omitempty"` - UserIds []int32 `protobuf:"varint,7,rep,packed,name=user_ids,json=userIds,proto3" json:"user_ids,omitempty"` + UserMode jobs.TimeclockUserMode `protobuf:"varint,3,opt,name=user_mode,json=userMode,proto3,enum=resources.jobs.TimeclockUserMode" json:"user_mode,omitempty"` + Mode jobs.TimeclockMode `protobuf:"varint,4,opt,name=mode,proto3,enum=resources.jobs.TimeclockMode" json:"mode,omitempty"` + Date *database.DateRange `protobuf:"bytes,5,opt,name=date,proto3,oneof" json:"date,omitempty"` + PerDay bool `protobuf:"varint,6,opt,name=per_day,json=perDay,proto3" json:"per_day,omitempty"` + UserIds []int32 `protobuf:"varint,7,rep,packed,name=user_ids,json=userIds,proto3" json:"user_ids,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *ListTimeclockRequest) Reset() { @@ -119,19 +118,18 @@ func (x *ListTimeclockRequest) GetUserIds() []int32 { } type ListTimeclockResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - + state protoimpl.MessageState `protogen:"open.v1"` Pagination *database.PaginationResponse `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"` Stats *jobs.TimeclockStats `protobuf:"bytes,2,opt,name=stats,proto3" json:"stats,omitempty"` StatsWeekly []*jobs.TimeclockWeeklyStats `protobuf:"bytes,3,rep,name=stats_weekly,json=statsWeekly,proto3" json:"stats_weekly,omitempty"` - // Types that are assignable to Entries: + // Types that are valid to be assigned to Entries: // // *ListTimeclockResponse_Daily // *ListTimeclockResponse_Weekly // *ListTimeclockResponse_Range - Entries isListTimeclockResponse_Entries `protobuf_oneof:"entries"` + Entries isListTimeclockResponse_Entries `protobuf_oneof:"entries"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *ListTimeclockResponse) Reset() { @@ -185,30 +183,36 @@ func (x *ListTimeclockResponse) GetStatsWeekly() []*jobs.TimeclockWeeklyStats { return nil } -func (m *ListTimeclockResponse) GetEntries() isListTimeclockResponse_Entries { - if m != nil { - return m.Entries +func (x *ListTimeclockResponse) GetEntries() isListTimeclockResponse_Entries { + if x != nil { + return x.Entries } return nil } func (x *ListTimeclockResponse) GetDaily() *TimeclockDay { - if x, ok := x.GetEntries().(*ListTimeclockResponse_Daily); ok { - return x.Daily + if x != nil { + if x, ok := x.Entries.(*ListTimeclockResponse_Daily); ok { + return x.Daily + } } return nil } func (x *ListTimeclockResponse) GetWeekly() *TimeclockWeekly { - if x, ok := x.GetEntries().(*ListTimeclockResponse_Weekly); ok { - return x.Weekly + if x != nil { + if x, ok := x.Entries.(*ListTimeclockResponse_Weekly); ok { + return x.Weekly + } } return nil } func (x *ListTimeclockResponse) GetRange() *TimeclockRange { - if x, ok := x.GetEntries().(*ListTimeclockResponse_Range); ok { - return x.Range + if x != nil { + if x, ok := x.Entries.(*ListTimeclockResponse_Range); ok { + return x.Range + } } return nil } @@ -236,13 +240,12 @@ func (*ListTimeclockResponse_Weekly) isListTimeclockResponse_Entries() {} func (*ListTimeclockResponse_Range) isListTimeclockResponse_Entries() {} type TimeclockDay struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Date *timestamp.Timestamp `protobuf:"bytes,1,opt,name=date,proto3" json:"date,omitempty"` + Entries []*jobs.TimeclockEntry `protobuf:"bytes,2,rep,name=entries,proto3" json:"entries,omitempty"` + Sum float32 `protobuf:"fixed32,3,opt,name=sum,proto3" json:"sum,omitempty"` unknownFields protoimpl.UnknownFields - - Date *timestamp.Timestamp `protobuf:"bytes,1,opt,name=date,proto3" json:"date,omitempty"` - Entries []*jobs.TimeclockEntry `protobuf:"bytes,2,rep,name=entries,proto3" json:"entries,omitempty"` - Sum float32 `protobuf:"fixed32,3,opt,name=sum,proto3" json:"sum,omitempty"` + sizeCache protoimpl.SizeCache } func (x *TimeclockDay) Reset() { @@ -297,13 +300,12 @@ func (x *TimeclockDay) GetSum() float32 { } type TimeclockWeekly struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Date *timestamp.Timestamp `protobuf:"bytes,1,opt,name=date,proto3" json:"date,omitempty" sql:"primary_key"` // @gotags: sql:"primary_key" + Entries []*jobs.TimeclockEntry `protobuf:"bytes,2,rep,name=entries,proto3" json:"entries,omitempty"` + Sum float32 `protobuf:"fixed32,3,opt,name=sum,proto3" json:"sum,omitempty"` unknownFields protoimpl.UnknownFields - - Date *timestamp.Timestamp `protobuf:"bytes,1,opt,name=date,proto3" json:"date,omitempty" sql:"primary_key"` // @gotags: sql:"primary_key" - Entries []*jobs.TimeclockEntry `protobuf:"bytes,2,rep,name=entries,proto3" json:"entries,omitempty"` - Sum float32 `protobuf:"fixed32,3,opt,name=sum,proto3" json:"sum,omitempty"` + sizeCache protoimpl.SizeCache } func (x *TimeclockWeekly) Reset() { @@ -358,13 +360,12 @@ func (x *TimeclockWeekly) GetSum() float32 { } type TimeclockRange struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Date *timestamp.Timestamp `protobuf:"bytes,1,opt,name=date,proto3" json:"date,omitempty" sql:"primary_key"` // @gotags: sql:"primary_key" + Entries []*jobs.TimeclockEntry `protobuf:"bytes,2,rep,name=entries,proto3" json:"entries,omitempty"` + Sum float32 `protobuf:"fixed32,3,opt,name=sum,proto3" json:"sum,omitempty"` unknownFields protoimpl.UnknownFields - - Date *timestamp.Timestamp `protobuf:"bytes,1,opt,name=date,proto3" json:"date,omitempty" sql:"primary_key"` // @gotags: sql:"primary_key" - Entries []*jobs.TimeclockEntry `protobuf:"bytes,2,rep,name=entries,proto3" json:"entries,omitempty"` - Sum float32 `protobuf:"fixed32,3,opt,name=sum,proto3" json:"sum,omitempty"` + sizeCache protoimpl.SizeCache } func (x *TimeclockRange) Reset() { @@ -419,11 +420,10 @@ func (x *TimeclockRange) GetSum() float32 { } type GetTimeclockStatsRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + UserId *int32 `protobuf:"varint,1,opt,name=user_id,json=userId,proto3,oneof" json:"user_id,omitempty"` unknownFields protoimpl.UnknownFields - - UserId *int32 `protobuf:"varint,1,opt,name=user_id,json=userId,proto3,oneof" json:"user_id,omitempty"` + sizeCache protoimpl.SizeCache } func (x *GetTimeclockStatsRequest) Reset() { @@ -464,12 +464,11 @@ func (x *GetTimeclockStatsRequest) GetUserId() int32 { } type GetTimeclockStatsResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Stats *jobs.TimeclockStats `protobuf:"bytes,1,opt,name=stats,proto3" json:"stats,omitempty"` + Weekly []*jobs.TimeclockWeeklyStats `protobuf:"bytes,2,rep,name=weekly,proto3" json:"weekly,omitempty"` unknownFields protoimpl.UnknownFields - - Stats *jobs.TimeclockStats `protobuf:"bytes,1,opt,name=stats,proto3" json:"stats,omitempty"` - Weekly []*jobs.TimeclockWeeklyStats `protobuf:"bytes,2,rep,name=weekly,proto3" json:"weekly,omitempty"` + sizeCache protoimpl.SizeCache } func (x *GetTimeclockStatsResponse) Reset() { @@ -517,14 +516,13 @@ func (x *GetTimeclockStatsResponse) GetWeekly() []*jobs.TimeclockWeeklyStats { } type ListInactiveEmployeesRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - + state protoimpl.MessageState `protogen:"open.v1"` Pagination *database.PaginationRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"` Sort *database.Sort `protobuf:"bytes,2,opt,name=sort,proto3,oneof" json:"sort,omitempty"` // Search params - Days int32 `protobuf:"varint,3,opt,name=days,proto3" json:"days,omitempty"` + Days int32 `protobuf:"varint,3,opt,name=days,proto3" json:"days,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *ListInactiveEmployeesRequest) Reset() { @@ -579,12 +577,11 @@ func (x *ListInactiveEmployeesRequest) GetDays() int32 { } type ListInactiveEmployeesResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Pagination *database.PaginationResponse `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"` + Colleagues []*jobs.Colleague `protobuf:"bytes,2,rep,name=colleagues,proto3" json:"colleagues,omitempty"` unknownFields protoimpl.UnknownFields - - Pagination *database.PaginationResponse `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"` - Colleagues []*jobs.Colleague `protobuf:"bytes,2,rep,name=colleagues,proto3" json:"colleagues,omitempty"` + sizeCache protoimpl.SizeCache } func (x *ListInactiveEmployeesResponse) Reset() { diff --git a/gen/go/proto/services/jobs/timeclock_grpc.pb.go b/gen/go/proto/services/jobs/timeclock_grpc.pb.go index 7493de2ef..ca812993a 100644 --- a/gen/go/proto/services/jobs/timeclock_grpc.pb.go +++ b/gen/go/proto/services/jobs/timeclock_grpc.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: -// - protoc-gen-go-grpc v1.3.0 +// - protoc-gen-go-grpc v1.5.1 // - protoc v3.20.3 // source: services/jobs/timeclock.proto @@ -15,8 +15,8 @@ import ( // This is a compile-time assertion to ensure that this generated file // is compatible with the grpc package it is being compiled against. -// Requires gRPC-Go v1.32.0 or later. -const _ = grpc.SupportPackageIsVersion7 +// Requires gRPC-Go v1.64.0 or later. +const _ = grpc.SupportPackageIsVersion9 const ( JobsTimeclockService_ListTimeclock_FullMethodName = "/services.jobs.JobsTimeclockService/ListTimeclock" @@ -45,8 +45,9 @@ func NewJobsTimeclockServiceClient(cc grpc.ClientConnInterface) JobsTimeclockSer } func (c *jobsTimeclockServiceClient) ListTimeclock(ctx context.Context, in *ListTimeclockRequest, opts ...grpc.CallOption) (*ListTimeclockResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(ListTimeclockResponse) - err := c.cc.Invoke(ctx, JobsTimeclockService_ListTimeclock_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, JobsTimeclockService_ListTimeclock_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -54,8 +55,9 @@ func (c *jobsTimeclockServiceClient) ListTimeclock(ctx context.Context, in *List } func (c *jobsTimeclockServiceClient) GetTimeclockStats(ctx context.Context, in *GetTimeclockStatsRequest, opts ...grpc.CallOption) (*GetTimeclockStatsResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(GetTimeclockStatsResponse) - err := c.cc.Invoke(ctx, JobsTimeclockService_GetTimeclockStats_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, JobsTimeclockService_GetTimeclockStats_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -63,8 +65,9 @@ func (c *jobsTimeclockServiceClient) GetTimeclockStats(ctx context.Context, in * } func (c *jobsTimeclockServiceClient) ListInactiveEmployees(ctx context.Context, in *ListInactiveEmployeesRequest, opts ...grpc.CallOption) (*ListInactiveEmployeesResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(ListInactiveEmployeesResponse) - err := c.cc.Invoke(ctx, JobsTimeclockService_ListInactiveEmployees_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, JobsTimeclockService_ListInactiveEmployees_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -73,7 +76,7 @@ func (c *jobsTimeclockServiceClient) ListInactiveEmployees(ctx context.Context, // JobsTimeclockServiceServer is the server API for JobsTimeclockService service. // All implementations must embed UnimplementedJobsTimeclockServiceServer -// for forward compatibility +// for forward compatibility. type JobsTimeclockServiceServer interface { // @perm: Attrs=Access/StringList:[]string{"All"} ListTimeclock(context.Context, *ListTimeclockRequest) (*ListTimeclockResponse, error) @@ -84,9 +87,12 @@ type JobsTimeclockServiceServer interface { mustEmbedUnimplementedJobsTimeclockServiceServer() } -// UnimplementedJobsTimeclockServiceServer must be embedded to have forward compatible implementations. -type UnimplementedJobsTimeclockServiceServer struct { -} +// UnimplementedJobsTimeclockServiceServer must be embedded to have +// forward compatible implementations. +// +// NOTE: this should be embedded by value instead of pointer to avoid a nil +// pointer dereference when methods are called. +type UnimplementedJobsTimeclockServiceServer struct{} func (UnimplementedJobsTimeclockServiceServer) ListTimeclock(context.Context, *ListTimeclockRequest) (*ListTimeclockResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method ListTimeclock not implemented") @@ -98,6 +104,7 @@ func (UnimplementedJobsTimeclockServiceServer) ListInactiveEmployees(context.Con return nil, status.Errorf(codes.Unimplemented, "method ListInactiveEmployees not implemented") } func (UnimplementedJobsTimeclockServiceServer) mustEmbedUnimplementedJobsTimeclockServiceServer() {} +func (UnimplementedJobsTimeclockServiceServer) testEmbeddedByValue() {} // UnsafeJobsTimeclockServiceServer may be embedded to opt out of forward compatibility for this service. // Use of this interface is not recommended, as added methods to JobsTimeclockServiceServer will @@ -107,6 +114,13 @@ type UnsafeJobsTimeclockServiceServer interface { } func RegisterJobsTimeclockServiceServer(s grpc.ServiceRegistrar, srv JobsTimeclockServiceServer) { + // If the following call pancis, it indicates UnimplementedJobsTimeclockServiceServer was + // embedded by pointer and is nil. This will cause panics if an + // unimplemented method is ever invoked, so we test this at initialization + // time to prevent it from happening at runtime later due to I/O. + if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { + t.testEmbeddedByValue() + } s.RegisterService(&JobsTimeclockService_ServiceDesc, srv) } diff --git a/gen/go/proto/services/livemapper/livemap.pb.go b/gen/go/proto/services/livemapper/livemap.pb.go index accefb863..bcecbd7e5 100644 --- a/gen/go/proto/services/livemapper/livemap.pb.go +++ b/gen/go/proto/services/livemapper/livemap.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.35.2 +// protoc-gen-go v1.36.0 // protoc v3.20.3 // source: services/livemapper/livemap.proto @@ -24,9 +24,9 @@ const ( ) type StreamRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *StreamRequest) Reset() { @@ -60,17 +60,16 @@ func (*StreamRequest) Descriptor() ([]byte, []int) { } type StreamResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Types that are assignable to Data: + state protoimpl.MessageState `protogen:"open.v1"` + // Types that are valid to be assigned to Data: // // *StreamResponse_Jobs // *StreamResponse_Markers // *StreamResponse_Users - Data isStreamResponse_Data `protobuf_oneof:"data"` - UserOnDuty *bool `protobuf:"varint,4,opt,name=user_on_duty,json=userOnDuty,proto3,oneof" json:"user_on_duty,omitempty"` + Data isStreamResponse_Data `protobuf_oneof:"data"` + UserOnDuty *bool `protobuf:"varint,4,opt,name=user_on_duty,json=userOnDuty,proto3,oneof" json:"user_on_duty,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *StreamResponse) Reset() { @@ -103,30 +102,36 @@ func (*StreamResponse) Descriptor() ([]byte, []int) { return file_services_livemapper_livemap_proto_rawDescGZIP(), []int{1} } -func (m *StreamResponse) GetData() isStreamResponse_Data { - if m != nil { - return m.Data +func (x *StreamResponse) GetData() isStreamResponse_Data { + if x != nil { + return x.Data } return nil } func (x *StreamResponse) GetJobs() *JobsList { - if x, ok := x.GetData().(*StreamResponse_Jobs); ok { - return x.Jobs + if x != nil { + if x, ok := x.Data.(*StreamResponse_Jobs); ok { + return x.Jobs + } } return nil } func (x *StreamResponse) GetMarkers() *MarkerMarkersUpdates { - if x, ok := x.GetData().(*StreamResponse_Markers); ok { - return x.Markers + if x != nil { + if x, ok := x.Data.(*StreamResponse_Markers); ok { + return x.Markers + } } return nil } func (x *StreamResponse) GetUsers() *UserMarkersUpdates { - if x, ok := x.GetData().(*StreamResponse_Users); ok { - return x.Users + if x != nil { + if x, ok := x.Data.(*StreamResponse_Users); ok { + return x.Users + } } return nil } @@ -161,12 +166,11 @@ func (*StreamResponse_Markers) isStreamResponse_Data() {} func (*StreamResponse_Users) isStreamResponse_Data() {} type JobsList struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Users []*users.Job `protobuf:"bytes,1,rep,name=users,proto3" json:"users,omitempty"` + Markers []*users.Job `protobuf:"bytes,2,rep,name=markers,proto3" json:"markers,omitempty"` unknownFields protoimpl.UnknownFields - - Users []*users.Job `protobuf:"bytes,1,rep,name=users,proto3" json:"users,omitempty"` - Markers []*users.Job `protobuf:"bytes,2,rep,name=markers,proto3" json:"markers,omitempty"` + sizeCache protoimpl.SizeCache } func (x *JobsList) Reset() { @@ -214,11 +218,10 @@ func (x *JobsList) GetMarkers() []*users.Job { } type MarkerMarkersUpdates struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Markers []*livemap.MarkerMarker `protobuf:"bytes,1,rep,name=markers,proto3" json:"markers,omitempty"` unknownFields protoimpl.UnknownFields - - Markers []*livemap.MarkerMarker `protobuf:"bytes,1,rep,name=markers,proto3" json:"markers,omitempty"` + sizeCache protoimpl.SizeCache } func (x *MarkerMarkersUpdates) Reset() { @@ -259,12 +262,11 @@ func (x *MarkerMarkersUpdates) GetMarkers() []*livemap.MarkerMarker { } type UserMarkersUpdates struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Users []*livemap.UserMarker `protobuf:"bytes,1,rep,name=users,proto3" json:"users,omitempty"` + Part int32 `protobuf:"varint,2,opt,name=part,proto3" json:"part,omitempty"` unknownFields protoimpl.UnknownFields - - Users []*livemap.UserMarker `protobuf:"bytes,1,rep,name=users,proto3" json:"users,omitempty"` - Part int32 `protobuf:"varint,2,opt,name=part,proto3" json:"part,omitempty"` + sizeCache protoimpl.SizeCache } func (x *UserMarkersUpdates) Reset() { @@ -312,11 +314,10 @@ func (x *UserMarkersUpdates) GetPart() int32 { } type CreateOrUpdateMarkerRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Marker *livemap.MarkerMarker `protobuf:"bytes,1,opt,name=marker,proto3" json:"marker,omitempty"` unknownFields protoimpl.UnknownFields - - Marker *livemap.MarkerMarker `protobuf:"bytes,1,opt,name=marker,proto3" json:"marker,omitempty"` + sizeCache protoimpl.SizeCache } func (x *CreateOrUpdateMarkerRequest) Reset() { @@ -357,11 +358,10 @@ func (x *CreateOrUpdateMarkerRequest) GetMarker() *livemap.MarkerMarker { } type CreateOrUpdateMarkerResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Marker *livemap.MarkerMarker `protobuf:"bytes,1,opt,name=marker,proto3" json:"marker,omitempty"` unknownFields protoimpl.UnknownFields - - Marker *livemap.MarkerMarker `protobuf:"bytes,1,opt,name=marker,proto3" json:"marker,omitempty"` + sizeCache protoimpl.SizeCache } func (x *CreateOrUpdateMarkerResponse) Reset() { @@ -402,11 +402,10 @@ func (x *CreateOrUpdateMarkerResponse) GetMarker() *livemap.MarkerMarker { } type DeleteMarkerRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` unknownFields protoimpl.UnknownFields - - Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` + sizeCache protoimpl.SizeCache } func (x *DeleteMarkerRequest) Reset() { @@ -447,9 +446,9 @@ func (x *DeleteMarkerRequest) GetId() uint64 { } type DeleteMarkerResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *DeleteMarkerResponse) Reset() { diff --git a/gen/go/proto/services/livemapper/livemap_grpc.pb.go b/gen/go/proto/services/livemapper/livemap_grpc.pb.go index 1a59a16fd..5ea269eb7 100644 --- a/gen/go/proto/services/livemapper/livemap_grpc.pb.go +++ b/gen/go/proto/services/livemapper/livemap_grpc.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: -// - protoc-gen-go-grpc v1.3.0 +// - protoc-gen-go-grpc v1.5.1 // - protoc v3.20.3 // source: services/livemapper/livemap.proto @@ -15,8 +15,8 @@ import ( // This is a compile-time assertion to ensure that this generated file // is compatible with the grpc package it is being compiled against. -// Requires gRPC-Go v1.32.0 or later. -const _ = grpc.SupportPackageIsVersion7 +// Requires gRPC-Go v1.64.0 or later. +const _ = grpc.SupportPackageIsVersion9 const ( LivemapperService_Stream_FullMethodName = "/services.livemapper.LivemapperService/Stream" @@ -29,7 +29,7 @@ const ( // 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 LivemapperServiceClient interface { // @perm: Attrs=Markers/JobList|Players/JobGradeList - Stream(ctx context.Context, in *StreamRequest, opts ...grpc.CallOption) (LivemapperService_StreamClient, error) + Stream(ctx context.Context, in *StreamRequest, opts ...grpc.CallOption) (grpc.ServerStreamingClient[StreamResponse], error) // @perm: Attrs=Access/StringList:[]string{"Own", "Lower_Rank", "Same_Rank", "Any"} CreateOrUpdateMarker(ctx context.Context, in *CreateOrUpdateMarkerRequest, opts ...grpc.CallOption) (*CreateOrUpdateMarkerResponse, error) // @perm: Attrs=Access/StringList:[]string{"Own", "Lower_Rank", "Same_Rank", "Any"} @@ -44,12 +44,13 @@ func NewLivemapperServiceClient(cc grpc.ClientConnInterface) LivemapperServiceCl return &livemapperServiceClient{cc} } -func (c *livemapperServiceClient) Stream(ctx context.Context, in *StreamRequest, opts ...grpc.CallOption) (LivemapperService_StreamClient, error) { - stream, err := c.cc.NewStream(ctx, &LivemapperService_ServiceDesc.Streams[0], LivemapperService_Stream_FullMethodName, opts...) +func (c *livemapperServiceClient) Stream(ctx context.Context, in *StreamRequest, opts ...grpc.CallOption) (grpc.ServerStreamingClient[StreamResponse], error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + stream, err := c.cc.NewStream(ctx, &LivemapperService_ServiceDesc.Streams[0], LivemapperService_Stream_FullMethodName, cOpts...) if err != nil { return nil, err } - x := &livemapperServiceStreamClient{stream} + x := &grpc.GenericClientStream[StreamRequest, StreamResponse]{ClientStream: stream} if err := x.ClientStream.SendMsg(in); err != nil { return nil, err } @@ -59,26 +60,13 @@ func (c *livemapperServiceClient) Stream(ctx context.Context, in *StreamRequest, return x, nil } -type LivemapperService_StreamClient interface { - Recv() (*StreamResponse, error) - grpc.ClientStream -} - -type livemapperServiceStreamClient struct { - grpc.ClientStream -} - -func (x *livemapperServiceStreamClient) Recv() (*StreamResponse, error) { - m := new(StreamResponse) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} +// This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name. +type LivemapperService_StreamClient = grpc.ServerStreamingClient[StreamResponse] func (c *livemapperServiceClient) CreateOrUpdateMarker(ctx context.Context, in *CreateOrUpdateMarkerRequest, opts ...grpc.CallOption) (*CreateOrUpdateMarkerResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(CreateOrUpdateMarkerResponse) - err := c.cc.Invoke(ctx, LivemapperService_CreateOrUpdateMarker_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, LivemapperService_CreateOrUpdateMarker_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -86,8 +74,9 @@ func (c *livemapperServiceClient) CreateOrUpdateMarker(ctx context.Context, in * } func (c *livemapperServiceClient) DeleteMarker(ctx context.Context, in *DeleteMarkerRequest, opts ...grpc.CallOption) (*DeleteMarkerResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(DeleteMarkerResponse) - err := c.cc.Invoke(ctx, LivemapperService_DeleteMarker_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, LivemapperService_DeleteMarker_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -96,10 +85,10 @@ func (c *livemapperServiceClient) DeleteMarker(ctx context.Context, in *DeleteMa // LivemapperServiceServer is the server API for LivemapperService service. // All implementations must embed UnimplementedLivemapperServiceServer -// for forward compatibility +// for forward compatibility. type LivemapperServiceServer interface { // @perm: Attrs=Markers/JobList|Players/JobGradeList - Stream(*StreamRequest, LivemapperService_StreamServer) error + Stream(*StreamRequest, grpc.ServerStreamingServer[StreamResponse]) error // @perm: Attrs=Access/StringList:[]string{"Own", "Lower_Rank", "Same_Rank", "Any"} CreateOrUpdateMarker(context.Context, *CreateOrUpdateMarkerRequest) (*CreateOrUpdateMarkerResponse, error) // @perm: Attrs=Access/StringList:[]string{"Own", "Lower_Rank", "Same_Rank", "Any"} @@ -107,11 +96,14 @@ type LivemapperServiceServer interface { mustEmbedUnimplementedLivemapperServiceServer() } -// UnimplementedLivemapperServiceServer must be embedded to have forward compatible implementations. -type UnimplementedLivemapperServiceServer struct { -} +// UnimplementedLivemapperServiceServer must be embedded to have +// forward compatible implementations. +// +// NOTE: this should be embedded by value instead of pointer to avoid a nil +// pointer dereference when methods are called. +type UnimplementedLivemapperServiceServer struct{} -func (UnimplementedLivemapperServiceServer) Stream(*StreamRequest, LivemapperService_StreamServer) error { +func (UnimplementedLivemapperServiceServer) Stream(*StreamRequest, grpc.ServerStreamingServer[StreamResponse]) error { return status.Errorf(codes.Unimplemented, "method Stream not implemented") } func (UnimplementedLivemapperServiceServer) CreateOrUpdateMarker(context.Context, *CreateOrUpdateMarkerRequest) (*CreateOrUpdateMarkerResponse, error) { @@ -121,6 +113,7 @@ func (UnimplementedLivemapperServiceServer) DeleteMarker(context.Context, *Delet return nil, status.Errorf(codes.Unimplemented, "method DeleteMarker not implemented") } func (UnimplementedLivemapperServiceServer) mustEmbedUnimplementedLivemapperServiceServer() {} +func (UnimplementedLivemapperServiceServer) testEmbeddedByValue() {} // UnsafeLivemapperServiceServer may be embedded to opt out of forward compatibility for this service. // Use of this interface is not recommended, as added methods to LivemapperServiceServer will @@ -130,6 +123,13 @@ type UnsafeLivemapperServiceServer interface { } func RegisterLivemapperServiceServer(s grpc.ServiceRegistrar, srv LivemapperServiceServer) { + // If the following call pancis, it indicates UnimplementedLivemapperServiceServer was + // embedded by pointer and is nil. This will cause panics if an + // unimplemented method is ever invoked, so we test this at initialization + // time to prevent it from happening at runtime later due to I/O. + if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { + t.testEmbeddedByValue() + } s.RegisterService(&LivemapperService_ServiceDesc, srv) } @@ -138,21 +138,11 @@ func _LivemapperService_Stream_Handler(srv interface{}, stream grpc.ServerStream if err := stream.RecvMsg(m); err != nil { return err } - return srv.(LivemapperServiceServer).Stream(m, &livemapperServiceStreamServer{stream}) -} - -type LivemapperService_StreamServer interface { - Send(*StreamResponse) error - grpc.ServerStream + return srv.(LivemapperServiceServer).Stream(m, &grpc.GenericServerStream[StreamRequest, StreamResponse]{ServerStream: stream}) } -type livemapperServiceStreamServer struct { - grpc.ServerStream -} - -func (x *livemapperServiceStreamServer) Send(m *StreamResponse) error { - return x.ServerStream.SendMsg(m) -} +// This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name. +type LivemapperService_StreamServer = grpc.ServerStreamingServer[StreamResponse] func _LivemapperService_CreateOrUpdateMarker_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(CreateOrUpdateMarkerRequest) diff --git a/gen/go/proto/services/mailer/mailer.pb.go b/gen/go/proto/services/mailer/mailer.pb.go index 8e217944a..7032a2085 100644 --- a/gen/go/proto/services/mailer/mailer.pb.go +++ b/gen/go/proto/services/mailer/mailer.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.35.2 +// protoc-gen-go v1.36.0 // protoc v3.20.3 // source: services/mailer/mailer.proto @@ -25,13 +25,12 @@ const ( ) type ListEmailsRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - + state protoimpl.MessageState `protogen:"open.v1"` Pagination *database.PaginationRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"` // Search params - All *bool `protobuf:"varint,2,opt,name=all,proto3,oneof" json:"all,omitempty"` + All *bool `protobuf:"varint,2,opt,name=all,proto3,oneof" json:"all,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *ListEmailsRequest) Reset() { @@ -79,12 +78,11 @@ func (x *ListEmailsRequest) GetAll() bool { } type ListEmailsResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Pagination *database.PaginationResponse `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"` + Emails []*mailer.Email `protobuf:"bytes,2,rep,name=emails,proto3" json:"emails,omitempty"` unknownFields protoimpl.UnknownFields - - Pagination *database.PaginationResponse `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"` - Emails []*mailer.Email `protobuf:"bytes,2,rep,name=emails,proto3" json:"emails,omitempty"` + sizeCache protoimpl.SizeCache } func (x *ListEmailsResponse) Reset() { @@ -132,11 +130,10 @@ func (x *ListEmailsResponse) GetEmails() []*mailer.Email { } type GetEmailRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` unknownFields protoimpl.UnknownFields - - Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` + sizeCache protoimpl.SizeCache } func (x *GetEmailRequest) Reset() { @@ -177,11 +174,10 @@ func (x *GetEmailRequest) GetId() uint64 { } type GetEmailResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Email *mailer.Email `protobuf:"bytes,1,opt,name=email,proto3" json:"email,omitempty"` unknownFields protoimpl.UnknownFields - - Email *mailer.Email `protobuf:"bytes,1,opt,name=email,proto3" json:"email,omitempty"` + sizeCache protoimpl.SizeCache } func (x *GetEmailResponse) Reset() { @@ -222,11 +218,10 @@ func (x *GetEmailResponse) GetEmail() *mailer.Email { } type CreateOrUpdateEmailRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Email *mailer.Email `protobuf:"bytes,1,opt,name=email,proto3" json:"email,omitempty"` unknownFields protoimpl.UnknownFields - - Email *mailer.Email `protobuf:"bytes,1,opt,name=email,proto3" json:"email,omitempty"` + sizeCache protoimpl.SizeCache } func (x *CreateOrUpdateEmailRequest) Reset() { @@ -267,11 +262,10 @@ func (x *CreateOrUpdateEmailRequest) GetEmail() *mailer.Email { } type CreateOrUpdateEmailResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Email *mailer.Email `protobuf:"bytes,1,opt,name=email,proto3" json:"email,omitempty"` unknownFields protoimpl.UnknownFields - - Email *mailer.Email `protobuf:"bytes,1,opt,name=email,proto3" json:"email,omitempty"` + sizeCache protoimpl.SizeCache } func (x *CreateOrUpdateEmailResponse) Reset() { @@ -312,11 +306,10 @@ func (x *CreateOrUpdateEmailResponse) GetEmail() *mailer.Email { } type DeleteEmailRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` unknownFields protoimpl.UnknownFields - - Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` + sizeCache protoimpl.SizeCache } func (x *DeleteEmailRequest) Reset() { @@ -357,9 +350,9 @@ func (x *DeleteEmailRequest) GetId() uint64 { } type DeleteEmailResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *DeleteEmailResponse) Reset() { @@ -393,13 +386,12 @@ func (*DeleteEmailResponse) Descriptor() ([]byte, []int) { } type GetEmailProposalsRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Input string `protobuf:"bytes,1,opt,name=input,proto3" json:"input,omitempty"` + Job *bool `protobuf:"varint,2,opt,name=job,proto3,oneof" json:"job,omitempty"` + UserId *int32 `protobuf:"varint,3,opt,name=user_id,json=userId,proto3,oneof" json:"user_id,omitempty"` unknownFields protoimpl.UnknownFields - - Input string `protobuf:"bytes,1,opt,name=input,proto3" json:"input,omitempty"` - Job *bool `protobuf:"varint,2,opt,name=job,proto3,oneof" json:"job,omitempty"` - UserId *int32 `protobuf:"varint,3,opt,name=user_id,json=userId,proto3,oneof" json:"user_id,omitempty"` + sizeCache protoimpl.SizeCache } func (x *GetEmailProposalsRequest) Reset() { @@ -454,12 +446,11 @@ func (x *GetEmailProposalsRequest) GetUserId() int32 { } type GetEmailProposalsResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Emails []string `protobuf:"bytes,1,rep,name=emails,proto3" json:"emails,omitempty"` + Domains []string `protobuf:"bytes,2,rep,name=domains,proto3" json:"domains,omitempty"` unknownFields protoimpl.UnknownFields - - Emails []string `protobuf:"bytes,1,rep,name=emails,proto3" json:"emails,omitempty"` - Domains []string `protobuf:"bytes,2,rep,name=domains,proto3" json:"domains,omitempty"` + sizeCache protoimpl.SizeCache } func (x *GetEmailProposalsResponse) Reset() { @@ -507,11 +498,10 @@ func (x *GetEmailProposalsResponse) GetDomains() []string { } type ListTemplatesRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + EmailId uint64 `protobuf:"varint,1,opt,name=email_id,json=emailId,proto3" json:"email_id,omitempty"` unknownFields protoimpl.UnknownFields - - EmailId uint64 `protobuf:"varint,1,opt,name=email_id,json=emailId,proto3" json:"email_id,omitempty"` + sizeCache protoimpl.SizeCache } func (x *ListTemplatesRequest) Reset() { @@ -552,11 +542,10 @@ func (x *ListTemplatesRequest) GetEmailId() uint64 { } type ListTemplatesResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Templates []*mailer.Template `protobuf:"bytes,1,rep,name=templates,proto3" json:"templates,omitempty"` unknownFields protoimpl.UnknownFields - - Templates []*mailer.Template `protobuf:"bytes,1,rep,name=templates,proto3" json:"templates,omitempty"` + sizeCache protoimpl.SizeCache } func (x *ListTemplatesResponse) Reset() { @@ -597,12 +586,11 @@ func (x *ListTemplatesResponse) GetTemplates() []*mailer.Template { } type GetTemplateRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + EmailId uint64 `protobuf:"varint,1,opt,name=email_id,json=emailId,proto3" json:"email_id,omitempty"` + TemplateId uint64 `protobuf:"varint,2,opt,name=template_id,json=templateId,proto3" json:"template_id,omitempty"` unknownFields protoimpl.UnknownFields - - EmailId uint64 `protobuf:"varint,1,opt,name=email_id,json=emailId,proto3" json:"email_id,omitempty"` - TemplateId uint64 `protobuf:"varint,2,opt,name=template_id,json=templateId,proto3" json:"template_id,omitempty"` + sizeCache protoimpl.SizeCache } func (x *GetTemplateRequest) Reset() { @@ -650,11 +638,10 @@ func (x *GetTemplateRequest) GetTemplateId() uint64 { } type GetTemplateResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Template *mailer.Template `protobuf:"bytes,1,opt,name=template,proto3" json:"template,omitempty"` unknownFields protoimpl.UnknownFields - - Template *mailer.Template `protobuf:"bytes,1,opt,name=template,proto3" json:"template,omitempty"` + sizeCache protoimpl.SizeCache } func (x *GetTemplateResponse) Reset() { @@ -695,11 +682,10 @@ func (x *GetTemplateResponse) GetTemplate() *mailer.Template { } type CreateOrUpdateTemplateRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Template *mailer.Template `protobuf:"bytes,1,opt,name=template,proto3" json:"template,omitempty"` unknownFields protoimpl.UnknownFields - - Template *mailer.Template `protobuf:"bytes,1,opt,name=template,proto3" json:"template,omitempty"` + sizeCache protoimpl.SizeCache } func (x *CreateOrUpdateTemplateRequest) Reset() { @@ -740,11 +726,10 @@ func (x *CreateOrUpdateTemplateRequest) GetTemplate() *mailer.Template { } type CreateOrUpdateTemplateResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Template *mailer.Template `protobuf:"bytes,1,opt,name=template,proto3" json:"template,omitempty"` unknownFields protoimpl.UnknownFields - - Template *mailer.Template `protobuf:"bytes,1,opt,name=template,proto3" json:"template,omitempty"` + sizeCache protoimpl.SizeCache } func (x *CreateOrUpdateTemplateResponse) Reset() { @@ -785,12 +770,11 @@ func (x *CreateOrUpdateTemplateResponse) GetTemplate() *mailer.Template { } type DeleteTemplateRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + EmailId uint64 `protobuf:"varint,1,opt,name=email_id,json=emailId,proto3" json:"email_id,omitempty"` + Id uint64 `protobuf:"varint,2,opt,name=id,proto3" json:"id,omitempty"` unknownFields protoimpl.UnknownFields - - EmailId uint64 `protobuf:"varint,1,opt,name=email_id,json=emailId,proto3" json:"email_id,omitempty"` - Id uint64 `protobuf:"varint,2,opt,name=id,proto3" json:"id,omitempty"` + sizeCache protoimpl.SizeCache } func (x *DeleteTemplateRequest) Reset() { @@ -838,9 +822,9 @@ func (x *DeleteTemplateRequest) GetId() uint64 { } type DeleteTemplateResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *DeleteTemplateResponse) Reset() { @@ -874,15 +858,14 @@ func (*DeleteTemplateResponse) Descriptor() ([]byte, []int) { } type ListThreadsRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - + state protoimpl.MessageState `protogen:"open.v1"` Pagination *database.PaginationRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"` // Search params - EmailIds []uint64 `protobuf:"varint,2,rep,packed,name=email_ids,json=emailIds,proto3" json:"email_ids,omitempty"` - Unread *bool `protobuf:"varint,4,opt,name=unread,proto3,oneof" json:"unread,omitempty"` - Archived *bool `protobuf:"varint,5,opt,name=archived,proto3,oneof" json:"archived,omitempty"` + EmailIds []uint64 `protobuf:"varint,2,rep,packed,name=email_ids,json=emailIds,proto3" json:"email_ids,omitempty"` + Unread *bool `protobuf:"varint,4,opt,name=unread,proto3,oneof" json:"unread,omitempty"` + Archived *bool `protobuf:"varint,5,opt,name=archived,proto3,oneof" json:"archived,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *ListThreadsRequest) Reset() { @@ -944,12 +927,11 @@ func (x *ListThreadsRequest) GetArchived() bool { } type ListThreadsResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Pagination *database.PaginationResponse `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"` + Threads []*mailer.Thread `protobuf:"bytes,2,rep,name=threads,proto3" json:"threads,omitempty"` unknownFields protoimpl.UnknownFields - - Pagination *database.PaginationResponse `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"` - Threads []*mailer.Thread `protobuf:"bytes,2,rep,name=threads,proto3" json:"threads,omitempty"` + sizeCache protoimpl.SizeCache } func (x *ListThreadsResponse) Reset() { @@ -997,12 +979,11 @@ func (x *ListThreadsResponse) GetThreads() []*mailer.Thread { } type GetThreadRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + EmailId uint64 `protobuf:"varint,1,opt,name=email_id,json=emailId,proto3" json:"email_id,omitempty"` + ThreadId uint64 `protobuf:"varint,2,opt,name=thread_id,json=threadId,proto3" json:"thread_id,omitempty"` unknownFields protoimpl.UnknownFields - - EmailId uint64 `protobuf:"varint,1,opt,name=email_id,json=emailId,proto3" json:"email_id,omitempty"` - ThreadId uint64 `protobuf:"varint,2,opt,name=thread_id,json=threadId,proto3" json:"thread_id,omitempty"` + sizeCache protoimpl.SizeCache } func (x *GetThreadRequest) Reset() { @@ -1050,11 +1031,10 @@ func (x *GetThreadRequest) GetThreadId() uint64 { } type GetThreadResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Thread *mailer.Thread `protobuf:"bytes,1,opt,name=thread,proto3" json:"thread,omitempty"` unknownFields protoimpl.UnknownFields - - Thread *mailer.Thread `protobuf:"bytes,1,opt,name=thread,proto3" json:"thread,omitempty"` + sizeCache protoimpl.SizeCache } func (x *GetThreadResponse) Reset() { @@ -1095,14 +1075,13 @@ func (x *GetThreadResponse) GetThread() *mailer.Thread { } type CreateThreadRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Thread *mailer.Thread `protobuf:"bytes,1,opt,name=thread,proto3" json:"thread,omitempty"` - Message *mailer.Message `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + Thread *mailer.Thread `protobuf:"bytes,1,opt,name=thread,proto3" json:"thread,omitempty"` + Message *mailer.Message `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` // @sanitize: method=StripTags - Recipients []string `protobuf:"bytes,3,rep,name=recipients,proto3" json:"recipients,omitempty"` + Recipients []string `protobuf:"bytes,3,rep,name=recipients,proto3" json:"recipients,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *CreateThreadRequest) Reset() { @@ -1157,11 +1136,10 @@ func (x *CreateThreadRequest) GetRecipients() []string { } type CreateThreadResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Thread *mailer.Thread `protobuf:"bytes,1,opt,name=thread,proto3" json:"thread,omitempty"` unknownFields protoimpl.UnknownFields - - Thread *mailer.Thread `protobuf:"bytes,1,opt,name=thread,proto3" json:"thread,omitempty"` + sizeCache protoimpl.SizeCache } func (x *CreateThreadResponse) Reset() { @@ -1202,12 +1180,11 @@ func (x *CreateThreadResponse) GetThread() *mailer.Thread { } type DeleteThreadRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + EmailId uint64 `protobuf:"varint,1,opt,name=email_id,json=emailId,proto3" json:"email_id,omitempty"` + ThreadId uint64 `protobuf:"varint,2,opt,name=thread_id,json=threadId,proto3" json:"thread_id,omitempty"` unknownFields protoimpl.UnknownFields - - EmailId uint64 `protobuf:"varint,1,opt,name=email_id,json=emailId,proto3" json:"email_id,omitempty"` - ThreadId uint64 `protobuf:"varint,2,opt,name=thread_id,json=threadId,proto3" json:"thread_id,omitempty"` + sizeCache protoimpl.SizeCache } func (x *DeleteThreadRequest) Reset() { @@ -1255,9 +1232,9 @@ func (x *DeleteThreadRequest) GetThreadId() uint64 { } type DeleteThreadResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *DeleteThreadResponse) Reset() { @@ -1291,12 +1268,11 @@ func (*DeleteThreadResponse) Descriptor() ([]byte, []int) { } type GetThreadStateRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + EmailId uint64 `protobuf:"varint,1,opt,name=email_id,json=emailId,proto3" json:"email_id,omitempty"` + ThreadId uint64 `protobuf:"varint,2,opt,name=thread_id,json=threadId,proto3" json:"thread_id,omitempty"` unknownFields protoimpl.UnknownFields - - EmailId uint64 `protobuf:"varint,1,opt,name=email_id,json=emailId,proto3" json:"email_id,omitempty"` - ThreadId uint64 `protobuf:"varint,2,opt,name=thread_id,json=threadId,proto3" json:"thread_id,omitempty"` + sizeCache protoimpl.SizeCache } func (x *GetThreadStateRequest) Reset() { @@ -1344,11 +1320,10 @@ func (x *GetThreadStateRequest) GetThreadId() uint64 { } type GetThreadStateResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + State *mailer.ThreadState `protobuf:"bytes,1,opt,name=state,proto3" json:"state,omitempty"` unknownFields protoimpl.UnknownFields - - State *mailer.ThreadState `protobuf:"bytes,1,opt,name=state,proto3" json:"state,omitempty"` + sizeCache protoimpl.SizeCache } func (x *GetThreadStateResponse) Reset() { @@ -1389,11 +1364,10 @@ func (x *GetThreadStateResponse) GetState() *mailer.ThreadState { } type SetThreadStateRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + State *mailer.ThreadState `protobuf:"bytes,1,opt,name=state,proto3" json:"state,omitempty"` unknownFields protoimpl.UnknownFields - - State *mailer.ThreadState `protobuf:"bytes,1,opt,name=state,proto3" json:"state,omitempty"` + sizeCache protoimpl.SizeCache } func (x *SetThreadStateRequest) Reset() { @@ -1434,11 +1408,10 @@ func (x *SetThreadStateRequest) GetState() *mailer.ThreadState { } type SetThreadStateResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + State *mailer.ThreadState `protobuf:"bytes,1,opt,name=state,proto3" json:"state,omitempty"` unknownFields protoimpl.UnknownFields - - State *mailer.ThreadState `protobuf:"bytes,1,opt,name=state,proto3" json:"state,omitempty"` + sizeCache protoimpl.SizeCache } func (x *SetThreadStateResponse) Reset() { @@ -1479,11 +1452,10 @@ func (x *SetThreadStateResponse) GetState() *mailer.ThreadState { } type GetEmailSettingsRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + EmailId uint64 `protobuf:"varint,1,opt,name=email_id,json=emailId,proto3" json:"email_id,omitempty"` unknownFields protoimpl.UnknownFields - - EmailId uint64 `protobuf:"varint,1,opt,name=email_id,json=emailId,proto3" json:"email_id,omitempty"` + sizeCache protoimpl.SizeCache } func (x *GetEmailSettingsRequest) Reset() { @@ -1524,11 +1496,10 @@ func (x *GetEmailSettingsRequest) GetEmailId() uint64 { } type GetEmailSettingsResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Settings *mailer.EmailSettings `protobuf:"bytes,1,opt,name=settings,proto3" json:"settings,omitempty"` unknownFields protoimpl.UnknownFields - - Settings *mailer.EmailSettings `protobuf:"bytes,1,opt,name=settings,proto3" json:"settings,omitempty"` + sizeCache protoimpl.SizeCache } func (x *GetEmailSettingsResponse) Reset() { @@ -1569,11 +1540,10 @@ func (x *GetEmailSettingsResponse) GetSettings() *mailer.EmailSettings { } type SetEmailSettingsRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Settings *mailer.EmailSettings `protobuf:"bytes,1,opt,name=settings,proto3" json:"settings,omitempty"` unknownFields protoimpl.UnknownFields - - Settings *mailer.EmailSettings `protobuf:"bytes,1,opt,name=settings,proto3" json:"settings,omitempty"` + sizeCache protoimpl.SizeCache } func (x *SetEmailSettingsRequest) Reset() { @@ -1614,11 +1584,10 @@ func (x *SetEmailSettingsRequest) GetSettings() *mailer.EmailSettings { } type SetEmailSettingsResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Settings *mailer.EmailSettings `protobuf:"bytes,1,opt,name=settings,proto3" json:"settings,omitempty"` unknownFields protoimpl.UnknownFields - - Settings *mailer.EmailSettings `protobuf:"bytes,1,opt,name=settings,proto3" json:"settings,omitempty"` + sizeCache protoimpl.SizeCache } func (x *SetEmailSettingsResponse) Reset() { @@ -1659,13 +1628,12 @@ func (x *SetEmailSettingsResponse) GetSettings() *mailer.EmailSettings { } type SearchThreadsRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - + state protoimpl.MessageState `protogen:"open.v1"` Pagination *database.PaginationRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"` // Search params - Search string `protobuf:"bytes,2,opt,name=search,proto3" json:"search,omitempty"` + Search string `protobuf:"bytes,2,opt,name=search,proto3" json:"search,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *SearchThreadsRequest) Reset() { @@ -1713,12 +1681,11 @@ func (x *SearchThreadsRequest) GetSearch() string { } type SearchThreadsResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Pagination *database.PaginationResponse `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"` + Messages []*mailer.Message `protobuf:"bytes,2,rep,name=messages,proto3" json:"messages,omitempty"` unknownFields protoimpl.UnknownFields - - Pagination *database.PaginationResponse `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"` - Messages []*mailer.Message `protobuf:"bytes,2,rep,name=messages,proto3" json:"messages,omitempty"` + sizeCache protoimpl.SizeCache } func (x *SearchThreadsResponse) Reset() { @@ -1766,14 +1733,13 @@ func (x *SearchThreadsResponse) GetMessages() []*mailer.Message { } type ListThreadMessagesRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Pagination *database.PaginationRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"` + EmailId uint64 `protobuf:"varint,2,opt,name=email_id,json=emailId,proto3" json:"email_id,omitempty"` + ThreadId uint64 `protobuf:"varint,3,opt,name=thread_id,json=threadId,proto3" json:"thread_id,omitempty"` + After *timestamp.Timestamp `protobuf:"bytes,4,opt,name=after,proto3,oneof" json:"after,omitempty"` unknownFields protoimpl.UnknownFields - - Pagination *database.PaginationRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"` - EmailId uint64 `protobuf:"varint,2,opt,name=email_id,json=emailId,proto3" json:"email_id,omitempty"` - ThreadId uint64 `protobuf:"varint,3,opt,name=thread_id,json=threadId,proto3" json:"thread_id,omitempty"` - After *timestamp.Timestamp `protobuf:"bytes,4,opt,name=after,proto3,oneof" json:"after,omitempty"` + sizeCache protoimpl.SizeCache } func (x *ListThreadMessagesRequest) Reset() { @@ -1835,12 +1801,11 @@ func (x *ListThreadMessagesRequest) GetAfter() *timestamp.Timestamp { } type ListThreadMessagesResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Pagination *database.PaginationResponse `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"` + Messages []*mailer.Message `protobuf:"bytes,2,rep,name=messages,proto3" json:"messages,omitempty"` unknownFields protoimpl.UnknownFields - - Pagination *database.PaginationResponse `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"` - Messages []*mailer.Message `protobuf:"bytes,2,rep,name=messages,proto3" json:"messages,omitempty"` + sizeCache protoimpl.SizeCache } func (x *ListThreadMessagesResponse) Reset() { @@ -1888,13 +1853,12 @@ func (x *ListThreadMessagesResponse) GetMessages() []*mailer.Message { } type PostMessageRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Message *mailer.Message `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + Message *mailer.Message `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"` // @sanitize: method=StripTags - Recipients []string `protobuf:"bytes,2,rep,name=recipients,proto3" json:"recipients,omitempty"` + Recipients []string `protobuf:"bytes,2,rep,name=recipients,proto3" json:"recipients,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *PostMessageRequest) Reset() { @@ -1942,11 +1906,10 @@ func (x *PostMessageRequest) GetRecipients() []string { } type PostMessageResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Message *mailer.Message `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"` unknownFields protoimpl.UnknownFields - - Message *mailer.Message `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"` + sizeCache protoimpl.SizeCache } func (x *PostMessageResponse) Reset() { @@ -1987,13 +1950,12 @@ func (x *PostMessageResponse) GetMessage() *mailer.Message { } type DeleteMessageRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + EmailId uint64 `protobuf:"varint,1,opt,name=email_id,json=emailId,proto3" json:"email_id,omitempty"` + ThreadId uint64 `protobuf:"varint,2,opt,name=thread_id,json=threadId,proto3" json:"thread_id,omitempty"` + MessageId uint64 `protobuf:"varint,3,opt,name=message_id,json=messageId,proto3" json:"message_id,omitempty"` unknownFields protoimpl.UnknownFields - - EmailId uint64 `protobuf:"varint,1,opt,name=email_id,json=emailId,proto3" json:"email_id,omitempty"` - ThreadId uint64 `protobuf:"varint,2,opt,name=thread_id,json=threadId,proto3" json:"thread_id,omitempty"` - MessageId uint64 `protobuf:"varint,3,opt,name=message_id,json=messageId,proto3" json:"message_id,omitempty"` + sizeCache protoimpl.SizeCache } func (x *DeleteMessageRequest) Reset() { @@ -2048,9 +2010,9 @@ func (x *DeleteMessageRequest) GetMessageId() uint64 { } type DeleteMessageResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *DeleteMessageResponse) Reset() { diff --git a/gen/go/proto/services/mailer/mailer_grpc.pb.go b/gen/go/proto/services/mailer/mailer_grpc.pb.go index 7be9669af..b1c6e4327 100644 --- a/gen/go/proto/services/mailer/mailer_grpc.pb.go +++ b/gen/go/proto/services/mailer/mailer_grpc.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: -// - protoc-gen-go-grpc v1.3.0 +// - protoc-gen-go-grpc v1.5.1 // - protoc v3.20.3 // source: services/mailer/mailer.proto @@ -15,8 +15,8 @@ import ( // This is a compile-time assertion to ensure that this generated file // is compatible with the grpc package it is being compiled against. -// Requires gRPC-Go v1.32.0 or later. -const _ = grpc.SupportPackageIsVersion7 +// Requires gRPC-Go v1.64.0 or later. +const _ = grpc.SupportPackageIsVersion9 const ( MailerService_ListEmails_FullMethodName = "/services.mailer.MailerService/ListEmails" @@ -99,8 +99,9 @@ func NewMailerServiceClient(cc grpc.ClientConnInterface) MailerServiceClient { } func (c *mailerServiceClient) ListEmails(ctx context.Context, in *ListEmailsRequest, opts ...grpc.CallOption) (*ListEmailsResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(ListEmailsResponse) - err := c.cc.Invoke(ctx, MailerService_ListEmails_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, MailerService_ListEmails_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -108,8 +109,9 @@ func (c *mailerServiceClient) ListEmails(ctx context.Context, in *ListEmailsRequ } func (c *mailerServiceClient) GetEmail(ctx context.Context, in *GetEmailRequest, opts ...grpc.CallOption) (*GetEmailResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(GetEmailResponse) - err := c.cc.Invoke(ctx, MailerService_GetEmail_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, MailerService_GetEmail_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -117,8 +119,9 @@ func (c *mailerServiceClient) GetEmail(ctx context.Context, in *GetEmailRequest, } func (c *mailerServiceClient) CreateOrUpdateEmail(ctx context.Context, in *CreateOrUpdateEmailRequest, opts ...grpc.CallOption) (*CreateOrUpdateEmailResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(CreateOrUpdateEmailResponse) - err := c.cc.Invoke(ctx, MailerService_CreateOrUpdateEmail_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, MailerService_CreateOrUpdateEmail_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -126,8 +129,9 @@ func (c *mailerServiceClient) CreateOrUpdateEmail(ctx context.Context, in *Creat } func (c *mailerServiceClient) DeleteEmail(ctx context.Context, in *DeleteEmailRequest, opts ...grpc.CallOption) (*DeleteEmailResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(DeleteEmailResponse) - err := c.cc.Invoke(ctx, MailerService_DeleteEmail_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, MailerService_DeleteEmail_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -135,8 +139,9 @@ func (c *mailerServiceClient) DeleteEmail(ctx context.Context, in *DeleteEmailRe } func (c *mailerServiceClient) GetEmailProposals(ctx context.Context, in *GetEmailProposalsRequest, opts ...grpc.CallOption) (*GetEmailProposalsResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(GetEmailProposalsResponse) - err := c.cc.Invoke(ctx, MailerService_GetEmailProposals_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, MailerService_GetEmailProposals_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -144,8 +149,9 @@ func (c *mailerServiceClient) GetEmailProposals(ctx context.Context, in *GetEmai } func (c *mailerServiceClient) ListTemplates(ctx context.Context, in *ListTemplatesRequest, opts ...grpc.CallOption) (*ListTemplatesResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(ListTemplatesResponse) - err := c.cc.Invoke(ctx, MailerService_ListTemplates_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, MailerService_ListTemplates_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -153,8 +159,9 @@ func (c *mailerServiceClient) ListTemplates(ctx context.Context, in *ListTemplat } func (c *mailerServiceClient) GetTemplate(ctx context.Context, in *GetTemplateRequest, opts ...grpc.CallOption) (*GetTemplateResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(GetTemplateResponse) - err := c.cc.Invoke(ctx, MailerService_GetTemplate_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, MailerService_GetTemplate_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -162,8 +169,9 @@ func (c *mailerServiceClient) GetTemplate(ctx context.Context, in *GetTemplateRe } func (c *mailerServiceClient) CreateOrUpdateTemplate(ctx context.Context, in *CreateOrUpdateTemplateRequest, opts ...grpc.CallOption) (*CreateOrUpdateTemplateResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(CreateOrUpdateTemplateResponse) - err := c.cc.Invoke(ctx, MailerService_CreateOrUpdateTemplate_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, MailerService_CreateOrUpdateTemplate_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -171,8 +179,9 @@ func (c *mailerServiceClient) CreateOrUpdateTemplate(ctx context.Context, in *Cr } func (c *mailerServiceClient) DeleteTemplate(ctx context.Context, in *DeleteTemplateRequest, opts ...grpc.CallOption) (*DeleteTemplateResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(DeleteTemplateResponse) - err := c.cc.Invoke(ctx, MailerService_DeleteTemplate_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, MailerService_DeleteTemplate_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -180,8 +189,9 @@ func (c *mailerServiceClient) DeleteTemplate(ctx context.Context, in *DeleteTemp } func (c *mailerServiceClient) ListThreads(ctx context.Context, in *ListThreadsRequest, opts ...grpc.CallOption) (*ListThreadsResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(ListThreadsResponse) - err := c.cc.Invoke(ctx, MailerService_ListThreads_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, MailerService_ListThreads_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -189,8 +199,9 @@ func (c *mailerServiceClient) ListThreads(ctx context.Context, in *ListThreadsRe } func (c *mailerServiceClient) GetThread(ctx context.Context, in *GetThreadRequest, opts ...grpc.CallOption) (*GetThreadResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(GetThreadResponse) - err := c.cc.Invoke(ctx, MailerService_GetThread_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, MailerService_GetThread_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -198,8 +209,9 @@ func (c *mailerServiceClient) GetThread(ctx context.Context, in *GetThreadReques } func (c *mailerServiceClient) CreateThread(ctx context.Context, in *CreateThreadRequest, opts ...grpc.CallOption) (*CreateThreadResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(CreateThreadResponse) - err := c.cc.Invoke(ctx, MailerService_CreateThread_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, MailerService_CreateThread_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -207,8 +219,9 @@ func (c *mailerServiceClient) CreateThread(ctx context.Context, in *CreateThread } func (c *mailerServiceClient) DeleteThread(ctx context.Context, in *DeleteThreadRequest, opts ...grpc.CallOption) (*DeleteThreadResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(DeleteThreadResponse) - err := c.cc.Invoke(ctx, MailerService_DeleteThread_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, MailerService_DeleteThread_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -216,8 +229,9 @@ func (c *mailerServiceClient) DeleteThread(ctx context.Context, in *DeleteThread } func (c *mailerServiceClient) GetThreadState(ctx context.Context, in *GetThreadStateRequest, opts ...grpc.CallOption) (*GetThreadStateResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(GetThreadStateResponse) - err := c.cc.Invoke(ctx, MailerService_GetThreadState_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, MailerService_GetThreadState_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -225,8 +239,9 @@ func (c *mailerServiceClient) GetThreadState(ctx context.Context, in *GetThreadS } func (c *mailerServiceClient) SetThreadState(ctx context.Context, in *SetThreadStateRequest, opts ...grpc.CallOption) (*SetThreadStateResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(SetThreadStateResponse) - err := c.cc.Invoke(ctx, MailerService_SetThreadState_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, MailerService_SetThreadState_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -234,8 +249,9 @@ func (c *mailerServiceClient) SetThreadState(ctx context.Context, in *SetThreadS } func (c *mailerServiceClient) SearchThreads(ctx context.Context, in *SearchThreadsRequest, opts ...grpc.CallOption) (*SearchThreadsResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(SearchThreadsResponse) - err := c.cc.Invoke(ctx, MailerService_SearchThreads_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, MailerService_SearchThreads_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -243,8 +259,9 @@ func (c *mailerServiceClient) SearchThreads(ctx context.Context, in *SearchThrea } func (c *mailerServiceClient) ListThreadMessages(ctx context.Context, in *ListThreadMessagesRequest, opts ...grpc.CallOption) (*ListThreadMessagesResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(ListThreadMessagesResponse) - err := c.cc.Invoke(ctx, MailerService_ListThreadMessages_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, MailerService_ListThreadMessages_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -252,8 +269,9 @@ func (c *mailerServiceClient) ListThreadMessages(ctx context.Context, in *ListTh } func (c *mailerServiceClient) PostMessage(ctx context.Context, in *PostMessageRequest, opts ...grpc.CallOption) (*PostMessageResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(PostMessageResponse) - err := c.cc.Invoke(ctx, MailerService_PostMessage_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, MailerService_PostMessage_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -261,8 +279,9 @@ func (c *mailerServiceClient) PostMessage(ctx context.Context, in *PostMessageRe } func (c *mailerServiceClient) DeleteMessage(ctx context.Context, in *DeleteMessageRequest, opts ...grpc.CallOption) (*DeleteMessageResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(DeleteMessageResponse) - err := c.cc.Invoke(ctx, MailerService_DeleteMessage_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, MailerService_DeleteMessage_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -270,8 +289,9 @@ func (c *mailerServiceClient) DeleteMessage(ctx context.Context, in *DeleteMessa } func (c *mailerServiceClient) GetEmailSettings(ctx context.Context, in *GetEmailSettingsRequest, opts ...grpc.CallOption) (*GetEmailSettingsResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(GetEmailSettingsResponse) - err := c.cc.Invoke(ctx, MailerService_GetEmailSettings_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, MailerService_GetEmailSettings_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -279,8 +299,9 @@ func (c *mailerServiceClient) GetEmailSettings(ctx context.Context, in *GetEmail } func (c *mailerServiceClient) SetEmailSettings(ctx context.Context, in *SetEmailSettingsRequest, opts ...grpc.CallOption) (*SetEmailSettingsResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(SetEmailSettingsResponse) - err := c.cc.Invoke(ctx, MailerService_SetEmailSettings_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, MailerService_SetEmailSettings_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -289,7 +310,7 @@ func (c *mailerServiceClient) SetEmailSettings(ctx context.Context, in *SetEmail // MailerServiceServer is the server API for MailerService service. // All implementations must embed UnimplementedMailerServiceServer -// for forward compatibility +// for forward compatibility. type MailerServiceServer interface { // @perm ListEmails(context.Context, *ListEmailsRequest) (*ListEmailsResponse, error) @@ -336,9 +357,12 @@ type MailerServiceServer interface { mustEmbedUnimplementedMailerServiceServer() } -// UnimplementedMailerServiceServer must be embedded to have forward compatible implementations. -type UnimplementedMailerServiceServer struct { -} +// UnimplementedMailerServiceServer must be embedded to have +// forward compatible implementations. +// +// NOTE: this should be embedded by value instead of pointer to avoid a nil +// pointer dereference when methods are called. +type UnimplementedMailerServiceServer struct{} func (UnimplementedMailerServiceServer) ListEmails(context.Context, *ListEmailsRequest) (*ListEmailsResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method ListEmails not implemented") @@ -404,6 +428,7 @@ func (UnimplementedMailerServiceServer) SetEmailSettings(context.Context, *SetEm return nil, status.Errorf(codes.Unimplemented, "method SetEmailSettings not implemented") } func (UnimplementedMailerServiceServer) mustEmbedUnimplementedMailerServiceServer() {} +func (UnimplementedMailerServiceServer) testEmbeddedByValue() {} // UnsafeMailerServiceServer may be embedded to opt out of forward compatibility for this service. // Use of this interface is not recommended, as added methods to MailerServiceServer will @@ -413,6 +438,13 @@ type UnsafeMailerServiceServer interface { } func RegisterMailerServiceServer(s grpc.ServiceRegistrar, srv MailerServiceServer) { + // If the following call pancis, it indicates UnimplementedMailerServiceServer was + // embedded by pointer and is nil. This will cause panics if an + // unimplemented method is ever invoked, so we test this at initialization + // time to prevent it from happening at runtime later due to I/O. + if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { + t.testEmbeddedByValue() + } s.RegisterService(&MailerService_ServiceDesc, srv) } diff --git a/gen/go/proto/services/notificator/notificator.pb.go b/gen/go/proto/services/notificator/notificator.pb.go index 13949ee2e..dd1c23c72 100644 --- a/gen/go/proto/services/notificator/notificator.pb.go +++ b/gen/go/proto/services/notificator/notificator.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.35.2 +// protoc-gen-go v1.36.0 // protoc v3.20.3 // source: services/notificator/notificator.proto @@ -25,13 +25,12 @@ const ( ) type GetNotificationsRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Pagination *database.PaginationRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"` + IncludeRead *bool `protobuf:"varint,2,opt,name=include_read,json=includeRead,proto3,oneof" json:"include_read,omitempty"` + Categories []notifications.NotificationCategory `protobuf:"varint,3,rep,packed,name=categories,proto3,enum=resources.notifications.NotificationCategory" json:"categories,omitempty"` unknownFields protoimpl.UnknownFields - - Pagination *database.PaginationRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"` - IncludeRead *bool `protobuf:"varint,2,opt,name=include_read,json=includeRead,proto3,oneof" json:"include_read,omitempty"` - Categories []notifications.NotificationCategory `protobuf:"varint,3,rep,packed,name=categories,proto3,enum=resources.notifications.NotificationCategory" json:"categories,omitempty"` + sizeCache protoimpl.SizeCache } func (x *GetNotificationsRequest) Reset() { @@ -86,12 +85,11 @@ func (x *GetNotificationsRequest) GetCategories() []notifications.NotificationCa } type GetNotificationsResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - + state protoimpl.MessageState `protogen:"open.v1"` Pagination *database.PaginationResponse `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"` Notifications []*notifications.Notification `protobuf:"bytes,2,rep,name=notifications,proto3" json:"notifications,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *GetNotificationsResponse) Reset() { @@ -139,13 +137,12 @@ func (x *GetNotificationsResponse) GetNotifications() []*notifications.Notificat } type MarkNotificationsRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Unread bool `protobuf:"varint,1,opt,name=unread,proto3" json:"unread,omitempty"` + Ids []uint64 `protobuf:"varint,2,rep,packed,name=ids,proto3" json:"ids,omitempty"` + All *bool `protobuf:"varint,3,opt,name=all,proto3,oneof" json:"all,omitempty"` unknownFields protoimpl.UnknownFields - - Unread bool `protobuf:"varint,1,opt,name=unread,proto3" json:"unread,omitempty"` - Ids []uint64 `protobuf:"varint,2,rep,packed,name=ids,proto3" json:"ids,omitempty"` - All *bool `protobuf:"varint,3,opt,name=all,proto3,oneof" json:"all,omitempty"` + sizeCache protoimpl.SizeCache } func (x *MarkNotificationsRequest) Reset() { @@ -200,11 +197,10 @@ func (x *MarkNotificationsRequest) GetAll() bool { } type MarkNotificationsResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Updated uint64 `protobuf:"varint,1,opt,name=updated,proto3" json:"updated,omitempty"` unknownFields protoimpl.UnknownFields - - Updated uint64 `protobuf:"varint,1,opt,name=updated,proto3" json:"updated,omitempty"` + sizeCache protoimpl.SizeCache } func (x *MarkNotificationsResponse) Reset() { @@ -245,9 +241,9 @@ func (x *MarkNotificationsResponse) GetUpdated() uint64 { } type StreamRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *StreamRequest) Reset() { @@ -281,20 +277,19 @@ func (*StreamRequest) Descriptor() ([]byte, []int) { } type StreamResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - NotificationCount int32 `protobuf:"varint,1,opt,name=notification_count,json=notificationCount,proto3" json:"notification_count,omitempty"` - Restart *bool `protobuf:"varint,2,opt,name=restart,proto3,oneof" json:"restart,omitempty"` - // Types that are assignable to Data: + state protoimpl.MessageState `protogen:"open.v1"` + NotificationCount int32 `protobuf:"varint,1,opt,name=notification_count,json=notificationCount,proto3" json:"notification_count,omitempty"` + Restart *bool `protobuf:"varint,2,opt,name=restart,proto3,oneof" json:"restart,omitempty"` + // Types that are valid to be assigned to Data: // // *StreamResponse_UserEvent // *StreamResponse_JobEvent // *StreamResponse_JobGradeEvent // *StreamResponse_SystemEvent // *StreamResponse_MailerEvent - Data isStreamResponse_Data `protobuf_oneof:"data"` + Data isStreamResponse_Data `protobuf_oneof:"data"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *StreamResponse) Reset() { @@ -341,44 +336,54 @@ func (x *StreamResponse) GetRestart() bool { return false } -func (m *StreamResponse) GetData() isStreamResponse_Data { - if m != nil { - return m.Data +func (x *StreamResponse) GetData() isStreamResponse_Data { + if x != nil { + return x.Data } return nil } func (x *StreamResponse) GetUserEvent() *notifications.UserEvent { - if x, ok := x.GetData().(*StreamResponse_UserEvent); ok { - return x.UserEvent + if x != nil { + if x, ok := x.Data.(*StreamResponse_UserEvent); ok { + return x.UserEvent + } } return nil } func (x *StreamResponse) GetJobEvent() *notifications.JobEvent { - if x, ok := x.GetData().(*StreamResponse_JobEvent); ok { - return x.JobEvent + if x != nil { + if x, ok := x.Data.(*StreamResponse_JobEvent); ok { + return x.JobEvent + } } return nil } func (x *StreamResponse) GetJobGradeEvent() *notifications.JobGradeEvent { - if x, ok := x.GetData().(*StreamResponse_JobGradeEvent); ok { - return x.JobGradeEvent + if x != nil { + if x, ok := x.Data.(*StreamResponse_JobGradeEvent); ok { + return x.JobGradeEvent + } } return nil } func (x *StreamResponse) GetSystemEvent() *notifications.SystemEvent { - if x, ok := x.GetData().(*StreamResponse_SystemEvent); ok { - return x.SystemEvent + if x != nil { + if x, ok := x.Data.(*StreamResponse_SystemEvent); ok { + return x.SystemEvent + } } return nil } func (x *StreamResponse) GetMailerEvent() *mailer.MailerEvent { - if x, ok := x.GetData().(*StreamResponse_MailerEvent); ok { - return x.MailerEvent + if x != nil { + if x, ok := x.Data.(*StreamResponse_MailerEvent); ok { + return x.MailerEvent + } } return nil } diff --git a/gen/go/proto/services/notificator/notificator_grpc.pb.go b/gen/go/proto/services/notificator/notificator_grpc.pb.go index 2b4744696..294b4643e 100644 --- a/gen/go/proto/services/notificator/notificator_grpc.pb.go +++ b/gen/go/proto/services/notificator/notificator_grpc.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: -// - protoc-gen-go-grpc v1.3.0 +// - protoc-gen-go-grpc v1.5.1 // - protoc v3.20.3 // source: services/notificator/notificator.proto @@ -15,8 +15,8 @@ import ( // This is a compile-time assertion to ensure that this generated file // is compatible with the grpc package it is being compiled against. -// Requires gRPC-Go v1.32.0 or later. -const _ = grpc.SupportPackageIsVersion7 +// Requires gRPC-Go v1.64.0 or later. +const _ = grpc.SupportPackageIsVersion9 const ( NotificatorService_GetNotifications_FullMethodName = "/services.notificator.NotificatorService/GetNotifications" @@ -33,7 +33,7 @@ type NotificatorServiceClient interface { // @perm: Name=Any MarkNotifications(ctx context.Context, in *MarkNotificationsRequest, opts ...grpc.CallOption) (*MarkNotificationsResponse, error) // @perm: Name=Any - Stream(ctx context.Context, in *StreamRequest, opts ...grpc.CallOption) (NotificatorService_StreamClient, error) + Stream(ctx context.Context, in *StreamRequest, opts ...grpc.CallOption) (grpc.ServerStreamingClient[StreamResponse], error) } type notificatorServiceClient struct { @@ -45,8 +45,9 @@ func NewNotificatorServiceClient(cc grpc.ClientConnInterface) NotificatorService } func (c *notificatorServiceClient) GetNotifications(ctx context.Context, in *GetNotificationsRequest, opts ...grpc.CallOption) (*GetNotificationsResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(GetNotificationsResponse) - err := c.cc.Invoke(ctx, NotificatorService_GetNotifications_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, NotificatorService_GetNotifications_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -54,20 +55,22 @@ func (c *notificatorServiceClient) GetNotifications(ctx context.Context, in *Get } func (c *notificatorServiceClient) MarkNotifications(ctx context.Context, in *MarkNotificationsRequest, opts ...grpc.CallOption) (*MarkNotificationsResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(MarkNotificationsResponse) - err := c.cc.Invoke(ctx, NotificatorService_MarkNotifications_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, NotificatorService_MarkNotifications_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } return out, nil } -func (c *notificatorServiceClient) Stream(ctx context.Context, in *StreamRequest, opts ...grpc.CallOption) (NotificatorService_StreamClient, error) { - stream, err := c.cc.NewStream(ctx, &NotificatorService_ServiceDesc.Streams[0], NotificatorService_Stream_FullMethodName, opts...) +func (c *notificatorServiceClient) Stream(ctx context.Context, in *StreamRequest, opts ...grpc.CallOption) (grpc.ServerStreamingClient[StreamResponse], error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + stream, err := c.cc.NewStream(ctx, &NotificatorService_ServiceDesc.Streams[0], NotificatorService_Stream_FullMethodName, cOpts...) if err != nil { return nil, err } - x := ¬ificatorServiceStreamClient{stream} + x := &grpc.GenericClientStream[StreamRequest, StreamResponse]{ClientStream: stream} if err := x.ClientStream.SendMsg(in); err != nil { return nil, err } @@ -77,39 +80,28 @@ func (c *notificatorServiceClient) Stream(ctx context.Context, in *StreamRequest return x, nil } -type NotificatorService_StreamClient interface { - Recv() (*StreamResponse, error) - grpc.ClientStream -} - -type notificatorServiceStreamClient struct { - grpc.ClientStream -} - -func (x *notificatorServiceStreamClient) Recv() (*StreamResponse, error) { - m := new(StreamResponse) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} +// This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name. +type NotificatorService_StreamClient = grpc.ServerStreamingClient[StreamResponse] // NotificatorServiceServer is the server API for NotificatorService service. // All implementations must embed UnimplementedNotificatorServiceServer -// for forward compatibility +// for forward compatibility. type NotificatorServiceServer interface { // @perm: Name=Any GetNotifications(context.Context, *GetNotificationsRequest) (*GetNotificationsResponse, error) // @perm: Name=Any MarkNotifications(context.Context, *MarkNotificationsRequest) (*MarkNotificationsResponse, error) // @perm: Name=Any - Stream(*StreamRequest, NotificatorService_StreamServer) error + Stream(*StreamRequest, grpc.ServerStreamingServer[StreamResponse]) error mustEmbedUnimplementedNotificatorServiceServer() } -// UnimplementedNotificatorServiceServer must be embedded to have forward compatible implementations. -type UnimplementedNotificatorServiceServer struct { -} +// UnimplementedNotificatorServiceServer must be embedded to have +// forward compatible implementations. +// +// NOTE: this should be embedded by value instead of pointer to avoid a nil +// pointer dereference when methods are called. +type UnimplementedNotificatorServiceServer struct{} func (UnimplementedNotificatorServiceServer) GetNotifications(context.Context, *GetNotificationsRequest) (*GetNotificationsResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method GetNotifications not implemented") @@ -117,10 +109,11 @@ func (UnimplementedNotificatorServiceServer) GetNotifications(context.Context, * func (UnimplementedNotificatorServiceServer) MarkNotifications(context.Context, *MarkNotificationsRequest) (*MarkNotificationsResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method MarkNotifications not implemented") } -func (UnimplementedNotificatorServiceServer) Stream(*StreamRequest, NotificatorService_StreamServer) error { +func (UnimplementedNotificatorServiceServer) Stream(*StreamRequest, grpc.ServerStreamingServer[StreamResponse]) error { return status.Errorf(codes.Unimplemented, "method Stream not implemented") } func (UnimplementedNotificatorServiceServer) mustEmbedUnimplementedNotificatorServiceServer() {} +func (UnimplementedNotificatorServiceServer) testEmbeddedByValue() {} // UnsafeNotificatorServiceServer may be embedded to opt out of forward compatibility for this service. // Use of this interface is not recommended, as added methods to NotificatorServiceServer will @@ -130,6 +123,13 @@ type UnsafeNotificatorServiceServer interface { } func RegisterNotificatorServiceServer(s grpc.ServiceRegistrar, srv NotificatorServiceServer) { + // If the following call pancis, it indicates UnimplementedNotificatorServiceServer was + // embedded by pointer and is nil. This will cause panics if an + // unimplemented method is ever invoked, so we test this at initialization + // time to prevent it from happening at runtime later due to I/O. + if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { + t.testEmbeddedByValue() + } s.RegisterService(&NotificatorService_ServiceDesc, srv) } @@ -174,21 +174,11 @@ func _NotificatorService_Stream_Handler(srv interface{}, stream grpc.ServerStrea if err := stream.RecvMsg(m); err != nil { return err } - return srv.(NotificatorServiceServer).Stream(m, ¬ificatorServiceStreamServer{stream}) -} - -type NotificatorService_StreamServer interface { - Send(*StreamResponse) error - grpc.ServerStream + return srv.(NotificatorServiceServer).Stream(m, &grpc.GenericServerStream[StreamRequest, StreamResponse]{ServerStream: stream}) } -type notificatorServiceStreamServer struct { - grpc.ServerStream -} - -func (x *notificatorServiceStreamServer) Send(m *StreamResponse) error { - return x.ServerStream.SendMsg(m) -} +// This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name. +type NotificatorService_StreamServer = grpc.ServerStreamingServer[StreamResponse] // NotificatorService_ServiceDesc is the grpc.ServiceDesc for NotificatorService service. // It's only intended for direct use with grpc.RegisterService, diff --git a/gen/go/proto/services/qualifications/qualifications.pb.go b/gen/go/proto/services/qualifications/qualifications.pb.go index e9f3fb712..7ea27bb74 100644 --- a/gen/go/proto/services/qualifications/qualifications.pb.go +++ b/gen/go/proto/services/qualifications/qualifications.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.35.2 +// protoc-gen-go v1.36.0 // protoc v3.20.3 // source: services/qualifications/qualifications.proto @@ -25,15 +25,14 @@ const ( ) type ListQualificationsRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - + state protoimpl.MessageState `protogen:"open.v1"` Pagination *database.PaginationRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"` Sort *database.Sort `protobuf:"bytes,2,opt,name=sort,proto3,oneof" json:"sort,omitempty"` // Search params - Search *string `protobuf:"bytes,3,opt,name=search,proto3,oneof" json:"search,omitempty"` - Job *string `protobuf:"bytes,4,opt,name=job,proto3,oneof" json:"job,omitempty"` + Search *string `protobuf:"bytes,3,opt,name=search,proto3,oneof" json:"search,omitempty"` + Job *string `protobuf:"bytes,4,opt,name=job,proto3,oneof" json:"job,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *ListQualificationsRequest) Reset() { @@ -95,12 +94,11 @@ func (x *ListQualificationsRequest) GetJob() string { } type ListQualificationsResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - + state protoimpl.MessageState `protogen:"open.v1"` Pagination *database.PaginationResponse `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"` Qualifications []*qualifications.Qualification `protobuf:"bytes,2,rep,name=qualifications,proto3" json:"qualifications,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *ListQualificationsResponse) Reset() { @@ -148,12 +146,11 @@ func (x *ListQualificationsResponse) GetQualifications() []*qualifications.Quali } type GetQualificationRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - QualificationId uint64 `protobuf:"varint,1,opt,name=qualification_id,json=qualificationId,proto3" json:"qualification_id,omitempty"` - WithExam *bool `protobuf:"varint,2,opt,name=with_exam,json=withExam,proto3,oneof" json:"with_exam,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + QualificationId uint64 `protobuf:"varint,1,opt,name=qualification_id,json=qualificationId,proto3" json:"qualification_id,omitempty"` + WithExam *bool `protobuf:"varint,2,opt,name=with_exam,json=withExam,proto3,oneof" json:"with_exam,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *GetQualificationRequest) Reset() { @@ -201,11 +198,10 @@ func (x *GetQualificationRequest) GetWithExam() bool { } type GetQualificationResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - + state protoimpl.MessageState `protogen:"open.v1"` Qualification *qualifications.Qualification `protobuf:"bytes,1,opt,name=qualification,proto3" json:"qualification,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *GetQualificationResponse) Reset() { @@ -246,11 +242,10 @@ func (x *GetQualificationResponse) GetQualification() *qualifications.Qualificat } type CreateQualificationRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - + state protoimpl.MessageState `protogen:"open.v1"` Qualification *qualifications.Qualification `protobuf:"bytes,1,opt,name=qualification,proto3" json:"qualification,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *CreateQualificationRequest) Reset() { @@ -291,11 +286,10 @@ func (x *CreateQualificationRequest) GetQualification() *qualifications.Qualific } type CreateQualificationResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - QualificationId uint64 `protobuf:"varint,1,opt,name=qualification_id,json=qualificationId,proto3" json:"qualification_id,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + QualificationId uint64 `protobuf:"varint,1,opt,name=qualification_id,json=qualificationId,proto3" json:"qualification_id,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *CreateQualificationResponse) Reset() { @@ -336,11 +330,10 @@ func (x *CreateQualificationResponse) GetQualificationId() uint64 { } type UpdateQualificationRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - + state protoimpl.MessageState `protogen:"open.v1"` Qualification *qualifications.Qualification `protobuf:"bytes,1,opt,name=qualification,proto3" json:"qualification,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *UpdateQualificationRequest) Reset() { @@ -381,11 +374,10 @@ func (x *UpdateQualificationRequest) GetQualification() *qualifications.Qualific } type UpdateQualificationResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - QualificationId uint64 `protobuf:"varint,1,opt,name=qualification_id,json=qualificationId,proto3" json:"qualification_id,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + QualificationId uint64 `protobuf:"varint,1,opt,name=qualification_id,json=qualificationId,proto3" json:"qualification_id,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *UpdateQualificationResponse) Reset() { @@ -426,11 +418,10 @@ func (x *UpdateQualificationResponse) GetQualificationId() uint64 { } type DeleteQualificationRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - QualificationId uint64 `protobuf:"varint,1,opt,name=qualification_id,json=qualificationId,proto3" json:"qualification_id,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + QualificationId uint64 `protobuf:"varint,1,opt,name=qualification_id,json=qualificationId,proto3" json:"qualification_id,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *DeleteQualificationRequest) Reset() { @@ -471,9 +462,9 @@ func (x *DeleteQualificationRequest) GetQualificationId() uint64 { } type DeleteQualificationResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *DeleteQualificationResponse) Reset() { @@ -507,11 +498,10 @@ func (*DeleteQualificationResponse) Descriptor() ([]byte, []int) { } type GetQualificationAccessRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - QualificationId uint64 `protobuf:"varint,1,opt,name=qualification_id,json=qualificationId,proto3" json:"qualification_id,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + QualificationId uint64 `protobuf:"varint,1,opt,name=qualification_id,json=qualificationId,proto3" json:"qualification_id,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *GetQualificationAccessRequest) Reset() { @@ -552,11 +542,10 @@ func (x *GetQualificationAccessRequest) GetQualificationId() uint64 { } type GetQualificationAccessResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Access *qualifications.QualificationAccess `protobuf:"bytes,1,opt,name=access,proto3" json:"access,omitempty"` unknownFields protoimpl.UnknownFields - - Access *qualifications.QualificationAccess `protobuf:"bytes,1,opt,name=access,proto3" json:"access,omitempty"` + sizeCache protoimpl.SizeCache } func (x *GetQualificationAccessResponse) Reset() { @@ -597,12 +586,11 @@ func (x *GetQualificationAccessResponse) GetAccess() *qualifications.Qualificati } type SetQualificationAccessRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - + state protoimpl.MessageState `protogen:"open.v1"` QualificationId uint64 `protobuf:"varint,1,opt,name=qualification_id,json=qualificationId,proto3" json:"qualification_id,omitempty"` Access *qualifications.QualificationAccess `protobuf:"bytes,2,opt,name=access,proto3" json:"access,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *SetQualificationAccessRequest) Reset() { @@ -650,9 +638,9 @@ func (x *SetQualificationAccessRequest) GetAccess() *qualifications.Qualificatio } type SetQualificationAccessResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *SetQualificationAccessResponse) Reset() { @@ -686,16 +674,15 @@ func (*SetQualificationAccessResponse) Descriptor() ([]byte, []int) { } type ListQualificationRequestsRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - + state protoimpl.MessageState `protogen:"open.v1"` Pagination *database.PaginationRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"` Sort *database.Sort `protobuf:"bytes,2,opt,name=sort,proto3,oneof" json:"sort,omitempty"` // Search params QualificationId *uint64 `protobuf:"varint,3,opt,name=qualification_id,json=qualificationId,proto3,oneof" json:"qualification_id,omitempty"` Status []qualifications.RequestStatus `protobuf:"varint,4,rep,packed,name=status,proto3,enum=resources.qualifications.RequestStatus" json:"status,omitempty"` UserId *int32 `protobuf:"varint,5,opt,name=user_id,json=userId,proto3,oneof" json:"user_id,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *ListQualificationRequestsRequest) Reset() { @@ -764,12 +751,11 @@ func (x *ListQualificationRequestsRequest) GetUserId() int32 { } type ListQualificationRequestsResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Pagination *database.PaginationResponse `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"` + Requests []*qualifications.QualificationRequest `protobuf:"bytes,2,rep,name=requests,proto3" json:"requests,omitempty"` unknownFields protoimpl.UnknownFields - - Pagination *database.PaginationResponse `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"` - Requests []*qualifications.QualificationRequest `protobuf:"bytes,2,rep,name=requests,proto3" json:"requests,omitempty"` + sizeCache protoimpl.SizeCache } func (x *ListQualificationRequestsResponse) Reset() { @@ -817,11 +803,10 @@ func (x *ListQualificationRequestsResponse) GetRequests() []*qualifications.Qual } type CreateOrUpdateQualificationRequestRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Request *qualifications.QualificationRequest `protobuf:"bytes,1,opt,name=request,proto3" json:"request,omitempty"` unknownFields protoimpl.UnknownFields - - Request *qualifications.QualificationRequest `protobuf:"bytes,1,opt,name=request,proto3" json:"request,omitempty"` + sizeCache protoimpl.SizeCache } func (x *CreateOrUpdateQualificationRequestRequest) Reset() { @@ -862,11 +847,10 @@ func (x *CreateOrUpdateQualificationRequestRequest) GetRequest() *qualifications } type CreateOrUpdateQualificationRequestResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Request *qualifications.QualificationRequest `protobuf:"bytes,1,opt,name=request,proto3" json:"request,omitempty"` unknownFields protoimpl.UnknownFields - - Request *qualifications.QualificationRequest `protobuf:"bytes,1,opt,name=request,proto3" json:"request,omitempty"` + sizeCache protoimpl.SizeCache } func (x *CreateOrUpdateQualificationRequestResponse) Reset() { @@ -907,12 +891,11 @@ func (x *CreateOrUpdateQualificationRequestResponse) GetRequest() *qualification } type DeleteQualificationReqRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - QualificationId uint64 `protobuf:"varint,1,opt,name=qualification_id,json=qualificationId,proto3" json:"qualification_id,omitempty"` - UserId int32 `protobuf:"varint,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + QualificationId uint64 `protobuf:"varint,1,opt,name=qualification_id,json=qualificationId,proto3" json:"qualification_id,omitempty"` + UserId int32 `protobuf:"varint,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *DeleteQualificationReqRequest) Reset() { @@ -960,9 +943,9 @@ func (x *DeleteQualificationReqRequest) GetUserId() int32 { } type DeleteQualificationReqResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *DeleteQualificationReqResponse) Reset() { @@ -996,16 +979,15 @@ func (*DeleteQualificationReqResponse) Descriptor() ([]byte, []int) { } type ListQualificationsResultsRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - + state protoimpl.MessageState `protogen:"open.v1"` Pagination *database.PaginationRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"` Sort *database.Sort `protobuf:"bytes,2,opt,name=sort,proto3,oneof" json:"sort,omitempty"` // Search params QualificationId *uint64 `protobuf:"varint,3,opt,name=qualification_id,json=qualificationId,proto3,oneof" json:"qualification_id,omitempty"` Status []qualifications.ResultStatus `protobuf:"varint,4,rep,packed,name=status,proto3,enum=resources.qualifications.ResultStatus" json:"status,omitempty"` UserId *int32 `protobuf:"varint,5,opt,name=user_id,json=userId,proto3,oneof" json:"user_id,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *ListQualificationsResultsRequest) Reset() { @@ -1074,12 +1056,11 @@ func (x *ListQualificationsResultsRequest) GetUserId() int32 { } type ListQualificationsResultsResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Pagination *database.PaginationResponse `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"` + Results []*qualifications.QualificationResult `protobuf:"bytes,2,rep,name=results,proto3" json:"results,omitempty"` unknownFields protoimpl.UnknownFields - - Pagination *database.PaginationResponse `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"` - Results []*qualifications.QualificationResult `protobuf:"bytes,2,rep,name=results,proto3" json:"results,omitempty"` + sizeCache protoimpl.SizeCache } func (x *ListQualificationsResultsResponse) Reset() { @@ -1127,11 +1108,10 @@ func (x *ListQualificationsResultsResponse) GetResults() []*qualifications.Quali } type CreateOrUpdateQualificationResultRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Result *qualifications.QualificationResult `protobuf:"bytes,1,opt,name=result,proto3" json:"result,omitempty"` unknownFields protoimpl.UnknownFields - - Result *qualifications.QualificationResult `protobuf:"bytes,1,opt,name=result,proto3" json:"result,omitempty"` + sizeCache protoimpl.SizeCache } func (x *CreateOrUpdateQualificationResultRequest) Reset() { @@ -1172,11 +1152,10 @@ func (x *CreateOrUpdateQualificationResultRequest) GetResult() *qualifications.Q } type CreateOrUpdateQualificationResultResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Result *qualifications.QualificationResult `protobuf:"bytes,1,opt,name=result,proto3" json:"result,omitempty"` unknownFields protoimpl.UnknownFields - - Result *qualifications.QualificationResult `protobuf:"bytes,1,opt,name=result,proto3" json:"result,omitempty"` + sizeCache protoimpl.SizeCache } func (x *CreateOrUpdateQualificationResultResponse) Reset() { @@ -1217,11 +1196,10 @@ func (x *CreateOrUpdateQualificationResultResponse) GetResult() *qualifications. } type DeleteQualificationResultRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + ResultId uint64 `protobuf:"varint,1,opt,name=result_id,json=resultId,proto3" json:"result_id,omitempty"` unknownFields protoimpl.UnknownFields - - ResultId uint64 `protobuf:"varint,1,opt,name=result_id,json=resultId,proto3" json:"result_id,omitempty"` + sizeCache protoimpl.SizeCache } func (x *DeleteQualificationResultRequest) Reset() { @@ -1262,9 +1240,9 @@ func (x *DeleteQualificationResultRequest) GetResultId() uint64 { } type DeleteQualificationResultResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *DeleteQualificationResultResponse) Reset() { @@ -1298,11 +1276,10 @@ func (*DeleteQualificationResultResponse) Descriptor() ([]byte, []int) { } type GetExamInfoRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - QualificationId uint64 `protobuf:"varint,1,opt,name=qualification_id,json=qualificationId,proto3" json:"qualification_id,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + QualificationId uint64 `protobuf:"varint,1,opt,name=qualification_id,json=qualificationId,proto3" json:"qualification_id,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *GetExamInfoRequest) Reset() { @@ -1343,13 +1320,12 @@ func (x *GetExamInfoRequest) GetQualificationId() uint64 { } type GetExamInfoResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - + state protoimpl.MessageState `protogen:"open.v1"` Qualification *qualifications.QualificationShort `protobuf:"bytes,1,opt,name=qualification,proto3" json:"qualification,omitempty"` QuestionCount int32 `protobuf:"varint,2,opt,name=question_count,json=questionCount,proto3" json:"question_count,omitempty"` ExamUser *qualifications.ExamUser `protobuf:"bytes,3,opt,name=exam_user,json=examUser,proto3,oneof" json:"exam_user,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *GetExamInfoResponse) Reset() { @@ -1404,12 +1380,11 @@ func (x *GetExamInfoResponse) GetExamUser() *qualifications.ExamUser { } type TakeExamRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - QualificationId uint64 `protobuf:"varint,1,opt,name=qualification_id,json=qualificationId,proto3" json:"qualification_id,omitempty"` - Cancel *bool `protobuf:"varint,2,opt,name=cancel,proto3,oneof" json:"cancel,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + QualificationId uint64 `protobuf:"varint,1,opt,name=qualification_id,json=qualificationId,proto3" json:"qualification_id,omitempty"` + Cancel *bool `protobuf:"varint,2,opt,name=cancel,proto3,oneof" json:"cancel,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *TakeExamRequest) Reset() { @@ -1457,12 +1432,11 @@ func (x *TakeExamRequest) GetCancel() bool { } type TakeExamResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Exam *qualifications.ExamQuestions `protobuf:"bytes,1,opt,name=exam,proto3" json:"exam,omitempty"` + ExamUser *qualifications.ExamUser `protobuf:"bytes,2,opt,name=exam_user,json=examUser,proto3" json:"exam_user,omitempty"` unknownFields protoimpl.UnknownFields - - Exam *qualifications.ExamQuestions `protobuf:"bytes,1,opt,name=exam,proto3" json:"exam,omitempty"` - ExamUser *qualifications.ExamUser `protobuf:"bytes,2,opt,name=exam_user,json=examUser,proto3" json:"exam_user,omitempty"` + sizeCache protoimpl.SizeCache } func (x *TakeExamResponse) Reset() { @@ -1510,12 +1484,11 @@ func (x *TakeExamResponse) GetExamUser() *qualifications.ExamUser { } type SubmitExamRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - + state protoimpl.MessageState `protogen:"open.v1"` QualificationId uint64 `protobuf:"varint,1,opt,name=qualification_id,json=qualificationId,proto3" json:"qualification_id,omitempty"` Responses *qualifications.ExamResponses `protobuf:"bytes,2,opt,name=responses,proto3" json:"responses,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *SubmitExamRequest) Reset() { @@ -1563,11 +1536,10 @@ func (x *SubmitExamRequest) GetResponses() *qualifications.ExamResponses { } type SubmitExamResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Duration *durationpb.Duration `protobuf:"bytes,1,opt,name=duration,proto3" json:"duration,omitempty"` unknownFields protoimpl.UnknownFields - - Duration *durationpb.Duration `protobuf:"bytes,1,opt,name=duration,proto3" json:"duration,omitempty"` + sizeCache protoimpl.SizeCache } func (x *SubmitExamResponse) Reset() { @@ -1608,12 +1580,11 @@ func (x *SubmitExamResponse) GetDuration() *durationpb.Duration { } type GetUserExamRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - QualificationId uint64 `protobuf:"varint,1,opt,name=qualification_id,json=qualificationId,proto3" json:"qualification_id,omitempty"` - UserId int32 `protobuf:"varint,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + QualificationId uint64 `protobuf:"varint,1,opt,name=qualification_id,json=qualificationId,proto3" json:"qualification_id,omitempty"` + UserId int32 `protobuf:"varint,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *GetUserExamRequest) Reset() { @@ -1661,13 +1632,12 @@ func (x *GetUserExamRequest) GetUserId() int32 { } type GetUserExamResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Exam *qualifications.ExamQuestions `protobuf:"bytes,1,opt,name=exam,proto3" json:"exam,omitempty"` + ExamUser *qualifications.ExamUser `protobuf:"bytes,2,opt,name=exam_user,json=examUser,proto3" json:"exam_user,omitempty"` + Responses *qualifications.ExamResponses `protobuf:"bytes,3,opt,name=responses,proto3" json:"responses,omitempty"` unknownFields protoimpl.UnknownFields - - Exam *qualifications.ExamQuestions `protobuf:"bytes,1,opt,name=exam,proto3" json:"exam,omitempty"` - ExamUser *qualifications.ExamUser `protobuf:"bytes,2,opt,name=exam_user,json=examUser,proto3" json:"exam_user,omitempty"` - Responses *qualifications.ExamResponses `protobuf:"bytes,3,opt,name=responses,proto3" json:"responses,omitempty"` + sizeCache protoimpl.SizeCache } func (x *GetUserExamResponse) Reset() { diff --git a/gen/go/proto/services/qualifications/qualifications_grpc.pb.go b/gen/go/proto/services/qualifications/qualifications_grpc.pb.go index 25e57bd07..d62c695be 100644 --- a/gen/go/proto/services/qualifications/qualifications_grpc.pb.go +++ b/gen/go/proto/services/qualifications/qualifications_grpc.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: -// - protoc-gen-go-grpc v1.3.0 +// - protoc-gen-go-grpc v1.5.1 // - protoc v3.20.3 // source: services/qualifications/qualifications.proto @@ -15,8 +15,8 @@ import ( // This is a compile-time assertion to ensure that this generated file // is compatible with the grpc package it is being compiled against. -// Requires gRPC-Go v1.32.0 or later. -const _ = grpc.SupportPackageIsVersion7 +// Requires gRPC-Go v1.64.0 or later. +const _ = grpc.SupportPackageIsVersion9 const ( QualificationsService_ListQualifications_FullMethodName = "/services.qualifications.QualificationsService/ListQualifications" @@ -81,8 +81,9 @@ func NewQualificationsServiceClient(cc grpc.ClientConnInterface) QualificationsS } func (c *qualificationsServiceClient) ListQualifications(ctx context.Context, in *ListQualificationsRequest, opts ...grpc.CallOption) (*ListQualificationsResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(ListQualificationsResponse) - err := c.cc.Invoke(ctx, QualificationsService_ListQualifications_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, QualificationsService_ListQualifications_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -90,8 +91,9 @@ func (c *qualificationsServiceClient) ListQualifications(ctx context.Context, in } func (c *qualificationsServiceClient) GetQualification(ctx context.Context, in *GetQualificationRequest, opts ...grpc.CallOption) (*GetQualificationResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(GetQualificationResponse) - err := c.cc.Invoke(ctx, QualificationsService_GetQualification_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, QualificationsService_GetQualification_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -99,8 +101,9 @@ func (c *qualificationsServiceClient) GetQualification(ctx context.Context, in * } func (c *qualificationsServiceClient) CreateQualification(ctx context.Context, in *CreateQualificationRequest, opts ...grpc.CallOption) (*CreateQualificationResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(CreateQualificationResponse) - err := c.cc.Invoke(ctx, QualificationsService_CreateQualification_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, QualificationsService_CreateQualification_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -108,8 +111,9 @@ func (c *qualificationsServiceClient) CreateQualification(ctx context.Context, i } func (c *qualificationsServiceClient) UpdateQualification(ctx context.Context, in *UpdateQualificationRequest, opts ...grpc.CallOption) (*UpdateQualificationResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(UpdateQualificationResponse) - err := c.cc.Invoke(ctx, QualificationsService_UpdateQualification_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, QualificationsService_UpdateQualification_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -117,8 +121,9 @@ func (c *qualificationsServiceClient) UpdateQualification(ctx context.Context, i } func (c *qualificationsServiceClient) DeleteQualification(ctx context.Context, in *DeleteQualificationRequest, opts ...grpc.CallOption) (*DeleteQualificationResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(DeleteQualificationResponse) - err := c.cc.Invoke(ctx, QualificationsService_DeleteQualification_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, QualificationsService_DeleteQualification_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -126,8 +131,9 @@ func (c *qualificationsServiceClient) DeleteQualification(ctx context.Context, i } func (c *qualificationsServiceClient) ListQualificationRequests(ctx context.Context, in *ListQualificationRequestsRequest, opts ...grpc.CallOption) (*ListQualificationRequestsResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(ListQualificationRequestsResponse) - err := c.cc.Invoke(ctx, QualificationsService_ListQualificationRequests_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, QualificationsService_ListQualificationRequests_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -135,8 +141,9 @@ func (c *qualificationsServiceClient) ListQualificationRequests(ctx context.Cont } func (c *qualificationsServiceClient) CreateOrUpdateQualificationRequest(ctx context.Context, in *CreateOrUpdateQualificationRequestRequest, opts ...grpc.CallOption) (*CreateOrUpdateQualificationRequestResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(CreateOrUpdateQualificationRequestResponse) - err := c.cc.Invoke(ctx, QualificationsService_CreateOrUpdateQualificationRequest_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, QualificationsService_CreateOrUpdateQualificationRequest_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -144,8 +151,9 @@ func (c *qualificationsServiceClient) CreateOrUpdateQualificationRequest(ctx con } func (c *qualificationsServiceClient) DeleteQualificationReq(ctx context.Context, in *DeleteQualificationReqRequest, opts ...grpc.CallOption) (*DeleteQualificationReqResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(DeleteQualificationReqResponse) - err := c.cc.Invoke(ctx, QualificationsService_DeleteQualificationReq_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, QualificationsService_DeleteQualificationReq_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -153,8 +161,9 @@ func (c *qualificationsServiceClient) DeleteQualificationReq(ctx context.Context } func (c *qualificationsServiceClient) ListQualificationsResults(ctx context.Context, in *ListQualificationsResultsRequest, opts ...grpc.CallOption) (*ListQualificationsResultsResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(ListQualificationsResultsResponse) - err := c.cc.Invoke(ctx, QualificationsService_ListQualificationsResults_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, QualificationsService_ListQualificationsResults_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -162,8 +171,9 @@ func (c *qualificationsServiceClient) ListQualificationsResults(ctx context.Cont } func (c *qualificationsServiceClient) CreateOrUpdateQualificationResult(ctx context.Context, in *CreateOrUpdateQualificationResultRequest, opts ...grpc.CallOption) (*CreateOrUpdateQualificationResultResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(CreateOrUpdateQualificationResultResponse) - err := c.cc.Invoke(ctx, QualificationsService_CreateOrUpdateQualificationResult_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, QualificationsService_CreateOrUpdateQualificationResult_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -171,8 +181,9 @@ func (c *qualificationsServiceClient) CreateOrUpdateQualificationResult(ctx cont } func (c *qualificationsServiceClient) DeleteQualificationResult(ctx context.Context, in *DeleteQualificationResultRequest, opts ...grpc.CallOption) (*DeleteQualificationResultResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(DeleteQualificationResultResponse) - err := c.cc.Invoke(ctx, QualificationsService_DeleteQualificationResult_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, QualificationsService_DeleteQualificationResult_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -180,8 +191,9 @@ func (c *qualificationsServiceClient) DeleteQualificationResult(ctx context.Cont } func (c *qualificationsServiceClient) GetExamInfo(ctx context.Context, in *GetExamInfoRequest, opts ...grpc.CallOption) (*GetExamInfoResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(GetExamInfoResponse) - err := c.cc.Invoke(ctx, QualificationsService_GetExamInfo_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, QualificationsService_GetExamInfo_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -189,8 +201,9 @@ func (c *qualificationsServiceClient) GetExamInfo(ctx context.Context, in *GetEx } func (c *qualificationsServiceClient) TakeExam(ctx context.Context, in *TakeExamRequest, opts ...grpc.CallOption) (*TakeExamResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(TakeExamResponse) - err := c.cc.Invoke(ctx, QualificationsService_TakeExam_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, QualificationsService_TakeExam_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -198,8 +211,9 @@ func (c *qualificationsServiceClient) TakeExam(ctx context.Context, in *TakeExam } func (c *qualificationsServiceClient) SubmitExam(ctx context.Context, in *SubmitExamRequest, opts ...grpc.CallOption) (*SubmitExamResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(SubmitExamResponse) - err := c.cc.Invoke(ctx, QualificationsService_SubmitExam_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, QualificationsService_SubmitExam_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -207,8 +221,9 @@ func (c *qualificationsServiceClient) SubmitExam(ctx context.Context, in *Submit } func (c *qualificationsServiceClient) GetUserExam(ctx context.Context, in *GetUserExamRequest, opts ...grpc.CallOption) (*GetUserExamResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(GetUserExamResponse) - err := c.cc.Invoke(ctx, QualificationsService_GetUserExam_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, QualificationsService_GetUserExam_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -217,7 +232,7 @@ func (c *qualificationsServiceClient) GetUserExam(ctx context.Context, in *GetUs // QualificationsServiceServer is the server API for QualificationsService service. // All implementations must embed UnimplementedQualificationsServiceServer -// for forward compatibility +// for forward compatibility. type QualificationsServiceServer interface { // @perm ListQualifications(context.Context, *ListQualificationsRequest) (*ListQualificationsResponse, error) @@ -252,9 +267,12 @@ type QualificationsServiceServer interface { mustEmbedUnimplementedQualificationsServiceServer() } -// UnimplementedQualificationsServiceServer must be embedded to have forward compatible implementations. -type UnimplementedQualificationsServiceServer struct { -} +// UnimplementedQualificationsServiceServer must be embedded to have +// forward compatible implementations. +// +// NOTE: this should be embedded by value instead of pointer to avoid a nil +// pointer dereference when methods are called. +type UnimplementedQualificationsServiceServer struct{} func (UnimplementedQualificationsServiceServer) ListQualifications(context.Context, *ListQualificationsRequest) (*ListQualificationsResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method ListQualifications not implemented") @@ -302,6 +320,7 @@ func (UnimplementedQualificationsServiceServer) GetUserExam(context.Context, *Ge return nil, status.Errorf(codes.Unimplemented, "method GetUserExam not implemented") } func (UnimplementedQualificationsServiceServer) mustEmbedUnimplementedQualificationsServiceServer() {} +func (UnimplementedQualificationsServiceServer) testEmbeddedByValue() {} // UnsafeQualificationsServiceServer may be embedded to opt out of forward compatibility for this service. // Use of this interface is not recommended, as added methods to QualificationsServiceServer will @@ -311,6 +330,13 @@ type UnsafeQualificationsServiceServer interface { } func RegisterQualificationsServiceServer(s grpc.ServiceRegistrar, srv QualificationsServiceServer) { + // If the following call pancis, it indicates UnimplementedQualificationsServiceServer was + // embedded by pointer and is nil. This will cause panics if an + // unimplemented method is ever invoked, so we test this at initialization + // time to prevent it from happening at runtime later due to I/O. + if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { + t.testEmbeddedByValue() + } s.RegisterService(&QualificationsService_ServiceDesc, srv) } diff --git a/gen/go/proto/services/rector/config.pb.go b/gen/go/proto/services/rector/config.pb.go index 9a18d1760..5b50fadf5 100644 --- a/gen/go/proto/services/rector/config.pb.go +++ b/gen/go/proto/services/rector/config.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.35.2 +// protoc-gen-go v1.36.0 // protoc v3.20.3 // source: services/rector/config.proto @@ -23,9 +23,9 @@ const ( ) type GetAppConfigRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *GetAppConfigRequest) Reset() { @@ -59,11 +59,10 @@ func (*GetAppConfigRequest) Descriptor() ([]byte, []int) { } type GetAppConfigResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Config *rector.AppConfig `protobuf:"bytes,1,opt,name=config,proto3" json:"config,omitempty"` unknownFields protoimpl.UnknownFields - - Config *rector.AppConfig `protobuf:"bytes,1,opt,name=config,proto3" json:"config,omitempty"` + sizeCache protoimpl.SizeCache } func (x *GetAppConfigResponse) Reset() { @@ -104,11 +103,10 @@ func (x *GetAppConfigResponse) GetConfig() *rector.AppConfig { } type UpdateAppConfigRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Config *rector.AppConfig `protobuf:"bytes,1,opt,name=config,proto3" json:"config,omitempty"` unknownFields protoimpl.UnknownFields - - Config *rector.AppConfig `protobuf:"bytes,1,opt,name=config,proto3" json:"config,omitempty"` + sizeCache protoimpl.SizeCache } func (x *UpdateAppConfigRequest) Reset() { @@ -149,11 +147,10 @@ func (x *UpdateAppConfigRequest) GetConfig() *rector.AppConfig { } type UpdateAppConfigResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Config *rector.AppConfig `protobuf:"bytes,1,opt,name=config,proto3" json:"config,omitempty"` unknownFields protoimpl.UnknownFields - - Config *rector.AppConfig `protobuf:"bytes,1,opt,name=config,proto3" json:"config,omitempty"` + sizeCache protoimpl.SizeCache } func (x *UpdateAppConfigResponse) Reset() { diff --git a/gen/go/proto/services/rector/config_grpc.pb.go b/gen/go/proto/services/rector/config_grpc.pb.go index 22a3f6f7f..216690da5 100644 --- a/gen/go/proto/services/rector/config_grpc.pb.go +++ b/gen/go/proto/services/rector/config_grpc.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: -// - protoc-gen-go-grpc v1.3.0 +// - protoc-gen-go-grpc v1.5.1 // - protoc v3.20.3 // source: services/rector/config.proto @@ -15,8 +15,8 @@ import ( // This is a compile-time assertion to ensure that this generated file // is compatible with the grpc package it is being compiled against. -// Requires gRPC-Go v1.32.0 or later. -const _ = grpc.SupportPackageIsVersion7 +// Requires gRPC-Go v1.64.0 or later. +const _ = grpc.SupportPackageIsVersion9 const ( RectorConfigService_GetAppConfig_FullMethodName = "/services.rector.RectorConfigService/GetAppConfig" @@ -42,8 +42,9 @@ func NewRectorConfigServiceClient(cc grpc.ClientConnInterface) RectorConfigServi } func (c *rectorConfigServiceClient) GetAppConfig(ctx context.Context, in *GetAppConfigRequest, opts ...grpc.CallOption) (*GetAppConfigResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(GetAppConfigResponse) - err := c.cc.Invoke(ctx, RectorConfigService_GetAppConfig_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, RectorConfigService_GetAppConfig_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -51,8 +52,9 @@ func (c *rectorConfigServiceClient) GetAppConfig(ctx context.Context, in *GetApp } func (c *rectorConfigServiceClient) UpdateAppConfig(ctx context.Context, in *UpdateAppConfigRequest, opts ...grpc.CallOption) (*UpdateAppConfigResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(UpdateAppConfigResponse) - err := c.cc.Invoke(ctx, RectorConfigService_UpdateAppConfig_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, RectorConfigService_UpdateAppConfig_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -61,7 +63,7 @@ func (c *rectorConfigServiceClient) UpdateAppConfig(ctx context.Context, in *Upd // RectorConfigServiceServer is the server API for RectorConfigService service. // All implementations must embed UnimplementedRectorConfigServiceServer -// for forward compatibility +// for forward compatibility. type RectorConfigServiceServer interface { // @perm: Name=SuperUser GetAppConfig(context.Context, *GetAppConfigRequest) (*GetAppConfigResponse, error) @@ -70,9 +72,12 @@ type RectorConfigServiceServer interface { mustEmbedUnimplementedRectorConfigServiceServer() } -// UnimplementedRectorConfigServiceServer must be embedded to have forward compatible implementations. -type UnimplementedRectorConfigServiceServer struct { -} +// UnimplementedRectorConfigServiceServer must be embedded to have +// forward compatible implementations. +// +// NOTE: this should be embedded by value instead of pointer to avoid a nil +// pointer dereference when methods are called. +type UnimplementedRectorConfigServiceServer struct{} func (UnimplementedRectorConfigServiceServer) GetAppConfig(context.Context, *GetAppConfigRequest) (*GetAppConfigResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method GetAppConfig not implemented") @@ -81,6 +86,7 @@ func (UnimplementedRectorConfigServiceServer) UpdateAppConfig(context.Context, * return nil, status.Errorf(codes.Unimplemented, "method UpdateAppConfig not implemented") } func (UnimplementedRectorConfigServiceServer) mustEmbedUnimplementedRectorConfigServiceServer() {} +func (UnimplementedRectorConfigServiceServer) testEmbeddedByValue() {} // UnsafeRectorConfigServiceServer may be embedded to opt out of forward compatibility for this service. // Use of this interface is not recommended, as added methods to RectorConfigServiceServer will @@ -90,6 +96,13 @@ type UnsafeRectorConfigServiceServer interface { } func RegisterRectorConfigServiceServer(s grpc.ServiceRegistrar, srv RectorConfigServiceServer) { + // If the following call pancis, it indicates UnimplementedRectorConfigServiceServer was + // embedded by pointer and is nil. This will cause panics if an + // unimplemented method is ever invoked, so we test this at initialization + // time to prevent it from happening at runtime later due to I/O. + if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { + t.testEmbeddedByValue() + } s.RegisterService(&RectorConfigService_ServiceDesc, srv) } diff --git a/gen/go/proto/services/rector/filestore.pb.go b/gen/go/proto/services/rector/filestore.pb.go index 6404ad39d..3c76a210a 100644 --- a/gen/go/proto/services/rector/filestore.pb.go +++ b/gen/go/proto/services/rector/filestore.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.35.2 +// protoc-gen-go v1.36.0 // protoc v3.20.3 // source: services/rector/filestore.proto @@ -24,12 +24,11 @@ const ( ) type ListFilesRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Pagination *database.PaginationRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"` + Path *string `protobuf:"bytes,2,opt,name=path,proto3,oneof" json:"path,omitempty"` unknownFields protoimpl.UnknownFields - - Pagination *database.PaginationRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"` - Path *string `protobuf:"bytes,2,opt,name=path,proto3,oneof" json:"path,omitempty"` + sizeCache protoimpl.SizeCache } func (x *ListFilesRequest) Reset() { @@ -77,12 +76,11 @@ func (x *ListFilesRequest) GetPath() string { } type ListFilesResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Pagination *database.PaginationResponse `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"` + Files []*filestore.FileInfo `protobuf:"bytes,2,rep,name=files,proto3" json:"files,omitempty"` unknownFields protoimpl.UnknownFields - - Pagination *database.PaginationResponse `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"` - Files []*filestore.FileInfo `protobuf:"bytes,2,rep,name=files,proto3" json:"files,omitempty"` + sizeCache protoimpl.SizeCache } func (x *ListFilesResponse) Reset() { @@ -130,13 +128,12 @@ func (x *ListFilesResponse) GetFiles() []*filestore.FileInfo { } type UploadFileRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Prefix string `protobuf:"bytes,1,opt,name=prefix,proto3" json:"prefix,omitempty"` + Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` + File *filestore.File `protobuf:"bytes,3,opt,name=file,proto3" json:"file,omitempty"` unknownFields protoimpl.UnknownFields - - Prefix string `protobuf:"bytes,1,opt,name=prefix,proto3" json:"prefix,omitempty"` - Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` - File *filestore.File `protobuf:"bytes,3,opt,name=file,proto3" json:"file,omitempty"` + sizeCache protoimpl.SizeCache } func (x *UploadFileRequest) Reset() { @@ -191,11 +188,10 @@ func (x *UploadFileRequest) GetFile() *filestore.File { } type UploadFileResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + File *filestore.FileInfo `protobuf:"bytes,1,opt,name=file,proto3" json:"file,omitempty"` unknownFields protoimpl.UnknownFields - - File *filestore.FileInfo `protobuf:"bytes,1,opt,name=file,proto3" json:"file,omitempty"` + sizeCache protoimpl.SizeCache } func (x *UploadFileResponse) Reset() { @@ -236,11 +232,10 @@ func (x *UploadFileResponse) GetFile() *filestore.FileInfo { } type DeleteFileRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Path string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"` unknownFields protoimpl.UnknownFields - - Path string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"` + sizeCache protoimpl.SizeCache } func (x *DeleteFileRequest) Reset() { @@ -281,9 +276,9 @@ func (x *DeleteFileRequest) GetPath() string { } type DeleteFileResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *DeleteFileResponse) Reset() { diff --git a/gen/go/proto/services/rector/filestore_grpc.pb.go b/gen/go/proto/services/rector/filestore_grpc.pb.go index a0f2689db..f87b6c0d9 100644 --- a/gen/go/proto/services/rector/filestore_grpc.pb.go +++ b/gen/go/proto/services/rector/filestore_grpc.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: -// - protoc-gen-go-grpc v1.3.0 +// - protoc-gen-go-grpc v1.5.1 // - protoc v3.20.3 // source: services/rector/filestore.proto @@ -15,8 +15,8 @@ import ( // This is a compile-time assertion to ensure that this generated file // is compatible with the grpc package it is being compiled against. -// Requires gRPC-Go v1.32.0 or later. -const _ = grpc.SupportPackageIsVersion7 +// Requires gRPC-Go v1.64.0 or later. +const _ = grpc.SupportPackageIsVersion9 const ( RectorFilestoreService_ListFiles_FullMethodName = "/services.rector.RectorFilestoreService/ListFiles" @@ -45,8 +45,9 @@ func NewRectorFilestoreServiceClient(cc grpc.ClientConnInterface) RectorFilestor } func (c *rectorFilestoreServiceClient) ListFiles(ctx context.Context, in *ListFilesRequest, opts ...grpc.CallOption) (*ListFilesResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(ListFilesResponse) - err := c.cc.Invoke(ctx, RectorFilestoreService_ListFiles_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, RectorFilestoreService_ListFiles_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -54,8 +55,9 @@ func (c *rectorFilestoreServiceClient) ListFiles(ctx context.Context, in *ListFi } func (c *rectorFilestoreServiceClient) UploadFile(ctx context.Context, in *UploadFileRequest, opts ...grpc.CallOption) (*UploadFileResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(UploadFileResponse) - err := c.cc.Invoke(ctx, RectorFilestoreService_UploadFile_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, RectorFilestoreService_UploadFile_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -63,8 +65,9 @@ func (c *rectorFilestoreServiceClient) UploadFile(ctx context.Context, in *Uploa } func (c *rectorFilestoreServiceClient) DeleteFile(ctx context.Context, in *DeleteFileRequest, opts ...grpc.CallOption) (*DeleteFileResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(DeleteFileResponse) - err := c.cc.Invoke(ctx, RectorFilestoreService_DeleteFile_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, RectorFilestoreService_DeleteFile_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -73,7 +76,7 @@ func (c *rectorFilestoreServiceClient) DeleteFile(ctx context.Context, in *Delet // RectorFilestoreServiceServer is the server API for RectorFilestoreService service. // All implementations must embed UnimplementedRectorFilestoreServiceServer -// for forward compatibility +// for forward compatibility. type RectorFilestoreServiceServer interface { // @perm: Name=SuperUser ListFiles(context.Context, *ListFilesRequest) (*ListFilesResponse, error) @@ -84,9 +87,12 @@ type RectorFilestoreServiceServer interface { mustEmbedUnimplementedRectorFilestoreServiceServer() } -// UnimplementedRectorFilestoreServiceServer must be embedded to have forward compatible implementations. -type UnimplementedRectorFilestoreServiceServer struct { -} +// UnimplementedRectorFilestoreServiceServer must be embedded to have +// forward compatible implementations. +// +// NOTE: this should be embedded by value instead of pointer to avoid a nil +// pointer dereference when methods are called. +type UnimplementedRectorFilestoreServiceServer struct{} func (UnimplementedRectorFilestoreServiceServer) ListFiles(context.Context, *ListFilesRequest) (*ListFilesResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method ListFiles not implemented") @@ -99,6 +105,7 @@ func (UnimplementedRectorFilestoreServiceServer) DeleteFile(context.Context, *De } func (UnimplementedRectorFilestoreServiceServer) mustEmbedUnimplementedRectorFilestoreServiceServer() { } +func (UnimplementedRectorFilestoreServiceServer) testEmbeddedByValue() {} // UnsafeRectorFilestoreServiceServer may be embedded to opt out of forward compatibility for this service. // Use of this interface is not recommended, as added methods to RectorFilestoreServiceServer will @@ -108,6 +115,13 @@ type UnsafeRectorFilestoreServiceServer interface { } func RegisterRectorFilestoreServiceServer(s grpc.ServiceRegistrar, srv RectorFilestoreServiceServer) { + // If the following call pancis, it indicates UnimplementedRectorFilestoreServiceServer was + // embedded by pointer and is nil. This will cause panics if an + // unimplemented method is ever invoked, so we test this at initialization + // time to prevent it from happening at runtime later due to I/O. + if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { + t.testEmbeddedByValue() + } s.RegisterService(&RectorFilestoreService_ServiceDesc, srv) } diff --git a/gen/go/proto/services/rector/laws.pb.go b/gen/go/proto/services/rector/laws.pb.go index 5cd26ecf0..5c8b91f59 100644 --- a/gen/go/proto/services/rector/laws.pb.go +++ b/gen/go/proto/services/rector/laws.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.35.2 +// protoc-gen-go v1.36.0 // protoc v3.20.3 // source: services/rector/laws.proto @@ -23,11 +23,10 @@ const ( ) type CreateOrUpdateLawBookRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + LawBook *laws.LawBook `protobuf:"bytes,1,opt,name=lawBook,proto3" json:"lawBook,omitempty"` unknownFields protoimpl.UnknownFields - - LawBook *laws.LawBook `protobuf:"bytes,1,opt,name=lawBook,proto3" json:"lawBook,omitempty"` + sizeCache protoimpl.SizeCache } func (x *CreateOrUpdateLawBookRequest) Reset() { @@ -68,11 +67,10 @@ func (x *CreateOrUpdateLawBookRequest) GetLawBook() *laws.LawBook { } type CreateOrUpdateLawBookResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + LawBook *laws.LawBook `protobuf:"bytes,1,opt,name=lawBook,proto3" json:"lawBook,omitempty"` unknownFields protoimpl.UnknownFields - - LawBook *laws.LawBook `protobuf:"bytes,1,opt,name=lawBook,proto3" json:"lawBook,omitempty"` + sizeCache protoimpl.SizeCache } func (x *CreateOrUpdateLawBookResponse) Reset() { @@ -113,11 +111,10 @@ func (x *CreateOrUpdateLawBookResponse) GetLawBook() *laws.LawBook { } type DeleteLawBookRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` unknownFields protoimpl.UnknownFields - - Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` + sizeCache protoimpl.SizeCache } func (x *DeleteLawBookRequest) Reset() { @@ -158,9 +155,9 @@ func (x *DeleteLawBookRequest) GetId() uint64 { } type DeleteLawBookResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *DeleteLawBookResponse) Reset() { @@ -194,11 +191,10 @@ func (*DeleteLawBookResponse) Descriptor() ([]byte, []int) { } type CreateOrUpdateLawRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Law *laws.Law `protobuf:"bytes,1,opt,name=law,proto3" json:"law,omitempty"` unknownFields protoimpl.UnknownFields - - Law *laws.Law `protobuf:"bytes,1,opt,name=law,proto3" json:"law,omitempty"` + sizeCache protoimpl.SizeCache } func (x *CreateOrUpdateLawRequest) Reset() { @@ -239,11 +235,10 @@ func (x *CreateOrUpdateLawRequest) GetLaw() *laws.Law { } type CreateOrUpdateLawResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Law *laws.Law `protobuf:"bytes,1,opt,name=law,proto3" json:"law,omitempty"` unknownFields protoimpl.UnknownFields - - Law *laws.Law `protobuf:"bytes,1,opt,name=law,proto3" json:"law,omitempty"` + sizeCache protoimpl.SizeCache } func (x *CreateOrUpdateLawResponse) Reset() { @@ -284,11 +279,10 @@ func (x *CreateOrUpdateLawResponse) GetLaw() *laws.Law { } type DeleteLawRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` unknownFields protoimpl.UnknownFields - - Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` + sizeCache protoimpl.SizeCache } func (x *DeleteLawRequest) Reset() { @@ -329,9 +323,9 @@ func (x *DeleteLawRequest) GetId() uint64 { } type DeleteLawResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *DeleteLawResponse) Reset() { diff --git a/gen/go/proto/services/rector/laws_grpc.pb.go b/gen/go/proto/services/rector/laws_grpc.pb.go index 07bef8b59..d464dc6bb 100644 --- a/gen/go/proto/services/rector/laws_grpc.pb.go +++ b/gen/go/proto/services/rector/laws_grpc.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: -// - protoc-gen-go-grpc v1.3.0 +// - protoc-gen-go-grpc v1.5.1 // - protoc v3.20.3 // source: services/rector/laws.proto @@ -15,8 +15,8 @@ import ( // This is a compile-time assertion to ensure that this generated file // is compatible with the grpc package it is being compiled against. -// Requires gRPC-Go v1.32.0 or later. -const _ = grpc.SupportPackageIsVersion7 +// Requires gRPC-Go v1.64.0 or later. +const _ = grpc.SupportPackageIsVersion9 const ( RectorLawsService_CreateOrUpdateLawBook_FullMethodName = "/services.rector.RectorLawsService/CreateOrUpdateLawBook" @@ -48,8 +48,9 @@ func NewRectorLawsServiceClient(cc grpc.ClientConnInterface) RectorLawsServiceCl } func (c *rectorLawsServiceClient) CreateOrUpdateLawBook(ctx context.Context, in *CreateOrUpdateLawBookRequest, opts ...grpc.CallOption) (*CreateOrUpdateLawBookResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(CreateOrUpdateLawBookResponse) - err := c.cc.Invoke(ctx, RectorLawsService_CreateOrUpdateLawBook_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, RectorLawsService_CreateOrUpdateLawBook_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -57,8 +58,9 @@ func (c *rectorLawsServiceClient) CreateOrUpdateLawBook(ctx context.Context, in } func (c *rectorLawsServiceClient) DeleteLawBook(ctx context.Context, in *DeleteLawBookRequest, opts ...grpc.CallOption) (*DeleteLawBookResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(DeleteLawBookResponse) - err := c.cc.Invoke(ctx, RectorLawsService_DeleteLawBook_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, RectorLawsService_DeleteLawBook_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -66,8 +68,9 @@ func (c *rectorLawsServiceClient) DeleteLawBook(ctx context.Context, in *DeleteL } func (c *rectorLawsServiceClient) CreateOrUpdateLaw(ctx context.Context, in *CreateOrUpdateLawRequest, opts ...grpc.CallOption) (*CreateOrUpdateLawResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(CreateOrUpdateLawResponse) - err := c.cc.Invoke(ctx, RectorLawsService_CreateOrUpdateLaw_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, RectorLawsService_CreateOrUpdateLaw_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -75,8 +78,9 @@ func (c *rectorLawsServiceClient) CreateOrUpdateLaw(ctx context.Context, in *Cre } func (c *rectorLawsServiceClient) DeleteLaw(ctx context.Context, in *DeleteLawRequest, opts ...grpc.CallOption) (*DeleteLawResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(DeleteLawResponse) - err := c.cc.Invoke(ctx, RectorLawsService_DeleteLaw_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, RectorLawsService_DeleteLaw_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -85,7 +89,7 @@ func (c *rectorLawsServiceClient) DeleteLaw(ctx context.Context, in *DeleteLawRe // RectorLawsServiceServer is the server API for RectorLawsService service. // All implementations must embed UnimplementedRectorLawsServiceServer -// for forward compatibility +// for forward compatibility. type RectorLawsServiceServer interface { // @perm: Name=SuperUser CreateOrUpdateLawBook(context.Context, *CreateOrUpdateLawBookRequest) (*CreateOrUpdateLawBookResponse, error) @@ -98,9 +102,12 @@ type RectorLawsServiceServer interface { mustEmbedUnimplementedRectorLawsServiceServer() } -// UnimplementedRectorLawsServiceServer must be embedded to have forward compatible implementations. -type UnimplementedRectorLawsServiceServer struct { -} +// UnimplementedRectorLawsServiceServer must be embedded to have +// forward compatible implementations. +// +// NOTE: this should be embedded by value instead of pointer to avoid a nil +// pointer dereference when methods are called. +type UnimplementedRectorLawsServiceServer struct{} func (UnimplementedRectorLawsServiceServer) CreateOrUpdateLawBook(context.Context, *CreateOrUpdateLawBookRequest) (*CreateOrUpdateLawBookResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method CreateOrUpdateLawBook not implemented") @@ -115,6 +122,7 @@ func (UnimplementedRectorLawsServiceServer) DeleteLaw(context.Context, *DeleteLa return nil, status.Errorf(codes.Unimplemented, "method DeleteLaw not implemented") } func (UnimplementedRectorLawsServiceServer) mustEmbedUnimplementedRectorLawsServiceServer() {} +func (UnimplementedRectorLawsServiceServer) testEmbeddedByValue() {} // UnsafeRectorLawsServiceServer may be embedded to opt out of forward compatibility for this service. // Use of this interface is not recommended, as added methods to RectorLawsServiceServer will @@ -124,6 +132,13 @@ type UnsafeRectorLawsServiceServer interface { } func RegisterRectorLawsServiceServer(s grpc.ServiceRegistrar, srv RectorLawsServiceServer) { + // If the following call pancis, it indicates UnimplementedRectorLawsServiceServer was + // embedded by pointer and is nil. This will cause panics if an + // unimplemented method is ever invoked, so we test this at initialization + // time to prevent it from happening at runtime later due to I/O. + if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { + t.testEmbeddedByValue() + } s.RegisterService(&RectorLawsService_ServiceDesc, srv) } diff --git a/gen/go/proto/services/rector/perms/perms.go b/gen/go/proto/services/rector/perms/perms.go index c6effebcc..b9b74c2dc 100644 --- a/gen/go/proto/services/rector/perms/perms.go +++ b/gen/go/proto/services/rector/perms/perms.go @@ -3,6 +3,7 @@ // source: services/rector/filestore.proto // source: services/rector/laws.proto // source: services/rector/rector.proto +// source: services/rector/sync.proto package permsrector @@ -15,6 +16,7 @@ const ( RectorFilestoreServicePerm perms.Category = "RectorFilestoreService" RectorLawsServicePerm perms.Category = "RectorLawsService" RectorServicePerm perms.Category = "RectorService" + SyncServicePerm perms.Category = "SyncService" RectorServiceCreateRolePerm perms.Name = "CreateRole" RectorServiceDeleteRolePerm perms.Name = "DeleteRole" diff --git a/gen/go/proto/services/rector/rector.go b/gen/go/proto/services/rector/rector.go index 059456100..4c0f36fa8 100644 --- a/gen/go/proto/services/rector/rector.go +++ b/gen/go/proto/services/rector/rector.go @@ -20,6 +20,7 @@ type Server struct { RectorConfigServiceServer RectorFilestoreServiceServer RectorLawsServiceServer + SyncServiceServer logger *zap.Logger db *sql.DB @@ -68,4 +69,5 @@ func (s *Server) RegisterServer(srv *grpc.Server) { RegisterRectorConfigServiceServer(srv, s) RegisterRectorFilestoreServiceServer(srv, s) RegisterRectorLawsServiceServer(srv, s) + RegisterSyncServiceServer(srv, s) } diff --git a/gen/go/proto/services/rector/rector.pb.go b/gen/go/proto/services/rector/rector.pb.go index eb8383991..ae9cb38c7 100644 --- a/gen/go/proto/services/rector/rector.pb.go +++ b/gen/go/proto/services/rector/rector.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.35.2 +// protoc-gen-go v1.36.0 // protoc v3.20.3 // source: services/rector/rector.proto @@ -27,9 +27,9 @@ const ( ) type GetJobPropsRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *GetJobPropsRequest) Reset() { @@ -63,11 +63,10 @@ func (*GetJobPropsRequest) Descriptor() ([]byte, []int) { } type GetJobPropsResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + JobProps *users.JobProps `protobuf:"bytes,1,opt,name=job_props,json=jobProps,proto3" json:"job_props,omitempty"` unknownFields protoimpl.UnknownFields - - JobProps *users.JobProps `protobuf:"bytes,1,opt,name=job_props,json=jobProps,proto3" json:"job_props,omitempty"` + sizeCache protoimpl.SizeCache } func (x *GetJobPropsResponse) Reset() { @@ -108,11 +107,10 @@ func (x *GetJobPropsResponse) GetJobProps() *users.JobProps { } type SetJobPropsRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + JobProps *users.JobProps `protobuf:"bytes,1,opt,name=job_props,json=jobProps,proto3" json:"job_props,omitempty"` unknownFields protoimpl.UnknownFields - - JobProps *users.JobProps `protobuf:"bytes,1,opt,name=job_props,json=jobProps,proto3" json:"job_props,omitempty"` + sizeCache protoimpl.SizeCache } func (x *SetJobPropsRequest) Reset() { @@ -153,11 +151,10 @@ func (x *SetJobPropsRequest) GetJobProps() *users.JobProps { } type SetJobPropsResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + JobProps *users.JobProps `protobuf:"bytes,1,opt,name=job_props,json=jobProps,proto3" json:"job_props,omitempty"` unknownFields protoimpl.UnknownFields - - JobProps *users.JobProps `protobuf:"bytes,1,opt,name=job_props,json=jobProps,proto3" json:"job_props,omitempty"` + sizeCache protoimpl.SizeCache } func (x *SetJobPropsResponse) Reset() { @@ -198,11 +195,10 @@ func (x *SetJobPropsResponse) GetJobProps() *users.JobProps { } type GetRolesRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + LowestRank *bool `protobuf:"varint,1,opt,name=lowest_rank,json=lowestRank,proto3,oneof" json:"lowest_rank,omitempty"` unknownFields protoimpl.UnknownFields - - LowestRank *bool `protobuf:"varint,1,opt,name=lowest_rank,json=lowestRank,proto3,oneof" json:"lowest_rank,omitempty"` + sizeCache protoimpl.SizeCache } func (x *GetRolesRequest) Reset() { @@ -243,11 +239,10 @@ func (x *GetRolesRequest) GetLowestRank() bool { } type GetRolesResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Roles []*permissions.Role `protobuf:"bytes,1,rep,name=roles,proto3" json:"roles,omitempty"` unknownFields protoimpl.UnknownFields - - Roles []*permissions.Role `protobuf:"bytes,1,rep,name=roles,proto3" json:"roles,omitempty"` + sizeCache protoimpl.SizeCache } func (x *GetRolesResponse) Reset() { @@ -288,12 +283,11 @@ func (x *GetRolesResponse) GetRoles() []*permissions.Role { } type GetRoleRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` + Filtered *bool `protobuf:"varint,2,opt,name=filtered,proto3,oneof" json:"filtered,omitempty"` unknownFields protoimpl.UnknownFields - - Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` - Filtered *bool `protobuf:"varint,2,opt,name=filtered,proto3,oneof" json:"filtered,omitempty"` + sizeCache protoimpl.SizeCache } func (x *GetRoleRequest) Reset() { @@ -341,11 +335,10 @@ func (x *GetRoleRequest) GetFiltered() bool { } type GetRoleResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Role *permissions.Role `protobuf:"bytes,1,opt,name=role,proto3" json:"role,omitempty"` unknownFields protoimpl.UnknownFields - - Role *permissions.Role `protobuf:"bytes,1,opt,name=role,proto3" json:"role,omitempty"` + sizeCache protoimpl.SizeCache } func (x *GetRoleResponse) Reset() { @@ -386,12 +379,11 @@ func (x *GetRoleResponse) GetRole() *permissions.Role { } type CreateRoleRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Job string `protobuf:"bytes,1,opt,name=job,proto3" json:"job,omitempty"` + Grade int32 `protobuf:"varint,2,opt,name=grade,proto3" json:"grade,omitempty"` unknownFields protoimpl.UnknownFields - - Job string `protobuf:"bytes,1,opt,name=job,proto3" json:"job,omitempty"` - Grade int32 `protobuf:"varint,2,opt,name=grade,proto3" json:"grade,omitempty"` + sizeCache protoimpl.SizeCache } func (x *CreateRoleRequest) Reset() { @@ -439,11 +431,10 @@ func (x *CreateRoleRequest) GetGrade() int32 { } type CreateRoleResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Role *permissions.Role `protobuf:"bytes,1,opt,name=role,proto3" json:"role,omitempty"` unknownFields protoimpl.UnknownFields - - Role *permissions.Role `protobuf:"bytes,1,opt,name=role,proto3" json:"role,omitempty"` + sizeCache protoimpl.SizeCache } func (x *CreateRoleResponse) Reset() { @@ -484,11 +475,10 @@ func (x *CreateRoleResponse) GetRole() *permissions.Role { } type DeleteRoleRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` unknownFields protoimpl.UnknownFields - - Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` + sizeCache protoimpl.SizeCache } func (x *DeleteRoleRequest) Reset() { @@ -529,9 +519,9 @@ func (x *DeleteRoleRequest) GetId() uint64 { } type DeleteRoleResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *DeleteRoleResponse) Reset() { @@ -565,13 +555,12 @@ func (*DeleteRoleResponse) Descriptor() ([]byte, []int) { } type UpdateRolePermsRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` + Perms *PermsUpdate `protobuf:"bytes,2,opt,name=perms,proto3,oneof" json:"perms,omitempty"` + Attrs *AttrsUpdate `protobuf:"bytes,3,opt,name=attrs,proto3,oneof" json:"attrs,omitempty"` unknownFields protoimpl.UnknownFields - - Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` - Perms *PermsUpdate `protobuf:"bytes,2,opt,name=perms,proto3,oneof" json:"perms,omitempty"` - Attrs *AttrsUpdate `protobuf:"bytes,3,opt,name=attrs,proto3,oneof" json:"attrs,omitempty"` + sizeCache protoimpl.SizeCache } func (x *UpdateRolePermsRequest) Reset() { @@ -626,12 +615,11 @@ func (x *UpdateRolePermsRequest) GetAttrs() *AttrsUpdate { } type PermsUpdate struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + ToUpdate []*PermItem `protobuf:"bytes,1,rep,name=to_update,json=toUpdate,proto3" json:"to_update,omitempty"` + ToRemove []uint64 `protobuf:"varint,2,rep,packed,name=to_remove,json=toRemove,proto3" json:"to_remove,omitempty"` unknownFields protoimpl.UnknownFields - - ToUpdate []*PermItem `protobuf:"bytes,1,rep,name=to_update,json=toUpdate,proto3" json:"to_update,omitempty"` - ToRemove []uint64 `protobuf:"varint,2,rep,packed,name=to_remove,json=toRemove,proto3" json:"to_remove,omitempty"` + sizeCache protoimpl.SizeCache } func (x *PermsUpdate) Reset() { @@ -679,12 +667,11 @@ func (x *PermsUpdate) GetToRemove() []uint64 { } type PermItem struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` + Val bool `protobuf:"varint,2,opt,name=val,proto3" json:"val,omitempty"` unknownFields protoimpl.UnknownFields - - Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` - Val bool `protobuf:"varint,2,opt,name=val,proto3" json:"val,omitempty"` + sizeCache protoimpl.SizeCache } func (x *PermItem) Reset() { @@ -732,12 +719,11 @@ func (x *PermItem) GetVal() bool { } type AttrsUpdate struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + ToUpdate []*permissions.RoleAttribute `protobuf:"bytes,1,rep,name=to_update,json=toUpdate,proto3" json:"to_update,omitempty"` + ToRemove []*permissions.RoleAttribute `protobuf:"bytes,2,rep,name=to_remove,json=toRemove,proto3" json:"to_remove,omitempty"` unknownFields protoimpl.UnknownFields - - ToUpdate []*permissions.RoleAttribute `protobuf:"bytes,1,rep,name=to_update,json=toUpdate,proto3" json:"to_update,omitempty"` - ToRemove []*permissions.RoleAttribute `protobuf:"bytes,2,rep,name=to_remove,json=toRemove,proto3" json:"to_remove,omitempty"` + sizeCache protoimpl.SizeCache } func (x *AttrsUpdate) Reset() { @@ -785,9 +771,9 @@ func (x *AttrsUpdate) GetToRemove() []*permissions.RoleAttribute { } type UpdateRolePermsResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *UpdateRolePermsResponse) Reset() { @@ -821,12 +807,11 @@ func (*UpdateRolePermsResponse) Descriptor() ([]byte, []int) { } type GetPermissionsRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + RoleId uint64 `protobuf:"varint,1,opt,name=role_id,json=roleId,proto3" json:"role_id,omitempty"` + Filtered *bool `protobuf:"varint,2,opt,name=filtered,proto3,oneof" json:"filtered,omitempty"` unknownFields protoimpl.UnknownFields - - RoleId uint64 `protobuf:"varint,1,opt,name=role_id,json=roleId,proto3" json:"role_id,omitempty"` - Filtered *bool `protobuf:"varint,2,opt,name=filtered,proto3,oneof" json:"filtered,omitempty"` + sizeCache protoimpl.SizeCache } func (x *GetPermissionsRequest) Reset() { @@ -874,12 +859,11 @@ func (x *GetPermissionsRequest) GetFiltered() bool { } type GetPermissionsResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Permissions []*permissions.Permission `protobuf:"bytes,1,rep,name=permissions,proto3" json:"permissions,omitempty"` + Attributes []*permissions.RoleAttribute `protobuf:"bytes,2,rep,name=attributes,proto3" json:"attributes,omitempty"` unknownFields protoimpl.UnknownFields - - Permissions []*permissions.Permission `protobuf:"bytes,1,rep,name=permissions,proto3" json:"permissions,omitempty"` - Attributes []*permissions.RoleAttribute `protobuf:"bytes,2,rep,name=attributes,proto3" json:"attributes,omitempty"` + sizeCache protoimpl.SizeCache } func (x *GetPermissionsResponse) Reset() { @@ -927,10 +911,7 @@ func (x *GetPermissionsResponse) GetAttributes() []*permissions.RoleAttribute { } type ViewAuditLogRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - + state protoimpl.MessageState `protogen:"open.v1"` Pagination *database.PaginationRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"` Sort *database.Sort `protobuf:"bytes,2,opt,name=sort,proto3,oneof" json:"sort,omitempty"` // Search params @@ -940,8 +921,10 @@ type ViewAuditLogRequest struct { // @sanitize: method=StripTags Services []string `protobuf:"bytes,6,rep,name=services,proto3" json:"services,omitempty"` // @sanitize: method=StripTags - Methods []string `protobuf:"bytes,7,rep,name=methods,proto3" json:"methods,omitempty"` - Search *string `protobuf:"bytes,8,opt,name=search,proto3,oneof" json:"search,omitempty"` + Methods []string `protobuf:"bytes,7,rep,name=methods,proto3" json:"methods,omitempty"` + Search *string `protobuf:"bytes,8,opt,name=search,proto3,oneof" json:"search,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *ViewAuditLogRequest) Reset() { @@ -1031,12 +1014,11 @@ func (x *ViewAuditLogRequest) GetSearch() string { } type ViewAuditLogResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Pagination *database.PaginationResponse `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"` + Logs []*rector.AuditEntry `protobuf:"bytes,2,rep,name=logs,proto3" json:"logs,omitempty"` unknownFields protoimpl.UnknownFields - - Pagination *database.PaginationResponse `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"` - Logs []*rector.AuditEntry `protobuf:"bytes,2,rep,name=logs,proto3" json:"logs,omitempty"` + sizeCache protoimpl.SizeCache } func (x *ViewAuditLogResponse) Reset() { @@ -1084,13 +1066,12 @@ func (x *ViewAuditLogResponse) GetLogs() []*rector.AuditEntry { } type UpdateRoleLimitsRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + RoleId uint64 `protobuf:"varint,1,opt,name=role_id,json=roleId,proto3" json:"role_id,omitempty"` + Perms *PermsUpdate `protobuf:"bytes,2,opt,name=perms,proto3,oneof" json:"perms,omitempty"` + Attrs *AttrsUpdate `protobuf:"bytes,3,opt,name=attrs,proto3,oneof" json:"attrs,omitempty"` unknownFields protoimpl.UnknownFields - - RoleId uint64 `protobuf:"varint,1,opt,name=role_id,json=roleId,proto3" json:"role_id,omitempty"` - Perms *PermsUpdate `protobuf:"bytes,2,opt,name=perms,proto3,oneof" json:"perms,omitempty"` - Attrs *AttrsUpdate `protobuf:"bytes,3,opt,name=attrs,proto3,oneof" json:"attrs,omitempty"` + sizeCache protoimpl.SizeCache } func (x *UpdateRoleLimitsRequest) Reset() { @@ -1145,9 +1126,9 @@ func (x *UpdateRoleLimitsRequest) GetAttrs() *AttrsUpdate { } type UpdateRoleLimitsResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *UpdateRoleLimitsResponse) Reset() { @@ -1181,11 +1162,10 @@ func (*UpdateRoleLimitsResponse) Descriptor() ([]byte, []int) { } type DeleteFactionRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + RoleId uint64 `protobuf:"varint,1,opt,name=role_id,json=roleId,proto3" json:"role_id,omitempty"` unknownFields protoimpl.UnknownFields - - RoleId uint64 `protobuf:"varint,1,opt,name=role_id,json=roleId,proto3" json:"role_id,omitempty"` + sizeCache protoimpl.SizeCache } func (x *DeleteFactionRequest) Reset() { @@ -1226,9 +1206,9 @@ func (x *DeleteFactionRequest) GetRoleId() uint64 { } type DeleteFactionResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *DeleteFactionResponse) Reset() { diff --git a/gen/go/proto/services/rector/rector_grpc.pb.go b/gen/go/proto/services/rector/rector_grpc.pb.go index a4fc1b6df..23d230710 100644 --- a/gen/go/proto/services/rector/rector_grpc.pb.go +++ b/gen/go/proto/services/rector/rector_grpc.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: -// - protoc-gen-go-grpc v1.3.0 +// - protoc-gen-go-grpc v1.5.1 // - protoc v3.20.3 // source: services/rector/rector.proto @@ -15,8 +15,8 @@ import ( // This is a compile-time assertion to ensure that this generated file // is compatible with the grpc package it is being compiled against. -// Requires gRPC-Go v1.32.0 or later. -const _ = grpc.SupportPackageIsVersion7 +// Requires gRPC-Go v1.64.0 or later. +const _ = grpc.SupportPackageIsVersion9 const ( RectorService_GetJobProps_FullMethodName = "/services.rector.RectorService/GetJobProps" @@ -69,8 +69,9 @@ func NewRectorServiceClient(cc grpc.ClientConnInterface) RectorServiceClient { } func (c *rectorServiceClient) GetJobProps(ctx context.Context, in *GetJobPropsRequest, opts ...grpc.CallOption) (*GetJobPropsResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(GetJobPropsResponse) - err := c.cc.Invoke(ctx, RectorService_GetJobProps_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, RectorService_GetJobProps_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -78,8 +79,9 @@ func (c *rectorServiceClient) GetJobProps(ctx context.Context, in *GetJobPropsRe } func (c *rectorServiceClient) SetJobProps(ctx context.Context, in *SetJobPropsRequest, opts ...grpc.CallOption) (*SetJobPropsResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(SetJobPropsResponse) - err := c.cc.Invoke(ctx, RectorService_SetJobProps_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, RectorService_SetJobProps_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -87,8 +89,9 @@ func (c *rectorServiceClient) SetJobProps(ctx context.Context, in *SetJobPropsRe } func (c *rectorServiceClient) GetRoles(ctx context.Context, in *GetRolesRequest, opts ...grpc.CallOption) (*GetRolesResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(GetRolesResponse) - err := c.cc.Invoke(ctx, RectorService_GetRoles_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, RectorService_GetRoles_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -96,8 +99,9 @@ func (c *rectorServiceClient) GetRoles(ctx context.Context, in *GetRolesRequest, } func (c *rectorServiceClient) GetRole(ctx context.Context, in *GetRoleRequest, opts ...grpc.CallOption) (*GetRoleResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(GetRoleResponse) - err := c.cc.Invoke(ctx, RectorService_GetRole_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, RectorService_GetRole_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -105,8 +109,9 @@ func (c *rectorServiceClient) GetRole(ctx context.Context, in *GetRoleRequest, o } func (c *rectorServiceClient) CreateRole(ctx context.Context, in *CreateRoleRequest, opts ...grpc.CallOption) (*CreateRoleResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(CreateRoleResponse) - err := c.cc.Invoke(ctx, RectorService_CreateRole_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, RectorService_CreateRole_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -114,8 +119,9 @@ func (c *rectorServiceClient) CreateRole(ctx context.Context, in *CreateRoleRequ } func (c *rectorServiceClient) DeleteRole(ctx context.Context, in *DeleteRoleRequest, opts ...grpc.CallOption) (*DeleteRoleResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(DeleteRoleResponse) - err := c.cc.Invoke(ctx, RectorService_DeleteRole_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, RectorService_DeleteRole_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -123,8 +129,9 @@ func (c *rectorServiceClient) DeleteRole(ctx context.Context, in *DeleteRoleRequ } func (c *rectorServiceClient) UpdateRolePerms(ctx context.Context, in *UpdateRolePermsRequest, opts ...grpc.CallOption) (*UpdateRolePermsResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(UpdateRolePermsResponse) - err := c.cc.Invoke(ctx, RectorService_UpdateRolePerms_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, RectorService_UpdateRolePerms_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -132,8 +139,9 @@ func (c *rectorServiceClient) UpdateRolePerms(ctx context.Context, in *UpdateRol } func (c *rectorServiceClient) GetPermissions(ctx context.Context, in *GetPermissionsRequest, opts ...grpc.CallOption) (*GetPermissionsResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(GetPermissionsResponse) - err := c.cc.Invoke(ctx, RectorService_GetPermissions_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, RectorService_GetPermissions_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -141,8 +149,9 @@ func (c *rectorServiceClient) GetPermissions(ctx context.Context, in *GetPermiss } func (c *rectorServiceClient) ViewAuditLog(ctx context.Context, in *ViewAuditLogRequest, opts ...grpc.CallOption) (*ViewAuditLogResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(ViewAuditLogResponse) - err := c.cc.Invoke(ctx, RectorService_ViewAuditLog_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, RectorService_ViewAuditLog_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -150,8 +159,9 @@ func (c *rectorServiceClient) ViewAuditLog(ctx context.Context, in *ViewAuditLog } func (c *rectorServiceClient) UpdateRoleLimits(ctx context.Context, in *UpdateRoleLimitsRequest, opts ...grpc.CallOption) (*UpdateRoleLimitsResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(UpdateRoleLimitsResponse) - err := c.cc.Invoke(ctx, RectorService_UpdateRoleLimits_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, RectorService_UpdateRoleLimits_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -159,8 +169,9 @@ func (c *rectorServiceClient) UpdateRoleLimits(ctx context.Context, in *UpdateRo } func (c *rectorServiceClient) DeleteFaction(ctx context.Context, in *DeleteFactionRequest, opts ...grpc.CallOption) (*DeleteFactionResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(DeleteFactionResponse) - err := c.cc.Invoke(ctx, RectorService_DeleteFaction_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, RectorService_DeleteFaction_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -169,7 +180,7 @@ func (c *rectorServiceClient) DeleteFaction(ctx context.Context, in *DeleteFacti // RectorServiceServer is the server API for RectorService service. // All implementations must embed UnimplementedRectorServiceServer -// for forward compatibility +// for forward compatibility. type RectorServiceServer interface { // @perm GetJobProps(context.Context, *GetJobPropsRequest) (*GetJobPropsResponse, error) @@ -196,9 +207,12 @@ type RectorServiceServer interface { mustEmbedUnimplementedRectorServiceServer() } -// UnimplementedRectorServiceServer must be embedded to have forward compatible implementations. -type UnimplementedRectorServiceServer struct { -} +// UnimplementedRectorServiceServer must be embedded to have +// forward compatible implementations. +// +// NOTE: this should be embedded by value instead of pointer to avoid a nil +// pointer dereference when methods are called. +type UnimplementedRectorServiceServer struct{} func (UnimplementedRectorServiceServer) GetJobProps(context.Context, *GetJobPropsRequest) (*GetJobPropsResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method GetJobProps not implemented") @@ -234,6 +248,7 @@ func (UnimplementedRectorServiceServer) DeleteFaction(context.Context, *DeleteFa return nil, status.Errorf(codes.Unimplemented, "method DeleteFaction not implemented") } func (UnimplementedRectorServiceServer) mustEmbedUnimplementedRectorServiceServer() {} +func (UnimplementedRectorServiceServer) testEmbeddedByValue() {} // UnsafeRectorServiceServer may be embedded to opt out of forward compatibility for this service. // Use of this interface is not recommended, as added methods to RectorServiceServer will @@ -243,6 +258,13 @@ type UnsafeRectorServiceServer interface { } func RegisterRectorServiceServer(s grpc.ServiceRegistrar, srv RectorServiceServer) { + // If the following call pancis, it indicates UnimplementedRectorServiceServer was + // embedded by pointer and is nil. This will cause panics if an + // unimplemented method is ever invoked, so we test this at initialization + // time to prevent it from happening at runtime later due to I/O. + if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { + t.testEmbeddedByValue() + } s.RegisterService(&RectorService_ServiceDesc, srv) } diff --git a/gen/go/proto/services/rector/service_perms.go b/gen/go/proto/services/rector/service_perms.go index e8a31f44f..0a5982f54 100644 --- a/gen/go/proto/services/rector/service_perms.go +++ b/gen/go/proto/services/rector/service_perms.go @@ -3,6 +3,7 @@ // source: services/rector/filestore.proto // source: services/rector/laws.proto // source: services/rector/rector.proto +// source: services/rector/sync.proto package rector diff --git a/gen/go/proto/services/rector/sync.go b/gen/go/proto/services/rector/sync.go new file mode 100644 index 000000000..f2ba749ef --- /dev/null +++ b/gen/go/proto/services/rector/sync.go @@ -0,0 +1,9 @@ +package rector + +import "context" + +func (s *Server) Sync(ctx context.Context, req *SyncRequest) (*SyncResponse, error) { + // TODO + + return nil, nil +} diff --git a/gen/go/proto/services/rector/sync.pb.go b/gen/go/proto/services/rector/sync.pb.go new file mode 100644 index 000000000..e6ad81f2a --- /dev/null +++ b/gen/go/proto/services/rector/sync.pb.go @@ -0,0 +1,211 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.36.0 +// protoc v3.20.3 +// source: services/rector/sync.proto + +package rector + +import ( + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" + sync "sync" +) + +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) + +type SyncRequest struct { + state protoimpl.MessageState `protogen:"open.v1"` + // Types that are valid to be assigned to Data: + // + // *SyncRequest_Test + Data isSyncRequest_Data `protobuf_oneof:"data"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *SyncRequest) Reset() { + *x = SyncRequest{} + mi := &file_services_rector_sync_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *SyncRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*SyncRequest) ProtoMessage() {} + +func (x *SyncRequest) ProtoReflect() protoreflect.Message { + mi := &file_services_rector_sync_proto_msgTypes[0] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use SyncRequest.ProtoReflect.Descriptor instead. +func (*SyncRequest) Descriptor() ([]byte, []int) { + return file_services_rector_sync_proto_rawDescGZIP(), []int{0} +} + +func (x *SyncRequest) GetData() isSyncRequest_Data { + if x != nil { + return x.Data + } + return nil +} + +func (x *SyncRequest) GetTest() bool { + if x != nil { + if x, ok := x.Data.(*SyncRequest_Test); ok { + return x.Test + } + } + return false +} + +type isSyncRequest_Data interface { + isSyncRequest_Data() +} + +type SyncRequest_Test struct { + Test bool `protobuf:"varint,1,opt,name=test,proto3,oneof"` // TODO create per table message and add oneof entry +} + +func (*SyncRequest_Test) isSyncRequest_Data() {} + +type SyncResponse struct { + state protoimpl.MessageState `protogen:"open.v1"` + AffectedRows int64 `protobuf:"varint,1,opt,name=affected_rows,json=affectedRows,proto3" json:"affected_rows,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *SyncResponse) Reset() { + *x = SyncResponse{} + mi := &file_services_rector_sync_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *SyncResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*SyncResponse) ProtoMessage() {} + +func (x *SyncResponse) ProtoReflect() protoreflect.Message { + mi := &file_services_rector_sync_proto_msgTypes[1] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use SyncResponse.ProtoReflect.Descriptor instead. +func (*SyncResponse) Descriptor() ([]byte, []int) { + return file_services_rector_sync_proto_rawDescGZIP(), []int{1} +} + +func (x *SyncResponse) GetAffectedRows() int64 { + if x != nil { + return x.AffectedRows + } + return 0 +} + +var File_services_rector_sync_proto protoreflect.FileDescriptor + +var file_services_rector_sync_proto_rawDesc = []byte{ + 0x0a, 0x1a, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2f, 0x72, 0x65, 0x63, 0x74, 0x6f, + 0x72, 0x2f, 0x73, 0x79, 0x6e, 0x63, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0f, 0x73, 0x65, + 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x72, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x22, 0x2b, 0x0a, + 0x0b, 0x53, 0x79, 0x6e, 0x63, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x14, 0x0a, 0x04, + 0x74, 0x65, 0x73, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x48, 0x00, 0x52, 0x04, 0x74, 0x65, + 0x73, 0x74, 0x42, 0x06, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x22, 0x33, 0x0a, 0x0c, 0x53, 0x79, + 0x6e, 0x63, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x23, 0x0a, 0x0d, 0x61, 0x66, + 0x66, 0x65, 0x63, 0x74, 0x65, 0x64, 0x5f, 0x72, 0x6f, 0x77, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x03, 0x52, 0x0c, 0x61, 0x66, 0x66, 0x65, 0x63, 0x74, 0x65, 0x64, 0x52, 0x6f, 0x77, 0x73, 0x32, + 0x52, 0x0a, 0x0b, 0x53, 0x79, 0x6e, 0x63, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x43, + 0x0a, 0x04, 0x53, 0x79, 0x6e, 0x63, 0x12, 0x1c, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, + 0x73, 0x2e, 0x72, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x2e, 0x53, 0x79, 0x6e, 0x63, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1d, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, + 0x72, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x2e, 0x53, 0x79, 0x6e, 0x63, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x42, 0x44, 0x5a, 0x42, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, + 0x6d, 0x2f, 0x66, 0x69, 0x76, 0x65, 0x6e, 0x65, 0x74, 0x2d, 0x61, 0x70, 0x70, 0x2f, 0x66, 0x69, + 0x76, 0x65, 0x6e, 0x65, 0x74, 0x2f, 0x67, 0x65, 0x6e, 0x2f, 0x67, 0x6f, 0x2f, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2f, 0x72, 0x65, 0x63, 0x74, + 0x6f, 0x72, 0x3b, 0x72, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x33, +} + +var ( + file_services_rector_sync_proto_rawDescOnce sync.Once + file_services_rector_sync_proto_rawDescData = file_services_rector_sync_proto_rawDesc +) + +func file_services_rector_sync_proto_rawDescGZIP() []byte { + file_services_rector_sync_proto_rawDescOnce.Do(func() { + file_services_rector_sync_proto_rawDescData = protoimpl.X.CompressGZIP(file_services_rector_sync_proto_rawDescData) + }) + return file_services_rector_sync_proto_rawDescData +} + +var file_services_rector_sync_proto_msgTypes = make([]protoimpl.MessageInfo, 2) +var file_services_rector_sync_proto_goTypes = []any{ + (*SyncRequest)(nil), // 0: services.rector.SyncRequest + (*SyncResponse)(nil), // 1: services.rector.SyncResponse +} +var file_services_rector_sync_proto_depIdxs = []int32{ + 0, // 0: services.rector.SyncService.Sync:input_type -> services.rector.SyncRequest + 1, // 1: services.rector.SyncService.Sync:output_type -> services.rector.SyncResponse + 1, // [1:2] is the sub-list for method output_type + 0, // [0:1] is the sub-list for method input_type + 0, // [0:0] is the sub-list for extension type_name + 0, // [0:0] is the sub-list for extension extendee + 0, // [0:0] is the sub-list for field type_name +} + +func init() { file_services_rector_sync_proto_init() } +func file_services_rector_sync_proto_init() { + if File_services_rector_sync_proto != nil { + return + } + file_services_rector_sync_proto_msgTypes[0].OneofWrappers = []any{ + (*SyncRequest_Test)(nil), + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_services_rector_sync_proto_rawDesc, + NumEnums: 0, + NumMessages: 2, + NumExtensions: 0, + NumServices: 1, + }, + GoTypes: file_services_rector_sync_proto_goTypes, + DependencyIndexes: file_services_rector_sync_proto_depIdxs, + MessageInfos: file_services_rector_sync_proto_msgTypes, + }.Build() + File_services_rector_sync_proto = out.File + file_services_rector_sync_proto_rawDesc = nil + file_services_rector_sync_proto_goTypes = nil + file_services_rector_sync_proto_depIdxs = nil +} diff --git a/gen/go/proto/services/rector/sync.pb.sanitizer.go b/gen/go/proto/services/rector/sync.pb.sanitizer.go new file mode 100644 index 000000000..1404fbb42 --- /dev/null +++ b/gen/go/proto/services/rector/sync.pb.sanitizer.go @@ -0,0 +1,20 @@ +// Code generated by protoc-gen-customizer. DO NOT EDIT. +// source: services/rector/sync.proto + +package rector + +func (m *SyncRequest) Sanitize() error { + if m == nil { + return nil + } + + return nil +} + +func (m *SyncResponse) Sanitize() error { + if m == nil { + return nil + } + + return nil +} diff --git a/gen/go/proto/services/rector/sync.pb.tester.go b/gen/go/proto/services/rector/sync.pb.tester.go new file mode 100644 index 000000000..14e4c43e1 --- /dev/null +++ b/gen/go/proto/services/rector/sync.pb.tester.go @@ -0,0 +1,49 @@ +// Code generated by protoc-gen-customizer. DO NOT EDIT. +// source: services/rector/sync.proto + +package rector + +import ( + "context" + "log" + "net" + + "google.golang.org/grpc" + "google.golang.org/grpc/credentials/insecure" + "google.golang.org/grpc/test/bufconn" +) + +func NewTestSyncServiceClient(srv SyncServiceServer) (SyncServiceClient, context.Context, context.CancelFunc) { + ctx, cancel := context.WithCancel(context.Background()) + + buffer := 101024 * 1024 + lis := bufconn.Listen(buffer) + + server := grpc.NewServer() + RegisterSyncServiceServer(server, srv) + go func() { + if err := server.Serve(lis); err != nil { + log.Printf("error serving test grpc server: %v", err) + } + }() + + conn, err := grpc.DialContext(ctx, "", + grpc.WithContextDialer(func(context.Context, string) (net.Conn, error) { + return lis.Dial() + }), grpc.WithTransportCredentials(insecure.NewCredentials())) + if err != nil { + log.Printf("error connecting to test grpc server: %v", err) + } + + go func() { + <-ctx.Done() + err := lis.Close() + if err != nil { + log.Printf("error closing listener: %v", err) + } + server.Stop() + }() + + client := NewSyncServiceClient(conn) + return client, ctx, cancel +} diff --git a/gen/go/proto/services/rector/sync.pb.validate.go b/gen/go/proto/services/rector/sync.pb.validate.go new file mode 100644 index 000000000..7616a6b73 --- /dev/null +++ b/gen/go/proto/services/rector/sync.pb.validate.go @@ -0,0 +1,253 @@ +// Code generated by protoc-gen-validate. DO NOT EDIT. +// source: services/rector/sync.proto + +package rector + +import ( + "bytes" + "errors" + "fmt" + "net" + "net/mail" + "net/url" + "regexp" + "sort" + "strings" + "time" + "unicode/utf8" + + "google.golang.org/protobuf/types/known/anypb" +) + +// ensure the imports are used +var ( + _ = bytes.MinRead + _ = errors.New("") + _ = fmt.Print + _ = utf8.UTFMax + _ = (*regexp.Regexp)(nil) + _ = (*strings.Reader)(nil) + _ = net.IPv4len + _ = time.Duration(0) + _ = (*url.URL)(nil) + _ = (*mail.Address)(nil) + _ = anypb.Any{} + _ = sort.Sort +) + +// Validate checks the field values on SyncRequest 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 (m *SyncRequest) Validate() error { + return m.validate(false) +} + +// ValidateAll checks the field values on SyncRequest 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 SyncRequestMultiError, or +// nil if none found. +func (m *SyncRequest) ValidateAll() error { + return m.validate(true) +} + +func (m *SyncRequest) validate(all bool) error { + if m == nil { + return nil + } + + var errors []error + + switch v := m.Data.(type) { + case *SyncRequest_Test: + if v == nil { + err := SyncRequestValidationError{ + field: "Data", + reason: "oneof value cannot be a typed-nil", + } + if !all { + return err + } + errors = append(errors, err) + } + // no validation rules for Test + default: + _ = v // ensures v is used + } + + if len(errors) > 0 { + return SyncRequestMultiError(errors) + } + + return nil +} + +// SyncRequestMultiError is an error wrapping multiple validation errors +// returned by SyncRequest.ValidateAll() if the designated constraints aren't met. +type SyncRequestMultiError []error + +// Error returns a concatenation of all the error messages it wraps. +func (m SyncRequestMultiError) Error() string { + var msgs []string + for _, err := range m { + msgs = append(msgs, err.Error()) + } + return strings.Join(msgs, "; ") +} + +// AllErrors returns a list of validation violation errors. +func (m SyncRequestMultiError) AllErrors() []error { return m } + +// SyncRequestValidationError is the validation error returned by +// SyncRequest.Validate if the designated constraints aren't met. +type SyncRequestValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e SyncRequestValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e SyncRequestValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e SyncRequestValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e SyncRequestValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e SyncRequestValidationError) ErrorName() string { return "SyncRequestValidationError" } + +// Error satisfies the builtin error interface +func (e SyncRequestValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sSyncRequest.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = SyncRequestValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = SyncRequestValidationError{} + +// Validate checks the field values on SyncResponse 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 (m *SyncResponse) Validate() error { + return m.validate(false) +} + +// ValidateAll checks the field values on SyncResponse 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 SyncResponseMultiError, or +// nil if none found. +func (m *SyncResponse) ValidateAll() error { + return m.validate(true) +} + +func (m *SyncResponse) validate(all bool) error { + if m == nil { + return nil + } + + var errors []error + + // no validation rules for AffectedRows + + if len(errors) > 0 { + return SyncResponseMultiError(errors) + } + + return nil +} + +// SyncResponseMultiError is an error wrapping multiple validation errors +// returned by SyncResponse.ValidateAll() if the designated constraints aren't met. +type SyncResponseMultiError []error + +// Error returns a concatenation of all the error messages it wraps. +func (m SyncResponseMultiError) Error() string { + var msgs []string + for _, err := range m { + msgs = append(msgs, err.Error()) + } + return strings.Join(msgs, "; ") +} + +// AllErrors returns a list of validation violation errors. +func (m SyncResponseMultiError) AllErrors() []error { return m } + +// SyncResponseValidationError is the validation error returned by +// SyncResponse.Validate if the designated constraints aren't met. +type SyncResponseValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e SyncResponseValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e SyncResponseValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e SyncResponseValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e SyncResponseValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e SyncResponseValidationError) ErrorName() string { return "SyncResponseValidationError" } + +// Error satisfies the builtin error interface +func (e SyncResponseValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sSyncResponse.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = SyncResponseValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = SyncResponseValidationError{} diff --git a/gen/go/proto/services/rector/sync_grpc.pb.go b/gen/go/proto/services/rector/sync_grpc.pb.go new file mode 100644 index 000000000..86bda6a56 --- /dev/null +++ b/gen/go/proto/services/rector/sync_grpc.pb.go @@ -0,0 +1,121 @@ +// Code generated by protoc-gen-go-grpc. DO NOT EDIT. +// versions: +// - protoc-gen-go-grpc v1.5.1 +// - protoc v3.20.3 +// source: services/rector/sync.proto + +package rector + +import ( + context "context" + grpc "google.golang.org/grpc" + codes "google.golang.org/grpc/codes" + status "google.golang.org/grpc/status" +) + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the grpc package it is being compiled against. +// Requires gRPC-Go v1.64.0 or later. +const _ = grpc.SupportPackageIsVersion9 + +const ( + SyncService_Sync_FullMethodName = "/services.rector.SyncService/Sync" +) + +// SyncServiceClient is the client API for SyncService 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 SyncServiceClient interface { + Sync(ctx context.Context, in *SyncRequest, opts ...grpc.CallOption) (*SyncResponse, error) +} + +type syncServiceClient struct { + cc grpc.ClientConnInterface +} + +func NewSyncServiceClient(cc grpc.ClientConnInterface) SyncServiceClient { + return &syncServiceClient{cc} +} + +func (c *syncServiceClient) Sync(ctx context.Context, in *SyncRequest, opts ...grpc.CallOption) (*SyncResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(SyncResponse) + err := c.cc.Invoke(ctx, SyncService_Sync_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +// SyncServiceServer is the server API for SyncService service. +// All implementations must embed UnimplementedSyncServiceServer +// for forward compatibility. +type SyncServiceServer interface { + Sync(context.Context, *SyncRequest) (*SyncResponse, error) + mustEmbedUnimplementedSyncServiceServer() +} + +// UnimplementedSyncServiceServer must be embedded to have +// forward compatible implementations. +// +// NOTE: this should be embedded by value instead of pointer to avoid a nil +// pointer dereference when methods are called. +type UnimplementedSyncServiceServer struct{} + +func (UnimplementedSyncServiceServer) Sync(context.Context, *SyncRequest) (*SyncResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method Sync not implemented") +} +func (UnimplementedSyncServiceServer) mustEmbedUnimplementedSyncServiceServer() {} +func (UnimplementedSyncServiceServer) testEmbeddedByValue() {} + +// UnsafeSyncServiceServer may be embedded to opt out of forward compatibility for this service. +// Use of this interface is not recommended, as added methods to SyncServiceServer will +// result in compilation errors. +type UnsafeSyncServiceServer interface { + mustEmbedUnimplementedSyncServiceServer() +} + +func RegisterSyncServiceServer(s grpc.ServiceRegistrar, srv SyncServiceServer) { + // If the following call pancis, it indicates UnimplementedSyncServiceServer was + // embedded by pointer and is nil. This will cause panics if an + // unimplemented method is ever invoked, so we test this at initialization + // time to prevent it from happening at runtime later due to I/O. + if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { + t.testEmbeddedByValue() + } + s.RegisterService(&SyncService_ServiceDesc, srv) +} + +func _SyncService_Sync_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(SyncRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(SyncServiceServer).Sync(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: SyncService_Sync_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(SyncServiceServer).Sync(ctx, req.(*SyncRequest)) + } + return interceptor(ctx, in, info, handler) +} + +// SyncService_ServiceDesc is the grpc.ServiceDesc for SyncService service. +// It's only intended for direct use with grpc.RegisterService, +// and not to be introspected or modified (even as a copy) +var SyncService_ServiceDesc = grpc.ServiceDesc{ + ServiceName: "services.rector.SyncService", + HandlerType: (*SyncServiceServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "Sync", + Handler: _SyncService_Sync_Handler, + }, + }, + Streams: []grpc.StreamDesc{}, + Metadata: "services/rector/sync.proto", +} diff --git a/gen/go/proto/services/stats/stats.pb.go b/gen/go/proto/services/stats/stats.pb.go index e75243293..dcebc4e99 100644 --- a/gen/go/proto/services/stats/stats.pb.go +++ b/gen/go/proto/services/stats/stats.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.35.2 +// protoc-gen-go v1.36.0 // protoc v3.20.3 // source: services/stats/stats.proto @@ -22,9 +22,9 @@ const ( ) type GetStatsRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *GetStatsRequest) Reset() { @@ -58,11 +58,10 @@ func (*GetStatsRequest) Descriptor() ([]byte, []int) { } type GetStatsResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Stats map[string]*stats.Stat `protobuf:"bytes,1,rep,name=stats,proto3" json:"stats,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"` unknownFields protoimpl.UnknownFields - - Stats map[string]*stats.Stat `protobuf:"bytes,1,rep,name=stats,proto3" json:"stats,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + sizeCache protoimpl.SizeCache } func (x *GetStatsResponse) Reset() { diff --git a/gen/go/proto/services/stats/stats_grpc.pb.go b/gen/go/proto/services/stats/stats_grpc.pb.go index 133a0e201..d6b4a3cb1 100644 --- a/gen/go/proto/services/stats/stats_grpc.pb.go +++ b/gen/go/proto/services/stats/stats_grpc.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: -// - protoc-gen-go-grpc v1.3.0 +// - protoc-gen-go-grpc v1.5.1 // - protoc v3.20.3 // source: services/stats/stats.proto @@ -15,8 +15,8 @@ import ( // This is a compile-time assertion to ensure that this generated file // is compatible with the grpc package it is being compiled against. -// Requires gRPC-Go v1.32.0 or later. -const _ = grpc.SupportPackageIsVersion7 +// Requires gRPC-Go v1.64.0 or later. +const _ = grpc.SupportPackageIsVersion9 const ( StatsService_GetStats_FullMethodName = "/services.stats.StatsService/GetStats" @@ -38,8 +38,9 @@ func NewStatsServiceClient(cc grpc.ClientConnInterface) StatsServiceClient { } func (c *statsServiceClient) GetStats(ctx context.Context, in *GetStatsRequest, opts ...grpc.CallOption) (*GetStatsResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(GetStatsResponse) - err := c.cc.Invoke(ctx, StatsService_GetStats_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, StatsService_GetStats_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -48,20 +49,24 @@ func (c *statsServiceClient) GetStats(ctx context.Context, in *GetStatsRequest, // StatsServiceServer is the server API for StatsService service. // All implementations must embed UnimplementedStatsServiceServer -// for forward compatibility +// for forward compatibility. type StatsServiceServer interface { GetStats(context.Context, *GetStatsRequest) (*GetStatsResponse, error) mustEmbedUnimplementedStatsServiceServer() } -// UnimplementedStatsServiceServer must be embedded to have forward compatible implementations. -type UnimplementedStatsServiceServer struct { -} +// UnimplementedStatsServiceServer must be embedded to have +// forward compatible implementations. +// +// NOTE: this should be embedded by value instead of pointer to avoid a nil +// pointer dereference when methods are called. +type UnimplementedStatsServiceServer struct{} func (UnimplementedStatsServiceServer) GetStats(context.Context, *GetStatsRequest) (*GetStatsResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method GetStats not implemented") } func (UnimplementedStatsServiceServer) mustEmbedUnimplementedStatsServiceServer() {} +func (UnimplementedStatsServiceServer) testEmbeddedByValue() {} // UnsafeStatsServiceServer may be embedded to opt out of forward compatibility for this service. // Use of this interface is not recommended, as added methods to StatsServiceServer will @@ -71,6 +76,13 @@ type UnsafeStatsServiceServer interface { } func RegisterStatsServiceServer(s grpc.ServiceRegistrar, srv StatsServiceServer) { + // If the following call pancis, it indicates UnimplementedStatsServiceServer was + // embedded by pointer and is nil. This will cause panics if an + // unimplemented method is ever invoked, so we test this at initialization + // time to prevent it from happening at runtime later due to I/O. + if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { + t.testEmbeddedByValue() + } s.RegisterService(&StatsService_ServiceDesc, srv) } diff --git a/gen/go/proto/services/wiki/wiki.pb.go b/gen/go/proto/services/wiki/wiki.pb.go index 04128bee6..15ceb5ccc 100644 --- a/gen/go/proto/services/wiki/wiki.pb.go +++ b/gen/go/proto/services/wiki/wiki.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.35.2 +// protoc-gen-go v1.36.0 // protoc v3.20.3 // source: services/wiki/wiki.proto @@ -24,16 +24,15 @@ const ( ) type ListPagesRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - + state protoimpl.MessageState `protogen:"open.v1"` Pagination *database.PaginationRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"` Sort *database.Sort `protobuf:"bytes,2,opt,name=sort,proto3,oneof" json:"sort,omitempty"` // Search params - Job *string `protobuf:"bytes,3,opt,name=job,proto3,oneof" json:"job,omitempty"` - RootOnly *bool `protobuf:"varint,4,opt,name=root_only,json=rootOnly,proto3,oneof" json:"root_only,omitempty"` - Search *string `protobuf:"bytes,5,opt,name=search,proto3,oneof" json:"search,omitempty"` + Job *string `protobuf:"bytes,3,opt,name=job,proto3,oneof" json:"job,omitempty"` + RootOnly *bool `protobuf:"varint,4,opt,name=root_only,json=rootOnly,proto3,oneof" json:"root_only,omitempty"` + Search *string `protobuf:"bytes,5,opt,name=search,proto3,oneof" json:"search,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *ListPagesRequest) Reset() { @@ -102,12 +101,11 @@ func (x *ListPagesRequest) GetSearch() string { } type ListPagesResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Pagination *database.PaginationResponse `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"` + Pages []*wiki.PageShort `protobuf:"bytes,2,rep,name=pages,proto3" json:"pages,omitempty"` unknownFields protoimpl.UnknownFields - - Pagination *database.PaginationResponse `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"` - Pages []*wiki.PageShort `protobuf:"bytes,2,rep,name=pages,proto3" json:"pages,omitempty"` + sizeCache protoimpl.SizeCache } func (x *ListPagesResponse) Reset() { @@ -155,11 +153,10 @@ func (x *ListPagesResponse) GetPages() []*wiki.PageShort { } type GetPageRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` unknownFields protoimpl.UnknownFields - - Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` + sizeCache protoimpl.SizeCache } func (x *GetPageRequest) Reset() { @@ -200,11 +197,10 @@ func (x *GetPageRequest) GetId() uint64 { } type GetPageResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Page *wiki.Page `protobuf:"bytes,1,opt,name=page,proto3" json:"page,omitempty"` unknownFields protoimpl.UnknownFields - - Page *wiki.Page `protobuf:"bytes,1,opt,name=page,proto3" json:"page,omitempty"` + sizeCache protoimpl.SizeCache } func (x *GetPageResponse) Reset() { @@ -245,11 +241,10 @@ func (x *GetPageResponse) GetPage() *wiki.Page { } type CreatePageRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Page *wiki.Page `protobuf:"bytes,1,opt,name=page,proto3" json:"page,omitempty"` unknownFields protoimpl.UnknownFields - - Page *wiki.Page `protobuf:"bytes,1,opt,name=page,proto3" json:"page,omitempty"` + sizeCache protoimpl.SizeCache } func (x *CreatePageRequest) Reset() { @@ -290,11 +285,10 @@ func (x *CreatePageRequest) GetPage() *wiki.Page { } type CreatePageResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Page *wiki.Page `protobuf:"bytes,1,opt,name=page,proto3" json:"page,omitempty"` unknownFields protoimpl.UnknownFields - - Page *wiki.Page `protobuf:"bytes,1,opt,name=page,proto3" json:"page,omitempty"` + sizeCache protoimpl.SizeCache } func (x *CreatePageResponse) Reset() { @@ -335,11 +329,10 @@ func (x *CreatePageResponse) GetPage() *wiki.Page { } type UpdatePageRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Page *wiki.Page `protobuf:"bytes,1,opt,name=page,proto3" json:"page,omitempty"` unknownFields protoimpl.UnknownFields - - Page *wiki.Page `protobuf:"bytes,1,opt,name=page,proto3" json:"page,omitempty"` + sizeCache protoimpl.SizeCache } func (x *UpdatePageRequest) Reset() { @@ -380,11 +373,10 @@ func (x *UpdatePageRequest) GetPage() *wiki.Page { } type UpdatePageResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Page *wiki.Page `protobuf:"bytes,1,opt,name=page,proto3" json:"page,omitempty"` unknownFields protoimpl.UnknownFields - - Page *wiki.Page `protobuf:"bytes,1,opt,name=page,proto3" json:"page,omitempty"` + sizeCache protoimpl.SizeCache } func (x *UpdatePageResponse) Reset() { @@ -425,11 +417,10 @@ func (x *UpdatePageResponse) GetPage() *wiki.Page { } type DeletePageRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` unknownFields protoimpl.UnknownFields - - Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` + sizeCache protoimpl.SizeCache } func (x *DeletePageRequest) Reset() { @@ -470,9 +461,9 @@ func (x *DeletePageRequest) GetId() uint64 { } type DeletePageResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *DeletePageResponse) Reset() { @@ -506,12 +497,11 @@ func (*DeletePageResponse) Descriptor() ([]byte, []int) { } type ListPageActivityRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Pagination *database.PaginationRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"` + PageId uint64 `protobuf:"varint,2,opt,name=page_id,json=pageId,proto3" json:"page_id,omitempty"` unknownFields protoimpl.UnknownFields - - Pagination *database.PaginationRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"` - PageId uint64 `protobuf:"varint,2,opt,name=page_id,json=pageId,proto3" json:"page_id,omitempty"` + sizeCache protoimpl.SizeCache } func (x *ListPageActivityRequest) Reset() { @@ -559,12 +549,11 @@ func (x *ListPageActivityRequest) GetPageId() uint64 { } type ListPageActivityResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Pagination *database.PaginationResponse `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"` + Activity []*wiki.PageActivity `protobuf:"bytes,2,rep,name=activity,proto3" json:"activity,omitempty"` unknownFields protoimpl.UnknownFields - - Pagination *database.PaginationResponse `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"` - Activity []*wiki.PageActivity `protobuf:"bytes,2,rep,name=activity,proto3" json:"activity,omitempty"` + sizeCache protoimpl.SizeCache } func (x *ListPageActivityResponse) Reset() { diff --git a/gen/go/proto/services/wiki/wiki_grpc.pb.go b/gen/go/proto/services/wiki/wiki_grpc.pb.go index 873884a17..65d9b4f77 100644 --- a/gen/go/proto/services/wiki/wiki_grpc.pb.go +++ b/gen/go/proto/services/wiki/wiki_grpc.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: -// - protoc-gen-go-grpc v1.3.0 +// - protoc-gen-go-grpc v1.5.1 // - protoc v3.20.3 // source: services/wiki/wiki.proto @@ -15,8 +15,8 @@ import ( // This is a compile-time assertion to ensure that this generated file // is compatible with the grpc package it is being compiled against. -// Requires gRPC-Go v1.32.0 or later. -const _ = grpc.SupportPackageIsVersion7 +// Requires gRPC-Go v1.64.0 or later. +const _ = grpc.SupportPackageIsVersion9 const ( WikiService_ListPages_FullMethodName = "/services.wiki.WikiService/ListPages" @@ -54,8 +54,9 @@ func NewWikiServiceClient(cc grpc.ClientConnInterface) WikiServiceClient { } func (c *wikiServiceClient) ListPages(ctx context.Context, in *ListPagesRequest, opts ...grpc.CallOption) (*ListPagesResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(ListPagesResponse) - err := c.cc.Invoke(ctx, WikiService_ListPages_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, WikiService_ListPages_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -63,8 +64,9 @@ func (c *wikiServiceClient) ListPages(ctx context.Context, in *ListPagesRequest, } func (c *wikiServiceClient) GetPage(ctx context.Context, in *GetPageRequest, opts ...grpc.CallOption) (*GetPageResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(GetPageResponse) - err := c.cc.Invoke(ctx, WikiService_GetPage_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, WikiService_GetPage_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -72,8 +74,9 @@ func (c *wikiServiceClient) GetPage(ctx context.Context, in *GetPageRequest, opt } func (c *wikiServiceClient) CreatePage(ctx context.Context, in *CreatePageRequest, opts ...grpc.CallOption) (*CreatePageResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(CreatePageResponse) - err := c.cc.Invoke(ctx, WikiService_CreatePage_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, WikiService_CreatePage_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -81,8 +84,9 @@ func (c *wikiServiceClient) CreatePage(ctx context.Context, in *CreatePageReques } func (c *wikiServiceClient) UpdatePage(ctx context.Context, in *UpdatePageRequest, opts ...grpc.CallOption) (*UpdatePageResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(UpdatePageResponse) - err := c.cc.Invoke(ctx, WikiService_UpdatePage_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, WikiService_UpdatePage_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -90,8 +94,9 @@ func (c *wikiServiceClient) UpdatePage(ctx context.Context, in *UpdatePageReques } func (c *wikiServiceClient) DeletePage(ctx context.Context, in *DeletePageRequest, opts ...grpc.CallOption) (*DeletePageResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(DeletePageResponse) - err := c.cc.Invoke(ctx, WikiService_DeletePage_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, WikiService_DeletePage_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -99,8 +104,9 @@ func (c *wikiServiceClient) DeletePage(ctx context.Context, in *DeletePageReques } func (c *wikiServiceClient) ListPageActivity(ctx context.Context, in *ListPageActivityRequest, opts ...grpc.CallOption) (*ListPageActivityResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(ListPageActivityResponse) - err := c.cc.Invoke(ctx, WikiService_ListPageActivity_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, WikiService_ListPageActivity_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -109,7 +115,7 @@ func (c *wikiServiceClient) ListPageActivity(ctx context.Context, in *ListPageAc // WikiServiceServer is the server API for WikiService service. // All implementations must embed UnimplementedWikiServiceServer -// for forward compatibility +// for forward compatibility. type WikiServiceServer interface { // @perm ListPages(context.Context, *ListPagesRequest) (*ListPagesResponse, error) @@ -126,9 +132,12 @@ type WikiServiceServer interface { mustEmbedUnimplementedWikiServiceServer() } -// UnimplementedWikiServiceServer must be embedded to have forward compatible implementations. -type UnimplementedWikiServiceServer struct { -} +// UnimplementedWikiServiceServer must be embedded to have +// forward compatible implementations. +// +// NOTE: this should be embedded by value instead of pointer to avoid a nil +// pointer dereference when methods are called. +type UnimplementedWikiServiceServer struct{} func (UnimplementedWikiServiceServer) ListPages(context.Context, *ListPagesRequest) (*ListPagesResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method ListPages not implemented") @@ -149,6 +158,7 @@ func (UnimplementedWikiServiceServer) ListPageActivity(context.Context, *ListPag return nil, status.Errorf(codes.Unimplemented, "method ListPageActivity not implemented") } func (UnimplementedWikiServiceServer) mustEmbedUnimplementedWikiServiceServer() {} +func (UnimplementedWikiServiceServer) testEmbeddedByValue() {} // UnsafeWikiServiceServer may be embedded to opt out of forward compatibility for this service. // Use of this interface is not recommended, as added methods to WikiServiceServer will @@ -158,6 +168,13 @@ type UnsafeWikiServiceServer interface { } func RegisterWikiServiceServer(s grpc.ServiceRegistrar, srv WikiServiceServer) { + // If the following call pancis, it indicates UnimplementedWikiServiceServer was + // embedded by pointer and is nil. This will cause panics if an + // unimplemented method is ever invoked, so we test this at initialization + // time to prevent it from happening at runtime later due to I/O. + if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { + t.testEmbeddedByValue() + } s.RegisterService(&WikiService_ServiceDesc, srv) } diff --git a/gen/grpc-api.md b/gen/grpc-api.md index c23592505..37045ff4d 100644 --- a/gen/grpc-api.md +++ b/gen/grpc-api.md @@ -11,6 +11,23 @@ - [Account](#resources-accounts-Account) - [Character](#resources-accounts-Character) +- [resources/calendar/access.proto](#resources_calendar_access-proto) + - [CalendarAccess](#resources-calendar-CalendarAccess) + - [CalendarJobAccess](#resources-calendar-CalendarJobAccess) + - [CalendarUserAccess](#resources-calendar-CalendarUserAccess) + + - [AccessLevel](#resources-calendar-AccessLevel) + +- [resources/calendar/calendar.proto](#resources_calendar_calendar-proto) + - [Calendar](#resources-calendar-Calendar) + - [CalendarEntry](#resources-calendar-CalendarEntry) + - [CalendarEntryRSVP](#resources-calendar-CalendarEntryRSVP) + - [CalendarEntryRecurring](#resources-calendar-CalendarEntryRecurring) + - [CalendarShort](#resources-calendar-CalendarShort) + - [CalendarSub](#resources-calendar-CalendarSub) + + - [RsvpResponses](#resources-calendar-RsvpResponses) + - [resources/centrum/access.proto](#resources_centrum_access-proto) - [UnitAccess](#resources-centrum-UnitAccess) - [UnitJobAccess](#resources-centrum-UnitJobAccess) @@ -205,12 +222,6 @@ - [MarkerType](#resources-livemap-MarkerType) -- [resources/notifications/events.proto](#resources_notifications_events-proto) - - [JobEvent](#resources-notifications-JobEvent) - - [JobGradeEvent](#resources-notifications-JobGradeEvent) - - [SystemEvent](#resources-notifications-SystemEvent) - - [UserEvent](#resources-notifications-UserEvent) - - [resources/notifications/notifications.proto](#resources_notifications_notifications-proto) - [CalendarData](#resources-notifications-CalendarData) - [Data](#resources-notifications-Data) @@ -220,6 +231,12 @@ - [NotificationCategory](#resources-notifications-NotificationCategory) - [NotificationType](#resources-notifications-NotificationType) +- [resources/notifications/events.proto](#resources_notifications_events-proto) + - [JobEvent](#resources-notifications-JobEvent) + - [JobGradeEvent](#resources-notifications-JobGradeEvent) + - [SystemEvent](#resources-notifications-SystemEvent) + - [UserEvent](#resources-notifications-UserEvent) + - [resources/permissions/permissions.proto](#resources_permissions_permissions-proto) - [AttributeValues](#resources-permissions-AttributeValues) - [JobGradeList](#resources-permissions-JobGradeList) @@ -327,42 +344,31 @@ - [resources/vehicles/vehicles.proto](#resources_vehicles_vehicles-proto) - [Vehicle](#resources-vehicles-Vehicle) -- [resources/calendar/access.proto](#resources_calendar_access-proto) - - [CalendarAccess](#resources-calendar-CalendarAccess) - - [CalendarJobAccess](#resources-calendar-CalendarJobAccess) - - [CalendarUserAccess](#resources-calendar-CalendarUserAccess) - - - [AccessLevel](#resources-calendar-AccessLevel) - -- [resources/calendar/calendar.proto](#resources_calendar_calendar-proto) - - [Calendar](#resources-calendar-Calendar) - - [CalendarEntry](#resources-calendar-CalendarEntry) - - [CalendarEntryRSVP](#resources-calendar-CalendarEntryRSVP) - - [CalendarEntryRecurring](#resources-calendar-CalendarEntryRecurring) - - [CalendarShort](#resources-calendar-CalendarShort) - - [CalendarSub](#resources-calendar-CalendarSub) - - - [RsvpResponses](#resources-calendar-RsvpResponses) - - [resources/stats/stats.proto](#resources_stats_stats-proto) - [Stat](#resources-stats-Stat) -- [resources/internet/ads.proto](#resources_internet_ads-proto) - - [Ad](#resources-internet-Ad) - - - [AdType](#resources-internet-AdType) +- [resources/wiki/access.proto](#resources_wiki_access-proto) + - [PageAccess](#resources-wiki-PageAccess) + - [PageJobAccess](#resources-wiki-PageJobAccess) + - [PageUserAccess](#resources-wiki-PageUserAccess) -- [resources/internet/search.proto](#resources_internet_search-proto) - - [SearchResult](#resources-internet-SearchResult) + - [AccessLevel](#resources-wiki-AccessLevel) -- [resources/internet/domain.proto](#resources_internet_domain-proto) - - [Domain](#resources-internet-Domain) +- [resources/wiki/activity.proto](#resources_wiki_activity-proto) + - [PageAccessJobsDiff](#resources-wiki-PageAccessJobsDiff) + - [PageAccessUpdated](#resources-wiki-PageAccessUpdated) + - [PageAccessUsersDiff](#resources-wiki-PageAccessUsersDiff) + - [PageActivity](#resources-wiki-PageActivity) + - [PageActivityData](#resources-wiki-PageActivityData) + - [PageUpdated](#resources-wiki-PageUpdated) -- [resources/internet/page.proto](#resources_internet_page-proto) - - [Page](#resources-internet-Page) - - [PageData](#resources-internet-PageData) + - [PageActivityType](#resources-wiki-PageActivityType) - - [PageLayoutType](#resources-internet-PageLayoutType) +- [resources/wiki/page.proto](#resources_wiki_page-proto) + - [Page](#resources-wiki-Page) + - [PageMeta](#resources-wiki-PageMeta) + - [PageRootInfo](#resources-wiki-PageRootInfo) + - [PageShort](#resources-wiki-PageShort) - [resources/mailer/access.proto](#resources_mailer_access-proto) - [Access](#resources-mailer-Access) @@ -394,28 +400,22 @@ - [ThreadRecipientEmail](#resources-mailer-ThreadRecipientEmail) - [ThreadState](#resources-mailer-ThreadState) -- [resources/wiki/access.proto](#resources_wiki_access-proto) - - [PageAccess](#resources-wiki-PageAccess) - - [PageJobAccess](#resources-wiki-PageJobAccess) - - [PageUserAccess](#resources-wiki-PageUserAccess) +- [resources/internet/ads.proto](#resources_internet_ads-proto) + - [Ad](#resources-internet-Ad) - - [AccessLevel](#resources-wiki-AccessLevel) + - [AdType](#resources-internet-AdType) -- [resources/wiki/activity.proto](#resources_wiki_activity-proto) - - [PageAccessJobsDiff](#resources-wiki-PageAccessJobsDiff) - - [PageAccessUpdated](#resources-wiki-PageAccessUpdated) - - [PageAccessUsersDiff](#resources-wiki-PageAccessUsersDiff) - - [PageActivity](#resources-wiki-PageActivity) - - [PageActivityData](#resources-wiki-PageActivityData) - - [PageUpdated](#resources-wiki-PageUpdated) +- [resources/internet/search.proto](#resources_internet_search-proto) + - [SearchResult](#resources-internet-SearchResult) - - [PageActivityType](#resources-wiki-PageActivityType) +- [resources/internet/domain.proto](#resources_internet_domain-proto) + - [Domain](#resources-internet-Domain) -- [resources/wiki/page.proto](#resources_wiki_page-proto) - - [Page](#resources-wiki-Page) - - [PageMeta](#resources-wiki-PageMeta) - - [PageRootInfo](#resources-wiki-PageRootInfo) - - [PageShort](#resources-wiki-PageShort) +- [resources/internet/page.proto](#resources_internet_page-proto) + - [Page](#resources-internet-Page) + - [PageData](#resources-internet-PageData) + + - [PageLayoutType](#resources-internet-PageLayoutType) - [services/auth/auth.proto](#services_auth_auth-proto) - [ChangePasswordRequest](#services-auth-ChangePasswordRequest) @@ -443,6 +443,38 @@ - [AuthService](#services-auth-AuthService) +- [services/calendar/calendar.proto](#services_calendar_calendar-proto) + - [CreateOrUpdateCalendarEntryRequest](#services-calendar-CreateOrUpdateCalendarEntryRequest) + - [CreateOrUpdateCalendarEntryResponse](#services-calendar-CreateOrUpdateCalendarEntryResponse) + - [CreateOrUpdateCalendarRequest](#services-calendar-CreateOrUpdateCalendarRequest) + - [CreateOrUpdateCalendarResponse](#services-calendar-CreateOrUpdateCalendarResponse) + - [DeleteCalendarEntryRequest](#services-calendar-DeleteCalendarEntryRequest) + - [DeleteCalendarEntryResponse](#services-calendar-DeleteCalendarEntryResponse) + - [DeleteCalendarRequest](#services-calendar-DeleteCalendarRequest) + - [DeleteCalendarResponse](#services-calendar-DeleteCalendarResponse) + - [GetCalendarEntryRequest](#services-calendar-GetCalendarEntryRequest) + - [GetCalendarEntryResponse](#services-calendar-GetCalendarEntryResponse) + - [GetCalendarRequest](#services-calendar-GetCalendarRequest) + - [GetCalendarResponse](#services-calendar-GetCalendarResponse) + - [GetUpcomingEntriesRequest](#services-calendar-GetUpcomingEntriesRequest) + - [GetUpcomingEntriesResponse](#services-calendar-GetUpcomingEntriesResponse) + - [ListCalendarEntriesRequest](#services-calendar-ListCalendarEntriesRequest) + - [ListCalendarEntriesResponse](#services-calendar-ListCalendarEntriesResponse) + - [ListCalendarEntryRSVPRequest](#services-calendar-ListCalendarEntryRSVPRequest) + - [ListCalendarEntryRSVPResponse](#services-calendar-ListCalendarEntryRSVPResponse) + - [ListCalendarsRequest](#services-calendar-ListCalendarsRequest) + - [ListCalendarsResponse](#services-calendar-ListCalendarsResponse) + - [ListSubscriptionsRequest](#services-calendar-ListSubscriptionsRequest) + - [ListSubscriptionsResponse](#services-calendar-ListSubscriptionsResponse) + - [RSVPCalendarEntryRequest](#services-calendar-RSVPCalendarEntryRequest) + - [RSVPCalendarEntryResponse](#services-calendar-RSVPCalendarEntryResponse) + - [ShareCalendarEntryRequest](#services-calendar-ShareCalendarEntryRequest) + - [ShareCalendarEntryResponse](#services-calendar-ShareCalendarEntryResponse) + - [SubscribeToCalendarRequest](#services-calendar-SubscribeToCalendarRequest) + - [SubscribeToCalendarResponse](#services-calendar-SubscribeToCalendarResponse) + + - [CalendarService](#services-calendar-CalendarService) + - [services/centrum/centrum.proto](#services_centrum_centrum-proto) - [AssignDispatchRequest](#services-centrum-AssignDispatchRequest) - [AssignDispatchResponse](#services-centrum-AssignDispatchResponse) @@ -614,6 +646,19 @@ - [JobsConductService](#services-jobs-JobsConductService) +- [services/jobs/timeclock.proto](#services_jobs_timeclock-proto) + - [GetTimeclockStatsRequest](#services-jobs-GetTimeclockStatsRequest) + - [GetTimeclockStatsResponse](#services-jobs-GetTimeclockStatsResponse) + - [ListInactiveEmployeesRequest](#services-jobs-ListInactiveEmployeesRequest) + - [ListInactiveEmployeesResponse](#services-jobs-ListInactiveEmployeesResponse) + - [ListTimeclockRequest](#services-jobs-ListTimeclockRequest) + - [ListTimeclockResponse](#services-jobs-ListTimeclockResponse) + - [TimeclockDay](#services-jobs-TimeclockDay) + - [TimeclockRange](#services-jobs-TimeclockRange) + - [TimeclockWeekly](#services-jobs-TimeclockWeekly) + + - [JobsTimeclockService](#services-jobs-JobsTimeclockService) + - [services/jobs/jobs.proto](#services_jobs_jobs-proto) - [GetColleagueLabelsRequest](#services-jobs-GetColleagueLabelsRequest) - [GetColleagueLabelsResponse](#services-jobs-GetColleagueLabelsResponse) @@ -638,19 +683,6 @@ - [JobsService](#services-jobs-JobsService) -- [services/jobs/timeclock.proto](#services_jobs_timeclock-proto) - - [GetTimeclockStatsRequest](#services-jobs-GetTimeclockStatsRequest) - - [GetTimeclockStatsResponse](#services-jobs-GetTimeclockStatsResponse) - - [ListInactiveEmployeesRequest](#services-jobs-ListInactiveEmployeesRequest) - - [ListInactiveEmployeesResponse](#services-jobs-ListInactiveEmployeesResponse) - - [ListTimeclockRequest](#services-jobs-ListTimeclockRequest) - - [ListTimeclockResponse](#services-jobs-ListTimeclockResponse) - - [TimeclockDay](#services-jobs-TimeclockDay) - - [TimeclockRange](#services-jobs-TimeclockRange) - - [TimeclockWeekly](#services-jobs-TimeclockWeekly) - - - [JobsTimeclockService](#services-jobs-JobsTimeclockService) - - [services/livemapper/livemap.proto](#services_livemapper_livemap-proto) - [CreateOrUpdateMarkerRequest](#services-livemapper-CreateOrUpdateMarkerRequest) - [CreateOrUpdateMarkerResponse](#services-livemapper-CreateOrUpdateMarkerResponse) @@ -771,37 +803,11 @@ - [RectorService](#services-rector-RectorService) -- [services/calendar/calendar.proto](#services_calendar_calendar-proto) - - [CreateOrUpdateCalendarEntryRequest](#services-calendar-CreateOrUpdateCalendarEntryRequest) - - [CreateOrUpdateCalendarEntryResponse](#services-calendar-CreateOrUpdateCalendarEntryResponse) - - [CreateOrUpdateCalendarRequest](#services-calendar-CreateOrUpdateCalendarRequest) - - [CreateOrUpdateCalendarResponse](#services-calendar-CreateOrUpdateCalendarResponse) - - [DeleteCalendarEntryRequest](#services-calendar-DeleteCalendarEntryRequest) - - [DeleteCalendarEntryResponse](#services-calendar-DeleteCalendarEntryResponse) - - [DeleteCalendarRequest](#services-calendar-DeleteCalendarRequest) - - [DeleteCalendarResponse](#services-calendar-DeleteCalendarResponse) - - [GetCalendarEntryRequest](#services-calendar-GetCalendarEntryRequest) - - [GetCalendarEntryResponse](#services-calendar-GetCalendarEntryResponse) - - [GetCalendarRequest](#services-calendar-GetCalendarRequest) - - [GetCalendarResponse](#services-calendar-GetCalendarResponse) - - [GetUpcomingEntriesRequest](#services-calendar-GetUpcomingEntriesRequest) - - [GetUpcomingEntriesResponse](#services-calendar-GetUpcomingEntriesResponse) - - [ListCalendarEntriesRequest](#services-calendar-ListCalendarEntriesRequest) - - [ListCalendarEntriesResponse](#services-calendar-ListCalendarEntriesResponse) - - [ListCalendarEntryRSVPRequest](#services-calendar-ListCalendarEntryRSVPRequest) - - [ListCalendarEntryRSVPResponse](#services-calendar-ListCalendarEntryRSVPResponse) - - [ListCalendarsRequest](#services-calendar-ListCalendarsRequest) - - [ListCalendarsResponse](#services-calendar-ListCalendarsResponse) - - [ListSubscriptionsRequest](#services-calendar-ListSubscriptionsRequest) - - [ListSubscriptionsResponse](#services-calendar-ListSubscriptionsResponse) - - [RSVPCalendarEntryRequest](#services-calendar-RSVPCalendarEntryRequest) - - [RSVPCalendarEntryResponse](#services-calendar-RSVPCalendarEntryResponse) - - [ShareCalendarEntryRequest](#services-calendar-ShareCalendarEntryRequest) - - [ShareCalendarEntryResponse](#services-calendar-ShareCalendarEntryResponse) - - [SubscribeToCalendarRequest](#services-calendar-SubscribeToCalendarRequest) - - [SubscribeToCalendarResponse](#services-calendar-SubscribeToCalendarResponse) +- [services/rector/sync.proto](#services_rector_sync-proto) + - [SyncRequest](#services-rector-SyncRequest) + - [SyncResponse](#services-rector-SyncResponse) - - [CalendarService](#services-calendar-CalendarService) + - [SyncService](#services-rector-SyncService) - [services/stats/stats.proto](#services_stats_stats-proto) - [GetStatsRequest](#services-stats-GetStatsRequest) @@ -810,19 +816,21 @@ - [StatsService](#services-stats-StatsService) -- [services/internet/ads.proto](#services_internet_ads-proto) - - [GetAdsRequest](#services-internet-GetAdsRequest) - - [GetAdsResponse](#services-internet-GetAdsResponse) - - - [AdsService](#services-internet-AdsService) - -- [services/internet/internet.proto](#services_internet_internet-proto) - - [GetPageRequest](#services-internet-GetPageRequest) - - [GetPageResponse](#services-internet-GetPageResponse) - - [SearchRequest](#services-internet-SearchRequest) - - [SearchResponse](#services-internet-SearchResponse) +- [services/wiki/wiki.proto](#services_wiki_wiki-proto) + - [CreatePageRequest](#services-wiki-CreatePageRequest) + - [CreatePageResponse](#services-wiki-CreatePageResponse) + - [DeletePageRequest](#services-wiki-DeletePageRequest) + - [DeletePageResponse](#services-wiki-DeletePageResponse) + - [GetPageRequest](#services-wiki-GetPageRequest) + - [GetPageResponse](#services-wiki-GetPageResponse) + - [ListPageActivityRequest](#services-wiki-ListPageActivityRequest) + - [ListPageActivityResponse](#services-wiki-ListPageActivityResponse) + - [ListPagesRequest](#services-wiki-ListPagesRequest) + - [ListPagesResponse](#services-wiki-ListPagesResponse) + - [UpdatePageRequest](#services-wiki-UpdatePageRequest) + - [UpdatePageResponse](#services-wiki-UpdatePageResponse) - - [InternetService](#services-internet-InternetService) + - [WikiService](#services-wiki-WikiService) - [services/mailer/mailer.proto](#services_mailer_mailer-proto) - [CreateOrUpdateEmailRequest](#services-mailer-CreateOrUpdateEmailRequest) @@ -870,21 +878,19 @@ - [MailerService](#services-mailer-MailerService) -- [services/wiki/wiki.proto](#services_wiki_wiki-proto) - - [CreatePageRequest](#services-wiki-CreatePageRequest) - - [CreatePageResponse](#services-wiki-CreatePageResponse) - - [DeletePageRequest](#services-wiki-DeletePageRequest) - - [DeletePageResponse](#services-wiki-DeletePageResponse) - - [GetPageRequest](#services-wiki-GetPageRequest) - - [GetPageResponse](#services-wiki-GetPageResponse) - - [ListPageActivityRequest](#services-wiki-ListPageActivityRequest) - - [ListPageActivityResponse](#services-wiki-ListPageActivityResponse) - - [ListPagesRequest](#services-wiki-ListPagesRequest) - - [ListPagesResponse](#services-wiki-ListPagesResponse) - - [UpdatePageRequest](#services-wiki-UpdatePageRequest) - - [UpdatePageResponse](#services-wiki-UpdatePageResponse) +- [services/internet/ads.proto](#services_internet_ads-proto) + - [GetAdsRequest](#services-internet-GetAdsRequest) + - [GetAdsResponse](#services-internet-GetAdsResponse) - - [WikiService](#services-wiki-WikiService) + - [AdsService](#services-internet-AdsService) + +- [services/internet/internet.proto](#services_internet_internet-proto) + - [GetPageRequest](#services-internet-GetPageRequest) + - [GetPageResponse](#services-internet-GetPageResponse) + - [SearchRequest](#services-internet-SearchRequest) + - [SearchResponse](#services-internet-SearchResponse) + + - [InternetService](#services-internet-InternetService) - [Scalar Value Types](#scalar-value-types) @@ -997,32 +1003,32 @@ - +
-## resources/centrum/access.proto +## resources/calendar/access.proto - + -### UnitAccess +### CalendarAccess | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| jobs | [UnitJobAccess](#resources-centrum-UnitJobAccess) | repeated | @gotags: alias:"job_access" | -| qualifications | [UnitQualificationAccess](#resources-centrum-UnitQualificationAccess) | repeated | @gotags: alias:"qualification_access" | +| jobs | [CalendarJobAccess](#resources-calendar-CalendarJobAccess) | repeated | @gotags: alias:"job_access" | +| users | [CalendarUserAccess](#resources-calendar-CalendarUserAccess) | repeated | @gotags: alias:"user_access" | - + -### UnitJobAccess +### CalendarJobAccess @@ -1035,16 +1041,16 @@ | job_label | [string](#string) | optional | | | minimum_grade | [int32](#int32) | | | | job_grade_label | [string](#string) | optional | | -| access | [UnitAccessLevel](#resources-centrum-UnitAccessLevel) | | | +| access | [AccessLevel](#resources-calendar-AccessLevel) | | | - + -### UnitQualificationAccess +### CalendarUserAccess @@ -1052,20 +1058,10 @@ | ----- | ---- | ----- | ----------- | | id | [uint64](#uint64) | | | | created_at | [resources.timestamp.Timestamp](#resources-timestamp-Timestamp) | optional | | -| target_id | [uint64](#uint64) | | @gotags: alias:"thread_id" | -| qualification_id | [uint64](#uint64) | | | -| qualification | [resources.qualifications.QualificationShort](#resources-qualifications-QualificationShort) | optional | | -| access | [UnitAccessLevel](#resources-centrum-UnitAccessLevel) | | | - - - - - - - - -### UnitUserAccess - +| target_id | [uint64](#uint64) | | @gotags: alias:"calendar_id" | +| user_id | [int32](#int32) | | | +| user | [resources.users.UserShort](#resources-users-UserShort) | optional | | +| access | [AccessLevel](#resources-calendar-AccessLevel) | | | @@ -1074,16 +1070,19 @@ - + -### UnitAccessLevel +### AccessLevel | Name | Number | Description | | ---- | ------ | ----------- | -| UNIT_ACCESS_LEVEL_UNSPECIFIED | 0 | | -| UNIT_ACCESS_LEVEL_BLOCKED | 1 | | -| UNIT_ACCESS_LEVEL_JOIN | 2 | | +| ACCESS_LEVEL_UNSPECIFIED | 0 | | +| ACCESS_LEVEL_BLOCKED | 1 | | +| ACCESS_LEVEL_VIEW | 2 | | +| ACCESS_LEVEL_SHARE | 3 | | +| ACCESS_LEVEL_EDIT | 4 | | +| ACCESS_LEVEL_MANAGE | 5 | | @@ -1094,16 +1093,16 @@ - + -## resources/centrum/dispatches.proto +## resources/calendar/calendar.proto - + -### Dispatch +### Calendar @@ -1112,113 +1111,128 @@ | id | [uint64](#uint64) | | @gotags: sql:"primary_key" alias:"id" | | created_at | [resources.timestamp.Timestamp](#resources-timestamp-Timestamp) | optional | | | updated_at | [resources.timestamp.Timestamp](#resources-timestamp-Timestamp) | optional | | -| job | [string](#string) | | | -| status | [DispatchStatus](#resources-centrum-DispatchStatus) | optional | | -| message | [string](#string) | | @sanitize | -| description | [string](#string) | optional | @sanitize | -| attributes | [Attributes](#resources-centrum-Attributes) | optional | | -| x | [double](#double) | | | -| y | [double](#double) | | | -| postal | [string](#string) | optional | @sanitize | -| anon | [bool](#bool) | | | +| deleted_at | [resources.timestamp.Timestamp](#resources-timestamp-Timestamp) | optional | | +| job | [string](#string) | optional | | +| name | [string](#string) | | @sanitize: method=StripTags | +| description | [string](#string) | optional | @sanitize: method=StripTags | +| public | [bool](#bool) | | | +| closed | [bool](#bool) | | | +| color | [string](#string) | | @sanitize: method=StripTags | | creator_id | [int32](#int32) | optional | | -| creator | [resources.users.User](#resources-users-User) | optional | | -| units | [DispatchAssignment](#resources-centrum-DispatchAssignment) | repeated | | -| references | [DispatchReferences](#resources-centrum-DispatchReferences) | optional | | +| creator | [resources.users.UserShort](#resources-users-UserShort) | optional | @gotags: alias:"creator" | +| creator_job | [string](#string) | | | +| subscription | [CalendarSub](#resources-calendar-CalendarSub) | optional | | +| access | [CalendarAccess](#resources-calendar-CalendarAccess) | | | - + -### DispatchAssignment +### CalendarEntry | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| dispatch_id | [uint64](#uint64) | | @gotags: sql:"primary_key" alias:"dispatch_id" | -| unit_id | [uint64](#uint64) | | @gotags: sql:"primary_key" alias:"unit_id" | -| unit | [Unit](#resources-centrum-Unit) | optional | | +| id | [uint64](#uint64) | | @gotags: sql:"primary_key" alias:"id" | | created_at | [resources.timestamp.Timestamp](#resources-timestamp-Timestamp) | optional | | -| expires_at | [resources.timestamp.Timestamp](#resources-timestamp-Timestamp) | optional | | +| updated_at | [resources.timestamp.Timestamp](#resources-timestamp-Timestamp) | optional | | +| deleted_at | [resources.timestamp.Timestamp](#resources-timestamp-Timestamp) | optional | | +| calendar_id | [uint64](#uint64) | | | +| calendar | [Calendar](#resources-calendar-Calendar) | optional | | +| job | [string](#string) | optional | | +| start_time | [resources.timestamp.Timestamp](#resources-timestamp-Timestamp) | | | +| end_time | [resources.timestamp.Timestamp](#resources-timestamp-Timestamp) | optional | | +| title | [string](#string) | | @sanitize: method=StripTags | +| content | [resources.common.content.Content](#resources-common-content-Content) | | | +| closed | [bool](#bool) | | | +| rsvp_open | [bool](#bool) | optional | | +| creator_id | [int32](#int32) | optional | | +| creator | [resources.users.UserShort](#resources-users-UserShort) | optional | @gotags: alias:"creator" | +| creator_job | [string](#string) | | | +| recurring | [CalendarEntryRecurring](#resources-calendar-CalendarEntryRecurring) | optional | | +| rsvp | [CalendarEntryRSVP](#resources-calendar-CalendarEntryRSVP) | optional | | - + -### DispatchAssignments +### CalendarEntryRSVP | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| dispatch_id | [uint64](#uint64) | | | -| job | [string](#string) | | | -| units | [DispatchAssignment](#resources-centrum-DispatchAssignment) | repeated | | +| entry_id | [uint64](#uint64) | | | +| created_at | [resources.timestamp.Timestamp](#resources-timestamp-Timestamp) | optional | | +| user_id | [int32](#int32) | | | +| user | [resources.users.UserShort](#resources-users-UserShort) | optional | | +| response | [RsvpResponses](#resources-calendar-RsvpResponses) | | | - + -### DispatchReference +### CalendarEntryRecurring | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| target_dispatch_id | [uint64](#uint64) | | | -| reference_type | [DispatchReferenceType](#resources-centrum-DispatchReferenceType) | | | +| every | [string](#string) | | | +| count | [int32](#int32) | | | +| until | [resources.timestamp.Timestamp](#resources-timestamp-Timestamp) | optional | | - + -### DispatchReferences +### CalendarShort | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| references | [DispatchReference](#resources-centrum-DispatchReference) | repeated | | +| id | [uint64](#uint64) | | @gotags: sql:"primary_key" alias:"id" | +| created_at | [resources.timestamp.Timestamp](#resources-timestamp-Timestamp) | optional | | +| name | [string](#string) | | @sanitize: method=StripTags | +| description | [string](#string) | optional | @sanitize: method=StripTags | +| public | [bool](#bool) | | | +| closed | [bool](#bool) | | | +| color | [string](#string) | | @sanitize: method=StripTags | +| subscription | [CalendarSub](#resources-calendar-CalendarSub) | optional | | - + -### DispatchStatus +### CalendarSub | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| id | [uint64](#uint64) | | @gotags: sql:"primary_key" alias:"id" | +| calendar_id | [uint64](#uint64) | | | +| user_id | [int32](#int32) | | | +| user | [resources.users.UserShort](#resources-users-UserShort) | optional | | | created_at | [resources.timestamp.Timestamp](#resources-timestamp-Timestamp) | optional | | -| dispatch_id | [uint64](#uint64) | | | -| unit_id | [uint64](#uint64) | optional | | -| unit | [Unit](#resources-centrum-Unit) | optional | | -| status | [StatusDispatch](#resources-centrum-StatusDispatch) | | | -| reason | [string](#string) | optional | @sanitize | -| code | [string](#string) | optional | @sanitize | -| user_id | [int32](#int32) | optional | | -| user | [resources.jobs.Colleague](#resources-jobs-Colleague) | optional | | -| x | [double](#double) | optional | | -| y | [double](#double) | optional | | -| postal | [string](#string) | optional | @sanitize | +| confirmed | [bool](#bool) | | | +| muted | [bool](#bool) | | | @@ -1227,55 +1241,19 @@ - - -### DispatchReferenceType - - -| Name | Number | Description | -| ---- | ------ | ----------- | -| DISPATCH_REFERENCE_TYPE_UNSPECIFIED | 0 | | -| DISPATCH_REFERENCE_TYPE_REFERENCED | 1 | | -| DISPATCH_REFERENCE_TYPE_DUPLICATED_BY | 2 | | -| DISPATCH_REFERENCE_TYPE_DUPLICATE_OF | 3 | | - - - - - -### StatusDispatch - - -| Name | Number | Description | -| ---- | ------ | ----------- | -| STATUS_DISPATCH_UNSPECIFIED | 0 | | -| STATUS_DISPATCH_NEW | 1 | | -| STATUS_DISPATCH_UNASSIGNED | 2 | | -| STATUS_DISPATCH_UPDATED | 3 | | -| STATUS_DISPATCH_UNIT_ASSIGNED | 4 | | -| STATUS_DISPATCH_UNIT_UNASSIGNED | 5 | | -| STATUS_DISPATCH_UNIT_ACCEPTED | 6 | | -| STATUS_DISPATCH_UNIT_DECLINED | 7 | | -| STATUS_DISPATCH_EN_ROUTE | 8 | | -| STATUS_DISPATCH_ON_SCENE | 9 | | -| STATUS_DISPATCH_NEED_ASSISTANCE | 10 | | -| STATUS_DISPATCH_COMPLETED | 11 | | -| STATUS_DISPATCH_CANCELLED | 12 | | -| STATUS_DISPATCH_ARCHIVED | 13 | | - - - - + -### TakeDispatchResp +### RsvpResponses | Name | Number | Description | | ---- | ------ | ----------- | -| TAKE_DISPATCH_RESP_UNSPECIFIED | 0 | | -| TAKE_DISPATCH_RESP_TIMEOUT | 1 | | -| TAKE_DISPATCH_RESP_ACCEPTED | 2 | | -| TAKE_DISPATCH_RESP_DECLINED | 3 | | +| RSVP_RESPONSES_UNSPECIFIED | 0 | | +| RSVP_RESPONSES_HIDDEN | 1 | | +| RSVP_RESPONSES_INVITED | 2 | | +| RSVP_RESPONSES_NO | 3 | | +| RSVP_RESPONSES_MAYBE | 4 | | +| RSVP_RESPONSES_YES | 5 | | @@ -1286,226 +1264,210 @@ - + -## resources/centrum/general.proto +## resources/centrum/access.proto - + -### Attributes +### UnitAccess | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| list | [string](#string) | repeated | @sanitize: method=StripTags | +| jobs | [UnitJobAccess](#resources-centrum-UnitJobAccess) | repeated | @gotags: alias:"job_access" | +| qualifications | [UnitQualificationAccess](#resources-centrum-UnitQualificationAccess) | repeated | @gotags: alias:"qualification_access" | - + -### Disponents +### UnitJobAccess | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | +| id | [uint64](#uint64) | | | +| created_at | [resources.timestamp.Timestamp](#resources-timestamp-Timestamp) | optional | | +| target_id | [uint64](#uint64) | | @gotags: alias:"calendar_id" | | job | [string](#string) | | | -| disponents | [resources.jobs.Colleague](#resources-jobs-Colleague) | repeated | | +| job_label | [string](#string) | optional | | +| minimum_grade | [int32](#int32) | | | +| job_grade_label | [string](#string) | optional | | +| access | [UnitAccessLevel](#resources-centrum-UnitAccessLevel) | | | - + -### UserUnitMapping +### UnitQualificationAccess | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| unit_id | [uint64](#uint64) | | | -| job | [string](#string) | | | -| user_id | [int32](#int32) | | | -| created_at | [resources.timestamp.Timestamp](#resources-timestamp-Timestamp) | | | +| id | [uint64](#uint64) | | | +| created_at | [resources.timestamp.Timestamp](#resources-timestamp-Timestamp) | optional | | +| target_id | [uint64](#uint64) | | @gotags: alias:"thread_id" | +| qualification_id | [uint64](#uint64) | | | +| qualification | [resources.qualifications.QualificationShort](#resources-qualifications-QualificationShort) | optional | | +| access | [UnitAccessLevel](#resources-centrum-UnitAccessLevel) | | | - - + - +### UnitUserAccess - - - -## resources/centrum/settings.proto + - - -### PredefinedStatus - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| unit_status | [string](#string) | repeated | @sanitize: method=StripTags | -| dispatch_status | [string](#string) | repeated | @sanitize: method=StripTags | - - + +### UnitAccessLevel +| Name | Number | Description | +| ---- | ------ | ----------- | +| UNIT_ACCESS_LEVEL_UNSPECIFIED | 0 | | +| UNIT_ACCESS_LEVEL_BLOCKED | 1 | | +| UNIT_ACCESS_LEVEL_JOIN | 2 | | - -### Settings + + + -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| job | [string](#string) | | | -| enabled | [bool](#bool) | | | -| mode | [CentrumMode](#resources-centrum-CentrumMode) | | | -| fallback_mode | [CentrumMode](#resources-centrum-CentrumMode) | | | -| predefined_status | [PredefinedStatus](#resources-centrum-PredefinedStatus) | optional | | -| timings | [Timings](#resources-centrum-Timings) | | | + + +## resources/centrum/dispatches.proto - + -### Timings +### Dispatch | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| dispatch_max_wait | [int64](#int64) | | | -| require_unit | [bool](#bool) | | | -| require_unit_reminder_seconds | [int64](#int64) | | | - - - - - - +| id | [uint64](#uint64) | | @gotags: sql:"primary_key" alias:"id" | +| created_at | [resources.timestamp.Timestamp](#resources-timestamp-Timestamp) | optional | | +| updated_at | [resources.timestamp.Timestamp](#resources-timestamp-Timestamp) | optional | | +| job | [string](#string) | | | +| status | [DispatchStatus](#resources-centrum-DispatchStatus) | optional | | +| message | [string](#string) | | @sanitize | +| description | [string](#string) | optional | @sanitize | +| attributes | [Attributes](#resources-centrum-Attributes) | optional | | +| x | [double](#double) | | | +| y | [double](#double) | | | +| postal | [string](#string) | optional | @sanitize | +| anon | [bool](#bool) | | | +| creator_id | [int32](#int32) | optional | | +| creator | [resources.users.User](#resources-users-User) | optional | | +| units | [DispatchAssignment](#resources-centrum-DispatchAssignment) | repeated | | +| references | [DispatchReferences](#resources-centrum-DispatchReferences) | optional | | - -### CentrumMode -| Name | Number | Description | -| ---- | ------ | ----------- | -| CENTRUM_MODE_UNSPECIFIED | 0 | | -| CENTRUM_MODE_MANUAL | 1 | | -| CENTRUM_MODE_CENTRAL_COMMAND | 2 | | -| CENTRUM_MODE_AUTO_ROUND_ROBIN | 3 | | -| CENTRUM_MODE_SIMPLIFIED | 4 | | + - +### DispatchAssignment - - +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| dispatch_id | [uint64](#uint64) | | @gotags: sql:"primary_key" alias:"dispatch_id" | +| unit_id | [uint64](#uint64) | | @gotags: sql:"primary_key" alias:"unit_id" | +| unit | [Unit](#resources-centrum-Unit) | optional | | +| created_at | [resources.timestamp.Timestamp](#resources-timestamp-Timestamp) | optional | | +| expires_at | [resources.timestamp.Timestamp](#resources-timestamp-Timestamp) | optional | | - - -## resources/centrum/units.proto - + -### Unit +### DispatchAssignments | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| id | [uint64](#uint64) | | @gotags: sql:"primary_key" alias:"id" | -| created_at | [resources.timestamp.Timestamp](#resources-timestamp-Timestamp) | optional | | -| updated_at | [resources.timestamp.Timestamp](#resources-timestamp-Timestamp) | optional | | +| dispatch_id | [uint64](#uint64) | | | | job | [string](#string) | | | -| name | [string](#string) | | @sanitize | -| initials | [string](#string) | | @sanitize | -| color | [string](#string) | | @sanitize: method=StripTags | -| description | [string](#string) | optional | @sanitize | -| status | [UnitStatus](#resources-centrum-UnitStatus) | optional | | -| users | [UnitAssignment](#resources-centrum-UnitAssignment) | repeated | | -| attributes | [Attributes](#resources-centrum-Attributes) | optional | | -| home_postal | [string](#string) | optional | | -| access | [UnitAccess](#resources-centrum-UnitAccess) | | | +| units | [DispatchAssignment](#resources-centrum-DispatchAssignment) | repeated | | - + -### UnitAssignment +### DispatchReference | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| unit_id | [uint64](#uint64) | | @gotags: sql:"primary_key" alias:"unit_id" | -| user_id | [int32](#int32) | | @gotags: sql:"primary_key" alias:"user_id" | -| user | [resources.jobs.Colleague](#resources-jobs-Colleague) | optional | | +| target_dispatch_id | [uint64](#uint64) | | | +| reference_type | [DispatchReferenceType](#resources-centrum-DispatchReferenceType) | | | - + -### UnitAssignments +### DispatchReferences | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| unit_id | [uint64](#uint64) | | | -| job | [string](#string) | | | -| users | [UnitAssignment](#resources-centrum-UnitAssignment) | repeated | | +| references | [DispatchReference](#resources-centrum-DispatchReference) | repeated | | - + -### UnitStatus +### DispatchStatus @@ -1513,9 +1475,10 @@ | ----- | ---- | ----- | ----------- | | id | [uint64](#uint64) | | @gotags: sql:"primary_key" alias:"id" | | created_at | [resources.timestamp.Timestamp](#resources-timestamp-Timestamp) | optional | | -| unit_id | [uint64](#uint64) | | | +| dispatch_id | [uint64](#uint64) | | | +| unit_id | [uint64](#uint64) | optional | | | unit | [Unit](#resources-centrum-Unit) | optional | | -| status | [StatusUnit](#resources-centrum-StatusUnit) | | | +| status | [StatusDispatch](#resources-centrum-StatusDispatch) | | | | reason | [string](#string) | optional | @sanitize | | code | [string](#string) | optional | @sanitize | | user_id | [int32](#int32) | optional | | @@ -1523,8 +1486,6 @@ | x | [double](#double) | optional | | | y | [double](#double) | optional | | | postal | [string](#string) | optional | @sanitize | -| creator_id | [int32](#int32) | optional | | -| creator | [resources.jobs.Colleague](#resources-jobs-Colleague) | optional | | @@ -1533,98 +1494,115 @@ - + -### StatusUnit +### DispatchReferenceType | Name | Number | Description | | ---- | ------ | ----------- | -| STATUS_UNIT_UNSPECIFIED | 0 | | -| STATUS_UNIT_UNKNOWN | 1 | | -| STATUS_UNIT_USER_ADDED | 2 | | -| STATUS_UNIT_USER_REMOVED | 3 | | -| STATUS_UNIT_UNAVAILABLE | 4 | | -| STATUS_UNIT_AVAILABLE | 5 | | -| STATUS_UNIT_ON_BREAK | 6 | | -| STATUS_UNIT_BUSY | 7 | | +| DISPATCH_REFERENCE_TYPE_UNSPECIFIED | 0 | | +| DISPATCH_REFERENCE_TYPE_REFERENCED | 1 | | +| DISPATCH_REFERENCE_TYPE_DUPLICATED_BY | 2 | | +| DISPATCH_REFERENCE_TYPE_DUPLICATE_OF | 3 | | - - + - +### StatusDispatch +| Name | Number | Description | +| ---- | ------ | ----------- | +| STATUS_DISPATCH_UNSPECIFIED | 0 | | +| STATUS_DISPATCH_NEW | 1 | | +| STATUS_DISPATCH_UNASSIGNED | 2 | | +| STATUS_DISPATCH_UPDATED | 3 | | +| STATUS_DISPATCH_UNIT_ASSIGNED | 4 | | +| STATUS_DISPATCH_UNIT_UNASSIGNED | 5 | | +| STATUS_DISPATCH_UNIT_ACCEPTED | 6 | | +| STATUS_DISPATCH_UNIT_DECLINED | 7 | | +| STATUS_DISPATCH_EN_ROUTE | 8 | | +| STATUS_DISPATCH_ON_SCENE | 9 | | +| STATUS_DISPATCH_NEED_ASSISTANCE | 10 | | +| STATUS_DISPATCH_COMPLETED | 11 | | +| STATUS_DISPATCH_CANCELLED | 12 | | +| STATUS_DISPATCH_ARCHIVED | 13 | | - - -## resources/common/database/database.proto + +### TakeDispatchResp - -### DateRange +| Name | Number | Description | +| ---- | ------ | ----------- | +| TAKE_DISPATCH_RESP_UNSPECIFIED | 0 | | +| TAKE_DISPATCH_RESP_TIMEOUT | 1 | | +| TAKE_DISPATCH_RESP_ACCEPTED | 2 | | +| TAKE_DISPATCH_RESP_DECLINED | 3 | | + -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| start | [resources.timestamp.Timestamp](#resources-timestamp-Timestamp) | | | -| end | [resources.timestamp.Timestamp](#resources-timestamp-Timestamp) | | | + + + + +## resources/centrum/general.proto - -### PaginationRequest + + + +### Attributes | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| offset | [int64](#int64) | | | -| page_size | [int64](#int64) | optional | | +| list | [string](#string) | repeated | @sanitize: method=StripTags | - + -### PaginationResponse +### Disponents | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| total_count | [int64](#int64) | | | -| offset | [int64](#int64) | | | -| end | [int64](#int64) | | | -| page_size | [int64](#int64) | | | +| job | [string](#string) | | | +| disponents | [resources.jobs.Colleague](#resources-jobs-Colleague) | repeated | | - + -### Sort +### UserUnitMapping | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| column | [string](#string) | | | -| direction | [string](#string) | | | +| unit_id | [uint64](#uint64) | | | +| job | [string](#string) | | | +| user_id | [int32](#int32) | | | +| created_at | [resources.timestamp.Timestamp](#resources-timestamp-Timestamp) | | | @@ -1640,166 +1618,204 @@ - + -## resources/common/grpcws/grpcws.proto +## resources/centrum/settings.proto - + -### Body +### PredefinedStatus | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| data | [bytes](#bytes) | | | -| complete | [bool](#bool) | | | +| unit_status | [string](#string) | repeated | @sanitize: method=StripTags | +| dispatch_status | [string](#string) | repeated | @sanitize: method=StripTags | - + -### Cancel +### Settings +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| job | [string](#string) | | | +| enabled | [bool](#bool) | | | +| mode | [CentrumMode](#resources-centrum-CentrumMode) | | | +| fallback_mode | [CentrumMode](#resources-centrum-CentrumMode) | | | +| predefined_status | [PredefinedStatus](#resources-centrum-PredefinedStatus) | optional | | +| timings | [Timings](#resources-centrum-Timings) | | | - -### Complete + +### Timings +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| dispatch_max_wait | [int64](#int64) | | | +| require_unit | [bool](#bool) | | | +| require_unit_reminder_seconds | [int64](#int64) | | | - -### Failure - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| error_message | [string](#string) | | | -| error_status | [string](#string) | | | -| headers | [Failure.HeadersEntry](#resources-common-grpcws-Failure-HeadersEntry) | repeated | | + + +### CentrumMode +| Name | Number | Description | +| ---- | ------ | ----------- | +| CENTRUM_MODE_UNSPECIFIED | 0 | | +| CENTRUM_MODE_MANUAL | 1 | | +| CENTRUM_MODE_CENTRAL_COMMAND | 2 | | +| CENTRUM_MODE_AUTO_ROUND_ROBIN | 3 | | +| CENTRUM_MODE_SIMPLIFIED | 4 | | - -### Failure.HeadersEntry + + + -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| key | [string](#string) | | | -| value | [HeaderValue](#resources-common-grpcws-HeaderValue) | | | + + +## resources/centrum/units.proto - + -### GrpcFrame +### Unit | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| streamId | [uint32](#uint32) | | | -| ping | [Ping](#resources-common-grpcws-Ping) | | | -| header | [Header](#resources-common-grpcws-Header) | | | -| body | [Body](#resources-common-grpcws-Body) | | | -| complete | [Complete](#resources-common-grpcws-Complete) | | | -| failure | [Failure](#resources-common-grpcws-Failure) | | | -| cancel | [Cancel](#resources-common-grpcws-Cancel) | | | +| id | [uint64](#uint64) | | @gotags: sql:"primary_key" alias:"id" | +| created_at | [resources.timestamp.Timestamp](#resources-timestamp-Timestamp) | optional | | +| updated_at | [resources.timestamp.Timestamp](#resources-timestamp-Timestamp) | optional | | +| job | [string](#string) | | | +| name | [string](#string) | | @sanitize | +| initials | [string](#string) | | @sanitize | +| color | [string](#string) | | @sanitize: method=StripTags | +| description | [string](#string) | optional | @sanitize | +| status | [UnitStatus](#resources-centrum-UnitStatus) | optional | | +| users | [UnitAssignment](#resources-centrum-UnitAssignment) | repeated | | +| attributes | [Attributes](#resources-centrum-Attributes) | optional | | +| home_postal | [string](#string) | optional | | +| access | [UnitAccess](#resources-centrum-UnitAccess) | | | - + -### Header +### UnitAssignment | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| operation | [string](#string) | | | -| headers | [Header.HeadersEntry](#resources-common-grpcws-Header-HeadersEntry) | repeated | | -| status | [int32](#int32) | | | +| unit_id | [uint64](#uint64) | | @gotags: sql:"primary_key" alias:"unit_id" | +| user_id | [int32](#int32) | | @gotags: sql:"primary_key" alias:"user_id" | +| user | [resources.jobs.Colleague](#resources-jobs-Colleague) | optional | | - + -### Header.HeadersEntry +### UnitAssignments | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| key | [string](#string) | | | -| value | [HeaderValue](#resources-common-grpcws-HeaderValue) | | | +| unit_id | [uint64](#uint64) | | | +| job | [string](#string) | | | +| users | [UnitAssignment](#resources-centrum-UnitAssignment) | repeated | | - + -### HeaderValue +### UnitStatus | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| value | [string](#string) | repeated | | - - - - +| id | [uint64](#uint64) | | @gotags: sql:"primary_key" alias:"id" | +| created_at | [resources.timestamp.Timestamp](#resources-timestamp-Timestamp) | optional | | +| unit_id | [uint64](#uint64) | | | +| unit | [Unit](#resources-centrum-Unit) | optional | | +| status | [StatusUnit](#resources-centrum-StatusUnit) | | | +| reason | [string](#string) | optional | @sanitize | +| code | [string](#string) | optional | @sanitize | +| user_id | [int32](#int32) | optional | | +| user | [resources.jobs.Colleague](#resources-jobs-Colleague) | optional | | +| x | [double](#double) | optional | | +| y | [double](#double) | optional | | +| postal | [string](#string) | optional | @sanitize | +| creator_id | [int32](#int32) | optional | | +| creator | [resources.jobs.Colleague](#resources-jobs-Colleague) | optional | | - -### Ping + -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| pong | [bool](#bool) | | | + +### StatusUnit +| Name | Number | Description | +| ---- | ------ | ----------- | +| STATUS_UNIT_UNSPECIFIED | 0 | | +| STATUS_UNIT_UNKNOWN | 1 | | +| STATUS_UNIT_USER_ADDED | 2 | | +| STATUS_UNIT_USER_REMOVED | 3 | | +| STATUS_UNIT_UNAVAILABLE | 4 | | +| STATUS_UNIT_AVAILABLE | 5 | | +| STATUS_UNIT_ON_BREAK | 6 | | +| STATUS_UNIT_BUSY | 7 | | - @@ -1809,260 +1825,249 @@ - + -## resources/common/cron/cron.proto +## resources/common/database/database.proto - + -### Cronjob +### DateRange | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| name | [string](#string) | | | -| schedule | [string](#string) | | | -| state | [CronjobState](#resources-common-cron-CronjobState) | | | -| next_schedule_time | [resources.timestamp.Timestamp](#resources-timestamp-Timestamp) | | | -| last_attempt_time | [resources.timestamp.Timestamp](#resources-timestamp-Timestamp) | optional | | -| started_time | [resources.timestamp.Timestamp](#resources-timestamp-Timestamp) | optional | | -| timeout | [google.protobuf.Duration](#google-protobuf-Duration) | optional | | -| data | [CronjobData](#resources-common-cron-CronjobData) | | | +| start | [resources.timestamp.Timestamp](#resources-timestamp-Timestamp) | | | +| end | [resources.timestamp.Timestamp](#resources-timestamp-Timestamp) | | | - + -### CronjobCompletedEvent +### PaginationRequest | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| name | [string](#string) | | | -| sucess | [bool](#bool) | | | -| endDate | [resources.timestamp.Timestamp](#resources-timestamp-Timestamp) | | | -| elapsed | [google.protobuf.Duration](#google-protobuf-Duration) | | | -| data | [CronjobData](#resources-common-cron-CronjobData) | optional | | +| offset | [int64](#int64) | | | +| page_size | [int64](#int64) | optional | | - + -### CronjobData +### PaginationResponse | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| updated_at | [resources.timestamp.Timestamp](#resources-timestamp-Timestamp) | | | -| data | [google.protobuf.Any](#google-protobuf-Any) | optional | | +| total_count | [int64](#int64) | | | +| offset | [int64](#int64) | | | +| end | [int64](#int64) | | | +| page_size | [int64](#int64) | | | - + -### CronjobLockOwnerState +### Sort | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| hostname | [string](#string) | | | -| updated_at | [resources.timestamp.Timestamp](#resources-timestamp-Timestamp) | | | - +| column | [string](#string) | | | +| direction | [string](#string) | | | - + -### CronjobSchedulerEvent + + + -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| cronjob | [Cronjob](#resources-common-cron-Cronjob) | | | + + +## resources/common/grpcws/grpcws.proto - + -### GenericCronData +### Body | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| attributes | [GenericCronData.AttributesEntry](#resources-common-cron-GenericCronData-AttributesEntry) | repeated | @sanitize: method=StripTags | +| data | [bytes](#bytes) | | | +| complete | [bool](#bool) | | | - + -### GenericCronData.AttributesEntry +### Cancel -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| key | [string](#string) | | | -| value | [string](#string) | | | + - +### Complete - -### CronjobState -| Name | Number | Description | -| ---- | ------ | ----------- | -| CRONJOB_STATE_UNSPECIFIED | 0 | | -| CRONJOB_STATE_WAITING | 1 | | -| CRONJOB_STATE_PENDING | 2 | | -| CRONJOB_STATE_RUNNING | 3 | | - + + +### Failure - - +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| error_message | [string](#string) | | | +| error_status | [string](#string) | | | +| headers | [Failure.HeadersEntry](#resources-common-grpcws-Failure-HeadersEntry) | repeated | | - - -## resources/common/uuid.proto - + -### UUID +### Failure.HeadersEntry | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| uuid | [string](#string) | | | +| key | [string](#string) | | | +| value | [HeaderValue](#resources-common-grpcws-HeaderValue) | | | - - + - +### GrpcFrame - +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| streamId | [uint32](#uint32) | | | +| ping | [Ping](#resources-common-grpcws-Ping) | | | +| header | [Header](#resources-common-grpcws-Header) | | | +| body | [Body](#resources-common-grpcws-Body) | | | +| complete | [Complete](#resources-common-grpcws-Complete) | | | +| failure | [Failure](#resources-common-grpcws-Failure) | | | +| cancel | [Cancel](#resources-common-grpcws-Cancel) | | | - - -## resources/common/content/content.proto - -### Content + + +### Header | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| version | [string](#string) | optional | | -| content | [JSONNode](#resources-common-content-JSONNode) | optional | | -| raw_content | [string](#string) | optional | @sanitize | +| operation | [string](#string) | | | +| headers | [Header.HeadersEntry](#resources-common-grpcws-Header-HeadersEntry) | repeated | | +| status | [int32](#int32) | | | - + -### JSONNode +### Header.HeadersEntry | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| type | [string](#string) | | @sanitize: method=StripTags | -| id | [string](#string) | | @sanitize: method=StripTags | -| tag | [string](#string) | | @sanitize: method=StripTags | -| attrs | [JSONNode.AttrsEntry](#resources-common-content-JSONNode-AttrsEntry) | repeated | @sanitize: method=StripTags | -| text | [string](#string) | | @sanitize: method=StripTags | -| content | [JSONNode](#resources-common-content-JSONNode) | repeated | | +| key | [string](#string) | | | +| value | [HeaderValue](#resources-common-grpcws-HeaderValue) | | | - + -### JSONNode.AttrsEntry +### HeaderValue | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| key | [string](#string) | | | -| value | [string](#string) | | | +| value | [string](#string) | repeated | | - + - +### Ping -### ContentType -| Name | Number | Description | -| ---- | ------ | ----------- | -| CONTENT_TYPE_UNSPECIFIED | 0 | | -| CONTENT_TYPE_HTML | 1 | | -| CONTENT_TYPE_PLAIN | 2 | | +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| pong | [bool](#bool) | | | + + + + + @@ -2071,64 +2076,119 @@ - + -## resources/common/error.proto +## resources/common/cron/cron.proto - + -### Error +### Cronjob | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| title | [TranslateItem](#resources-common-TranslateItem) | optional | | -| content | [TranslateItem](#resources-common-TranslateItem) | | | +| name | [string](#string) | | | +| schedule | [string](#string) | | | +| state | [CronjobState](#resources-common-cron-CronjobState) | | | +| next_schedule_time | [resources.timestamp.Timestamp](#resources-timestamp-Timestamp) | | | +| last_attempt_time | [resources.timestamp.Timestamp](#resources-timestamp-Timestamp) | optional | | +| started_time | [resources.timestamp.Timestamp](#resources-timestamp-Timestamp) | optional | | +| timeout | [google.protobuf.Duration](#google-protobuf-Duration) | optional | | +| data | [CronjobData](#resources-common-cron-CronjobData) | | | - - + - +### CronjobCompletedEvent - +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| name | [string](#string) | | | +| sucess | [bool](#bool) | | | +| endDate | [resources.timestamp.Timestamp](#resources-timestamp-Timestamp) | | | +| elapsed | [google.protobuf.Duration](#google-protobuf-Duration) | | | +| data | [CronjobData](#resources-common-cron-CronjobData) | optional | | - - -## resources/common/i18n.proto - -### TranslateItem + + +### CronjobData | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| key | [string](#string) | | @sanitize: method=StripTags | -| parameters | [TranslateItem.ParametersEntry](#resources-common-TranslateItem-ParametersEntry) | repeated | @sanitize: method=StripTags | +| updated_at | [resources.timestamp.Timestamp](#resources-timestamp-Timestamp) | | | +| data | [google.protobuf.Any](#google-protobuf-Any) | optional | | - + -### TranslateItem.ParametersEntry +### CronjobLockOwnerState + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| hostname | [string](#string) | | | +| updated_at | [resources.timestamp.Timestamp](#resources-timestamp-Timestamp) | | | + + + + + + + + +### CronjobSchedulerEvent + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| cronjob | [Cronjob](#resources-common-cron-Cronjob) | | | + + + + + + + + +### GenericCronData + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| attributes | [GenericCronData.AttributesEntry](#resources-common-cron-GenericCronData-AttributesEntry) | repeated | @sanitize: method=StripTags | + + + + + + + + +### GenericCronData.AttributesEntry @@ -2143,6 +2203,20 @@ + + + +### CronjobState + + +| Name | Number | Description | +| ---- | ------ | ----------- | +| CRONJOB_STATE_UNSPECIFIED | 0 | | +| CRONJOB_STATE_WAITING | 1 | | +| CRONJOB_STATE_PENDING | 2 | | +| CRONJOB_STATE_RUNNING | 3 | | + + @@ -2151,27 +2225,22 @@ - + -## resources/documents/category.proto +## resources/common/uuid.proto - + -### Category +### UUID | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| id | [uint64](#uint64) | | | -| name | [string](#string) | | @sanitize | -| description | [string](#string) | optional | @sanitize | -| job | [string](#string) | optional | | -| color | [string](#string) | optional | @sanitize: method=StripTags | -| icon | [string](#string) | optional | @sanitize: method=StripTags | +| uuid | [string](#string) | | | @@ -2187,67 +2256,60 @@ - + -## resources/documents/access.proto +## resources/common/content/content.proto - + -### DocumentAccess +### Content | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| jobs | [DocumentJobAccess](#resources-documents-DocumentJobAccess) | repeated | @gotags: alias:"job_access" | -| users | [DocumentUserAccess](#resources-documents-DocumentUserAccess) | repeated | @gotags: alias:"user_access" | +| version | [string](#string) | optional | | +| content | [JSONNode](#resources-common-content-JSONNode) | optional | | +| raw_content | [string](#string) | optional | @sanitize | - + -### DocumentJobAccess +### JSONNode | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| id | [uint64](#uint64) | | | -| created_at | [resources.timestamp.Timestamp](#resources-timestamp-Timestamp) | optional | | -| target_id | [uint64](#uint64) | | @gotags: alias:"document_id" | -| job | [string](#string) | | | -| job_label | [string](#string) | optional | | -| minimum_grade | [int32](#int32) | | | -| job_grade_label | [string](#string) | optional | | -| access | [AccessLevel](#resources-documents-AccessLevel) | | | -| required | [bool](#bool) | optional | @gotags: alias:"required" | +| type | [string](#string) | | @sanitize: method=StripTags | +| id | [string](#string) | | @sanitize: method=StripTags | +| tag | [string](#string) | | @sanitize: method=StripTags | +| attrs | [JSONNode.AttrsEntry](#resources-common-content-JSONNode-AttrsEntry) | repeated | @sanitize: method=StripTags | +| text | [string](#string) | | @sanitize: method=StripTags | +| content | [JSONNode](#resources-common-content-JSONNode) | repeated | | - + -### DocumentUserAccess +### JSONNode.AttrsEntry | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| id | [uint64](#uint64) | | | -| created_at | [resources.timestamp.Timestamp](#resources-timestamp-Timestamp) | optional | | -| target_id | [uint64](#uint64) | | @gotags: alias:"document_id" | -| user_id | [int32](#int32) | | | -| user | [resources.users.UserShort](#resources-users-UserShort) | optional | | -| access | [AccessLevel](#resources-documents-AccessLevel) | | | -| required | [bool](#bool) | optional | @gotags: alias:"required" | +| key | [string](#string) | | | +| value | [string](#string) | | | @@ -2256,20 +2318,16 @@ - + -### AccessLevel +### ContentType | Name | Number | Description | | ---- | ------ | ----------- | -| ACCESS_LEVEL_UNSPECIFIED | 0 | | -| ACCESS_LEVEL_BLOCKED | 1 | | -| ACCESS_LEVEL_VIEW | 2 | | -| ACCESS_LEVEL_COMMENT | 3 | | -| ACCESS_LEVEL_STATUS | 4 | | -| ACCESS_LEVEL_ACCESS | 5 | | -| ACCESS_LEVEL_EDIT | 6 | | +| CONTENT_TYPE_UNSPECIFIED | 0 | | +| CONTENT_TYPE_HTML | 1 | | +| CONTENT_TYPE_PLAIN | 2 | | @@ -2280,79 +2338,288 @@ - + -## resources/documents/activity.proto +## resources/common/error.proto - + -### DocAccessJobsDiff +### Error | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| to_create | [DocumentJobAccess](#resources-documents-DocumentJobAccess) | repeated | | -| to_update | [DocumentJobAccess](#resources-documents-DocumentJobAccess) | repeated | | -| to_delete | [DocumentJobAccess](#resources-documents-DocumentJobAccess) | repeated | | - +| title | [TranslateItem](#resources-common-TranslateItem) | optional | | +| content | [TranslateItem](#resources-common-TranslateItem) | | | - + -### DocAccessRequested + + + -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| level | [AccessLevel](#resources-documents-AccessLevel) | | | + + +## resources/common/i18n.proto - + -### DocAccessUpdated +### TranslateItem | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| jobs | [DocAccessJobsDiff](#resources-documents-DocAccessJobsDiff) | | | -| users | [DocAccessUsersDiff](#resources-documents-DocAccessUsersDiff) | | | +| key | [string](#string) | | @sanitize: method=StripTags | +| parameters | [TranslateItem.ParametersEntry](#resources-common-TranslateItem-ParametersEntry) | repeated | @sanitize: method=StripTags | - + -### DocAccessUsersDiff +### TranslateItem.ParametersEntry | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| to_create | [DocumentUserAccess](#resources-documents-DocumentUserAccess) | repeated | | -| to_update | [DocumentUserAccess](#resources-documents-DocumentUserAccess) | repeated | | -| to_delete | [DocumentUserAccess](#resources-documents-DocumentUserAccess) | repeated | | +| key | [string](#string) | | | +| value | [string](#string) | | | + - + + + + + + + + + + + +## resources/documents/category.proto + + + + + +### Category + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| id | [uint64](#uint64) | | | +| name | [string](#string) | | @sanitize | +| description | [string](#string) | optional | @sanitize | +| job | [string](#string) | optional | | +| color | [string](#string) | optional | @sanitize: method=StripTags | +| icon | [string](#string) | optional | @sanitize: method=StripTags | + + + + + + + + + + + + + + + + + + +## resources/documents/access.proto + + + + + +### DocumentAccess + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| jobs | [DocumentJobAccess](#resources-documents-DocumentJobAccess) | repeated | @gotags: alias:"job_access" | +| users | [DocumentUserAccess](#resources-documents-DocumentUserAccess) | repeated | @gotags: alias:"user_access" | + + + + + + + + +### DocumentJobAccess + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| id | [uint64](#uint64) | | | +| created_at | [resources.timestamp.Timestamp](#resources-timestamp-Timestamp) | optional | | +| target_id | [uint64](#uint64) | | @gotags: alias:"document_id" | +| job | [string](#string) | | | +| job_label | [string](#string) | optional | | +| minimum_grade | [int32](#int32) | | | +| job_grade_label | [string](#string) | optional | | +| access | [AccessLevel](#resources-documents-AccessLevel) | | | +| required | [bool](#bool) | optional | @gotags: alias:"required" | + + + + + + + + +### DocumentUserAccess + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| id | [uint64](#uint64) | | | +| created_at | [resources.timestamp.Timestamp](#resources-timestamp-Timestamp) | optional | | +| target_id | [uint64](#uint64) | | @gotags: alias:"document_id" | +| user_id | [int32](#int32) | | | +| user | [resources.users.UserShort](#resources-users-UserShort) | optional | | +| access | [AccessLevel](#resources-documents-AccessLevel) | | | +| required | [bool](#bool) | optional | @gotags: alias:"required" | + + + + + + + + + + +### AccessLevel + + +| Name | Number | Description | +| ---- | ------ | ----------- | +| ACCESS_LEVEL_UNSPECIFIED | 0 | | +| ACCESS_LEVEL_BLOCKED | 1 | | +| ACCESS_LEVEL_VIEW | 2 | | +| ACCESS_LEVEL_COMMENT | 3 | | +| ACCESS_LEVEL_STATUS | 4 | | +| ACCESS_LEVEL_ACCESS | 5 | | +| ACCESS_LEVEL_EDIT | 6 | | + + + + + + + + + + + + + +## resources/documents/activity.proto + + + + + +### DocAccessJobsDiff + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| to_create | [DocumentJobAccess](#resources-documents-DocumentJobAccess) | repeated | | +| to_update | [DocumentJobAccess](#resources-documents-DocumentJobAccess) | repeated | | +| to_delete | [DocumentJobAccess](#resources-documents-DocumentJobAccess) | repeated | | + + + + + + + + +### DocAccessRequested + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| level | [AccessLevel](#resources-documents-AccessLevel) | | | + + + + + + + + +### DocAccessUpdated + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| jobs | [DocAccessJobsDiff](#resources-documents-DocAccessJobsDiff) | | | +| users | [DocAccessUsersDiff](#resources-documents-DocAccessUsersDiff) | | | + + + + + + + + +### DocAccessUsersDiff + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| to_create | [DocumentUserAccess](#resources-documents-DocumentUserAccess) | repeated | | +| to_update | [DocumentUserAccess](#resources-documents-DocumentUserAccess) | repeated | | +| to_delete | [DocumentUserAccess](#resources-documents-DocumentUserAccess) | repeated | | + + + + + + + ### DocActivity @@ -3736,64 +4003,81 @@ Dummy - DO NOT USE! - + -## resources/notifications/events.proto +## resources/notifications/notifications.proto - + -### JobEvent +### CalendarData | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| job_props | [resources.users.JobProps](#resources-users-JobProps) | | | +| calendar_id | [uint64](#uint64) | optional | | +| calendar_entry_id | [uint64](#uint64) | optional | | - + -### JobGradeEvent +### Data | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| refresh_token | [bool](#bool) | | | +| link | [Link](#resources-notifications-Link) | optional | | +| caused_by | [resources.users.UserShort](#resources-users-UserShort) | optional | | +| calendar | [CalendarData](#resources-notifications-CalendarData) | optional | | - + -### SystemEvent +### Link +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| to | [string](#string) | | | +| title | [string](#string) | optional | | +| external | [bool](#bool) | optional | | - -### UserEvent + + + +### Notification | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| refresh_token | [bool](#bool) | | | -| notification | [Notification](#resources-notifications-Notification) | | Notifications | -| notifications_read_count | [int32](#int32) | | | +| id | [uint64](#uint64) | | | +| created_at | [resources.timestamp.Timestamp](#resources-timestamp-Timestamp) | | | +| read_at | [resources.timestamp.Timestamp](#resources-timestamp-Timestamp) | | | +| user_id | [int32](#int32) | | | +| title | [resources.common.TranslateItem](#resources-common-TranslateItem) | | @sanitize | +| type | [NotificationType](#resources-notifications-NotificationType) | | | +| content | [resources.common.TranslateItem](#resources-common-TranslateItem) | | @sanitize | +| category | [NotificationCategory](#resources-notifications-NotificationCategory) | | | +| data | [Data](#resources-notifications-Data) | optional | | +| starred | [bool](#bool) | optional | | @@ -3801,124 +4085,107 @@ Dummy - DO NOT USE! - - + - +### NotificationCategory +| Name | Number | Description | +| ---- | ------ | ----------- | +| NOTIFICATION_CATEGORY_UNSPECIFIED | 0 | | +| NOTIFICATION_CATEGORY_GENERAL | 1 | | +| NOTIFICATION_CATEGORY_DOCUMENT | 2 | | +| NOTIFICATION_CATEGORY_CALENDAR | 3 | | - - -## resources/notifications/notifications.proto + +### NotificationType - -### CalendarData +| Name | Number | Description | +| ---- | ------ | ----------- | +| NOTIFICATION_TYPE_UNSPECIFIED | 0 | | +| NOTIFICATION_TYPE_ERROR | 1 | | +| NOTIFICATION_TYPE_WARNING | 2 | | +| NOTIFICATION_TYPE_INFO | 3 | | +| NOTIFICATION_TYPE_SUCCESS | 4 | | + -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| calendar_id | [uint64](#uint64) | optional | | -| calendar_entry_id | [uint64](#uint64) | optional | | + + + + + +## resources/notifications/events.proto + - + -### Data +### JobEvent | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| link | [Link](#resources-notifications-Link) | optional | | -| caused_by | [resources.users.UserShort](#resources-users-UserShort) | optional | | -| calendar | [CalendarData](#resources-notifications-CalendarData) | optional | | +| job_props | [resources.users.JobProps](#resources-users-JobProps) | | | - + -### Link +### JobGradeEvent | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| to | [string](#string) | | | -| title | [string](#string) | optional | | -| external | [bool](#bool) | optional | | - - - - +| refresh_token | [bool](#bool) | | | - -### Notification -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| id | [uint64](#uint64) | | | -| created_at | [resources.timestamp.Timestamp](#resources-timestamp-Timestamp) | | | -| read_at | [resources.timestamp.Timestamp](#resources-timestamp-Timestamp) | | | -| user_id | [int32](#int32) | | | -| title | [resources.common.TranslateItem](#resources-common-TranslateItem) | | @sanitize | -| type | [NotificationType](#resources-notifications-NotificationType) | | | -| content | [resources.common.TranslateItem](#resources-common-TranslateItem) | | @sanitize | -| category | [NotificationCategory](#resources-notifications-NotificationCategory) | | | -| data | [Data](#resources-notifications-Data) | optional | | -| starred | [bool](#bool) | optional | | + +### SystemEvent - - -### NotificationCategory + +### UserEvent -| Name | Number | Description | -| ---- | ------ | ----------- | -| NOTIFICATION_CATEGORY_UNSPECIFIED | 0 | | -| NOTIFICATION_CATEGORY_GENERAL | 1 | | -| NOTIFICATION_CATEGORY_DOCUMENT | 2 | | -| NOTIFICATION_CATEGORY_CALENDAR | 3 | | +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| refresh_token | [bool](#bool) | | | +| notification | [Notification](#resources-notifications-Notification) | | Notifications | +| notifications_read_count | [int32](#int32) | | | - -### NotificationType -| Name | Number | Description | -| ---- | ------ | ----------- | -| NOTIFICATION_TYPE_UNSPECIFIED | 0 | | -| NOTIFICATION_TYPE_ERROR | 1 | | -| NOTIFICATION_TYPE_WARNING | 2 | | -| NOTIFICATION_TYPE_INFO | 3 | | -| NOTIFICATION_TYPE_SUCCESS | 4 | | + @@ -5532,65 +5799,22 @@ Timestamp for storage messages. We've defined a new local type wrapper of google - + -## resources/calendar/access.proto - - - - - -### CalendarAccess - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| jobs | [CalendarJobAccess](#resources-calendar-CalendarJobAccess) | repeated | @gotags: alias:"job_access" | -| users | [CalendarUserAccess](#resources-calendar-CalendarUserAccess) | repeated | @gotags: alias:"user_access" | - - - - - - - - -### CalendarJobAccess - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| id | [uint64](#uint64) | | | -| created_at | [resources.timestamp.Timestamp](#resources-timestamp-Timestamp) | optional | | -| target_id | [uint64](#uint64) | | @gotags: alias:"calendar_id" | -| job | [string](#string) | | | -| job_label | [string](#string) | optional | | -| minimum_grade | [int32](#int32) | | | -| job_grade_label | [string](#string) | optional | | -| access | [AccessLevel](#resources-calendar-AccessLevel) | | | - - - +## resources/stats/stats.proto - + -### CalendarUserAccess +### Stat | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| id | [uint64](#uint64) | | | -| created_at | [resources.timestamp.Timestamp](#resources-timestamp-Timestamp) | optional | | -| target_id | [uint64](#uint64) | | @gotags: alias:"calendar_id" | -| user_id | [int32](#int32) | | | -| user | [resources.users.UserShort](#resources-users-UserShort) | optional | | -| access | [AccessLevel](#resources-calendar-AccessLevel) | | | +| value | [int32](#int32) | optional | | @@ -5598,22 +5822,6 @@ Timestamp for storage messages. We've defined a new local type wrapper of google - - - -### AccessLevel - - -| Name | Number | Description | -| ---- | ------ | ----------- | -| ACCESS_LEVEL_UNSPECIFIED | 0 | | -| ACCESS_LEVEL_BLOCKED | 1 | | -| ACCESS_LEVEL_VIEW | 2 | | -| ACCESS_LEVEL_SHARE | 3 | | -| ACCESS_LEVEL_EDIT | 4 | | -| ACCESS_LEVEL_MANAGE | 5 | | - - @@ -5622,287 +5830,204 @@ Timestamp for storage messages. We've defined a new local type wrapper of google - + -## resources/calendar/calendar.proto +## resources/wiki/access.proto - + -### Calendar +### PageAccess | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| id | [uint64](#uint64) | | @gotags: sql:"primary_key" alias:"id" | -| created_at | [resources.timestamp.Timestamp](#resources-timestamp-Timestamp) | optional | | -| updated_at | [resources.timestamp.Timestamp](#resources-timestamp-Timestamp) | optional | | -| deleted_at | [resources.timestamp.Timestamp](#resources-timestamp-Timestamp) | optional | | -| job | [string](#string) | optional | | -| name | [string](#string) | | @sanitize: method=StripTags | -| description | [string](#string) | optional | @sanitize: method=StripTags | -| public | [bool](#bool) | | | -| closed | [bool](#bool) | | | -| color | [string](#string) | | @sanitize: method=StripTags | -| creator_id | [int32](#int32) | optional | | -| creator | [resources.users.UserShort](#resources-users-UserShort) | optional | @gotags: alias:"creator" | -| creator_job | [string](#string) | | | -| subscription | [CalendarSub](#resources-calendar-CalendarSub) | optional | | -| access | [CalendarAccess](#resources-calendar-CalendarAccess) | | | +| jobs | [PageJobAccess](#resources-wiki-PageJobAccess) | repeated | @gotags: alias:"job_access" | +| users | [PageUserAccess](#resources-wiki-PageUserAccess) | repeated | @gotags: alias:"user_access" | - + -### CalendarEntry +### PageJobAccess | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| id | [uint64](#uint64) | | @gotags: sql:"primary_key" alias:"id" | +| id | [uint64](#uint64) | | | | created_at | [resources.timestamp.Timestamp](#resources-timestamp-Timestamp) | optional | | -| updated_at | [resources.timestamp.Timestamp](#resources-timestamp-Timestamp) | optional | | -| deleted_at | [resources.timestamp.Timestamp](#resources-timestamp-Timestamp) | optional | | -| calendar_id | [uint64](#uint64) | | | -| calendar | [Calendar](#resources-calendar-Calendar) | optional | | -| job | [string](#string) | optional | | -| start_time | [resources.timestamp.Timestamp](#resources-timestamp-Timestamp) | | | -| end_time | [resources.timestamp.Timestamp](#resources-timestamp-Timestamp) | optional | | -| title | [string](#string) | | @sanitize: method=StripTags | -| content | [resources.common.content.Content](#resources-common-content-Content) | | | -| closed | [bool](#bool) | | | -| rsvp_open | [bool](#bool) | optional | | -| creator_id | [int32](#int32) | optional | | -| creator | [resources.users.UserShort](#resources-users-UserShort) | optional | @gotags: alias:"creator" | -| creator_job | [string](#string) | | | -| recurring | [CalendarEntryRecurring](#resources-calendar-CalendarEntryRecurring) | optional | | -| rsvp | [CalendarEntryRSVP](#resources-calendar-CalendarEntryRSVP) | optional | | +| target_id | [uint64](#uint64) | | @gotags: alias:"page_id" | +| job | [string](#string) | | | +| job_label | [string](#string) | optional | | +| minimum_grade | [int32](#int32) | | | +| job_grade_label | [string](#string) | optional | | +| access | [AccessLevel](#resources-wiki-AccessLevel) | | | - + -### CalendarEntryRSVP +### PageUserAccess | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| entry_id | [uint64](#uint64) | | | +| id | [uint64](#uint64) | | | | created_at | [resources.timestamp.Timestamp](#resources-timestamp-Timestamp) | optional | | +| target_id | [uint64](#uint64) | | @gotags: alias:"page_id" | | user_id | [int32](#int32) | | | | user | [resources.users.UserShort](#resources-users-UserShort) | optional | | -| response | [RsvpResponses](#resources-calendar-RsvpResponses) | | | - - - - - +| access | [AccessLevel](#resources-wiki-AccessLevel) | | | - -### CalendarEntryRecurring -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| every | [string](#string) | | | -| count | [int32](#int32) | | | -| until | [resources.timestamp.Timestamp](#resources-timestamp-Timestamp) | optional | | + + +### AccessLevel +| Name | Number | Description | +| ---- | ------ | ----------- | +| ACCESS_LEVEL_UNSPECIFIED | 0 | | +| ACCESS_LEVEL_BLOCKED | 1 | | +| ACCESS_LEVEL_VIEW | 2 | | +| ACCESS_LEVEL_ACCESS | 3 | | +| ACCESS_LEVEL_EDIT | 4 | | +| ACCESS_LEVEL_OWNER | 5 | | - -### CalendarShort + + + -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| id | [uint64](#uint64) | | @gotags: sql:"primary_key" alias:"id" | -| created_at | [resources.timestamp.Timestamp](#resources-timestamp-Timestamp) | optional | | -| name | [string](#string) | | @sanitize: method=StripTags | -| description | [string](#string) | optional | @sanitize: method=StripTags | -| public | [bool](#bool) | | | -| closed | [bool](#bool) | | | -| color | [string](#string) | | @sanitize: method=StripTags | -| subscription | [CalendarSub](#resources-calendar-CalendarSub) | optional | | + + +## resources/wiki/activity.proto - + -### CalendarSub +### PageAccessJobsDiff | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| calendar_id | [uint64](#uint64) | | | -| user_id | [int32](#int32) | | | -| user | [resources.users.UserShort](#resources-users-UserShort) | optional | | -| created_at | [resources.timestamp.Timestamp](#resources-timestamp-Timestamp) | optional | | -| confirmed | [bool](#bool) | | | -| muted | [bool](#bool) | | | - - - - +| to_create | [PageJobAccess](#resources-wiki-PageJobAccess) | repeated | | +| to_update | [PageJobAccess](#resources-wiki-PageJobAccess) | repeated | | +| to_delete | [PageJobAccess](#resources-wiki-PageJobAccess) | repeated | | - - -### RsvpResponses -| Name | Number | Description | -| ---- | ------ | ----------- | -| RSVP_RESPONSES_UNSPECIFIED | 0 | | -| RSVP_RESPONSES_HIDDEN | 1 | | -| RSVP_RESPONSES_INVITED | 2 | | -| RSVP_RESPONSES_NO | 3 | | -| RSVP_RESPONSES_MAYBE | 4 | | -| RSVP_RESPONSES_YES | 5 | | + +### PageAccessUpdated - - - - +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| jobs | [PageAccessJobsDiff](#resources-wiki-PageAccessJobsDiff) | | | +| users | [PageAccessUsersDiff](#resources-wiki-PageAccessUsersDiff) | | | - - -## resources/stats/stats.proto - + -### Stat +### PageAccessUsersDiff | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| value | [int32](#int32) | optional | | - - - - - - - - - - - - - +| to_create | [PageUserAccess](#resources-wiki-PageUserAccess) | repeated | | +| to_update | [PageUserAccess](#resources-wiki-PageUserAccess) | repeated | | +| to_delete | [PageUserAccess](#resources-wiki-PageUserAccess) | repeated | | - - -## resources/internet/ads.proto - + -### Ad +### PageActivity | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| id | [uint64](#uint64) | | @gotags: sql:"primary_key" alias:"id" | +| id | [uint64](#uint64) | | | | created_at | [resources.timestamp.Timestamp](#resources-timestamp-Timestamp) | | | -| updated_at | [resources.timestamp.Timestamp](#resources-timestamp-Timestamp) | optional | | -| deleted_at | [resources.timestamp.Timestamp](#resources-timestamp-Timestamp) | optional | | -| disabled | [bool](#bool) | | | -| ad_type | [AdType](#resources-internet-AdType) | | | -| starts_at | [resources.timestamp.Timestamp](#resources-timestamp-Timestamp) | optional | | -| ends_at | [resources.timestamp.Timestamp](#resources-timestamp-Timestamp) | optional | | -| title | [string](#string) | | @sanitize: method=StripTags | -| description | [string](#string) | | @sanitize: method=StripTags | -| image | [resources.filestore.File](#resources-filestore-File) | optional | | -| approver_id | [int32](#int32) | optional | | -| approver_job | [string](#string) | optional | | +| page_id | [uint64](#uint64) | | | +| activity_type | [PageActivityType](#resources-wiki-PageActivityType) | | | | creator_id | [int32](#int32) | optional | | -| creator_job | [string](#string) | optional | | - - - - +| creator | [resources.users.UserShort](#resources-users-UserShort) | optional | @gotags: alias:"creator" | +| creator_job | [string](#string) | | | +| creator_job_label | [string](#string) | optional | | +| reason | [string](#string) | optional | | +| data | [PageActivityData](#resources-wiki-PageActivityData) | | | - - -### AdType -| Name | Number | Description | -| ---- | ------ | ----------- | -| AD_TYPE_UNSPECIFIED | 0 | | -| AD_TYPE_SPONSORED | 1 | | -| AD_TYPE_SEARCH_RESULT | 2 | | -| AD_TYPE_CONTENT_MAIN | 3 | | -| AD_TYPE_CONTENT_ASIDE | 4 | | + +### PageActivityData - - - - +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| updated | [PageUpdated](#resources-wiki-PageUpdated) | | | +| access_updated | [PageAccessUpdated](#resources-wiki-PageAccessUpdated) | | | - - -## resources/internet/search.proto - + -### SearchResult +### PageUpdated | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| id | [uint64](#uint64) | | | -| title | [string](#string) | | | -| description | [string](#string) | | | -| url | [string](#string) | | | +| title_diff | [string](#string) | optional | | +| description_diff | [string](#string) | optional | | +| content_diff | [string](#string) | optional | | @@ -5910,106 +6035,124 @@ Timestamp for storage messages. We've defined a new local type wrapper of google - - - - - - + - - +### PageActivityType -## resources/internet/domain.proto +| Name | Number | Description | +| ---- | ------ | ----------- | +| PAGE_ACTIVITY_TYPE_UNSPECIFIED | 0 | | +| PAGE_ACTIVITY_TYPE_CREATED | 1 | Base | +| PAGE_ACTIVITY_TYPE_UPDATED | 2 | | +| PAGE_ACTIVITY_TYPE_ACCESS_UPDATED | 3 | | +| PAGE_ACTIVITY_TYPE_OWNER_CHANGED | 4 | | +| PAGE_ACTIVITY_TYPE_DELETED | 5 | | - + -### Domain + + -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| id | [uint64](#uint64) | | | -| created_at | [resources.timestamp.Timestamp](#resources-timestamp-Timestamp) | | | -| updated_at | [resources.timestamp.Timestamp](#resources-timestamp-Timestamp) | optional | | -| deleted_at | [resources.timestamp.Timestamp](#resources-timestamp-Timestamp) | optional | | -| name | [string](#string) | | | -| creator_job | [string](#string) | optional | | -| creator_id | [int32](#int32) | optional | | + + +## resources/wiki/page.proto - + - +### Page - - +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| id | [uint64](#uint64) | | @gotags: sql:"primary_key" alias:"id" | +| job | [string](#string) | | @sanitize: method=StripTags | +| job_label | [string](#string) | optional | | +| parent_id | [uint64](#uint64) | optional | | +| meta | [PageMeta](#resources-wiki-PageMeta) | | | +| content | [resources.common.content.Content](#resources-common-content-Content) | | | +| access | [PageAccess](#resources-wiki-PageAccess) | | | - - -## resources/internet/page.proto - + -### Page +### PageMeta | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| id | [uint64](#uint64) | | | | created_at | [resources.timestamp.Timestamp](#resources-timestamp-Timestamp) | | | | updated_at | [resources.timestamp.Timestamp](#resources-timestamp-Timestamp) | optional | | | deleted_at | [resources.timestamp.Timestamp](#resources-timestamp-Timestamp) | optional | | -| domain_id | [uint64](#uint64) | | | -| path | [string](#string) | | @sanitize: method=StripTags | -| title | [string](#string) | | @sanitize: method=StripTags | +| slug | [string](#string) | optional | @sanitize: method=StripTags | +| title | [string](#string) | | @sanitize | | description | [string](#string) | | @sanitize: method=StripTags | -| data | [PageData](#resources-internet-PageData) | | | -| creator_job | [string](#string) | optional | | | creator_id | [int32](#int32) | optional | | +| creator | [resources.users.UserShort](#resources-users-UserShort) | optional | @gotags: alias:"creator" | +| content_type | [resources.common.content.ContentType](#resources-common-content-ContentType) | | | +| tags | [string](#string) | repeated | @sanitize: method=StripTags | +| toc | [bool](#bool) | optional | | +| public | [bool](#bool) | | | - + -### PageData -TODO +### PageRootInfo +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| logo | [resources.filestore.File](#resources-filestore-File) | optional | | - - -### PageLayoutType + + + +### PageShort + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| id | [uint64](#uint64) | | @gotags: sql:"primary_key" alias:"id" | +| job | [string](#string) | | | +| job_label | [string](#string) | optional | | +| parent_id | [uint64](#uint64) | optional | | +| deleted_at | [resources.timestamp.Timestamp](#resources-timestamp-Timestamp) | optional | | +| slug | [string](#string) | optional | @sanitize: method=StripTags | +| title | [string](#string) | | | +| description | [string](#string) | | | +| children | [PageShort](#resources-wiki-PageShort) | repeated | | +| root_info | [PageRootInfo](#resources-wiki-PageRootInfo) | optional | | + -| Name | Number | Description | -| ---- | ------ | ----------- | -| PAGE_LAYOUT_TYPE_UNSPECIFIED | 0 | | -| PAGE_LAYOUT_TYPE_ | 1 | | + + @@ -6407,228 +6550,60 @@ TODO add way to link to, e.g., internal "objects" (citizens, documents, calendar | Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| thread_id | [uint64](#uint64) | | | -| email_id | [uint64](#uint64) | | | -| last_read | [resources.timestamp.Timestamp](#resources-timestamp-Timestamp) | optional | | -| unread | [bool](#bool) | optional | | -| important | [bool](#bool) | optional | | -| favorite | [bool](#bool) | optional | | -| muted | [bool](#bool) | optional | | -| archived | [bool](#bool) | optional | | - - - - - - - - - - - - - - - - - - -## resources/wiki/access.proto - - - - - -### PageAccess - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| jobs | [PageJobAccess](#resources-wiki-PageJobAccess) | repeated | @gotags: alias:"job_access" | -| users | [PageUserAccess](#resources-wiki-PageUserAccess) | repeated | @gotags: alias:"user_access" | - - - - - - - - -### PageJobAccess - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| id | [uint64](#uint64) | | | -| created_at | [resources.timestamp.Timestamp](#resources-timestamp-Timestamp) | optional | | -| target_id | [uint64](#uint64) | | @gotags: alias:"page_id" | -| job | [string](#string) | | | -| job_label | [string](#string) | optional | | -| minimum_grade | [int32](#int32) | | | -| job_grade_label | [string](#string) | optional | | -| access | [AccessLevel](#resources-wiki-AccessLevel) | | | - - - - - - - - -### PageUserAccess - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| id | [uint64](#uint64) | | | -| created_at | [resources.timestamp.Timestamp](#resources-timestamp-Timestamp) | optional | | -| target_id | [uint64](#uint64) | | @gotags: alias:"page_id" | -| user_id | [int32](#int32) | | | -| user | [resources.users.UserShort](#resources-users-UserShort) | optional | | -| access | [AccessLevel](#resources-wiki-AccessLevel) | | | - - - - - - - - - - -### AccessLevel - - -| Name | Number | Description | -| ---- | ------ | ----------- | -| ACCESS_LEVEL_UNSPECIFIED | 0 | | -| ACCESS_LEVEL_BLOCKED | 1 | | -| ACCESS_LEVEL_VIEW | 2 | | -| ACCESS_LEVEL_ACCESS | 3 | | -| ACCESS_LEVEL_EDIT | 4 | | -| ACCESS_LEVEL_OWNER | 5 | | - - - - - - - - - - - - - -## resources/wiki/activity.proto - - - - - -### PageAccessJobsDiff - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| to_create | [PageJobAccess](#resources-wiki-PageJobAccess) | repeated | | -| to_update | [PageJobAccess](#resources-wiki-PageJobAccess) | repeated | | -| to_delete | [PageJobAccess](#resources-wiki-PageJobAccess) | repeated | | - - - - - - - - -### PageAccessUpdated - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| jobs | [PageAccessJobsDiff](#resources-wiki-PageAccessJobsDiff) | | | -| users | [PageAccessUsersDiff](#resources-wiki-PageAccessUsersDiff) | | | - - - - - - - - -### PageAccessUsersDiff - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| to_create | [PageUserAccess](#resources-wiki-PageUserAccess) | repeated | | -| to_update | [PageUserAccess](#resources-wiki-PageUserAccess) | repeated | | -| to_delete | [PageUserAccess](#resources-wiki-PageUserAccess) | repeated | | - - - - - - - - -### PageActivity - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| id | [uint64](#uint64) | | | -| created_at | [resources.timestamp.Timestamp](#resources-timestamp-Timestamp) | | | -| page_id | [uint64](#uint64) | | | -| activity_type | [PageActivityType](#resources-wiki-PageActivityType) | | | -| creator_id | [int32](#int32) | optional | | -| creator | [resources.users.UserShort](#resources-users-UserShort) | optional | @gotags: alias:"creator" | -| creator_job | [string](#string) | | | -| creator_job_label | [string](#string) | optional | | -| reason | [string](#string) | optional | | -| data | [PageActivityData](#resources-wiki-PageActivityData) | | | - +| ----- | ---- | ----- | ----------- | +| thread_id | [uint64](#uint64) | | | +| email_id | [uint64](#uint64) | | | +| last_read | [resources.timestamp.Timestamp](#resources-timestamp-Timestamp) | optional | | +| unread | [bool](#bool) | optional | | +| important | [bool](#bool) | optional | | +| favorite | [bool](#bool) | optional | | +| muted | [bool](#bool) | optional | | +| archived | [bool](#bool) | optional | | - + -### PageActivityData + + + -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| updated | [PageUpdated](#resources-wiki-PageUpdated) | | | -| access_updated | [PageAccessUpdated](#resources-wiki-PageAccessUpdated) | | | + + +## resources/internet/ads.proto - + -### PageUpdated +### Ad | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| title_diff | [string](#string) | optional | | -| description_diff | [string](#string) | optional | | -| content_diff | [string](#string) | optional | | +| id | [uint64](#uint64) | | @gotags: sql:"primary_key" alias:"id" | +| created_at | [resources.timestamp.Timestamp](#resources-timestamp-Timestamp) | | | +| updated_at | [resources.timestamp.Timestamp](#resources-timestamp-Timestamp) | optional | | +| deleted_at | [resources.timestamp.Timestamp](#resources-timestamp-Timestamp) | optional | | +| disabled | [bool](#bool) | | | +| ad_type | [AdType](#resources-internet-AdType) | | | +| starts_at | [resources.timestamp.Timestamp](#resources-timestamp-Timestamp) | optional | | +| ends_at | [resources.timestamp.Timestamp](#resources-timestamp-Timestamp) | optional | | +| title | [string](#string) | | @sanitize: method=StripTags | +| description | [string](#string) | | @sanitize: method=StripTags | +| image | [resources.filestore.File](#resources-filestore-File) | optional | | +| approver_id | [int32](#int32) | optional | | +| approver_job | [string](#string) | optional | | +| creator_id | [int32](#int32) | optional | | +| creator_job | [string](#string) | optional | | @@ -6637,19 +6612,18 @@ TODO add way to link to, e.g., internal "objects" (citizens, documents, calendar - + -### PageActivityType +### AdType | Name | Number | Description | | ---- | ------ | ----------- | -| PAGE_ACTIVITY_TYPE_UNSPECIFIED | 0 | | -| PAGE_ACTIVITY_TYPE_CREATED | 1 | Base | -| PAGE_ACTIVITY_TYPE_UPDATED | 2 | | -| PAGE_ACTIVITY_TYPE_ACCESS_UPDATED | 3 | | -| PAGE_ACTIVITY_TYPE_OWNER_CHANGED | 4 | | -| PAGE_ACTIVITY_TYPE_DELETED | 5 | | +| AD_TYPE_UNSPECIFIED | 0 | | +| AD_TYPE_SPONSORED | 1 | | +| AD_TYPE_SEARCH_RESULT | 2 | | +| AD_TYPE_CONTENT_MAIN | 3 | | +| AD_TYPE_CONTENT_ASIDE | 4 | | @@ -6660,93 +6634,113 @@ TODO add way to link to, e.g., internal "objects" (citizens, documents, calendar - + -## resources/wiki/page.proto +## resources/internet/search.proto - + -### Page +### SearchResult | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| id | [uint64](#uint64) | | @gotags: sql:"primary_key" alias:"id" | -| job | [string](#string) | | @sanitize: method=StripTags | -| job_label | [string](#string) | optional | | -| parent_id | [uint64](#uint64) | optional | | -| meta | [PageMeta](#resources-wiki-PageMeta) | | | -| content | [resources.common.content.Content](#resources-common-content-Content) | | | -| access | [PageAccess](#resources-wiki-PageAccess) | | | +| id | [uint64](#uint64) | | | +| title | [string](#string) | | | +| description | [string](#string) | | | +| url | [string](#string) | | | + - + -### PageMeta + + + + + + + + + +## resources/internet/domain.proto + + + + + +### Domain | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | +| id | [uint64](#uint64) | | | | created_at | [resources.timestamp.Timestamp](#resources-timestamp-Timestamp) | | | | updated_at | [resources.timestamp.Timestamp](#resources-timestamp-Timestamp) | optional | | | deleted_at | [resources.timestamp.Timestamp](#resources-timestamp-Timestamp) | optional | | -| slug | [string](#string) | optional | @sanitize: method=StripTags | -| title | [string](#string) | | @sanitize | -| description | [string](#string) | | @sanitize: method=StripTags | +| name | [string](#string) | | | +| creator_job | [string](#string) | optional | | | creator_id | [int32](#int32) | optional | | -| creator | [resources.users.UserShort](#resources-users-UserShort) | optional | @gotags: alias:"creator" | -| content_type | [resources.common.content.ContentType](#resources-common-content-ContentType) | | | -| tags | [string](#string) | repeated | @sanitize: method=StripTags | -| toc | [bool](#bool) | optional | | -| public | [bool](#bool) | | | - - + -### PageRootInfo + + + -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| logo | [resources.filestore.File](#resources-filestore-File) | optional | | + + +## resources/internet/page.proto - + -### PageShort +### Page | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| id | [uint64](#uint64) | | @gotags: sql:"primary_key" alias:"id" | -| job | [string](#string) | | | -| job_label | [string](#string) | optional | | -| parent_id | [uint64](#uint64) | optional | | +| id | [uint64](#uint64) | | | +| created_at | [resources.timestamp.Timestamp](#resources-timestamp-Timestamp) | | | +| updated_at | [resources.timestamp.Timestamp](#resources-timestamp-Timestamp) | optional | | | deleted_at | [resources.timestamp.Timestamp](#resources-timestamp-Timestamp) | optional | | -| slug | [string](#string) | optional | @sanitize: method=StripTags | -| title | [string](#string) | | | -| description | [string](#string) | | | -| children | [PageShort](#resources-wiki-PageShort) | repeated | | -| root_info | [PageRootInfo](#resources-wiki-PageRootInfo) | optional | | +| domain_id | [uint64](#uint64) | | | +| path | [string](#string) | | @sanitize: method=StripTags | +| title | [string](#string) | | @sanitize: method=StripTags | +| description | [string](#string) | | @sanitize: method=StripTags | +| data | [PageData](#resources-internet-PageData) | | | +| creator_job | [string](#string) | optional | | +| creator_id | [int32](#int32) | optional | | + + + + + + + + +### PageData +TODO @@ -6754,6 +6748,18 @@ TODO add way to link to, e.g., internal "objects" (citizens, documents, calendar + + + +### PageLayoutType + + +| Name | Number | Description | +| ---- | ------ | ----------- | +| PAGE_LAYOUT_TYPE_UNSPECIFIED | 0 | | +| PAGE_LAYOUT_TYPE_ | 1 | | + + @@ -7120,34 +7126,117 @@ TODO add way to link to, e.g., internal "objects" (citizens, documents, calendar - - + + + +## services/calendar/calendar.proto + + + + + +### CreateOrUpdateCalendarEntryRequest + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| entry | [resources.calendar.CalendarEntry](#resources-calendar-CalendarEntry) | | | +| user_ids | [int32](#int32) | repeated | | + + + + + + + + +### CreateOrUpdateCalendarEntryResponse + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| entry | [resources.calendar.CalendarEntry](#resources-calendar-CalendarEntry) | | | + + + + + + + + +### CreateOrUpdateCalendarRequest + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| calendar | [resources.calendar.Calendar](#resources-calendar-Calendar) | | | + + + + + + + + +### CreateOrUpdateCalendarResponse + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| calendar | [resources.calendar.Calendar](#resources-calendar-Calendar) | | | + + + + + + + + +### DeleteCalendarEntryRequest + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| entry_id | [uint64](#uint64) | | | + + + + + + + + +### DeleteCalendarEntryResponse + + + -## services/centrum/centrum.proto - + -### AssignDispatchRequest +### DeleteCalendarRequest | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| dispatch_id | [uint64](#uint64) | | | -| to_add | [uint64](#uint64) | repeated | | -| to_remove | [uint64](#uint64) | repeated | | -| forced | [bool](#bool) | optional | | +| calendar_id | [uint64](#uint64) | | | - + -### AssignDispatchResponse +### DeleteCalendarResponse @@ -7155,430 +7244,488 @@ TODO add way to link to, e.g., internal "objects" (citizens, documents, calendar - + -### AssignUnitRequest +### GetCalendarEntryRequest | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| unit_id | [uint64](#uint64) | | | -| to_add | [int32](#int32) | repeated | | -| to_remove | [int32](#int32) | repeated | | +| entry_id | [uint64](#uint64) | | | - + -### AssignUnitResponse +### GetCalendarEntryResponse +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| entry | [resources.calendar.CalendarEntry](#resources-calendar-CalendarEntry) | | | - -### CreateDispatchRequest + + + +### GetCalendarRequest | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| dispatch | [resources.centrum.Dispatch](#resources-centrum-Dispatch) | | | +| calendar_id | [uint64](#uint64) | | | - + -### CreateDispatchResponse +### GetCalendarResponse | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| dispatch | [resources.centrum.Dispatch](#resources-centrum-Dispatch) | | | +| calendar | [resources.calendar.Calendar](#resources-calendar-Calendar) | | | - + -### CreateOrUpdateUnitRequest +### GetUpcomingEntriesRequest | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| unit | [resources.centrum.Unit](#resources-centrum-Unit) | | | +| seconds | [int32](#int32) | | | - + -### CreateOrUpdateUnitResponse +### GetUpcomingEntriesResponse | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| unit | [resources.centrum.Unit](#resources-centrum-Unit) | | | +| entries | [resources.calendar.CalendarEntry](#resources-calendar-CalendarEntry) | repeated | | - + -### DeleteDispatchRequest +### ListCalendarEntriesRequest | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| id | [uint64](#uint64) | | | +| year | [int32](#int32) | | | +| month | [int32](#int32) | | | +| calendar_ids | [uint64](#uint64) | repeated | | +| show_hidden | [bool](#bool) | optional | | +| after | [resources.timestamp.Timestamp](#resources-timestamp-Timestamp) | optional | | - + + +### ListCalendarEntriesResponse -### DeleteDispatchResponse +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| entries | [resources.calendar.CalendarEntry](#resources-calendar-CalendarEntry) | repeated | | - -### DeleteUnitRequest + + +### ListCalendarEntryRSVPRequest | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| unit_id | [uint64](#uint64) | | | +| pagination | [resources.common.database.PaginationRequest](#resources-common-database-PaginationRequest) | | | +| entry_id | [uint64](#uint64) | | | - + + +### ListCalendarEntryRSVPResponse -### DeleteUnitResponse +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| pagination | [resources.common.database.PaginationResponse](#resources-common-database-PaginationResponse) | | | +| entries | [resources.calendar.CalendarEntryRSVP](#resources-calendar-CalendarEntryRSVP) | repeated | | - -### GetDispatchRequest + + +### ListCalendarsRequest | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| id | [uint64](#uint64) | | | +| pagination | [resources.common.database.PaginationRequest](#resources-common-database-PaginationRequest) | | | +| only_public | [bool](#bool) | | | +| min_access_level | [resources.calendar.AccessLevel](#resources-calendar-AccessLevel) | optional | | +| after | [resources.timestamp.Timestamp](#resources-timestamp-Timestamp) | optional | | - + -### GetDispatchResponse +### ListCalendarsResponse | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| dispatch | [resources.centrum.Dispatch](#resources-centrum-Dispatch) | | | +| pagination | [resources.common.database.PaginationResponse](#resources-common-database-PaginationResponse) | | | +| calendars | [resources.calendar.Calendar](#resources-calendar-Calendar) | repeated | | - + + +### ListSubscriptionsRequest -### GetSettingsRequest +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| pagination | [resources.common.database.PaginationRequest](#resources-common-database-PaginationRequest) | | | - -### GetSettingsResponse + + +### ListSubscriptionsResponse | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| settings | [resources.centrum.Settings](#resources-centrum-Settings) | | | +| pagination | [resources.common.database.PaginationResponse](#resources-common-database-PaginationResponse) | | | +| subs | [resources.calendar.CalendarSub](#resources-calendar-CalendarSub) | repeated | | - + -### JoinUnitRequest +### RSVPCalendarEntryRequest | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| unit_id | [uint64](#uint64) | optional | | +| entry | [resources.calendar.CalendarEntryRSVP](#resources-calendar-CalendarEntryRSVP) | | | +| subscribe | [bool](#bool) | | | +| remove | [bool](#bool) | optional | | - + -### JoinUnitResponse +### RSVPCalendarEntryResponse | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| unit | [resources.centrum.Unit](#resources-centrum-Unit) | | | +| entry | [resources.calendar.CalendarEntryRSVP](#resources-calendar-CalendarEntryRSVP) | optional | | - + -### LatestState +### ShareCalendarEntryRequest | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| server_time | [resources.timestamp.Timestamp](#resources-timestamp-Timestamp) | | | -| settings | [resources.centrum.Settings](#resources-centrum-Settings) | | | -| disponents | [resources.jobs.Colleague](#resources-jobs-Colleague) | repeated | | -| own_unit_id | [uint64](#uint64) | optional | | -| units | [resources.centrum.Unit](#resources-centrum-Unit) | repeated | Send the current units and dispatches | -| dispatches | [resources.centrum.Dispatch](#resources-centrum-Dispatch) | repeated | | - - +| entry_id | [uint64](#uint64) | | | +| user_ids | [int32](#int32) | repeated | | - -### ListDispatchActivityRequest + +### ShareCalendarEntryResponse -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| pagination | [resources.common.database.PaginationRequest](#resources-common-database-PaginationRequest) | | | -| id | [uint64](#uint64) | | | - + -### ListDispatchActivityResponse +### SubscribeToCalendarRequest | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| pagination | [resources.common.database.PaginationResponse](#resources-common-database-PaginationResponse) | | | -| activity | [resources.centrum.DispatchStatus](#resources-centrum-DispatchStatus) | repeated | | +| sub | [resources.calendar.CalendarSub](#resources-calendar-CalendarSub) | | | +| delete | [bool](#bool) | | | - + -### ListDispatchesRequest +### SubscribeToCalendarResponse | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| pagination | [resources.common.database.PaginationRequest](#resources-common-database-PaginationRequest) | | | -| status | [resources.centrum.StatusDispatch](#resources-centrum-StatusDispatch) | repeated | | -| not_status | [resources.centrum.StatusDispatch](#resources-centrum-StatusDispatch) | repeated | | -| ids | [uint64](#uint64) | repeated | | -| postal | [string](#string) | optional | | +| sub | [resources.calendar.CalendarSub](#resources-calendar-CalendarSub) | | | + - + -### ListDispatchesResponse + + -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| pagination | [resources.common.database.PaginationResponse](#resources-common-database-PaginationResponse) | | | -| dispatches | [resources.centrum.Dispatch](#resources-centrum-Dispatch) | repeated | | +### CalendarService + + +| Method Name | Request Type | Response Type | Description | +| ----------- | ------------ | ------------- | ------------| +| ListCalendars | [ListCalendarsRequest](#services-calendar-ListCalendarsRequest) | [ListCalendarsResponse](#services-calendar-ListCalendarsResponse) | @perm: Name=Any | +| GetCalendar | [GetCalendarRequest](#services-calendar-GetCalendarRequest) | [GetCalendarResponse](#services-calendar-GetCalendarResponse) | @perm: Name=Any | +| CreateOrUpdateCalendar | [CreateOrUpdateCalendarRequest](#services-calendar-CreateOrUpdateCalendarRequest) | [CreateOrUpdateCalendarResponse](#services-calendar-CreateOrUpdateCalendarResponse) | @perm: Attrs=Fields/StringList:[]string{"Job", "Public"} | +| DeleteCalendar | [DeleteCalendarRequest](#services-calendar-DeleteCalendarRequest) | [DeleteCalendarResponse](#services-calendar-DeleteCalendarResponse) | @perm | +| ListCalendarEntries | [ListCalendarEntriesRequest](#services-calendar-ListCalendarEntriesRequest) | [ListCalendarEntriesResponse](#services-calendar-ListCalendarEntriesResponse) | @perm: Name=Any | +| GetUpcomingEntries | [GetUpcomingEntriesRequest](#services-calendar-GetUpcomingEntriesRequest) | [GetUpcomingEntriesResponse](#services-calendar-GetUpcomingEntriesResponse) | @perm: Name=Any | +| GetCalendarEntry | [GetCalendarEntryRequest](#services-calendar-GetCalendarEntryRequest) | [GetCalendarEntryResponse](#services-calendar-GetCalendarEntryResponse) | @perm: Name=Any | +| CreateOrUpdateCalendarEntry | [CreateOrUpdateCalendarEntryRequest](#services-calendar-CreateOrUpdateCalendarEntryRequest) | [CreateOrUpdateCalendarEntryResponse](#services-calendar-CreateOrUpdateCalendarEntryResponse) | @perm | +| DeleteCalendarEntry | [DeleteCalendarEntryRequest](#services-calendar-DeleteCalendarEntryRequest) | [DeleteCalendarEntryResponse](#services-calendar-DeleteCalendarEntryResponse) | @perm | +| ShareCalendarEntry | [ShareCalendarEntryRequest](#services-calendar-ShareCalendarEntryRequest) | [ShareCalendarEntryResponse](#services-calendar-ShareCalendarEntryResponse) | @perm: Name=CreateOrUpdateCalendarEntry | +| ListCalendarEntryRSVP | [ListCalendarEntryRSVPRequest](#services-calendar-ListCalendarEntryRSVPRequest) | [ListCalendarEntryRSVPResponse](#services-calendar-ListCalendarEntryRSVPResponse) | @perm: Name=Any | +| RSVPCalendarEntry | [RSVPCalendarEntryRequest](#services-calendar-RSVPCalendarEntryRequest) | [RSVPCalendarEntryResponse](#services-calendar-RSVPCalendarEntryResponse) | @perm: Name=Any | +| ListSubscriptions | [ListSubscriptionsRequest](#services-calendar-ListSubscriptionsRequest) | [ListSubscriptionsResponse](#services-calendar-ListSubscriptionsResponse) | @perm: Name=Any | +| SubscribeToCalendar | [SubscribeToCalendarRequest](#services-calendar-SubscribeToCalendarRequest) | [SubscribeToCalendarResponse](#services-calendar-SubscribeToCalendarResponse) | @perm: Name=Any | + + + + +## services/centrum/centrum.proto - -### ListUnitActivityRequest + + +### AssignDispatchRequest | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| pagination | [resources.common.database.PaginationRequest](#resources-common-database-PaginationRequest) | | | -| id | [uint64](#uint64) | | | +| dispatch_id | [uint64](#uint64) | | | +| to_add | [uint64](#uint64) | repeated | | +| to_remove | [uint64](#uint64) | repeated | | +| forced | [bool](#bool) | optional | | - + + +### AssignDispatchResponse + + + -### ListUnitActivityResponse + + + + + +### AssignUnitRequest | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| pagination | [resources.common.database.PaginationResponse](#resources-common-database-PaginationResponse) | | | -| activity | [resources.centrum.UnitStatus](#resources-centrum-UnitStatus) | repeated | | +| unit_id | [uint64](#uint64) | | | +| to_add | [int32](#int32) | repeated | | +| to_remove | [int32](#int32) | repeated | | - + -### ListUnitsRequest +### AssignUnitResponse + + + + + + + + + +### CreateDispatchRequest | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| status | [resources.centrum.StatusUnit](#resources-centrum-StatusUnit) | repeated | | +| dispatch | [resources.centrum.Dispatch](#resources-centrum-Dispatch) | | | - + -### ListUnitsResponse +### CreateDispatchResponse | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| units | [resources.centrum.Unit](#resources-centrum-Unit) | repeated | | +| dispatch | [resources.centrum.Dispatch](#resources-centrum-Dispatch) | | | - + + +### CreateOrUpdateUnitRequest -### StreamRequest +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| unit | [resources.centrum.Unit](#resources-centrum-Unit) | | | + - + -### StreamResponse +### CreateOrUpdateUnitResponse | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| latest_state | [LatestState](#services-centrum-LatestState) | | | -| settings | [resources.centrum.Settings](#resources-centrum-Settings) | | | -| disponents | [resources.centrum.Disponents](#resources-centrum-Disponents) | | | -| unit_created | [resources.centrum.Unit](#resources-centrum-Unit) | | | -| unit_deleted | [resources.centrum.Unit](#resources-centrum-Unit) | | | -| unit_updated | [resources.centrum.Unit](#resources-centrum-Unit) | | | -| unit_status | [resources.centrum.UnitStatus](#resources-centrum-UnitStatus) | | | -| dispatch_created | [resources.centrum.Dispatch](#resources-centrum-Dispatch) | | | -| dispatch_deleted | [resources.centrum.Dispatch](#resources-centrum-Dispatch) | | | -| dispatch_updated | [resources.centrum.Dispatch](#resources-centrum-Dispatch) | | | -| dispatch_status | [resources.centrum.DispatchStatus](#resources-centrum-DispatchStatus) | | | +| unit | [resources.centrum.Unit](#resources-centrum-Unit) | | | - + -### TakeControlRequest +### DeleteDispatchRequest | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| signon | [bool](#bool) | | | +| id | [uint64](#uint64) | | | - + -### TakeControlResponse +### DeleteDispatchResponse @@ -7586,26 +7733,24 @@ TODO add way to link to, e.g., internal "objects" (citizens, documents, calendar - + -### TakeDispatchRequest +### DeleteUnitRequest | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| dispatch_ids | [uint64](#uint64) | repeated | | -| resp | [resources.centrum.TakeDispatchResp](#resources-centrum-TakeDispatchResp) | | | -| reason | [string](#string) | optional | @sanitize | +| unit_id | [uint64](#uint64) | | | - + -### TakeDispatchResponse +### DeleteUnitResponse @@ -7613,569 +7758,555 @@ TODO add way to link to, e.g., internal "objects" (citizens, documents, calendar - + -### UpdateDispatchRequest +### GetDispatchRequest | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| dispatch | [resources.centrum.Dispatch](#resources-centrum-Dispatch) | | | +| id | [uint64](#uint64) | | | - + -### UpdateDispatchResponse +### GetDispatchResponse +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| dispatch | [resources.centrum.Dispatch](#resources-centrum-Dispatch) | | | - -### UpdateDispatchStatusRequest + +### GetSettingsRequest -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| dispatch_id | [uint64](#uint64) | | | -| status | [resources.centrum.StatusDispatch](#resources-centrum-StatusDispatch) | | | -| reason | [string](#string) | optional | @sanitize | -| code | [string](#string) | optional | @sanitize | - + -### UpdateDispatchStatusResponse +### GetSettingsResponse +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| settings | [resources.centrum.Settings](#resources-centrum-Settings) | | | - -### UpdateSettingsRequest + + + +### JoinUnitRequest | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| settings | [resources.centrum.Settings](#resources-centrum-Settings) | | | +| unit_id | [uint64](#uint64) | optional | | - + -### UpdateSettingsResponse +### JoinUnitResponse | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| settings | [resources.centrum.Settings](#resources-centrum-Settings) | | | +| unit | [resources.centrum.Unit](#resources-centrum-Unit) | | | - + -### UpdateUnitStatusRequest +### LatestState | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| unit_id | [uint64](#uint64) | | | -| status | [resources.centrum.StatusUnit](#resources-centrum-StatusUnit) | | | -| reason | [string](#string) | optional | @sanitize | -| code | [string](#string) | optional | @sanitize | - - +| server_time | [resources.timestamp.Timestamp](#resources-timestamp-Timestamp) | | | +| settings | [resources.centrum.Settings](#resources-centrum-Settings) | | | +| disponents | [resources.jobs.Colleague](#resources-jobs-Colleague) | repeated | | +| own_unit_id | [uint64](#uint64) | optional | | +| units | [resources.centrum.Unit](#resources-centrum-Unit) | repeated | Send the current units and dispatches | +| dispatches | [resources.centrum.Dispatch](#resources-centrum-Dispatch) | repeated | | - -### UpdateUnitStatusResponse + +### ListDispatchActivityRequest +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| pagination | [resources.common.database.PaginationRequest](#resources-common-database-PaginationRequest) | | | +| id | [uint64](#uint64) | | | - - - - -### CentrumService + +### ListDispatchActivityResponse -| Method Name | Request Type | Response Type | Description | -| ----------- | ------------ | ------------- | ------------| -| UpdateSettings | [UpdateSettingsRequest](#services-centrum-UpdateSettingsRequest) | [UpdateSettingsResponse](#services-centrum-UpdateSettingsResponse) | @perm | -| CreateDispatch | [CreateDispatchRequest](#services-centrum-CreateDispatchRequest) | [CreateDispatchResponse](#services-centrum-CreateDispatchResponse) | @perm | -| UpdateDispatch | [UpdateDispatchRequest](#services-centrum-UpdateDispatchRequest) | [UpdateDispatchResponse](#services-centrum-UpdateDispatchResponse) | @perm | -| DeleteDispatch | [DeleteDispatchRequest](#services-centrum-DeleteDispatchRequest) | [DeleteDispatchResponse](#services-centrum-DeleteDispatchResponse) | @perm | -| TakeControl | [TakeControlRequest](#services-centrum-TakeControlRequest) | [TakeControlResponse](#services-centrum-TakeControlResponse) | @perm | -| AssignDispatch | [AssignDispatchRequest](#services-centrum-AssignDispatchRequest) | [AssignDispatchResponse](#services-centrum-AssignDispatchResponse) | @perm: Name=TakeControl | -| AssignUnit | [AssignUnitRequest](#services-centrum-AssignUnitRequest) | [AssignUnitResponse](#services-centrum-AssignUnitResponse) | @perm: Name=TakeControl | -| Stream | [StreamRequest](#services-centrum-StreamRequest) | [StreamResponse](#services-centrum-StreamResponse) stream | @perm | -| GetSettings | [GetSettingsRequest](#services-centrum-GetSettingsRequest) | [GetSettingsResponse](#services-centrum-GetSettingsResponse) | @perm: Name=Stream | -| JoinUnit | [JoinUnitRequest](#services-centrum-JoinUnitRequest) | [JoinUnitResponse](#services-centrum-JoinUnitResponse) | @perm: Name=Stream | -| ListUnits | [ListUnitsRequest](#services-centrum-ListUnitsRequest) | [ListUnitsResponse](#services-centrum-ListUnitsResponse) | @perm: Name=Stream | -| ListUnitActivity | [ListUnitActivityRequest](#services-centrum-ListUnitActivityRequest) | [ListUnitActivityResponse](#services-centrum-ListUnitActivityResponse) | @perm: Name=Stream | -| GetDispatch | [GetDispatchRequest](#services-centrum-GetDispatchRequest) | [GetDispatchResponse](#services-centrum-GetDispatchResponse) | @perm: Name=Stream | -| ListDispatches | [ListDispatchesRequest](#services-centrum-ListDispatchesRequest) | [ListDispatchesResponse](#services-centrum-ListDispatchesResponse) | @perm: Name=Stream | -| ListDispatchActivity | [ListDispatchActivityRequest](#services-centrum-ListDispatchActivityRequest) | [ListDispatchActivityResponse](#services-centrum-ListDispatchActivityResponse) | @perm: Name=Stream | -| CreateOrUpdateUnit | [CreateOrUpdateUnitRequest](#services-centrum-CreateOrUpdateUnitRequest) | [CreateOrUpdateUnitResponse](#services-centrum-CreateOrUpdateUnitResponse) | @perm | -| DeleteUnit | [DeleteUnitRequest](#services-centrum-DeleteUnitRequest) | [DeleteUnitResponse](#services-centrum-DeleteUnitResponse) | @perm | -| TakeDispatch | [TakeDispatchRequest](#services-centrum-TakeDispatchRequest) | [TakeDispatchResponse](#services-centrum-TakeDispatchResponse) | @perm | -| UpdateUnitStatus | [UpdateUnitStatusRequest](#services-centrum-UpdateUnitStatusRequest) | [UpdateUnitStatusResponse](#services-centrum-UpdateUnitStatusResponse) | @perm: Name=TakeDispatch | -| UpdateDispatchStatus | [UpdateDispatchStatusRequest](#services-centrum-UpdateDispatchStatusRequest) | [UpdateDispatchStatusResponse](#services-centrum-UpdateDispatchStatusResponse) | @perm: Name=TakeDispatch | - +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| pagination | [resources.common.database.PaginationResponse](#resources-common-database-PaginationResponse) | | | +| activity | [resources.centrum.DispatchStatus](#resources-centrum-DispatchStatus) | repeated | | - - -## services/citizenstore/citizenstore.proto - + -### GetUserRequest +### ListDispatchesRequest | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| user_id | [int32](#int32) | | | -| info_only | [bool](#bool) | optional | | +| pagination | [resources.common.database.PaginationRequest](#resources-common-database-PaginationRequest) | | | +| status | [resources.centrum.StatusDispatch](#resources-centrum-StatusDispatch) | repeated | | +| not_status | [resources.centrum.StatusDispatch](#resources-centrum-StatusDispatch) | repeated | | +| ids | [uint64](#uint64) | repeated | | +| postal | [string](#string) | optional | | - + -### GetUserResponse +### ListDispatchesResponse | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| user | [resources.users.User](#resources-users-User) | | | +| pagination | [resources.common.database.PaginationResponse](#resources-common-database-PaginationResponse) | | | +| dispatches | [resources.centrum.Dispatch](#resources-centrum-Dispatch) | repeated | | - + -### ListCitizensRequest +### ListUnitActivityRequest | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | | pagination | [resources.common.database.PaginationRequest](#resources-common-database-PaginationRequest) | | | -| sort | [resources.common.database.Sort](#resources-common-database-Sort) | optional | | -| search | [string](#string) | | Search params | -| wanted | [bool](#bool) | optional | | -| phone_number | [string](#string) | optional | | -| traffic_infraction_points | [uint32](#uint32) | optional | | -| dateofbirth | [string](#string) | optional | | -| open_fines | [uint64](#uint64) | optional | | +| id | [uint64](#uint64) | | | - + -### ListCitizensResponse +### ListUnitActivityResponse | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | | pagination | [resources.common.database.PaginationResponse](#resources-common-database-PaginationResponse) | | | -| users | [resources.users.User](#resources-users-User) | repeated | | +| activity | [resources.centrum.UnitStatus](#resources-centrum-UnitStatus) | repeated | | - + -### ListUserActivityRequest +### ListUnitsRequest | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| pagination | [resources.common.database.PaginationRequest](#resources-common-database-PaginationRequest) | | | -| sort | [resources.common.database.Sort](#resources-common-database-Sort) | optional | | -| user_id | [int32](#int32) | | | +| status | [resources.centrum.StatusUnit](#resources-centrum-StatusUnit) | repeated | | - + -### ListUserActivityResponse +### ListUnitsResponse | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| pagination | [resources.common.database.PaginationResponse](#resources-common-database-PaginationResponse) | | | -| activity | [resources.users.UserActivity](#resources-users-UserActivity) | repeated | | - - +| units | [resources.centrum.Unit](#resources-centrum-Unit) | repeated | | - -### ManageCitizenAttributesRequest + +### StreamRequest -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| attributes | [resources.users.CitizenAttribute](#resources-users-CitizenAttribute) | repeated | | - + -### ManageCitizenAttributesResponse +### StreamResponse | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| attributes | [resources.users.CitizenAttribute](#resources-users-CitizenAttribute) | repeated | | +| latest_state | [LatestState](#services-centrum-LatestState) | | | +| settings | [resources.centrum.Settings](#resources-centrum-Settings) | | | +| disponents | [resources.centrum.Disponents](#resources-centrum-Disponents) | | | +| unit_created | [resources.centrum.Unit](#resources-centrum-Unit) | | | +| unit_deleted | [resources.centrum.Unit](#resources-centrum-Unit) | | | +| unit_updated | [resources.centrum.Unit](#resources-centrum-Unit) | | | +| unit_status | [resources.centrum.UnitStatus](#resources-centrum-UnitStatus) | | | +| dispatch_created | [resources.centrum.Dispatch](#resources-centrum-Dispatch) | | | +| dispatch_deleted | [resources.centrum.Dispatch](#resources-centrum-Dispatch) | | | +| dispatch_updated | [resources.centrum.Dispatch](#resources-centrum-Dispatch) | | | +| dispatch_status | [resources.centrum.DispatchStatus](#resources-centrum-DispatchStatus) | | | - + -### SetProfilePictureRequest +### TakeControlRequest | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| avatar | [resources.filestore.File](#resources-filestore-File) | | | - - +| signon | [bool](#bool) | | | - -### SetProfilePictureResponse + +### TakeControlResponse -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| avatar | [resources.filestore.File](#resources-filestore-File) | | | - + -### SetUserPropsRequest +### TakeDispatchRequest | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| props | [resources.users.UserProps](#resources-users-UserProps) | | | -| reason | [string](#string) | | @sanitize | +| dispatch_ids | [uint64](#uint64) | repeated | | +| resp | [resources.centrum.TakeDispatchResp](#resources-centrum-TakeDispatchResp) | | | +| reason | [string](#string) | optional | @sanitize | - + -### SetUserPropsResponse +### TakeDispatchResponse -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| props | [resources.users.UserProps](#resources-users-UserProps) | | | + - +### UpdateDispatchRequest - - +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| dispatch | [resources.centrum.Dispatch](#resources-centrum-Dispatch) | | | - -### CitizenStoreService -| Method Name | Request Type | Response Type | Description | -| ----------- | ------------ | ------------- | ------------| -| ListCitizens | [ListCitizensRequest](#services-citizenstore-ListCitizensRequest) | [ListCitizensResponse](#services-citizenstore-ListCitizensResponse) | @perm: Attrs=Fields/StringList:[]string{"PhoneNumber", "Licenses", "UserProps.Wanted", "UserProps.Job", "UserProps.TrafficInfractionPoints", "UserProps.OpenFines", "UserProps.BloodType", "UserProps.MugShot", "UserProps.Attributes", "UserProps.Email"} | -| GetUser | [GetUserRequest](#services-citizenstore-GetUserRequest) | [GetUserResponse](#services-citizenstore-GetUserResponse) | @perm: Attrs=Jobs/JobGradeList | -| ListUserActivity | [ListUserActivityRequest](#services-citizenstore-ListUserActivityRequest) | [ListUserActivityResponse](#services-citizenstore-ListUserActivityResponse) | @perm: Attrs=Fields/StringList:[]string{"SourceUser", "Own"} | -| SetUserProps | [SetUserPropsRequest](#services-citizenstore-SetUserPropsRequest) | [SetUserPropsResponse](#services-citizenstore-SetUserPropsResponse) | @perm: Attrs=Fields/StringList:[]string{"Wanted", "Job", "TrafficInfractionPoints", "MugShot", "Attributes"} | -| SetProfilePicture | [SetProfilePictureRequest](#services-citizenstore-SetProfilePictureRequest) | [SetProfilePictureResponse](#services-citizenstore-SetProfilePictureResponse) | @perm: Name=Any | -| ManageCitizenAttributes | [ManageCitizenAttributesRequest](#services-citizenstore-ManageCitizenAttributesRequest) | [ManageCitizenAttributesResponse](#services-citizenstore-ManageCitizenAttributesResponse) | @perm | - + + +### UpdateDispatchResponse - - -## services/completor/completor.proto - -### CompleteCitizenAttributesRequest + + +### UpdateDispatchStatusRequest | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| search | [string](#string) | | | - - +| dispatch_id | [uint64](#uint64) | | | +| status | [resources.centrum.StatusDispatch](#resources-centrum-StatusDispatch) | | | +| reason | [string](#string) | optional | @sanitize | +| code | [string](#string) | optional | @sanitize | - -### CompleteCitizenAttributesResponse + +### UpdateDispatchStatusResponse -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| attributes | [resources.users.CitizenAttribute](#resources-users-CitizenAttribute) | repeated | | - + -### CompleteCitizensRequest +### UpdateSettingsRequest | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| search | [string](#string) | | | -| current_job | [bool](#bool) | optional | | -| on_duty | [bool](#bool) | optional | | -| user_id | [int32](#int32) | optional | | +| settings | [resources.centrum.Settings](#resources-centrum-Settings) | | | - + -### CompleteCitizensRespoonse +### UpdateSettingsResponse | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| users | [resources.users.UserShort](#resources-users-UserShort) | repeated | @gotags: alias:"user" | +| settings | [resources.centrum.Settings](#resources-centrum-Settings) | | | - + -### CompleteDocumentCategoriesRequest +### UpdateUnitStatusRequest | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| search | [string](#string) | | | +| unit_id | [uint64](#uint64) | | | +| status | [resources.centrum.StatusUnit](#resources-centrum-StatusUnit) | | | +| reason | [string](#string) | optional | @sanitize | +| code | [string](#string) | optional | @sanitize | - + -### CompleteDocumentCategoriesResponse +### UpdateUnitStatusResponse -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| categories | [resources.documents.Category](#resources-documents-Category) | repeated | | + + + - -### CompleteJobsRequest + +### CentrumService -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| search | [string](#string) | optional | | -| exact_match | [bool](#bool) | optional | | -| current_job | [bool](#bool) | optional | | +| Method Name | Request Type | Response Type | Description | +| ----------- | ------------ | ------------- | ------------| +| UpdateSettings | [UpdateSettingsRequest](#services-centrum-UpdateSettingsRequest) | [UpdateSettingsResponse](#services-centrum-UpdateSettingsResponse) | @perm | +| CreateDispatch | [CreateDispatchRequest](#services-centrum-CreateDispatchRequest) | [CreateDispatchResponse](#services-centrum-CreateDispatchResponse) | @perm | +| UpdateDispatch | [UpdateDispatchRequest](#services-centrum-UpdateDispatchRequest) | [UpdateDispatchResponse](#services-centrum-UpdateDispatchResponse) | @perm | +| DeleteDispatch | [DeleteDispatchRequest](#services-centrum-DeleteDispatchRequest) | [DeleteDispatchResponse](#services-centrum-DeleteDispatchResponse) | @perm | +| TakeControl | [TakeControlRequest](#services-centrum-TakeControlRequest) | [TakeControlResponse](#services-centrum-TakeControlResponse) | @perm | +| AssignDispatch | [AssignDispatchRequest](#services-centrum-AssignDispatchRequest) | [AssignDispatchResponse](#services-centrum-AssignDispatchResponse) | @perm: Name=TakeControl | +| AssignUnit | [AssignUnitRequest](#services-centrum-AssignUnitRequest) | [AssignUnitResponse](#services-centrum-AssignUnitResponse) | @perm: Name=TakeControl | +| Stream | [StreamRequest](#services-centrum-StreamRequest) | [StreamResponse](#services-centrum-StreamResponse) stream | @perm | +| GetSettings | [GetSettingsRequest](#services-centrum-GetSettingsRequest) | [GetSettingsResponse](#services-centrum-GetSettingsResponse) | @perm: Name=Stream | +| JoinUnit | [JoinUnitRequest](#services-centrum-JoinUnitRequest) | [JoinUnitResponse](#services-centrum-JoinUnitResponse) | @perm: Name=Stream | +| ListUnits | [ListUnitsRequest](#services-centrum-ListUnitsRequest) | [ListUnitsResponse](#services-centrum-ListUnitsResponse) | @perm: Name=Stream | +| ListUnitActivity | [ListUnitActivityRequest](#services-centrum-ListUnitActivityRequest) | [ListUnitActivityResponse](#services-centrum-ListUnitActivityResponse) | @perm: Name=Stream | +| GetDispatch | [GetDispatchRequest](#services-centrum-GetDispatchRequest) | [GetDispatchResponse](#services-centrum-GetDispatchResponse) | @perm: Name=Stream | +| ListDispatches | [ListDispatchesRequest](#services-centrum-ListDispatchesRequest) | [ListDispatchesResponse](#services-centrum-ListDispatchesResponse) | @perm: Name=Stream | +| ListDispatchActivity | [ListDispatchActivityRequest](#services-centrum-ListDispatchActivityRequest) | [ListDispatchActivityResponse](#services-centrum-ListDispatchActivityResponse) | @perm: Name=Stream | +| CreateOrUpdateUnit | [CreateOrUpdateUnitRequest](#services-centrum-CreateOrUpdateUnitRequest) | [CreateOrUpdateUnitResponse](#services-centrum-CreateOrUpdateUnitResponse) | @perm | +| DeleteUnit | [DeleteUnitRequest](#services-centrum-DeleteUnitRequest) | [DeleteUnitResponse](#services-centrum-DeleteUnitResponse) | @perm | +| TakeDispatch | [TakeDispatchRequest](#services-centrum-TakeDispatchRequest) | [TakeDispatchResponse](#services-centrum-TakeDispatchResponse) | @perm | +| UpdateUnitStatus | [UpdateUnitStatusRequest](#services-centrum-UpdateUnitStatusRequest) | [UpdateUnitStatusResponse](#services-centrum-UpdateUnitStatusResponse) | @perm: Name=TakeDispatch | +| UpdateDispatchStatus | [UpdateDispatchStatusRequest](#services-centrum-UpdateDispatchStatusRequest) | [UpdateDispatchStatusResponse](#services-centrum-UpdateDispatchStatusResponse) | @perm: Name=TakeDispatch | + + + + +## services/citizenstore/citizenstore.proto - -### CompleteJobsResponse + + +### GetUserRequest | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| jobs | [resources.users.Job](#resources-users-Job) | repeated | | - - +| user_id | [int32](#int32) | | | +| info_only | [bool](#bool) | optional | | - -### ListLawBooksRequest + +### GetUserResponse +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| user | [resources.users.User](#resources-users-User) | | | - -### ListLawBooksResponse -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| books | [resources.laws.LawBook](#resources-laws-LawBook) | repeated | | + +### ListCitizensRequest +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| pagination | [resources.common.database.PaginationRequest](#resources-common-database-PaginationRequest) | | | +| sort | [resources.common.database.Sort](#resources-common-database-Sort) | optional | | +| search | [string](#string) | | Search params | +| wanted | [bool](#bool) | optional | | +| phone_number | [string](#string) | optional | | +| traffic_infraction_points | [uint32](#uint32) | optional | | +| dateofbirth | [string](#string) | optional | | +| open_fines | [uint64](#uint64) | optional | | - - - - -### CompletorService + +### ListCitizensResponse -| Method Name | Request Type | Response Type | Description | -| ----------- | ------------ | ------------- | ------------| -| CompleteCitizens | [CompleteCitizensRequest](#services-completor-CompleteCitizensRequest) | [CompleteCitizensRespoonse](#services-completor-CompleteCitizensRespoonse) | @perm | -| CompleteJobs | [CompleteJobsRequest](#services-completor-CompleteJobsRequest) | [CompleteJobsResponse](#services-completor-CompleteJobsResponse) | @perm: Name=Any | -| CompleteDocumentCategories | [CompleteDocumentCategoriesRequest](#services-completor-CompleteDocumentCategoriesRequest) | [CompleteDocumentCategoriesResponse](#services-completor-CompleteDocumentCategoriesResponse) | @perm: Attrs=Jobs/JobList | -| ListLawBooks | [ListLawBooksRequest](#services-completor-ListLawBooksRequest) | [ListLawBooksResponse](#services-completor-ListLawBooksResponse) | @perm: Name=Any | -| CompleteCitizenAttributes | [CompleteCitizenAttributesRequest](#services-completor-CompleteCitizenAttributesRequest) | [CompleteCitizenAttributesResponse](#services-completor-CompleteCitizenAttributesResponse) | @perm: Attrs=Jobs/JobList | - +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| pagination | [resources.common.database.PaginationResponse](#resources-common-database-PaginationResponse) | | | +| users | [resources.users.User](#resources-users-User) | repeated | | - - -## services/dmv/vehicles.proto - + -### ListVehiclesRequest +### ListUserActivityRequest @@ -8183,297 +8314,279 @@ TODO add way to link to, e.g., internal "objects" (citizens, documents, calendar | ----- | ---- | ----- | ----------- | | pagination | [resources.common.database.PaginationRequest](#resources-common-database-PaginationRequest) | | | | sort | [resources.common.database.Sort](#resources-common-database-Sort) | optional | | -| license_plate | [string](#string) | optional | Search params | -| model | [string](#string) | optional | | -| user_id | [int32](#int32) | optional | | +| user_id | [int32](#int32) | | | - + -### ListVehiclesResponse +### ListUserActivityResponse | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | | pagination | [resources.common.database.PaginationResponse](#resources-common-database-PaginationResponse) | | | -| vehicles | [resources.vehicles.Vehicle](#resources-vehicles-Vehicle) | repeated | | - - - - +| activity | [resources.users.UserActivity](#resources-users-UserActivity) | repeated | | - - - - -### DMVService + +### ManageCitizenAttributesRequest -| Method Name | Request Type | Response Type | Description | -| ----------- | ------------ | ------------- | ------------| -| ListVehicles | [ListVehiclesRequest](#services-dmv-ListVehiclesRequest) | [ListVehiclesResponse](#services-dmv-ListVehiclesResponse) | @perm | - +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| attributes | [resources.users.CitizenAttribute](#resources-users-CitizenAttribute) | repeated | | - - -## services/docstore/docstore.proto - + -### AddDocumentReferenceRequest +### ManageCitizenAttributesResponse | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| reference | [resources.documents.DocumentReference](#resources-documents-DocumentReference) | | | +| attributes | [resources.users.CitizenAttribute](#resources-users-CitizenAttribute) | repeated | | - + -### AddDocumentReferenceResponse +### SetProfilePictureRequest | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| id | [uint64](#uint64) | | | +| avatar | [resources.filestore.File](#resources-filestore-File) | | | - + -### AddDocumentRelationRequest +### SetProfilePictureResponse | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| relation | [resources.documents.DocumentRelation](#resources-documents-DocumentRelation) | | | +| avatar | [resources.filestore.File](#resources-filestore-File) | | | - + -### AddDocumentRelationResponse +### SetUserPropsRequest | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| id | [uint64](#uint64) | | | +| props | [resources.users.UserProps](#resources-users-UserProps) | | | +| reason | [string](#string) | | @sanitize | - + -### ChangeDocumentOwnerRequest +### SetUserPropsResponse | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| document_id | [uint64](#uint64) | | | -| new_user_id | [int32](#int32) | optional | | - - - - +| props | [resources.users.UserProps](#resources-users-UserProps) | | | - -### ChangeDocumentOwnerResponse + + + + - +### CitizenStoreService -### CreateCategoryRequest +| Method Name | Request Type | Response Type | Description | +| ----------- | ------------ | ------------- | ------------| +| ListCitizens | [ListCitizensRequest](#services-citizenstore-ListCitizensRequest) | [ListCitizensResponse](#services-citizenstore-ListCitizensResponse) | @perm: Attrs=Fields/StringList:[]string{"PhoneNumber", "Licenses", "UserProps.Wanted", "UserProps.Job", "UserProps.TrafficInfractionPoints", "UserProps.OpenFines", "UserProps.BloodType", "UserProps.MugShot", "UserProps.Attributes", "UserProps.Email"} | +| GetUser | [GetUserRequest](#services-citizenstore-GetUserRequest) | [GetUserResponse](#services-citizenstore-GetUserResponse) | @perm: Attrs=Jobs/JobGradeList | +| ListUserActivity | [ListUserActivityRequest](#services-citizenstore-ListUserActivityRequest) | [ListUserActivityResponse](#services-citizenstore-ListUserActivityResponse) | @perm: Attrs=Fields/StringList:[]string{"SourceUser", "Own"} | +| SetUserProps | [SetUserPropsRequest](#services-citizenstore-SetUserPropsRequest) | [SetUserPropsResponse](#services-citizenstore-SetUserPropsResponse) | @perm: Attrs=Fields/StringList:[]string{"Wanted", "Job", "TrafficInfractionPoints", "MugShot", "Attributes"} | +| SetProfilePicture | [SetProfilePictureRequest](#services-citizenstore-SetProfilePictureRequest) | [SetProfilePictureResponse](#services-citizenstore-SetProfilePictureResponse) | @perm: Name=Any | +| ManageCitizenAttributes | [ManageCitizenAttributesRequest](#services-citizenstore-ManageCitizenAttributesRequest) | [ManageCitizenAttributesResponse](#services-citizenstore-ManageCitizenAttributesResponse) | @perm | + -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| category | [resources.documents.Category](#resources-documents-Category) | | | + + +## services/completor/completor.proto - + -### CreateCategoryResponse +### CompleteCitizenAttributesRequest | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| id | [uint64](#uint64) | | | +| search | [string](#string) | | | - + -### CreateDocumentReqRequest +### CompleteCitizenAttributesResponse | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| document_id | [uint64](#uint64) | | | -| request_type | [resources.documents.DocActivityType](#resources-documents-DocActivityType) | | | -| reason | [string](#string) | optional | @sanitize | -| data | [resources.documents.DocActivityData](#resources-documents-DocActivityData) | optional | | +| attributes | [resources.users.CitizenAttribute](#resources-users-CitizenAttribute) | repeated | | - + -### CreateDocumentReqResponse +### CompleteCitizensRequest | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| request | [resources.documents.DocRequest](#resources-documents-DocRequest) | | | +| search | [string](#string) | | | +| current_job | [bool](#bool) | optional | | +| on_duty | [bool](#bool) | optional | | +| user_id | [int32](#int32) | optional | | - + -### CreateDocumentRequest +### CompleteCitizensRespoonse | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| category_id | [uint64](#uint64) | optional | @gotags: alias:"category_id" | -| title | [string](#string) | | @sanitize: method=StripTags - -@gotags: alias:"title" | -| content | [resources.common.content.Content](#resources-common-content-Content) | | @sanitize | -| content_type | [resources.common.content.ContentType](#resources-common-content-ContentType) | | @gotags: alias:"content_type" | -| data | [string](#string) | optional | @gotags: alias:"data" | -| state | [string](#string) | | @sanitize - -@gotags: alias:"state" | -| closed | [bool](#bool) | | @gotags: alias:"closed" | -| public | [bool](#bool) | | @gotags: alias:"public" | -| access | [resources.documents.DocumentAccess](#resources-documents-DocumentAccess) | optional | | -| template_id | [uint64](#uint64) | optional | | +| users | [resources.users.UserShort](#resources-users-UserShort) | repeated | @gotags: alias:"user" | - + -### CreateDocumentResponse +### CompleteDocumentCategoriesRequest | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| document_id | [uint64](#uint64) | | @gotags: alias:"id" | +| search | [string](#string) | | | - + -### CreateTemplateRequest +### CompleteDocumentCategoriesResponse | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| template | [resources.documents.Template](#resources-documents-Template) | | | +| categories | [resources.documents.Category](#resources-documents-Category) | repeated | | - + -### CreateTemplateResponse +### CompleteJobsRequest | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| id | [uint64](#uint64) | | | +| search | [string](#string) | optional | | +| exact_match | [bool](#bool) | optional | | +| current_job | [bool](#bool) | optional | | - + -### DeleteCategoryRequest +### CompleteJobsResponse | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| ids | [uint64](#uint64) | repeated | | +| jobs | [resources.users.Job](#resources-users-Job) | repeated | | - + -### DeleteCategoryResponse +### ListLawBooksRequest @@ -8481,326 +8594,352 @@ TODO add way to link to, e.g., internal "objects" (citizens, documents, calendar - + -### DeleteCommentRequest +### ListLawBooksResponse | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| comment_id | [uint64](#uint64) | | | - - +| books | [resources.laws.LawBook](#resources-laws-LawBook) | repeated | | - -### DeleteCommentResponse + + + + +### CompletorService - +| Method Name | Request Type | Response Type | Description | +| ----------- | ------------ | ------------- | ------------| +| CompleteCitizens | [CompleteCitizensRequest](#services-completor-CompleteCitizensRequest) | [CompleteCitizensRespoonse](#services-completor-CompleteCitizensRespoonse) | @perm | +| CompleteJobs | [CompleteJobsRequest](#services-completor-CompleteJobsRequest) | [CompleteJobsResponse](#services-completor-CompleteJobsResponse) | @perm: Name=Any | +| CompleteDocumentCategories | [CompleteDocumentCategoriesRequest](#services-completor-CompleteDocumentCategoriesRequest) | [CompleteDocumentCategoriesResponse](#services-completor-CompleteDocumentCategoriesResponse) | @perm: Attrs=Jobs/JobList | +| ListLawBooks | [ListLawBooksRequest](#services-completor-ListLawBooksRequest) | [ListLawBooksResponse](#services-completor-ListLawBooksResponse) | @perm: Name=Any | +| CompleteCitizenAttributes | [CompleteCitizenAttributesRequest](#services-completor-CompleteCitizenAttributesRequest) | [CompleteCitizenAttributesResponse](#services-completor-CompleteCitizenAttributesResponse) | @perm: Attrs=Jobs/JobList | -### DeleteDocumentReqRequest + -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| request_id | [uint64](#uint64) | | | + + +## services/dmv/vehicles.proto + +### ListVehiclesRequest - -### DeleteDocumentReqResponse +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| pagination | [resources.common.database.PaginationRequest](#resources-common-database-PaginationRequest) | | | +| sort | [resources.common.database.Sort](#resources-common-database-Sort) | optional | | +| license_plate | [string](#string) | optional | Search params | +| model | [string](#string) | optional | | +| user_id | [int32](#int32) | optional | | - + -### DeleteDocumentRequest +### ListVehiclesResponse | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| document_id | [uint64](#uint64) | | @gotags: alias:"id" | - - +| pagination | [resources.common.database.PaginationResponse](#resources-common-database-PaginationResponse) | | | +| vehicles | [resources.vehicles.Vehicle](#resources-vehicles-Vehicle) | repeated | | - -### DeleteDocumentResponse + + + + +### DMVService - +| Method Name | Request Type | Response Type | Description | +| ----------- | ------------ | ------------- | ------------| +| ListVehicles | [ListVehiclesRequest](#services-dmv-ListVehiclesRequest) | [ListVehiclesResponse](#services-dmv-ListVehiclesResponse) | @perm | -### DeleteTemplateRequest + -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| id | [uint64](#uint64) | | | + + +## services/docstore/docstore.proto + +### AddDocumentReferenceRequest - -### DeleteTemplateResponse +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| reference | [resources.documents.DocumentReference](#resources-documents-DocumentReference) | | | - + -### EditCommentRequest +### AddDocumentReferenceResponse | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| comment | [resources.documents.Comment](#resources-documents-Comment) | | | +| id | [uint64](#uint64) | | | - + -### EditCommentResponse +### AddDocumentRelationRequest | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| comment | [resources.documents.Comment](#resources-documents-Comment) | | | +| relation | [resources.documents.DocumentRelation](#resources-documents-DocumentRelation) | | | - + -### GetCommentsRequest +### AddDocumentRelationResponse | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| pagination | [resources.common.database.PaginationRequest](#resources-common-database-PaginationRequest) | | | -| document_id | [uint64](#uint64) | | | +| id | [uint64](#uint64) | | | - + -### GetCommentsResponse +### ChangeDocumentOwnerRequest | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| pagination | [resources.common.database.PaginationResponse](#resources-common-database-PaginationResponse) | | | -| comments | [resources.documents.Comment](#resources-documents-Comment) | repeated | | - - +| document_id | [uint64](#uint64) | | | +| new_user_id | [int32](#int32) | optional | | - -### GetDocumentAccessRequest + +### ChangeDocumentOwnerResponse -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| document_id | [uint64](#uint64) | | | - + -### GetDocumentAccessResponse +### CreateCategoryRequest | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| access | [resources.documents.DocumentAccess](#resources-documents-DocumentAccess) | | | +| category | [resources.documents.Category](#resources-documents-Category) | | | - + -### GetDocumentReferencesRequest +### CreateCategoryResponse | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| document_id | [uint64](#uint64) | | | +| id | [uint64](#uint64) | | | - + -### GetDocumentReferencesResponse +### CreateDocumentReqRequest | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| references | [resources.documents.DocumentReference](#resources-documents-DocumentReference) | repeated | @gotags: alias:"reference" | +| document_id | [uint64](#uint64) | | | +| request_type | [resources.documents.DocActivityType](#resources-documents-DocActivityType) | | | +| reason | [string](#string) | optional | @sanitize | +| data | [resources.documents.DocActivityData](#resources-documents-DocActivityData) | optional | | - + -### GetDocumentRelationsRequest +### CreateDocumentReqResponse | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| document_id | [uint64](#uint64) | | | +| request | [resources.documents.DocRequest](#resources-documents-DocRequest) | | | - + -### GetDocumentRelationsResponse +### CreateDocumentRequest | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| relations | [resources.documents.DocumentRelation](#resources-documents-DocumentRelation) | repeated | @gotags: alias:"relation" | +| category_id | [uint64](#uint64) | optional | @gotags: alias:"category_id" | +| title | [string](#string) | | @sanitize: method=StripTags + +@gotags: alias:"title" | +| content | [resources.common.content.Content](#resources-common-content-Content) | | @sanitize | +| content_type | [resources.common.content.ContentType](#resources-common-content-ContentType) | | @gotags: alias:"content_type" | +| data | [string](#string) | optional | @gotags: alias:"data" | +| state | [string](#string) | | @sanitize + +@gotags: alias:"state" | +| closed | [bool](#bool) | | @gotags: alias:"closed" | +| public | [bool](#bool) | | @gotags: alias:"public" | +| access | [resources.documents.DocumentAccess](#resources-documents-DocumentAccess) | optional | | +| template_id | [uint64](#uint64) | optional | | - + -### GetDocumentRequest +### CreateDocumentResponse | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| document_id | [uint64](#uint64) | | | -| info_only | [bool](#bool) | optional | | +| document_id | [uint64](#uint64) | | @gotags: alias:"id" | - + -### GetDocumentResponse +### CreateTemplateRequest | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| document | [resources.documents.Document](#resources-documents-Document) | | | -| access | [resources.documents.DocumentAccess](#resources-documents-DocumentAccess) | | | +| template | [resources.documents.Template](#resources-documents-Template) | | | - + -### GetTemplateRequest +### CreateTemplateResponse | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| template_id | [uint64](#uint64) | | | -| data | [resources.documents.TemplateData](#resources-documents-TemplateData) | optional | | -| render | [bool](#bool) | optional | | +| id | [uint64](#uint64) | | | - + -### GetTemplateResponse +### DeleteCategoryRequest | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| template | [resources.documents.Template](#resources-documents-Template) | | | -| rendered | [bool](#bool) | | | +| ids | [uint64](#uint64) | repeated | | - + -### ListCategoriesRequest +### DeleteCategoryResponse @@ -8808,304 +8947,283 @@ TODO add way to link to, e.g., internal "objects" (citizens, documents, calendar - + -### ListCategoriesResponse +### DeleteCommentRequest | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| category | [resources.documents.Category](#resources-documents-Category) | repeated | | - - +| comment_id | [uint64](#uint64) | | | - -### ListDocumentActivityRequest + +### DeleteCommentResponse -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| pagination | [resources.common.database.PaginationRequest](#resources-common-database-PaginationRequest) | | | -| document_id | [uint64](#uint64) | | | -| activity_types | [resources.documents.DocActivityType](#resources-documents-DocActivityType) | repeated | Search params | - + -### ListDocumentActivityResponse +### DeleteDocumentReqRequest | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| pagination | [resources.common.database.PaginationResponse](#resources-common-database-PaginationResponse) | | | -| activity | [resources.documents.DocActivity](#resources-documents-DocActivity) | repeated | | - - +| request_id | [uint64](#uint64) | | | - -### ListDocumentPinsRequest + +### DeleteDocumentReqResponse -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| pagination | [resources.common.database.PaginationRequest](#resources-common-database-PaginationRequest) | | | - + -### ListDocumentPinsResponse +### DeleteDocumentRequest | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| pagination | [resources.common.database.PaginationResponse](#resources-common-database-PaginationResponse) | | | -| documents | [resources.documents.DocumentShort](#resources-documents-DocumentShort) | repeated | | - - +| document_id | [uint64](#uint64) | | @gotags: alias:"id" | - -### ListDocumentReqsRequest + +### DeleteDocumentResponse -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| pagination | [resources.common.database.PaginationRequest](#resources-common-database-PaginationRequest) | | | -| document_id | [uint64](#uint64) | | | - + -### ListDocumentReqsResponse +### DeleteTemplateRequest | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| pagination | [resources.common.database.PaginationResponse](#resources-common-database-PaginationResponse) | | | -| requests | [resources.documents.DocRequest](#resources-documents-DocRequest) | repeated | | - - +| id | [uint64](#uint64) | | | - -### ListDocumentsRequest + +### DeleteTemplateResponse -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| pagination | [resources.common.database.PaginationRequest](#resources-common-database-PaginationRequest) | | | -| sort | [resources.common.database.Sort](#resources-common-database-Sort) | optional | | -| search | [string](#string) | optional | Search params | -| category_ids | [uint64](#uint64) | repeated | | -| creator_ids | [int32](#int32) | repeated | | -| from | [resources.timestamp.Timestamp](#resources-timestamp-Timestamp) | optional | | -| to | [resources.timestamp.Timestamp](#resources-timestamp-Timestamp) | optional | | -| closed | [bool](#bool) | optional | | -| document_ids | [uint64](#uint64) | repeated | | - + -### ListDocumentsResponse +### EditCommentRequest | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| pagination | [resources.common.database.PaginationResponse](#resources-common-database-PaginationResponse) | | | -| documents | [resources.documents.DocumentShort](#resources-documents-DocumentShort) | repeated | | +| comment | [resources.documents.Comment](#resources-documents-Comment) | | | - + -### ListTemplatesRequest +### EditCommentResponse +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| comment | [resources.documents.Comment](#resources-documents-Comment) | | | - -### ListTemplatesResponse + + + +### GetCommentsRequest | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| templates | [resources.documents.TemplateShort](#resources-documents-TemplateShort) | repeated | | +| pagination | [resources.common.database.PaginationRequest](#resources-common-database-PaginationRequest) | | | +| document_id | [uint64](#uint64) | | | - + -### ListUserDocumentsRequest +### GetCommentsResponse | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| pagination | [resources.common.database.PaginationRequest](#resources-common-database-PaginationRequest) | | | -| user_id | [int32](#int32) | | | -| relations | [resources.documents.DocRelation](#resources-documents-DocRelation) | repeated | | -| closed | [bool](#bool) | optional | | +| pagination | [resources.common.database.PaginationResponse](#resources-common-database-PaginationResponse) | | | +| comments | [resources.documents.Comment](#resources-documents-Comment) | repeated | | - + -### ListUserDocumentsResponse +### GetDocumentAccessRequest | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| pagination | [resources.common.database.PaginationResponse](#resources-common-database-PaginationResponse) | | | -| relations | [resources.documents.DocumentRelation](#resources-documents-DocumentRelation) | repeated | | +| document_id | [uint64](#uint64) | | | - + -### PostCommentRequest +### GetDocumentAccessResponse | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| comment | [resources.documents.Comment](#resources-documents-Comment) | | | +| access | [resources.documents.DocumentAccess](#resources-documents-DocumentAccess) | | | - + -### PostCommentResponse +### GetDocumentReferencesRequest | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| comment | [resources.documents.Comment](#resources-documents-Comment) | | | +| document_id | [uint64](#uint64) | | | - + -### RemoveDocumentReferenceRequest +### GetDocumentReferencesResponse | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| id | [uint64](#uint64) | | | +| references | [resources.documents.DocumentReference](#resources-documents-DocumentReference) | repeated | @gotags: alias:"reference" | - + + +### GetDocumentRelationsRequest + -### RemoveDocumentReferenceResponse +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| document_id | [uint64](#uint64) | | | - + -### RemoveDocumentRelationRequest +### GetDocumentRelationsResponse | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| id | [uint64](#uint64) | | | +| relations | [resources.documents.DocumentRelation](#resources-documents-DocumentRelation) | repeated | @gotags: alias:"relation" | - + + +### GetDocumentRequest -### RemoveDocumentRelationResponse +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| document_id | [uint64](#uint64) | | | +| info_only | [bool](#bool) | optional | | + - + -### SetDocumentAccessRequest +### GetDocumentResponse | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| document_id | [uint64](#uint64) | | | +| document | [resources.documents.Document](#resources-documents-Document) | | | | access | [resources.documents.DocumentAccess](#resources-documents-DocumentAccess) | | | @@ -9113,36 +9231,42 @@ TODO add way to link to, e.g., internal "objects" (citizens, documents, calendar - + + +### GetTemplateRequest -### SetDocumentAccessResponse +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| template_id | [uint64](#uint64) | | | +| data | [resources.documents.TemplateData](#resources-documents-TemplateData) | optional | | +| render | [bool](#bool) | optional | | + - + -### SetDocumentReminderRequest +### GetTemplateResponse | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| document_id | [uint64](#uint64) | | | -| reminder_time | [resources.timestamp.Timestamp](#resources-timestamp-Timestamp) | optional | | -| message | [string](#string) | optional | @sanitize: method=StripTags | +| template | [resources.documents.Template](#resources-documents-Template) | | | +| rendered | [bool](#bool) | | | - + -### SetDocumentReminderResponse +### ListCategoriesRequest @@ -9150,290 +9274,248 @@ TODO add way to link to, e.g., internal "objects" (citizens, documents, calendar - + -### ToggleDocumentPinRequest +### ListCategoriesResponse | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| document_id | [uint64](#uint64) | | | -| state | [bool](#bool) | | | +| category | [resources.documents.Category](#resources-documents-Category) | repeated | | - + -### ToggleDocumentPinResponse +### ListDocumentActivityRequest | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| state | [bool](#bool) | | | +| pagination | [resources.common.database.PaginationRequest](#resources-common-database-PaginationRequest) | | | +| document_id | [uint64](#uint64) | | | +| activity_types | [resources.documents.DocActivityType](#resources-documents-DocActivityType) | repeated | Search params | - + -### ToggleDocumentRequest +### ListDocumentActivityResponse | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| document_id | [uint64](#uint64) | | | -| closed | [bool](#bool) | | | +| pagination | [resources.common.database.PaginationResponse](#resources-common-database-PaginationResponse) | | | +| activity | [resources.documents.DocActivity](#resources-documents-DocActivity) | repeated | | - + -### ToggleDocumentResponse +### ListDocumentPinsRequest +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| pagination | [resources.common.database.PaginationRequest](#resources-common-database-PaginationRequest) | | | - -### UpdateCategoryRequest + + + +### ListDocumentPinsResponse | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| category | [resources.documents.Category](#resources-documents-Category) | | | +| pagination | [resources.common.database.PaginationResponse](#resources-common-database-PaginationResponse) | | | +| documents | [resources.documents.DocumentShort](#resources-documents-DocumentShort) | repeated | | - + -### UpdateCategoryResponse +### ListDocumentReqsRequest +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| pagination | [resources.common.database.PaginationRequest](#resources-common-database-PaginationRequest) | | | +| document_id | [uint64](#uint64) | | | + + - + -### UpdateDocumentReqRequest +### ListDocumentReqsResponse | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| document_id | [uint64](#uint64) | | | -| request_id | [uint64](#uint64) | | | -| reason | [string](#string) | optional | @sanitize | -| data | [resources.documents.DocActivityData](#resources-documents-DocActivityData) | optional | | -| accepted | [bool](#bool) | | | +| pagination | [resources.common.database.PaginationResponse](#resources-common-database-PaginationResponse) | | | +| requests | [resources.documents.DocRequest](#resources-documents-DocRequest) | repeated | | - + -### UpdateDocumentReqResponse +### ListDocumentsRequest | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| request | [resources.documents.DocRequest](#resources-documents-DocRequest) | | | +| pagination | [resources.common.database.PaginationRequest](#resources-common-database-PaginationRequest) | | | +| sort | [resources.common.database.Sort](#resources-common-database-Sort) | optional | | +| search | [string](#string) | optional | Search params | +| category_ids | [uint64](#uint64) | repeated | | +| creator_ids | [int32](#int32) | repeated | | +| from | [resources.timestamp.Timestamp](#resources-timestamp-Timestamp) | optional | | +| to | [resources.timestamp.Timestamp](#resources-timestamp-Timestamp) | optional | | +| closed | [bool](#bool) | optional | | +| document_ids | [uint64](#uint64) | repeated | | - + -### UpdateDocumentRequest +### ListDocumentsResponse | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| document_id | [uint64](#uint64) | | @gotags: alias:"id" | -| category_id | [uint64](#uint64) | optional | @gotags: alias:"category_id" | -| title | [string](#string) | | @sanitize: method=StripTags - -@gotags: alias:"title" | -| content | [resources.common.content.Content](#resources-common-content-Content) | | @sanitize | -| content_type | [resources.common.content.ContentType](#resources-common-content-ContentType) | | @gotags: alias:"content_type" | -| data | [string](#string) | optional | @gotags: alias:"data" | -| state | [string](#string) | | @sanitize - -@gotags: alias:"state" | -| closed | [bool](#bool) | | @gotags: alias:"closed" | -| public | [bool](#bool) | | @gotags: alias:"public" | -| access | [resources.documents.DocumentAccess](#resources-documents-DocumentAccess) | optional | | - - +| pagination | [resources.common.database.PaginationResponse](#resources-common-database-PaginationResponse) | | | +| documents | [resources.documents.DocumentShort](#resources-documents-DocumentShort) | repeated | | - -### UpdateDocumentResponse + +### ListTemplatesRequest -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| document_id | [uint64](#uint64) | | @gotags: alias:"id" | - + -### UpdateTemplateRequest +### ListTemplatesResponse | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| template | [resources.documents.Template](#resources-documents-Template) | | | +| templates | [resources.documents.TemplateShort](#resources-documents-TemplateShort) | repeated | | - + -### UpdateTemplateResponse +### ListUserDocumentsRequest | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| template | [resources.documents.Template](#resources-documents-Template) | | | - - - - +| pagination | [resources.common.database.PaginationRequest](#resources-common-database-PaginationRequest) | | | +| user_id | [int32](#int32) | | | +| relations | [resources.documents.DocRelation](#resources-documents-DocRelation) | repeated | | +| closed | [bool](#bool) | optional | | - - - - -### DocStoreService + +### ListUserDocumentsResponse -| Method Name | Request Type | Response Type | Description | -| ----------- | ------------ | ------------- | ------------| -| ListTemplates | [ListTemplatesRequest](#services-docstore-ListTemplatesRequest) | [ListTemplatesResponse](#services-docstore-ListTemplatesResponse) | @perm | -| GetTemplate | [GetTemplateRequest](#services-docstore-GetTemplateRequest) | [GetTemplateResponse](#services-docstore-GetTemplateResponse) | @perm: Name=ListTemplates | -| CreateTemplate | [CreateTemplateRequest](#services-docstore-CreateTemplateRequest) | [CreateTemplateResponse](#services-docstore-CreateTemplateResponse) | @perm | -| UpdateTemplate | [UpdateTemplateRequest](#services-docstore-UpdateTemplateRequest) | [UpdateTemplateResponse](#services-docstore-UpdateTemplateResponse) | @perm: Name=CreateTemplate | -| DeleteTemplate | [DeleteTemplateRequest](#services-docstore-DeleteTemplateRequest) | [DeleteTemplateResponse](#services-docstore-DeleteTemplateResponse) | @perm | -| ListDocuments | [ListDocumentsRequest](#services-docstore-ListDocumentsRequest) | [ListDocumentsResponse](#services-docstore-ListDocumentsResponse) | @perm | -| GetDocument | [GetDocumentRequest](#services-docstore-GetDocumentRequest) | [GetDocumentResponse](#services-docstore-GetDocumentResponse) | @perm: Name=ListDocuments | -| CreateDocument | [CreateDocumentRequest](#services-docstore-CreateDocumentRequest) | [CreateDocumentResponse](#services-docstore-CreateDocumentResponse) | @perm | -| UpdateDocument | [UpdateDocumentRequest](#services-docstore-UpdateDocumentRequest) | [UpdateDocumentResponse](#services-docstore-UpdateDocumentResponse) | @perm: Attrs=Access/StringList:[]string{"Own", "Lower_Rank", "Same_Rank", "Any"} | -| DeleteDocument | [DeleteDocumentRequest](#services-docstore-DeleteDocumentRequest) | [DeleteDocumentResponse](#services-docstore-DeleteDocumentResponse) | @perm: Attrs=Access/StringList:[]string{"Own", "Lower_Rank", "Same_Rank", "Any"} | -| ToggleDocument | [ToggleDocumentRequest](#services-docstore-ToggleDocumentRequest) | [ToggleDocumentResponse](#services-docstore-ToggleDocumentResponse) | @perm: Attrs=Access/StringList:[]string{"Own", "Lower_Rank", "Same_Rank", "Any"} | -| ChangeDocumentOwner | [ChangeDocumentOwnerRequest](#services-docstore-ChangeDocumentOwnerRequest) | [ChangeDocumentOwnerResponse](#services-docstore-ChangeDocumentOwnerResponse) | @perm: Attrs=Access/StringList:[]string{"Own", "Lower_Rank", "Same_Rank", "Any"} | -| GetDocumentReferences | [GetDocumentReferencesRequest](#services-docstore-GetDocumentReferencesRequest) | [GetDocumentReferencesResponse](#services-docstore-GetDocumentReferencesResponse) | @perm: Name=ListDocuments | -| GetDocumentRelations | [GetDocumentRelationsRequest](#services-docstore-GetDocumentRelationsRequest) | [GetDocumentRelationsResponse](#services-docstore-GetDocumentRelationsResponse) | @perm: Name=ListDocuments | -| AddDocumentReference | [AddDocumentReferenceRequest](#services-docstore-AddDocumentReferenceRequest) | [AddDocumentReferenceResponse](#services-docstore-AddDocumentReferenceResponse) | @perm | -| RemoveDocumentReference | [RemoveDocumentReferenceRequest](#services-docstore-RemoveDocumentReferenceRequest) | [RemoveDocumentReferenceResponse](#services-docstore-RemoveDocumentReferenceResponse) | @perm: Name=AddDocumentReference | -| AddDocumentRelation | [AddDocumentRelationRequest](#services-docstore-AddDocumentRelationRequest) | [AddDocumentRelationResponse](#services-docstore-AddDocumentRelationResponse) | @perm | -| RemoveDocumentRelation | [RemoveDocumentRelationRequest](#services-docstore-RemoveDocumentRelationRequest) | [RemoveDocumentRelationResponse](#services-docstore-RemoveDocumentRelationResponse) | @perm: Name=AddDocumentRelation | -| GetComments | [GetCommentsRequest](#services-docstore-GetCommentsRequest) | [GetCommentsResponse](#services-docstore-GetCommentsResponse) | @perm: Name=ListDocuments | -| PostComment | [PostCommentRequest](#services-docstore-PostCommentRequest) | [PostCommentResponse](#services-docstore-PostCommentResponse) | @perm | -| EditComment | [EditCommentRequest](#services-docstore-EditCommentRequest) | [EditCommentResponse](#services-docstore-EditCommentResponse) | @perm: Name=PostComment | -| DeleteComment | [DeleteCommentRequest](#services-docstore-DeleteCommentRequest) | [DeleteCommentResponse](#services-docstore-DeleteCommentResponse) | @perm: Attrs=Access/StringList:[]string{"Own", "Lower_Rank", "Same_Rank", "Any"} | -| GetDocumentAccess | [GetDocumentAccessRequest](#services-docstore-GetDocumentAccessRequest) | [GetDocumentAccessResponse](#services-docstore-GetDocumentAccessResponse) | @perm: Name=ListDocuments | -| SetDocumentAccess | [SetDocumentAccessRequest](#services-docstore-SetDocumentAccessRequest) | [SetDocumentAccessResponse](#services-docstore-SetDocumentAccessResponse) | @perm: Name=CreateDocument | -| ListDocumentActivity | [ListDocumentActivityRequest](#services-docstore-ListDocumentActivityRequest) | [ListDocumentActivityResponse](#services-docstore-ListDocumentActivityResponse) | @perm | -| ListDocumentReqs | [ListDocumentReqsRequest](#services-docstore-ListDocumentReqsRequest) | [ListDocumentReqsResponse](#services-docstore-ListDocumentReqsResponse) | @perm | -| CreateDocumentReq | [CreateDocumentReqRequest](#services-docstore-CreateDocumentReqRequest) | [CreateDocumentReqResponse](#services-docstore-CreateDocumentReqResponse) | @perm: Attrs=Types/StringList:[]string{"Access", "Closure", "Update", "Deletion", "OwnerChange"} | -| UpdateDocumentReq | [UpdateDocumentReqRequest](#services-docstore-UpdateDocumentReqRequest) | [UpdateDocumentReqResponse](#services-docstore-UpdateDocumentReqResponse) | @perm: Name=CreateDocumentReq | -| DeleteDocumentReq | [DeleteDocumentReqRequest](#services-docstore-DeleteDocumentReqRequest) | [DeleteDocumentReqResponse](#services-docstore-DeleteDocumentReqResponse) | @perm | -| ListUserDocuments | [ListUserDocumentsRequest](#services-docstore-ListUserDocumentsRequest) | [ListUserDocumentsResponse](#services-docstore-ListUserDocumentsResponse) | @perm | -| ListCategories | [ListCategoriesRequest](#services-docstore-ListCategoriesRequest) | [ListCategoriesResponse](#services-docstore-ListCategoriesResponse) | @perm | -| CreateCategory | [CreateCategoryRequest](#services-docstore-CreateCategoryRequest) | [CreateCategoryResponse](#services-docstore-CreateCategoryResponse) | @perm | -| UpdateCategory | [UpdateCategoryRequest](#services-docstore-UpdateCategoryRequest) | [UpdateCategoryResponse](#services-docstore-UpdateCategoryResponse) | @perm: Name=CreateCategory | -| DeleteCategory | [DeleteCategoryRequest](#services-docstore-DeleteCategoryRequest) | [DeleteCategoryResponse](#services-docstore-DeleteCategoryResponse) | @perm | -| ListDocumentPins | [ListDocumentPinsRequest](#services-docstore-ListDocumentPinsRequest) | [ListDocumentPinsResponse](#services-docstore-ListDocumentPinsResponse) | @perm: Name=ListDocuments | -| ToggleDocumentPin | [ToggleDocumentPinRequest](#services-docstore-ToggleDocumentPinRequest) | [ToggleDocumentPinResponse](#services-docstore-ToggleDocumentPinResponse) | @perm | -| SetDocumentReminder | [SetDocumentReminderRequest](#services-docstore-SetDocumentReminderRequest) | [SetDocumentReminderResponse](#services-docstore-SetDocumentReminderResponse) | @perm | - +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| pagination | [resources.common.database.PaginationResponse](#resources-common-database-PaginationResponse) | | | +| relations | [resources.documents.DocumentRelation](#resources-documents-DocumentRelation) | repeated | | - - -## services/jobs/conduct.proto - + -### CreateConductEntryRequest +### PostCommentRequest | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| entry | [resources.jobs.ConductEntry](#resources-jobs-ConductEntry) | | | +| comment | [resources.documents.Comment](#resources-documents-Comment) | | | - + -### CreateConductEntryResponse +### PostCommentResponse | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| entry | [resources.jobs.ConductEntry](#resources-jobs-ConductEntry) | | | +| comment | [resources.documents.Comment](#resources-documents-Comment) | | | - + -### DeleteConductEntryRequest +### RemoveDocumentReferenceRequest @@ -9446,9 +9528,9 @@ TODO add way to link to, e.g., internal "objects" (citizens, documents, calendar - + -### DeleteConductEntryResponse +### RemoveDocumentReferenceResponse @@ -9456,399 +9538,450 @@ TODO add way to link to, e.g., internal "objects" (citizens, documents, calendar - + -### ListConductEntriesRequest +### RemoveDocumentRelationRequest | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| pagination | [resources.common.database.PaginationRequest](#resources-common-database-PaginationRequest) | | | -| sort | [resources.common.database.Sort](#resources-common-database-Sort) | optional | | -| types | [resources.jobs.ConductType](#resources-jobs-ConductType) | repeated | Search params | -| show_expired | [bool](#bool) | optional | | -| user_ids | [int32](#int32) | repeated | | -| ids | [uint64](#uint64) | repeated | | - - +| id | [uint64](#uint64) | | | - -### ListConductEntriesResponse + +### RemoveDocumentRelationResponse -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| pagination | [resources.common.database.PaginationResponse](#resources-common-database-PaginationResponse) | | | -| entries | [resources.jobs.ConductEntry](#resources-jobs-ConductEntry) | repeated | | - + -### UpdateConductEntryRequest +### SetDocumentAccessRequest | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| entry | [resources.jobs.ConductEntry](#resources-jobs-ConductEntry) | | | +| document_id | [uint64](#uint64) | | | +| access | [resources.documents.DocumentAccess](#resources-documents-DocumentAccess) | | | - + -### UpdateConductEntryResponse +### SetDocumentAccessResponse -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| entry | [resources.jobs.ConductEntry](#resources-jobs-ConductEntry) | | | + - +### SetDocumentReminderRequest - - +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| document_id | [uint64](#uint64) | | | +| reminder_time | [resources.timestamp.Timestamp](#resources-timestamp-Timestamp) | optional | | +| message | [string](#string) | optional | @sanitize: method=StripTags | - -### JobsConductService -| Method Name | Request Type | Response Type | Description | -| ----------- | ------------ | ------------- | ------------| -| ListConductEntries | [ListConductEntriesRequest](#services-jobs-ListConductEntriesRequest) | [ListConductEntriesResponse](#services-jobs-ListConductEntriesResponse) | @perm: Attrs=Access/StringList:[]string{"Own", "All"} | -| CreateConductEntry | [CreateConductEntryRequest](#services-jobs-CreateConductEntryRequest) | [CreateConductEntryResponse](#services-jobs-CreateConductEntryResponse) | @perm | -| UpdateConductEntry | [UpdateConductEntryRequest](#services-jobs-UpdateConductEntryRequest) | [UpdateConductEntryResponse](#services-jobs-UpdateConductEntryResponse) | @perm | -| DeleteConductEntry | [DeleteConductEntryRequest](#services-jobs-DeleteConductEntryRequest) | [DeleteConductEntryResponse](#services-jobs-DeleteConductEntryResponse) | @perm | - + +### SetDocumentReminderResponse - - -## services/jobs/jobs.proto - -### GetColleagueLabelsRequest + + + +### ToggleDocumentPinRequest | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| search | [string](#string) | optional | | +| document_id | [uint64](#uint64) | | | +| state | [bool](#bool) | | | - + -### GetColleagueLabelsResponse +### ToggleDocumentPinResponse | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| labels | [resources.jobs.Label](#resources-jobs-Label) | repeated | | +| state | [bool](#bool) | | | - + -### GetColleagueLabelsStatsRequest +### ToggleDocumentRequest | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| label_ids | [uint64](#uint64) | repeated | | +| document_id | [uint64](#uint64) | | | +| closed | [bool](#bool) | | | - + + +### ToggleDocumentResponse + + -### GetColleagueLabelsStatsResponse -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| count | [resources.jobs.LabelCount](#resources-jobs-LabelCount) | repeated | | + + + +### UpdateCategoryRequest +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| category | [resources.documents.Category](#resources-documents-Category) | | | + - -### GetColleagueRequest + +### UpdateCategoryResponse -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| user_id | [int32](#int32) | | | -| info_only | [bool](#bool) | optional | | - + -### GetColleagueResponse +### UpdateDocumentReqRequest | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| colleague | [resources.jobs.Colleague](#resources-jobs-Colleague) | | | +| document_id | [uint64](#uint64) | | | +| request_id | [uint64](#uint64) | | | +| reason | [string](#string) | optional | @sanitize | +| data | [resources.documents.DocActivityData](#resources-documents-DocActivityData) | optional | | +| accepted | [bool](#bool) | | | - + + +### UpdateDocumentReqResponse + -### GetMOTDRequest +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| request | [resources.documents.DocRequest](#resources-documents-DocRequest) | | | - + -### GetMOTDResponse +### UpdateDocumentRequest | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| motd | [string](#string) | | | +| document_id | [uint64](#uint64) | | @gotags: alias:"id" | +| category_id | [uint64](#uint64) | optional | @gotags: alias:"category_id" | +| title | [string](#string) | | @sanitize: method=StripTags + +@gotags: alias:"title" | +| content | [resources.common.content.Content](#resources-common-content-Content) | | @sanitize | +| content_type | [resources.common.content.ContentType](#resources-common-content-ContentType) | | @gotags: alias:"content_type" | +| data | [string](#string) | optional | @gotags: alias:"data" | +| state | [string](#string) | | @sanitize +@gotags: alias:"state" | +| closed | [bool](#bool) | | @gotags: alias:"closed" | +| public | [bool](#bool) | | @gotags: alias:"public" | +| access | [resources.documents.DocumentAccess](#resources-documents-DocumentAccess) | optional | | - -### GetSelfRequest + + +### UpdateDocumentResponse +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| document_id | [uint64](#uint64) | | @gotags: alias:"id" | + - -### GetSelfResponse + + +### UpdateTemplateRequest | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| colleague | [resources.jobs.Colleague](#resources-jobs-Colleague) | | | +| template | [resources.documents.Template](#resources-documents-Template) | | | - + -### ListColleagueActivityRequest +### UpdateTemplateResponse | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| pagination | [resources.common.database.PaginationRequest](#resources-common-database-PaginationRequest) | | | -| sort | [resources.common.database.Sort](#resources-common-database-Sort) | optional | | -| user_ids | [int32](#int32) | repeated | Search params | -| activity_types | [resources.jobs.JobsUserActivityType](#resources-jobs-JobsUserActivityType) | repeated | | +| template | [resources.documents.Template](#resources-documents-Template) | | | + - + -### ListColleagueActivityResponse + + -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| pagination | [resources.common.database.PaginationResponse](#resources-common-database-PaginationResponse) | | | -| activity | [resources.jobs.JobsUserActivity](#resources-jobs-JobsUserActivity) | repeated | | +### DocStoreService + + +| Method Name | Request Type | Response Type | Description | +| ----------- | ------------ | ------------- | ------------| +| ListTemplates | [ListTemplatesRequest](#services-docstore-ListTemplatesRequest) | [ListTemplatesResponse](#services-docstore-ListTemplatesResponse) | @perm | +| GetTemplate | [GetTemplateRequest](#services-docstore-GetTemplateRequest) | [GetTemplateResponse](#services-docstore-GetTemplateResponse) | @perm: Name=ListTemplates | +| CreateTemplate | [CreateTemplateRequest](#services-docstore-CreateTemplateRequest) | [CreateTemplateResponse](#services-docstore-CreateTemplateResponse) | @perm | +| UpdateTemplate | [UpdateTemplateRequest](#services-docstore-UpdateTemplateRequest) | [UpdateTemplateResponse](#services-docstore-UpdateTemplateResponse) | @perm: Name=CreateTemplate | +| DeleteTemplate | [DeleteTemplateRequest](#services-docstore-DeleteTemplateRequest) | [DeleteTemplateResponse](#services-docstore-DeleteTemplateResponse) | @perm | +| ListDocuments | [ListDocumentsRequest](#services-docstore-ListDocumentsRequest) | [ListDocumentsResponse](#services-docstore-ListDocumentsResponse) | @perm | +| GetDocument | [GetDocumentRequest](#services-docstore-GetDocumentRequest) | [GetDocumentResponse](#services-docstore-GetDocumentResponse) | @perm: Name=ListDocuments | +| CreateDocument | [CreateDocumentRequest](#services-docstore-CreateDocumentRequest) | [CreateDocumentResponse](#services-docstore-CreateDocumentResponse) | @perm | +| UpdateDocument | [UpdateDocumentRequest](#services-docstore-UpdateDocumentRequest) | [UpdateDocumentResponse](#services-docstore-UpdateDocumentResponse) | @perm: Attrs=Access/StringList:[]string{"Own", "Lower_Rank", "Same_Rank", "Any"} | +| DeleteDocument | [DeleteDocumentRequest](#services-docstore-DeleteDocumentRequest) | [DeleteDocumentResponse](#services-docstore-DeleteDocumentResponse) | @perm: Attrs=Access/StringList:[]string{"Own", "Lower_Rank", "Same_Rank", "Any"} | +| ToggleDocument | [ToggleDocumentRequest](#services-docstore-ToggleDocumentRequest) | [ToggleDocumentResponse](#services-docstore-ToggleDocumentResponse) | @perm: Attrs=Access/StringList:[]string{"Own", "Lower_Rank", "Same_Rank", "Any"} | +| ChangeDocumentOwner | [ChangeDocumentOwnerRequest](#services-docstore-ChangeDocumentOwnerRequest) | [ChangeDocumentOwnerResponse](#services-docstore-ChangeDocumentOwnerResponse) | @perm: Attrs=Access/StringList:[]string{"Own", "Lower_Rank", "Same_Rank", "Any"} | +| GetDocumentReferences | [GetDocumentReferencesRequest](#services-docstore-GetDocumentReferencesRequest) | [GetDocumentReferencesResponse](#services-docstore-GetDocumentReferencesResponse) | @perm: Name=ListDocuments | +| GetDocumentRelations | [GetDocumentRelationsRequest](#services-docstore-GetDocumentRelationsRequest) | [GetDocumentRelationsResponse](#services-docstore-GetDocumentRelationsResponse) | @perm: Name=ListDocuments | +| AddDocumentReference | [AddDocumentReferenceRequest](#services-docstore-AddDocumentReferenceRequest) | [AddDocumentReferenceResponse](#services-docstore-AddDocumentReferenceResponse) | @perm | +| RemoveDocumentReference | [RemoveDocumentReferenceRequest](#services-docstore-RemoveDocumentReferenceRequest) | [RemoveDocumentReferenceResponse](#services-docstore-RemoveDocumentReferenceResponse) | @perm: Name=AddDocumentReference | +| AddDocumentRelation | [AddDocumentRelationRequest](#services-docstore-AddDocumentRelationRequest) | [AddDocumentRelationResponse](#services-docstore-AddDocumentRelationResponse) | @perm | +| RemoveDocumentRelation | [RemoveDocumentRelationRequest](#services-docstore-RemoveDocumentRelationRequest) | [RemoveDocumentRelationResponse](#services-docstore-RemoveDocumentRelationResponse) | @perm: Name=AddDocumentRelation | +| GetComments | [GetCommentsRequest](#services-docstore-GetCommentsRequest) | [GetCommentsResponse](#services-docstore-GetCommentsResponse) | @perm: Name=ListDocuments | +| PostComment | [PostCommentRequest](#services-docstore-PostCommentRequest) | [PostCommentResponse](#services-docstore-PostCommentResponse) | @perm | +| EditComment | [EditCommentRequest](#services-docstore-EditCommentRequest) | [EditCommentResponse](#services-docstore-EditCommentResponse) | @perm: Name=PostComment | +| DeleteComment | [DeleteCommentRequest](#services-docstore-DeleteCommentRequest) | [DeleteCommentResponse](#services-docstore-DeleteCommentResponse) | @perm: Attrs=Access/StringList:[]string{"Own", "Lower_Rank", "Same_Rank", "Any"} | +| GetDocumentAccess | [GetDocumentAccessRequest](#services-docstore-GetDocumentAccessRequest) | [GetDocumentAccessResponse](#services-docstore-GetDocumentAccessResponse) | @perm: Name=ListDocuments | +| SetDocumentAccess | [SetDocumentAccessRequest](#services-docstore-SetDocumentAccessRequest) | [SetDocumentAccessResponse](#services-docstore-SetDocumentAccessResponse) | @perm: Name=CreateDocument | +| ListDocumentActivity | [ListDocumentActivityRequest](#services-docstore-ListDocumentActivityRequest) | [ListDocumentActivityResponse](#services-docstore-ListDocumentActivityResponse) | @perm | +| ListDocumentReqs | [ListDocumentReqsRequest](#services-docstore-ListDocumentReqsRequest) | [ListDocumentReqsResponse](#services-docstore-ListDocumentReqsResponse) | @perm | +| CreateDocumentReq | [CreateDocumentReqRequest](#services-docstore-CreateDocumentReqRequest) | [CreateDocumentReqResponse](#services-docstore-CreateDocumentReqResponse) | @perm: Attrs=Types/StringList:[]string{"Access", "Closure", "Update", "Deletion", "OwnerChange"} | +| UpdateDocumentReq | [UpdateDocumentReqRequest](#services-docstore-UpdateDocumentReqRequest) | [UpdateDocumentReqResponse](#services-docstore-UpdateDocumentReqResponse) | @perm: Name=CreateDocumentReq | +| DeleteDocumentReq | [DeleteDocumentReqRequest](#services-docstore-DeleteDocumentReqRequest) | [DeleteDocumentReqResponse](#services-docstore-DeleteDocumentReqResponse) | @perm | +| ListUserDocuments | [ListUserDocumentsRequest](#services-docstore-ListUserDocumentsRequest) | [ListUserDocumentsResponse](#services-docstore-ListUserDocumentsResponse) | @perm | +| ListCategories | [ListCategoriesRequest](#services-docstore-ListCategoriesRequest) | [ListCategoriesResponse](#services-docstore-ListCategoriesResponse) | @perm | +| CreateCategory | [CreateCategoryRequest](#services-docstore-CreateCategoryRequest) | [CreateCategoryResponse](#services-docstore-CreateCategoryResponse) | @perm | +| UpdateCategory | [UpdateCategoryRequest](#services-docstore-UpdateCategoryRequest) | [UpdateCategoryResponse](#services-docstore-UpdateCategoryResponse) | @perm: Name=CreateCategory | +| DeleteCategory | [DeleteCategoryRequest](#services-docstore-DeleteCategoryRequest) | [DeleteCategoryResponse](#services-docstore-DeleteCategoryResponse) | @perm | +| ListDocumentPins | [ListDocumentPinsRequest](#services-docstore-ListDocumentPinsRequest) | [ListDocumentPinsResponse](#services-docstore-ListDocumentPinsResponse) | @perm: Name=ListDocuments | +| ToggleDocumentPin | [ToggleDocumentPinRequest](#services-docstore-ToggleDocumentPinRequest) | [ToggleDocumentPinResponse](#services-docstore-ToggleDocumentPinResponse) | @perm | +| SetDocumentReminder | [SetDocumentReminderRequest](#services-docstore-SetDocumentReminderRequest) | [SetDocumentReminderResponse](#services-docstore-SetDocumentReminderResponse) | @perm | + + + +## services/jobs/conduct.proto - -### ListColleaguesRequest + + + +### CreateConductEntryRequest | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| pagination | [resources.common.database.PaginationRequest](#resources-common-database-PaginationRequest) | | | -| sort | [resources.common.database.Sort](#resources-common-database-Sort) | optional | | -| search | [string](#string) | | Search params | -| user_id | [int32](#int32) | optional | | -| absent | [bool](#bool) | optional | | -| label_ids | [uint64](#uint64) | repeated | | -| name_prefix | [string](#string) | optional | | -| name_suffix | [string](#string) | optional | | +| entry | [resources.jobs.ConductEntry](#resources-jobs-ConductEntry) | | | - + -### ListColleaguesResponse +### CreateConductEntryResponse | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| pagination | [resources.common.database.PaginationResponse](#resources-common-database-PaginationResponse) | | | -| colleagues | [resources.jobs.Colleague](#resources-jobs-Colleague) | repeated | | +| entry | [resources.jobs.ConductEntry](#resources-jobs-ConductEntry) | | | - + -### ManageColleagueLabelsRequest +### DeleteConductEntryRequest | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| labels | [resources.jobs.Label](#resources-jobs-Label) | repeated | | - - +| id | [uint64](#uint64) | | | - -### ManageColleagueLabelsResponse + +### DeleteConductEntryResponse -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| labels | [resources.jobs.Label](#resources-jobs-Label) | repeated | | - + -### SetJobsUserPropsRequest +### ListConductEntriesRequest | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| props | [resources.jobs.JobsUserProps](#resources-jobs-JobsUserProps) | | | -| reason | [string](#string) | | @sanitize | +| pagination | [resources.common.database.PaginationRequest](#resources-common-database-PaginationRequest) | | | +| sort | [resources.common.database.Sort](#resources-common-database-Sort) | optional | | +| types | [resources.jobs.ConductType](#resources-jobs-ConductType) | repeated | Search params | +| show_expired | [bool](#bool) | optional | | +| user_ids | [int32](#int32) | repeated | | +| ids | [uint64](#uint64) | repeated | | - + -### SetJobsUserPropsResponse +### ListConductEntriesResponse | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| props | [resources.jobs.JobsUserProps](#resources-jobs-JobsUserProps) | | | +| pagination | [resources.common.database.PaginationResponse](#resources-common-database-PaginationResponse) | | | +| entries | [resources.jobs.ConductEntry](#resources-jobs-ConductEntry) | repeated | | - + -### SetMOTDRequest +### UpdateConductEntryRequest | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| motd | [string](#string) | | @sanitize: method=StripTags | +| entry | [resources.jobs.ConductEntry](#resources-jobs-ConductEntry) | | | - + -### SetMOTDResponse +### UpdateConductEntryResponse | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| motd | [string](#string) | | | +| entry | [resources.jobs.ConductEntry](#resources-jobs-ConductEntry) | | | @@ -9861,23 +9994,17 @@ TODO add way to link to, e.g., internal "objects" (citizens, documents, calendar - + -### JobsService +### JobsConductService | Method Name | Request Type | Response Type | Description | | ----------- | ------------ | ------------- | ------------| -| ListColleagues | [ListColleaguesRequest](#services-jobs-ListColleaguesRequest) | [ListColleaguesResponse](#services-jobs-ListColleaguesResponse) | @perm | -| GetSelf | [GetSelfRequest](#services-jobs-GetSelfRequest) | [GetSelfResponse](#services-jobs-GetSelfResponse) | @perm: Name=ListColleagues | -| GetColleague | [GetColleagueRequest](#services-jobs-GetColleagueRequest) | [GetColleagueResponse](#services-jobs-GetColleagueResponse) | @perm: Attrs=Access/StringList:[]string{"Own", "Lower_Rank", "Same_Rank", "Any"}|Types/StringList:[]string{"Note", "Labels"} | -| ListColleagueActivity | [ListColleagueActivityRequest](#services-jobs-ListColleagueActivityRequest) | [ListColleagueActivityResponse](#services-jobs-ListColleagueActivityResponse) | @perm: Attrs=Types/StringList:[]string{"HIRED", "FIRED", "PROMOTED", "DEMOTED", "ABSENCE_DATE", "NOTE", "LABELS", "NAME"} | -| SetJobsUserProps | [SetJobsUserPropsRequest](#services-jobs-SetJobsUserPropsRequest) | [SetJobsUserPropsResponse](#services-jobs-SetJobsUserPropsResponse) | @perm: Attrs=Access/StringList:[]string{"Own", "Lower_Rank", "Same_Rank", "Any"}|Types/StringList:[]string{"AbsenceDate", "Note", "Labels", "Name"} | -| GetColleagueLabels | [GetColleagueLabelsRequest](#services-jobs-GetColleagueLabelsRequest) | [GetColleagueLabelsResponse](#services-jobs-GetColleagueLabelsResponse) | @perm: Name=GetColleague | -| ManageColleagueLabels | [ManageColleagueLabelsRequest](#services-jobs-ManageColleagueLabelsRequest) | [ManageColleagueLabelsResponse](#services-jobs-ManageColleagueLabelsResponse) | @perm | -| GetColleagueLabelsStats | [GetColleagueLabelsStatsRequest](#services-jobs-GetColleagueLabelsStatsRequest) | [GetColleagueLabelsStatsResponse](#services-jobs-GetColleagueLabelsStatsResponse) | @perm: Name=GetColleague | -| GetMOTD | [GetMOTDRequest](#services-jobs-GetMOTDRequest) | [GetMOTDResponse](#services-jobs-GetMOTDResponse) | @perm: Name=Any | -| SetMOTD | [SetMOTDRequest](#services-jobs-SetMOTDRequest) | [SetMOTDResponse](#services-jobs-SetMOTDResponse) | @perm | +| ListConductEntries | [ListConductEntriesRequest](#services-jobs-ListConductEntriesRequest) | [ListConductEntriesResponse](#services-jobs-ListConductEntriesResponse) | @perm: Attrs=Access/StringList:[]string{"Own", "All"} | +| CreateConductEntry | [CreateConductEntryRequest](#services-jobs-CreateConductEntryRequest) | [CreateConductEntryResponse](#services-jobs-CreateConductEntryResponse) | @perm | +| UpdateConductEntry | [UpdateConductEntryRequest](#services-jobs-UpdateConductEntryRequest) | [UpdateConductEntryResponse](#services-jobs-UpdateConductEntryResponse) | @perm | +| DeleteConductEntry | [DeleteConductEntryRequest](#services-jobs-DeleteConductEntryRequest) | [DeleteConductEntryResponse](#services-jobs-DeleteConductEntryResponse) | @perm | @@ -10063,1158 +10190,1148 @@ TODO add way to link to, e.g., internal "objects" (citizens, documents, calendar | GetTimeclockStats | [GetTimeclockStatsRequest](#services-jobs-GetTimeclockStatsRequest) | [GetTimeclockStatsResponse](#services-jobs-GetTimeclockStatsResponse) | @perm: Name=ListTimeclock | | ListInactiveEmployees | [ListInactiveEmployeesRequest](#services-jobs-ListInactiveEmployeesRequest) | [ListInactiveEmployeesResponse](#services-jobs-ListInactiveEmployeesResponse) | @perm | - - - - - - - -## services/livemapper/livemap.proto - - - - - -### CreateOrUpdateMarkerRequest - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| marker | [resources.livemap.MarkerMarker](#resources-livemap-MarkerMarker) | | | - - - - - - - - -### CreateOrUpdateMarkerResponse - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| marker | [resources.livemap.MarkerMarker](#resources-livemap-MarkerMarker) | | | - - - - - - - - -### DeleteMarkerRequest + -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| id | [uint64](#uint64) | | | + + +## services/jobs/jobs.proto + +### GetColleagueLabelsRequest - -### DeleteMarkerResponse +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| search | [string](#string) | optional | | - + -### JobsList +### GetColleagueLabelsResponse | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| users | [resources.users.Job](#resources-users-Job) | repeated | | -| markers | [resources.users.Job](#resources-users-Job) | repeated | | +| labels | [resources.jobs.Label](#resources-jobs-Label) | repeated | | - + -### MarkerMarkersUpdates +### GetColleagueLabelsStatsRequest | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| markers | [resources.livemap.MarkerMarker](#resources-livemap-MarkerMarker) | repeated | | +| label_ids | [uint64](#uint64) | repeated | | - + + +### GetColleagueLabelsStatsResponse -### StreamRequest +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| count | [resources.jobs.LabelCount](#resources-jobs-LabelCount) | repeated | | - -### StreamResponse + + +### GetColleagueRequest | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| jobs | [JobsList](#services-livemapper-JobsList) | | | -| markers | [MarkerMarkersUpdates](#services-livemapper-MarkerMarkersUpdates) | | | -| users | [UserMarkersUpdates](#services-livemapper-UserMarkersUpdates) | | | -| user_on_duty | [bool](#bool) | optional | | +| user_id | [int32](#int32) | | | +| info_only | [bool](#bool) | optional | | - + -### UserMarkersUpdates +### GetColleagueResponse | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| users | [resources.livemap.UserMarker](#resources-livemap-UserMarker) | repeated | | -| part | [int32](#int32) | | | +| colleague | [resources.jobs.Colleague](#resources-jobs-Colleague) | | | - - + - +### GetMOTDRequest - -### LivemapperService -| Method Name | Request Type | Response Type | Description | -| ----------- | ------------ | ------------- | ------------| -| Stream | [StreamRequest](#services-livemapper-StreamRequest) | [StreamResponse](#services-livemapper-StreamResponse) stream | @perm: Attrs=Markers/JobList|Players/JobGradeList | -| CreateOrUpdateMarker | [CreateOrUpdateMarkerRequest](#services-livemapper-CreateOrUpdateMarkerRequest) | [CreateOrUpdateMarkerResponse](#services-livemapper-CreateOrUpdateMarkerResponse) | @perm: Attrs=Access/StringList:[]string{"Own", "Lower_Rank", "Same_Rank", "Any"} | -| DeleteMarker | [DeleteMarkerRequest](#services-livemapper-DeleteMarkerRequest) | [DeleteMarkerResponse](#services-livemapper-DeleteMarkerResponse) | @perm: Attrs=Access/StringList:[]string{"Own", "Lower_Rank", "Same_Rank", "Any"} | - + +### GetMOTDResponse - - -## services/notificator/notificator.proto +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| motd | [string](#string) | | | - -### GetNotificationsRequest -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| pagination | [resources.common.database.PaginationRequest](#resources-common-database-PaginationRequest) | | | -| include_read | [bool](#bool) | optional | | -| categories | [resources.notifications.NotificationCategory](#resources-notifications-NotificationCategory) | repeated | | + +### GetSelfRequest - -### GetNotificationsResponse + + + +### GetSelfResponse | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| pagination | [resources.common.database.PaginationResponse](#resources-common-database-PaginationResponse) | | | -| notifications | [resources.notifications.Notification](#resources-notifications-Notification) | repeated | | +| colleague | [resources.jobs.Colleague](#resources-jobs-Colleague) | | | - + -### MarkNotificationsRequest +### ListColleagueActivityRequest | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| unread | [bool](#bool) | | | -| ids | [uint64](#uint64) | repeated | | -| all | [bool](#bool) | optional | | +| pagination | [resources.common.database.PaginationRequest](#resources-common-database-PaginationRequest) | | | +| sort | [resources.common.database.Sort](#resources-common-database-Sort) | optional | | +| user_ids | [int32](#int32) | repeated | Search params | +| activity_types | [resources.jobs.JobsUserActivityType](#resources-jobs-JobsUserActivityType) | repeated | | - + -### MarkNotificationsResponse +### ListColleagueActivityResponse | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| updated | [uint64](#uint64) | | | - - +| pagination | [resources.common.database.PaginationResponse](#resources-common-database-PaginationResponse) | | | +| activity | [resources.jobs.JobsUserActivity](#resources-jobs-JobsUserActivity) | repeated | | - -### StreamRequest + +### ListColleaguesRequest +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| pagination | [resources.common.database.PaginationRequest](#resources-common-database-PaginationRequest) | | | +| sort | [resources.common.database.Sort](#resources-common-database-Sort) | optional | | +| search | [string](#string) | | Search params | +| user_id | [int32](#int32) | optional | | +| absent | [bool](#bool) | optional | | +| label_ids | [uint64](#uint64) | repeated | | +| name_prefix | [string](#string) | optional | | +| name_suffix | [string](#string) | optional | | - -### StreamResponse -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| notification_count | [int32](#int32) | | | -| restart | [bool](#bool) | optional | | -| user_event | [resources.notifications.UserEvent](#resources-notifications-UserEvent) | | | -| job_event | [resources.notifications.JobEvent](#resources-notifications-JobEvent) | | | -| job_grade_event | [resources.notifications.JobGradeEvent](#resources-notifications-JobGradeEvent) | | | -| system_event | [resources.notifications.SystemEvent](#resources-notifications-SystemEvent) | | | -| mailer_event | [resources.mailer.MailerEvent](#resources-mailer-MailerEvent) | | | + +### ListColleaguesResponse +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| pagination | [resources.common.database.PaginationResponse](#resources-common-database-PaginationResponse) | | | +| colleagues | [resources.jobs.Colleague](#resources-jobs-Colleague) | repeated | | - - - - -### NotificatorService + +### ManageColleagueLabelsRequest -| Method Name | Request Type | Response Type | Description | -| ----------- | ------------ | ------------- | ------------| -| GetNotifications | [GetNotificationsRequest](#services-notificator-GetNotificationsRequest) | [GetNotificationsResponse](#services-notificator-GetNotificationsResponse) | @perm: Name=Any | -| MarkNotifications | [MarkNotificationsRequest](#services-notificator-MarkNotificationsRequest) | [MarkNotificationsResponse](#services-notificator-MarkNotificationsResponse) | @perm: Name=Any | -| Stream | [StreamRequest](#services-notificator-StreamRequest) | [StreamResponse](#services-notificator-StreamResponse) stream | @perm: Name=Any | - +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| labels | [resources.jobs.Label](#resources-jobs-Label) | repeated | | - - -## services/qualifications/qualifications.proto - + -### CreateOrUpdateQualificationRequestRequest +### ManageColleagueLabelsResponse | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| request | [resources.qualifications.QualificationRequest](#resources-qualifications-QualificationRequest) | | | +| labels | [resources.jobs.Label](#resources-jobs-Label) | repeated | | - + -### CreateOrUpdateQualificationRequestResponse +### SetJobsUserPropsRequest | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| request | [resources.qualifications.QualificationRequest](#resources-qualifications-QualificationRequest) | | | +| props | [resources.jobs.JobsUserProps](#resources-jobs-JobsUserProps) | | | +| reason | [string](#string) | | @sanitize | - + -### CreateOrUpdateQualificationResultRequest +### SetJobsUserPropsResponse | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| result | [resources.qualifications.QualificationResult](#resources-qualifications-QualificationResult) | | | +| props | [resources.jobs.JobsUserProps](#resources-jobs-JobsUserProps) | | | - + -### CreateOrUpdateQualificationResultResponse +### SetMOTDRequest | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| result | [resources.qualifications.QualificationResult](#resources-qualifications-QualificationResult) | | | +| motd | [string](#string) | | @sanitize: method=StripTags | - + -### CreateQualificationRequest +### SetMOTDResponse | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| qualification | [resources.qualifications.Qualification](#resources-qualifications-Qualification) | | | - - - - +| motd | [string](#string) | | | - -### CreateQualificationResponse + -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| qualification_id | [uint64](#uint64) | | | + + + +### JobsService - +| Method Name | Request Type | Response Type | Description | +| ----------- | ------------ | ------------- | ------------| +| ListColleagues | [ListColleaguesRequest](#services-jobs-ListColleaguesRequest) | [ListColleaguesResponse](#services-jobs-ListColleaguesResponse) | @perm | +| GetSelf | [GetSelfRequest](#services-jobs-GetSelfRequest) | [GetSelfResponse](#services-jobs-GetSelfResponse) | @perm: Name=ListColleagues | +| GetColleague | [GetColleagueRequest](#services-jobs-GetColleagueRequest) | [GetColleagueResponse](#services-jobs-GetColleagueResponse) | @perm: Attrs=Access/StringList:[]string{"Own", "Lower_Rank", "Same_Rank", "Any"}|Types/StringList:[]string{"Note", "Labels"} | +| ListColleagueActivity | [ListColleagueActivityRequest](#services-jobs-ListColleagueActivityRequest) | [ListColleagueActivityResponse](#services-jobs-ListColleagueActivityResponse) | @perm: Attrs=Types/StringList:[]string{"HIRED", "FIRED", "PROMOTED", "DEMOTED", "ABSENCE_DATE", "NOTE", "LABELS", "NAME"} | +| SetJobsUserProps | [SetJobsUserPropsRequest](#services-jobs-SetJobsUserPropsRequest) | [SetJobsUserPropsResponse](#services-jobs-SetJobsUserPropsResponse) | @perm: Attrs=Access/StringList:[]string{"Own", "Lower_Rank", "Same_Rank", "Any"}|Types/StringList:[]string{"AbsenceDate", "Note", "Labels", "Name"} | +| GetColleagueLabels | [GetColleagueLabelsRequest](#services-jobs-GetColleagueLabelsRequest) | [GetColleagueLabelsResponse](#services-jobs-GetColleagueLabelsResponse) | @perm: Name=GetColleague | +| ManageColleagueLabels | [ManageColleagueLabelsRequest](#services-jobs-ManageColleagueLabelsRequest) | [ManageColleagueLabelsResponse](#services-jobs-ManageColleagueLabelsResponse) | @perm | +| GetColleagueLabelsStats | [GetColleagueLabelsStatsRequest](#services-jobs-GetColleagueLabelsStatsRequest) | [GetColleagueLabelsStatsResponse](#services-jobs-GetColleagueLabelsStatsResponse) | @perm: Name=GetColleague | +| GetMOTD | [GetMOTDRequest](#services-jobs-GetMOTDRequest) | [GetMOTDResponse](#services-jobs-GetMOTDResponse) | @perm: Name=Any | +| SetMOTD | [SetMOTDRequest](#services-jobs-SetMOTDRequest) | [SetMOTDResponse](#services-jobs-SetMOTDResponse) | @perm | -### DeleteQualificationReqRequest + -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| qualification_id | [uint64](#uint64) | | | -| user_id | [int32](#int32) | | | + + +## services/livemapper/livemap.proto + +### CreateOrUpdateMarkerRequest - -### DeleteQualificationReqResponse +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| marker | [resources.livemap.MarkerMarker](#resources-livemap-MarkerMarker) | | | - + -### DeleteQualificationRequest +### CreateOrUpdateMarkerResponse | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| qualification_id | [uint64](#uint64) | | | +| marker | [resources.livemap.MarkerMarker](#resources-livemap-MarkerMarker) | | | - + -### DeleteQualificationResponse +### DeleteMarkerRequest +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| id | [uint64](#uint64) | | | - -### DeleteQualificationResultRequest + +### DeleteMarkerResponse -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| result_id | [uint64](#uint64) | | | - + -### DeleteQualificationResultResponse +### JobsList +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| users | [resources.users.Job](#resources-users-Job) | repeated | | +| markers | [resources.users.Job](#resources-users-Job) | repeated | | - -### GetExamInfoRequest + +### MarkerMarkersUpdates -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| qualification_id | [uint64](#uint64) | | | +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| markers | [resources.livemap.MarkerMarker](#resources-livemap-MarkerMarker) | repeated | | - -### GetExamInfoResponse + +### StreamRequest -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| qualification | [resources.qualifications.QualificationShort](#resources-qualifications-QualificationShort) | | | -| question_count | [int32](#int32) | | | -| exam_user | [resources.qualifications.ExamUser](#resources-qualifications-ExamUser) | optional | | - + -### GetQualificationAccessRequest +### StreamResponse | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| qualification_id | [uint64](#uint64) | | | +| jobs | [JobsList](#services-livemapper-JobsList) | | | +| markers | [MarkerMarkersUpdates](#services-livemapper-MarkerMarkersUpdates) | | | +| users | [UserMarkersUpdates](#services-livemapper-UserMarkersUpdates) | | | +| user_on_duty | [bool](#bool) | optional | | - + -### GetQualificationAccessResponse +### UserMarkersUpdates | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| access | [resources.qualifications.QualificationAccess](#resources-qualifications-QualificationAccess) | | | +| users | [resources.livemap.UserMarker](#resources-livemap-UserMarker) | repeated | | +| part | [int32](#int32) | | | + - + -### GetQualificationRequest + + -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| qualification_id | [uint64](#uint64) | | | -| with_exam | [bool](#bool) | optional | | +### LivemapperService +| Method Name | Request Type | Response Type | Description | +| ----------- | ------------ | ------------- | ------------| +| Stream | [StreamRequest](#services-livemapper-StreamRequest) | [StreamResponse](#services-livemapper-StreamResponse) stream | @perm: Attrs=Markers/JobList|Players/JobGradeList | +| CreateOrUpdateMarker | [CreateOrUpdateMarkerRequest](#services-livemapper-CreateOrUpdateMarkerRequest) | [CreateOrUpdateMarkerResponse](#services-livemapper-CreateOrUpdateMarkerResponse) | @perm: Attrs=Access/StringList:[]string{"Own", "Lower_Rank", "Same_Rank", "Any"} | +| DeleteMarker | [DeleteMarkerRequest](#services-livemapper-DeleteMarkerRequest) | [DeleteMarkerResponse](#services-livemapper-DeleteMarkerResponse) | @perm: Attrs=Access/StringList:[]string{"Own", "Lower_Rank", "Same_Rank", "Any"} | + - + + -### GetQualificationResponse +## services/notificator/notificator.proto + + + + + +### GetNotificationsRequest | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| qualification | [resources.qualifications.Qualification](#resources-qualifications-Qualification) | | | +| pagination | [resources.common.database.PaginationRequest](#resources-common-database-PaginationRequest) | | | +| include_read | [bool](#bool) | optional | | +| categories | [resources.notifications.NotificationCategory](#resources-notifications-NotificationCategory) | repeated | | - + -### GetUserExamRequest +### GetNotificationsResponse | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| qualification_id | [uint64](#uint64) | | | -| user_id | [int32](#int32) | | | +| pagination | [resources.common.database.PaginationResponse](#resources-common-database-PaginationResponse) | | | +| notifications | [resources.notifications.Notification](#resources-notifications-Notification) | repeated | | - + -### GetUserExamResponse +### MarkNotificationsRequest | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| exam | [resources.qualifications.ExamQuestions](#resources-qualifications-ExamQuestions) | | | -| exam_user | [resources.qualifications.ExamUser](#resources-qualifications-ExamUser) | | | -| responses | [resources.qualifications.ExamResponses](#resources-qualifications-ExamResponses) | | | +| unread | [bool](#bool) | | | +| ids | [uint64](#uint64) | repeated | | +| all | [bool](#bool) | optional | | - + -### ListQualificationRequestsRequest +### MarkNotificationsResponse | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| pagination | [resources.common.database.PaginationRequest](#resources-common-database-PaginationRequest) | | | -| sort | [resources.common.database.Sort](#resources-common-database-Sort) | optional | | -| qualification_id | [uint64](#uint64) | optional | Search params | -| status | [resources.qualifications.RequestStatus](#resources-qualifications-RequestStatus) | repeated | | -| user_id | [int32](#int32) | optional | | - - +| updated | [uint64](#uint64) | | | - -### ListQualificationRequestsResponse + +### StreamRequest -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| pagination | [resources.common.database.PaginationResponse](#resources-common-database-PaginationResponse) | | | -| requests | [resources.qualifications.QualificationRequest](#resources-qualifications-QualificationRequest) | repeated | | - + -### ListQualificationsRequest +### StreamResponse | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| pagination | [resources.common.database.PaginationRequest](#resources-common-database-PaginationRequest) | | | -| sort | [resources.common.database.Sort](#resources-common-database-Sort) | optional | | -| search | [string](#string) | optional | Search params | -| job | [string](#string) | optional | | +| notification_count | [int32](#int32) | | | +| restart | [bool](#bool) | optional | | +| user_event | [resources.notifications.UserEvent](#resources-notifications-UserEvent) | | | +| job_event | [resources.notifications.JobEvent](#resources-notifications-JobEvent) | | | +| job_grade_event | [resources.notifications.JobGradeEvent](#resources-notifications-JobGradeEvent) | | | +| system_event | [resources.notifications.SystemEvent](#resources-notifications-SystemEvent) | | | +| mailer_event | [resources.mailer.MailerEvent](#resources-mailer-MailerEvent) | | | + - + -### ListQualificationsResponse + + -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| pagination | [resources.common.database.PaginationResponse](#resources-common-database-PaginationResponse) | | | -| qualifications | [resources.qualifications.Qualification](#resources-qualifications-Qualification) | repeated | | +### NotificatorService + + +| Method Name | Request Type | Response Type | Description | +| ----------- | ------------ | ------------- | ------------| +| GetNotifications | [GetNotificationsRequest](#services-notificator-GetNotificationsRequest) | [GetNotificationsResponse](#services-notificator-GetNotificationsResponse) | @perm: Name=Any | +| MarkNotifications | [MarkNotificationsRequest](#services-notificator-MarkNotificationsRequest) | [MarkNotificationsResponse](#services-notificator-MarkNotificationsResponse) | @perm: Name=Any | +| Stream | [StreamRequest](#services-notificator-StreamRequest) | [StreamResponse](#services-notificator-StreamResponse) stream | @perm: Name=Any | + + + +## services/qualifications/qualifications.proto - -### ListQualificationsResultsRequest + + + +### CreateOrUpdateQualificationRequestRequest | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| pagination | [resources.common.database.PaginationRequest](#resources-common-database-PaginationRequest) | | | -| sort | [resources.common.database.Sort](#resources-common-database-Sort) | optional | | -| qualification_id | [uint64](#uint64) | optional | Search params | -| status | [resources.qualifications.ResultStatus](#resources-qualifications-ResultStatus) | repeated | | -| user_id | [int32](#int32) | optional | | +| request | [resources.qualifications.QualificationRequest](#resources-qualifications-QualificationRequest) | | | - + -### ListQualificationsResultsResponse +### CreateOrUpdateQualificationRequestResponse | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| pagination | [resources.common.database.PaginationResponse](#resources-common-database-PaginationResponse) | | | -| results | [resources.qualifications.QualificationResult](#resources-qualifications-QualificationResult) | repeated | | +| request | [resources.qualifications.QualificationRequest](#resources-qualifications-QualificationRequest) | | | - + -### SetQualificationAccessRequest +### CreateOrUpdateQualificationResultRequest | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| qualification_id | [uint64](#uint64) | | | -| access | [resources.qualifications.QualificationAccess](#resources-qualifications-QualificationAccess) | | | +| result | [resources.qualifications.QualificationResult](#resources-qualifications-QualificationResult) | | | - + -### SetQualificationAccessResponse +### CreateOrUpdateQualificationResultResponse +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| result | [resources.qualifications.QualificationResult](#resources-qualifications-QualificationResult) | | | - -### SubmitExamRequest + + + +### CreateQualificationRequest | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| qualification_id | [uint64](#uint64) | | | -| responses | [resources.qualifications.ExamResponses](#resources-qualifications-ExamResponses) | | | +| qualification | [resources.qualifications.Qualification](#resources-qualifications-Qualification) | | | - + -### SubmitExamResponse +### CreateQualificationResponse | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| duration | [google.protobuf.Duration](#google-protobuf-Duration) | | | +| qualification_id | [uint64](#uint64) | | | - + -### TakeExamRequest +### DeleteQualificationReqRequest | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | | qualification_id | [uint64](#uint64) | | | -| cancel | [bool](#bool) | optional | | - - +| user_id | [int32](#int32) | | | - -### TakeExamResponse + +### DeleteQualificationReqResponse -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| exam | [resources.qualifications.ExamQuestions](#resources-qualifications-ExamQuestions) | | | -| exam_user | [resources.qualifications.ExamUser](#resources-qualifications-ExamUser) | | | - + -### UpdateQualificationRequest +### DeleteQualificationRequest | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| qualification | [resources.qualifications.Qualification](#resources-qualifications-Qualification) | | | +| qualification_id | [uint64](#uint64) | | | - + -### UpdateQualificationResponse +### DeleteQualificationResponse -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| qualification_id | [uint64](#uint64) | | | + - +### DeleteQualificationResultRequest - - +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| result_id | [uint64](#uint64) | | | - -### QualificationsService -| Method Name | Request Type | Response Type | Description | -| ----------- | ------------ | ------------- | ------------| -| ListQualifications | [ListQualificationsRequest](#services-qualifications-ListQualificationsRequest) | [ListQualificationsResponse](#services-qualifications-ListQualificationsResponse) | @perm | -| GetQualification | [GetQualificationRequest](#services-qualifications-GetQualificationRequest) | [GetQualificationResponse](#services-qualifications-GetQualificationResponse) | @perm: Name=ListQualifications | -| CreateQualification | [CreateQualificationRequest](#services-qualifications-CreateQualificationRequest) | [CreateQualificationResponse](#services-qualifications-CreateQualificationResponse) | @perm | -| UpdateQualification | [UpdateQualificationRequest](#services-qualifications-UpdateQualificationRequest) | [UpdateQualificationResponse](#services-qualifications-UpdateQualificationResponse) | @perm: Attrs=Access/StringList:[]string{"Own", "Lower_Rank", "Same_Rank", "Any"} | -| DeleteQualification | [DeleteQualificationRequest](#services-qualifications-DeleteQualificationRequest) | [DeleteQualificationResponse](#services-qualifications-DeleteQualificationResponse) | @perm: Attrs=Access/StringList:[]string{"Own", "Lower_Rank", "Same_Rank", "Any"} | -| ListQualificationRequests | [ListQualificationRequestsRequest](#services-qualifications-ListQualificationRequestsRequest) | [ListQualificationRequestsResponse](#services-qualifications-ListQualificationRequestsResponse) | @perm: Name=ListQualifications | -| CreateOrUpdateQualificationRequest | [CreateOrUpdateQualificationRequestRequest](#services-qualifications-CreateOrUpdateQualificationRequestRequest) | [CreateOrUpdateQualificationRequestResponse](#services-qualifications-CreateOrUpdateQualificationRequestResponse) | @perm: Name=ListQualifications | -| DeleteQualificationReq | [DeleteQualificationReqRequest](#services-qualifications-DeleteQualificationReqRequest) | [DeleteQualificationReqResponse](#services-qualifications-DeleteQualificationReqResponse) | @perm | -| ListQualificationsResults | [ListQualificationsResultsRequest](#services-qualifications-ListQualificationsResultsRequest) | [ListQualificationsResultsResponse](#services-qualifications-ListQualificationsResultsResponse) | @perm: Name=ListQualifications | -| CreateOrUpdateQualificationResult | [CreateOrUpdateQualificationResultRequest](#services-qualifications-CreateOrUpdateQualificationResultRequest) | [CreateOrUpdateQualificationResultResponse](#services-qualifications-CreateOrUpdateQualificationResultResponse) | @perm | -| DeleteQualificationResult | [DeleteQualificationResultRequest](#services-qualifications-DeleteQualificationResultRequest) | [DeleteQualificationResultResponse](#services-qualifications-DeleteQualificationResultResponse) | @perm | -| GetExamInfo | [GetExamInfoRequest](#services-qualifications-GetExamInfoRequest) | [GetExamInfoResponse](#services-qualifications-GetExamInfoResponse) | @perm: Name=ListQualifications | -| TakeExam | [TakeExamRequest](#services-qualifications-TakeExamRequest) | [TakeExamResponse](#services-qualifications-TakeExamResponse) | @perm: Name=ListQualifications | -| SubmitExam | [SubmitExamRequest](#services-qualifications-SubmitExamRequest) | [SubmitExamResponse](#services-qualifications-SubmitExamResponse) | @perm: Name=ListQualifications | -| GetUserExam | [GetUserExamRequest](#services-qualifications-GetUserExamRequest) | [GetUserExamResponse](#services-qualifications-GetUserExamResponse) | @perm: Name=CreateOrUpdateQualificationResult | - + + + +### DeleteQualificationResultResponse - - -## services/rector/config.proto - + -### GetAppConfigRequest +### GetExamInfoRequest +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| qualification_id | [uint64](#uint64) | | | + - -### GetAppConfigResponse + + +### GetExamInfoResponse | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| config | [resources.rector.AppConfig](#resources-rector-AppConfig) | | | +| qualification | [resources.qualifications.QualificationShort](#resources-qualifications-QualificationShort) | | | +| question_count | [int32](#int32) | | | +| exam_user | [resources.qualifications.ExamUser](#resources-qualifications-ExamUser) | optional | | - + -### UpdateAppConfigRequest +### GetQualificationAccessRequest | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| config | [resources.rector.AppConfig](#resources-rector-AppConfig) | | | +| qualification_id | [uint64](#uint64) | | | - + -### UpdateAppConfigResponse +### GetQualificationAccessResponse | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| config | [resources.rector.AppConfig](#resources-rector-AppConfig) | | | +| access | [resources.qualifications.QualificationAccess](#resources-qualifications-QualificationAccess) | | | - - + - +### GetQualificationRequest - -### RectorConfigService +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| qualification_id | [uint64](#uint64) | | | +| with_exam | [bool](#bool) | optional | | -| Method Name | Request Type | Response Type | Description | -| ----------- | ------------ | ------------- | ------------| -| GetAppConfig | [GetAppConfigRequest](#services-rector-GetAppConfigRequest) | [GetAppConfigResponse](#services-rector-GetAppConfigResponse) | @perm: Name=SuperUser | -| UpdateAppConfig | [UpdateAppConfigRequest](#services-rector-UpdateAppConfigRequest) | [UpdateAppConfigResponse](#services-rector-UpdateAppConfigResponse) | @perm: Name=SuperUser | - - - + -## services/rector/filestore.proto +### GetQualificationResponse + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| qualification | [resources.qualifications.Qualification](#resources-qualifications-Qualification) | | | - -### DeleteFileRequest + + + + +### GetUserExamRequest | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| path | [string](#string) | | | +| qualification_id | [uint64](#uint64) | | | +| user_id | [int32](#int32) | | | - + -### DeleteFileResponse +### GetUserExamResponse +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| exam | [resources.qualifications.ExamQuestions](#resources-qualifications-ExamQuestions) | | | +| exam_user | [resources.qualifications.ExamUser](#resources-qualifications-ExamUser) | | | +| responses | [resources.qualifications.ExamResponses](#resources-qualifications-ExamResponses) | | | + + - + -### ListFilesRequest +### ListQualificationRequestsRequest | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | | pagination | [resources.common.database.PaginationRequest](#resources-common-database-PaginationRequest) | | | -| path | [string](#string) | optional | | +| sort | [resources.common.database.Sort](#resources-common-database-Sort) | optional | | +| qualification_id | [uint64](#uint64) | optional | Search params | +| status | [resources.qualifications.RequestStatus](#resources-qualifications-RequestStatus) | repeated | | +| user_id | [int32](#int32) | optional | | - + -### ListFilesResponse +### ListQualificationRequestsResponse | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | | pagination | [resources.common.database.PaginationResponse](#resources-common-database-PaginationResponse) | | | -| files | [resources.filestore.FileInfo](#resources-filestore-FileInfo) | repeated | | +| requests | [resources.qualifications.QualificationRequest](#resources-qualifications-QualificationRequest) | repeated | | - + -### UploadFileRequest +### ListQualificationsRequest | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| prefix | [string](#string) | | | -| name | [string](#string) | | | -| file | [resources.filestore.File](#resources-filestore-File) | | | +| pagination | [resources.common.database.PaginationRequest](#resources-common-database-PaginationRequest) | | | +| sort | [resources.common.database.Sort](#resources-common-database-Sort) | optional | | +| search | [string](#string) | optional | Search params | +| job | [string](#string) | optional | | - + -### UploadFileResponse +### ListQualificationsResponse | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| file | [resources.filestore.FileInfo](#resources-filestore-FileInfo) | | | - - - - +| pagination | [resources.common.database.PaginationResponse](#resources-common-database-PaginationResponse) | | | +| qualifications | [resources.qualifications.Qualification](#resources-qualifications-Qualification) | repeated | | - - - - -### RectorFilestoreService + +### ListQualificationsResultsRequest -| Method Name | Request Type | Response Type | Description | -| ----------- | ------------ | ------------- | ------------| -| ListFiles | [ListFilesRequest](#services-rector-ListFilesRequest) | [ListFilesResponse](#services-rector-ListFilesResponse) | @perm: Name=SuperUser | -| UploadFile | [UploadFileRequest](#services-rector-UploadFileRequest) | [UploadFileResponse](#services-rector-UploadFileResponse) | @perm: Name=SuperUser | -| DeleteFile | [DeleteFileRequest](#services-rector-DeleteFileRequest) | [DeleteFileResponse](#services-rector-DeleteFileResponse) | @perm: Name=SuperUser | - +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| pagination | [resources.common.database.PaginationRequest](#resources-common-database-PaginationRequest) | | | +| sort | [resources.common.database.Sort](#resources-common-database-Sort) | optional | | +| qualification_id | [uint64](#uint64) | optional | Search params | +| status | [resources.qualifications.ResultStatus](#resources-qualifications-ResultStatus) | repeated | | +| user_id | [int32](#int32) | optional | | - - -## services/rector/laws.proto - + -### CreateOrUpdateLawBookRequest +### ListQualificationsResultsResponse | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| lawBook | [resources.laws.LawBook](#resources-laws-LawBook) | | | +| pagination | [resources.common.database.PaginationResponse](#resources-common-database-PaginationResponse) | | | +| results | [resources.qualifications.QualificationResult](#resources-qualifications-QualificationResult) | repeated | | - + -### CreateOrUpdateLawBookResponse +### SetQualificationAccessRequest | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| lawBook | [resources.laws.LawBook](#resources-laws-LawBook) | | | +| qualification_id | [uint64](#uint64) | | | +| access | [resources.qualifications.QualificationAccess](#resources-qualifications-QualificationAccess) | | | - + -### CreateOrUpdateLawRequest +### SetQualificationAccessResponse + + + + + + + + + +### SubmitExamRequest | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| law | [resources.laws.Law](#resources-laws-Law) | | | +| qualification_id | [uint64](#uint64) | | | +| responses | [resources.qualifications.ExamResponses](#resources-qualifications-ExamResponses) | | | - + -### CreateOrUpdateLawResponse +### SubmitExamResponse | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| law | [resources.laws.Law](#resources-laws-Law) | | | +| duration | [google.protobuf.Duration](#google-protobuf-Duration) | | | - + -### DeleteLawBookRequest +### TakeExamRequest | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| id | [uint64](#uint64) | | | +| qualification_id | [uint64](#uint64) | | | +| cancel | [bool](#bool) | optional | | - + + +### TakeExamResponse -### DeleteLawBookResponse +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| exam | [resources.qualifications.ExamQuestions](#resources-qualifications-ExamQuestions) | | | +| exam_user | [resources.qualifications.ExamUser](#resources-qualifications-ExamUser) | | | - -### DeleteLawRequest + + +### UpdateQualificationRequest | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| id | [uint64](#uint64) | | | +| qualification | [resources.qualifications.Qualification](#resources-qualifications-Qualification) | | | - + + +### UpdateQualificationResponse -### DeleteLawResponse +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| qualification_id | [uint64](#uint64) | | | + @@ -11226,129 +11343,140 @@ TODO add way to link to, e.g., internal "objects" (citizens, documents, calendar - + -### RectorLawsService +### QualificationsService | Method Name | Request Type | Response Type | Description | | ----------- | ------------ | ------------- | ------------| -| CreateOrUpdateLawBook | [CreateOrUpdateLawBookRequest](#services-rector-CreateOrUpdateLawBookRequest) | [CreateOrUpdateLawBookResponse](#services-rector-CreateOrUpdateLawBookResponse) | @perm: Name=SuperUser | -| DeleteLawBook | [DeleteLawBookRequest](#services-rector-DeleteLawBookRequest) | [DeleteLawBookResponse](#services-rector-DeleteLawBookResponse) | @perm: Name=SuperUser | -| CreateOrUpdateLaw | [CreateOrUpdateLawRequest](#services-rector-CreateOrUpdateLawRequest) | [CreateOrUpdateLawResponse](#services-rector-CreateOrUpdateLawResponse) | @perm: Name=SuperUser | -| DeleteLaw | [DeleteLawRequest](#services-rector-DeleteLawRequest) | [DeleteLawResponse](#services-rector-DeleteLawResponse) | @perm: Name=SuperUser | +| ListQualifications | [ListQualificationsRequest](#services-qualifications-ListQualificationsRequest) | [ListQualificationsResponse](#services-qualifications-ListQualificationsResponse) | @perm | +| GetQualification | [GetQualificationRequest](#services-qualifications-GetQualificationRequest) | [GetQualificationResponse](#services-qualifications-GetQualificationResponse) | @perm: Name=ListQualifications | +| CreateQualification | [CreateQualificationRequest](#services-qualifications-CreateQualificationRequest) | [CreateQualificationResponse](#services-qualifications-CreateQualificationResponse) | @perm | +| UpdateQualification | [UpdateQualificationRequest](#services-qualifications-UpdateQualificationRequest) | [UpdateQualificationResponse](#services-qualifications-UpdateQualificationResponse) | @perm: Attrs=Access/StringList:[]string{"Own", "Lower_Rank", "Same_Rank", "Any"} | +| DeleteQualification | [DeleteQualificationRequest](#services-qualifications-DeleteQualificationRequest) | [DeleteQualificationResponse](#services-qualifications-DeleteQualificationResponse) | @perm: Attrs=Access/StringList:[]string{"Own", "Lower_Rank", "Same_Rank", "Any"} | +| ListQualificationRequests | [ListQualificationRequestsRequest](#services-qualifications-ListQualificationRequestsRequest) | [ListQualificationRequestsResponse](#services-qualifications-ListQualificationRequestsResponse) | @perm: Name=ListQualifications | +| CreateOrUpdateQualificationRequest | [CreateOrUpdateQualificationRequestRequest](#services-qualifications-CreateOrUpdateQualificationRequestRequest) | [CreateOrUpdateQualificationRequestResponse](#services-qualifications-CreateOrUpdateQualificationRequestResponse) | @perm: Name=ListQualifications | +| DeleteQualificationReq | [DeleteQualificationReqRequest](#services-qualifications-DeleteQualificationReqRequest) | [DeleteQualificationReqResponse](#services-qualifications-DeleteQualificationReqResponse) | @perm | +| ListQualificationsResults | [ListQualificationsResultsRequest](#services-qualifications-ListQualificationsResultsRequest) | [ListQualificationsResultsResponse](#services-qualifications-ListQualificationsResultsResponse) | @perm: Name=ListQualifications | +| CreateOrUpdateQualificationResult | [CreateOrUpdateQualificationResultRequest](#services-qualifications-CreateOrUpdateQualificationResultRequest) | [CreateOrUpdateQualificationResultResponse](#services-qualifications-CreateOrUpdateQualificationResultResponse) | @perm | +| DeleteQualificationResult | [DeleteQualificationResultRequest](#services-qualifications-DeleteQualificationResultRequest) | [DeleteQualificationResultResponse](#services-qualifications-DeleteQualificationResultResponse) | @perm | +| GetExamInfo | [GetExamInfoRequest](#services-qualifications-GetExamInfoRequest) | [GetExamInfoResponse](#services-qualifications-GetExamInfoResponse) | @perm: Name=ListQualifications | +| TakeExam | [TakeExamRequest](#services-qualifications-TakeExamRequest) | [TakeExamResponse](#services-qualifications-TakeExamResponse) | @perm: Name=ListQualifications | +| SubmitExam | [SubmitExamRequest](#services-qualifications-SubmitExamRequest) | [SubmitExamResponse](#services-qualifications-SubmitExamResponse) | @perm: Name=ListQualifications | +| GetUserExam | [GetUserExamRequest](#services-qualifications-GetUserExamRequest) | [GetUserExamResponse](#services-qualifications-GetUserExamResponse) | @perm: Name=CreateOrUpdateQualificationResult | - + -## services/rector/rector.proto - - +## services/rector/config.proto - -### AttrsUpdate + +### GetAppConfigRequest -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| to_update | [resources.permissions.RoleAttribute](#resources-permissions-RoleAttribute) | repeated | | -| to_remove | [resources.permissions.RoleAttribute](#resources-permissions-RoleAttribute) | repeated | | - + -### CreateRoleRequest +### GetAppConfigResponse | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| job | [string](#string) | | | -| grade | [int32](#int32) | | | +| config | [resources.rector.AppConfig](#resources-rector-AppConfig) | | | - + -### CreateRoleResponse +### UpdateAppConfigRequest | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| role | [resources.permissions.Role](#resources-permissions-Role) | | | +| config | [resources.rector.AppConfig](#resources-rector-AppConfig) | | | - + -### DeleteFactionRequest +### UpdateAppConfigResponse | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| role_id | [uint64](#uint64) | | | - - +| config | [resources.rector.AppConfig](#resources-rector-AppConfig) | | | - -### DeleteFactionResponse + + + + +### RectorConfigService - +| Method Name | Request Type | Response Type | Description | +| ----------- | ------------ | ------------- | ------------| +| GetAppConfig | [GetAppConfigRequest](#services-rector-GetAppConfigRequest) | [GetAppConfigResponse](#services-rector-GetAppConfigResponse) | @perm: Name=SuperUser | +| UpdateAppConfig | [UpdateAppConfigRequest](#services-rector-UpdateAppConfigRequest) | [UpdateAppConfigResponse](#services-rector-UpdateAppConfigResponse) | @perm: Name=SuperUser | -### DeleteRoleRequest + -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| id | [uint64](#uint64) | | | + + +## services/rector/filestore.proto + +### DeleteFileRequest - -### DeleteRoleResponse +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| path | [string](#string) | | | - + -### GetJobPropsRequest +### DeleteFileResponse @@ -11356,719 +11484,733 @@ TODO add way to link to, e.g., internal "objects" (citizens, documents, calendar - + -### GetJobPropsResponse +### ListFilesRequest | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| job_props | [resources.users.JobProps](#resources-users-JobProps) | | | +| pagination | [resources.common.database.PaginationRequest](#resources-common-database-PaginationRequest) | | | +| path | [string](#string) | optional | | - + -### GetPermissionsRequest +### ListFilesResponse | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| role_id | [uint64](#uint64) | | | -| filtered | [bool](#bool) | optional | | +| pagination | [resources.common.database.PaginationResponse](#resources-common-database-PaginationResponse) | | | +| files | [resources.filestore.FileInfo](#resources-filestore-FileInfo) | repeated | | - + -### GetPermissionsResponse +### UploadFileRequest | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| permissions | [resources.permissions.Permission](#resources-permissions-Permission) | repeated | | -| attributes | [resources.permissions.RoleAttribute](#resources-permissions-RoleAttribute) | repeated | | +| prefix | [string](#string) | | | +| name | [string](#string) | | | +| file | [resources.filestore.File](#resources-filestore-File) | | | - + -### GetRoleRequest +### UploadFileResponse | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| id | [uint64](#uint64) | | | -| filtered | [bool](#bool) | optional | | +| file | [resources.filestore.FileInfo](#resources-filestore-FileInfo) | | | + - + -### GetRoleResponse + + -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| role | [resources.permissions.Role](#resources-permissions-Role) | | | +### RectorFilestoreService +| Method Name | Request Type | Response Type | Description | +| ----------- | ------------ | ------------- | ------------| +| ListFiles | [ListFilesRequest](#services-rector-ListFilesRequest) | [ListFilesResponse](#services-rector-ListFilesResponse) | @perm: Name=SuperUser | +| UploadFile | [UploadFileRequest](#services-rector-UploadFileRequest) | [UploadFileResponse](#services-rector-UploadFileResponse) | @perm: Name=SuperUser | +| DeleteFile | [DeleteFileRequest](#services-rector-DeleteFileRequest) | [DeleteFileResponse](#services-rector-DeleteFileResponse) | @perm: Name=SuperUser | + - + + -### GetRolesRequest +## services/rector/laws.proto + + + + + +### CreateOrUpdateLawBookRequest | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| lowest_rank | [bool](#bool) | optional | | +| lawBook | [resources.laws.LawBook](#resources-laws-LawBook) | | | - + -### GetRolesResponse +### CreateOrUpdateLawBookResponse | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| roles | [resources.permissions.Role](#resources-permissions-Role) | repeated | | +| lawBook | [resources.laws.LawBook](#resources-laws-LawBook) | | | - + -### PermItem +### CreateOrUpdateLawRequest | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| id | [uint64](#uint64) | | | -| val | [bool](#bool) | | | +| law | [resources.laws.Law](#resources-laws-Law) | | | - + -### PermsUpdate +### CreateOrUpdateLawResponse | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| to_update | [PermItem](#services-rector-PermItem) | repeated | | -| to_remove | [uint64](#uint64) | repeated | | +| law | [resources.laws.Law](#resources-laws-Law) | | | - + -### SetJobPropsRequest +### DeleteLawBookRequest | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| job_props | [resources.users.JobProps](#resources-users-JobProps) | | | - - +| id | [uint64](#uint64) | | | - -### SetJobPropsResponse + +### DeleteLawBookResponse -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| job_props | [resources.users.JobProps](#resources-users-JobProps) | | | - + -### UpdateRoleLimitsRequest +### DeleteLawRequest | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| role_id | [uint64](#uint64) | | | -| perms | [PermsUpdate](#services-rector-PermsUpdate) | optional | | -| attrs | [AttrsUpdate](#services-rector-AttrsUpdate) | optional | | +| id | [uint64](#uint64) | | | - + -### UpdateRoleLimitsResponse +### DeleteLawResponse + - + -### UpdateRolePermsRequest + + -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| id | [uint64](#uint64) | | | -| perms | [PermsUpdate](#services-rector-PermsUpdate) | optional | | -| attrs | [AttrsUpdate](#services-rector-AttrsUpdate) | optional | | +### RectorLawsService +| Method Name | Request Type | Response Type | Description | +| ----------- | ------------ | ------------- | ------------| +| CreateOrUpdateLawBook | [CreateOrUpdateLawBookRequest](#services-rector-CreateOrUpdateLawBookRequest) | [CreateOrUpdateLawBookResponse](#services-rector-CreateOrUpdateLawBookResponse) | @perm: Name=SuperUser | +| DeleteLawBook | [DeleteLawBookRequest](#services-rector-DeleteLawBookRequest) | [DeleteLawBookResponse](#services-rector-DeleteLawBookResponse) | @perm: Name=SuperUser | +| CreateOrUpdateLaw | [CreateOrUpdateLawRequest](#services-rector-CreateOrUpdateLawRequest) | [CreateOrUpdateLawResponse](#services-rector-CreateOrUpdateLawResponse) | @perm: Name=SuperUser | +| DeleteLaw | [DeleteLawRequest](#services-rector-DeleteLawRequest) | [DeleteLawResponse](#services-rector-DeleteLawResponse) | @perm: Name=SuperUser | + - + + -### UpdateRolePermsResponse +## services/rector/rector.proto + +### AttrsUpdate - +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| to_update | [resources.permissions.RoleAttribute](#resources-permissions-RoleAttribute) | repeated | | +| to_remove | [resources.permissions.RoleAttribute](#resources-permissions-RoleAttribute) | repeated | | -### ViewAuditLogRequest + + + + + + + +### CreateRoleRequest | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| pagination | [resources.common.database.PaginationRequest](#resources-common-database-PaginationRequest) | | | -| sort | [resources.common.database.Sort](#resources-common-database-Sort) | optional | | -| user_ids | [int32](#int32) | repeated | Search params | -| from | [resources.timestamp.Timestamp](#resources-timestamp-Timestamp) | optional | | -| to | [resources.timestamp.Timestamp](#resources-timestamp-Timestamp) | optional | | -| services | [string](#string) | repeated | @sanitize: method=StripTags | -| methods | [string](#string) | repeated | @sanitize: method=StripTags | -| search | [string](#string) | optional | | +| job | [string](#string) | | | +| grade | [int32](#int32) | | | - + -### ViewAuditLogResponse +### CreateRoleResponse | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| pagination | [resources.common.database.PaginationResponse](#resources-common-database-PaginationResponse) | | | -| logs | [resources.rector.AuditEntry](#resources-rector-AuditEntry) | repeated | | +| role | [resources.permissions.Role](#resources-permissions-Role) | | | - - + - +### DeleteFactionRequest - -### RectorService +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| role_id | [uint64](#uint64) | | | -| Method Name | Request Type | Response Type | Description | -| ----------- | ------------ | ------------- | ------------| -| GetJobProps | [GetJobPropsRequest](#services-rector-GetJobPropsRequest) | [GetJobPropsResponse](#services-rector-GetJobPropsResponse) | @perm | -| SetJobProps | [SetJobPropsRequest](#services-rector-SetJobPropsRequest) | [SetJobPropsResponse](#services-rector-SetJobPropsResponse) | @perm | -| GetRoles | [GetRolesRequest](#services-rector-GetRolesRequest) | [GetRolesResponse](#services-rector-GetRolesResponse) | @perm | -| GetRole | [GetRoleRequest](#services-rector-GetRoleRequest) | [GetRoleResponse](#services-rector-GetRoleResponse) | @perm: Name=GetRoles | -| CreateRole | [CreateRoleRequest](#services-rector-CreateRoleRequest) | [CreateRoleResponse](#services-rector-CreateRoleResponse) | @perm | -| DeleteRole | [DeleteRoleRequest](#services-rector-DeleteRoleRequest) | [DeleteRoleResponse](#services-rector-DeleteRoleResponse) | @perm | -| UpdateRolePerms | [UpdateRolePermsRequest](#services-rector-UpdateRolePermsRequest) | [UpdateRolePermsResponse](#services-rector-UpdateRolePermsResponse) | @perm | -| GetPermissions | [GetPermissionsRequest](#services-rector-GetPermissionsRequest) | [GetPermissionsResponse](#services-rector-GetPermissionsResponse) | @perm: Name=GetRoles | -| ViewAuditLog | [ViewAuditLogRequest](#services-rector-ViewAuditLogRequest) | [ViewAuditLogResponse](#services-rector-ViewAuditLogResponse) | @perm | -| UpdateRoleLimits | [UpdateRoleLimitsRequest](#services-rector-UpdateRoleLimitsRequest) | [UpdateRoleLimitsResponse](#services-rector-UpdateRoleLimitsResponse) | @perm: Name=SuperUser | -| DeleteFaction | [DeleteFactionRequest](#services-rector-DeleteFactionRequest) | [DeleteFactionResponse](#services-rector-DeleteFactionResponse) | @perm: Name=SuperUser | - - - + -## services/calendar/calendar.proto +### DeleteFactionResponse - -### CreateOrUpdateCalendarEntryRequest -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| entry | [resources.calendar.CalendarEntry](#resources-calendar-CalendarEntry) | | | -| user_ids | [int32](#int32) | repeated | | + +### DeleteRoleRequest +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| id | [uint64](#uint64) | | | - -### CreateOrUpdateCalendarEntryResponse -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| entry | [resources.calendar.CalendarEntry](#resources-calendar-CalendarEntry) | | | + +### DeleteRoleResponse - -### CreateOrUpdateCalendarRequest + +### GetJobPropsRequest -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| calendar | [resources.calendar.Calendar](#resources-calendar-Calendar) | | | - + -### CreateOrUpdateCalendarResponse +### GetJobPropsResponse | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| calendar | [resources.calendar.Calendar](#resources-calendar-Calendar) | | | +| job_props | [resources.users.JobProps](#resources-users-JobProps) | | | - + -### DeleteCalendarEntryRequest +### GetPermissionsRequest | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| entry_id | [uint64](#uint64) | | | +| role_id | [uint64](#uint64) | | | +| filtered | [bool](#bool) | optional | | - + -### DeleteCalendarEntryResponse +### GetPermissionsResponse +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| permissions | [resources.permissions.Permission](#resources-permissions-Permission) | repeated | | +| attributes | [resources.permissions.RoleAttribute](#resources-permissions-RoleAttribute) | repeated | | - -### DeleteCalendarRequest + + + +### GetRoleRequest | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| calendar_id | [uint64](#uint64) | | | +| id | [uint64](#uint64) | | | +| filtered | [bool](#bool) | optional | | - + + +### GetRoleResponse -### DeleteCalendarResponse +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| role | [resources.permissions.Role](#resources-permissions-Role) | | | - -### GetCalendarEntryRequest + + +### GetRolesRequest | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| entry_id | [uint64](#uint64) | | | +| lowest_rank | [bool](#bool) | optional | | - + -### GetCalendarEntryResponse +### GetRolesResponse | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| entry | [resources.calendar.CalendarEntry](#resources-calendar-CalendarEntry) | | | +| roles | [resources.permissions.Role](#resources-permissions-Role) | repeated | | - + -### GetCalendarRequest +### PermItem | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| calendar_id | [uint64](#uint64) | | | +| id | [uint64](#uint64) | | | +| val | [bool](#bool) | | | - + -### GetCalendarResponse +### PermsUpdate | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| calendar | [resources.calendar.Calendar](#resources-calendar-Calendar) | | | +| to_update | [PermItem](#services-rector-PermItem) | repeated | | +| to_remove | [uint64](#uint64) | repeated | | - + -### GetUpcomingEntriesRequest +### SetJobPropsRequest | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| seconds | [int32](#int32) | | | +| job_props | [resources.users.JobProps](#resources-users-JobProps) | | | - + -### GetUpcomingEntriesResponse +### SetJobPropsResponse | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| entries | [resources.calendar.CalendarEntry](#resources-calendar-CalendarEntry) | repeated | | +| job_props | [resources.users.JobProps](#resources-users-JobProps) | | | - + -### ListCalendarEntriesRequest +### UpdateRoleLimitsRequest | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| year | [int32](#int32) | | | -| month | [int32](#int32) | | | -| calendar_ids | [uint64](#uint64) | repeated | | -| show_hidden | [bool](#bool) | optional | | -| after | [resources.timestamp.Timestamp](#resources-timestamp-Timestamp) | optional | | - - +| role_id | [uint64](#uint64) | | | +| perms | [PermsUpdate](#services-rector-PermsUpdate) | optional | | +| attrs | [AttrsUpdate](#services-rector-AttrsUpdate) | optional | | - -### ListCalendarEntriesResponse + +### UpdateRoleLimitsResponse -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| entries | [resources.calendar.CalendarEntry](#resources-calendar-CalendarEntry) | repeated | | - + -### ListCalendarEntryRSVPRequest +### UpdateRolePermsRequest | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| pagination | [resources.common.database.PaginationRequest](#resources-common-database-PaginationRequest) | | | -| entry_id | [uint64](#uint64) | | | - - +| id | [uint64](#uint64) | | | +| perms | [PermsUpdate](#services-rector-PermsUpdate) | optional | | +| attrs | [AttrsUpdate](#services-rector-AttrsUpdate) | optional | | - -### ListCalendarEntryRSVPResponse + +### UpdateRolePermsResponse -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| pagination | [resources.common.database.PaginationResponse](#resources-common-database-PaginationResponse) | | | -| entries | [resources.calendar.CalendarEntryRSVP](#resources-calendar-CalendarEntryRSVP) | repeated | | - + -### ListCalendarsRequest +### ViewAuditLogRequest | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | | pagination | [resources.common.database.PaginationRequest](#resources-common-database-PaginationRequest) | | | -| only_public | [bool](#bool) | | | -| min_access_level | [resources.calendar.AccessLevel](#resources-calendar-AccessLevel) | optional | | -| after | [resources.timestamp.Timestamp](#resources-timestamp-Timestamp) | optional | | +| sort | [resources.common.database.Sort](#resources-common-database-Sort) | optional | | +| user_ids | [int32](#int32) | repeated | Search params | +| from | [resources.timestamp.Timestamp](#resources-timestamp-Timestamp) | optional | | +| to | [resources.timestamp.Timestamp](#resources-timestamp-Timestamp) | optional | | +| services | [string](#string) | repeated | @sanitize: method=StripTags | +| methods | [string](#string) | repeated | @sanitize: method=StripTags | +| search | [string](#string) | optional | | - + -### ListCalendarsResponse +### ViewAuditLogResponse | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | | pagination | [resources.common.database.PaginationResponse](#resources-common-database-PaginationResponse) | | | -| calendars | [resources.calendar.Calendar](#resources-calendar-Calendar) | repeated | | - - - - - - - +| logs | [resources.rector.AuditEntry](#resources-rector-AuditEntry) | repeated | | -### ListSubscriptionsRequest -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| pagination | [resources.common.database.PaginationRequest](#resources-common-database-PaginationRequest) | | | + + + + - +### RectorService -### ListSubscriptionsResponse +| Method Name | Request Type | Response Type | Description | +| ----------- | ------------ | ------------- | ------------| +| GetJobProps | [GetJobPropsRequest](#services-rector-GetJobPropsRequest) | [GetJobPropsResponse](#services-rector-GetJobPropsResponse) | @perm | +| SetJobProps | [SetJobPropsRequest](#services-rector-SetJobPropsRequest) | [SetJobPropsResponse](#services-rector-SetJobPropsResponse) | @perm | +| GetRoles | [GetRolesRequest](#services-rector-GetRolesRequest) | [GetRolesResponse](#services-rector-GetRolesResponse) | @perm | +| GetRole | [GetRoleRequest](#services-rector-GetRoleRequest) | [GetRoleResponse](#services-rector-GetRoleResponse) | @perm: Name=GetRoles | +| CreateRole | [CreateRoleRequest](#services-rector-CreateRoleRequest) | [CreateRoleResponse](#services-rector-CreateRoleResponse) | @perm | +| DeleteRole | [DeleteRoleRequest](#services-rector-DeleteRoleRequest) | [DeleteRoleResponse](#services-rector-DeleteRoleResponse) | @perm | +| UpdateRolePerms | [UpdateRolePermsRequest](#services-rector-UpdateRolePermsRequest) | [UpdateRolePermsResponse](#services-rector-UpdateRolePermsResponse) | @perm | +| GetPermissions | [GetPermissionsRequest](#services-rector-GetPermissionsRequest) | [GetPermissionsResponse](#services-rector-GetPermissionsResponse) | @perm: Name=GetRoles | +| ViewAuditLog | [ViewAuditLogRequest](#services-rector-ViewAuditLogRequest) | [ViewAuditLogResponse](#services-rector-ViewAuditLogResponse) | @perm | +| UpdateRoleLimits | [UpdateRoleLimitsRequest](#services-rector-UpdateRoleLimitsRequest) | [UpdateRoleLimitsResponse](#services-rector-UpdateRoleLimitsResponse) | @perm: Name=SuperUser | +| DeleteFaction | [DeleteFactionRequest](#services-rector-DeleteFactionRequest) | [DeleteFactionResponse](#services-rector-DeleteFactionResponse) | @perm: Name=SuperUser | + -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| pagination | [resources.common.database.PaginationResponse](#resources-common-database-PaginationResponse) | | | -| subs | [resources.calendar.CalendarSub](#resources-calendar-CalendarSub) | repeated | | + + +## services/rector/sync.proto - + -### RSVPCalendarEntryRequest +### SyncRequest | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| entry | [resources.calendar.CalendarEntryRSVP](#resources-calendar-CalendarEntryRSVP) | | | -| subscribe | [bool](#bool) | | | -| remove | [bool](#bool) | optional | | +| test | [bool](#bool) | | TODO create per table message and add oneof entry | - + -### RSVPCalendarEntryResponse +### SyncResponse | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| entry | [resources.calendar.CalendarEntryRSVP](#resources-calendar-CalendarEntryRSVP) | optional | | +| affected_rows | [int64](#int64) | | | + - + -### ShareCalendarEntryRequest + + -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| entry_id | [uint64](#uint64) | | | -| user_ids | [int32](#int32) | repeated | | +### SyncService + + +| Method Name | Request Type | Response Type | Description | +| ----------- | ------------ | ------------- | ------------| +| Sync | [SyncRequest](#services-rector-SyncRequest) | [SyncResponse](#services-rector-SyncResponse) | | + + + +## services/stats/stats.proto - -### ShareCalendarEntryResponse + +### GetStatsRequest - -### SubscribeToCalendarRequest + + + +### GetStatsResponse | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| sub | [resources.calendar.CalendarSub](#resources-calendar-CalendarSub) | | | -| delete | [bool](#bool) | | | +| stats | [GetStatsResponse.StatsEntry](#services-stats-GetStatsResponse-StatsEntry) | repeated | | - + -### SubscribeToCalendarResponse +### GetStatsResponse.StatsEntry | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| sub | [resources.calendar.CalendarSub](#resources-calendar-CalendarSub) | | | +| key | [string](#string) | | | +| value | [resources.stats.Stat](#resources-stats-Stat) | | | @@ -12081,218 +12223,202 @@ TODO add way to link to, e.g., internal "objects" (citizens, documents, calendar - + -### CalendarService +### StatsService | Method Name | Request Type | Response Type | Description | | ----------- | ------------ | ------------- | ------------| -| ListCalendars | [ListCalendarsRequest](#services-calendar-ListCalendarsRequest) | [ListCalendarsResponse](#services-calendar-ListCalendarsResponse) | @perm: Name=Any | -| GetCalendar | [GetCalendarRequest](#services-calendar-GetCalendarRequest) | [GetCalendarResponse](#services-calendar-GetCalendarResponse) | @perm: Name=Any | -| CreateOrUpdateCalendar | [CreateOrUpdateCalendarRequest](#services-calendar-CreateOrUpdateCalendarRequest) | [CreateOrUpdateCalendarResponse](#services-calendar-CreateOrUpdateCalendarResponse) | @perm: Attrs=Fields/StringList:[]string{"Job", "Public"} | -| DeleteCalendar | [DeleteCalendarRequest](#services-calendar-DeleteCalendarRequest) | [DeleteCalendarResponse](#services-calendar-DeleteCalendarResponse) | @perm | -| ListCalendarEntries | [ListCalendarEntriesRequest](#services-calendar-ListCalendarEntriesRequest) | [ListCalendarEntriesResponse](#services-calendar-ListCalendarEntriesResponse) | @perm: Name=Any | -| GetUpcomingEntries | [GetUpcomingEntriesRequest](#services-calendar-GetUpcomingEntriesRequest) | [GetUpcomingEntriesResponse](#services-calendar-GetUpcomingEntriesResponse) | @perm: Name=Any | -| GetCalendarEntry | [GetCalendarEntryRequest](#services-calendar-GetCalendarEntryRequest) | [GetCalendarEntryResponse](#services-calendar-GetCalendarEntryResponse) | @perm: Name=Any | -| CreateOrUpdateCalendarEntry | [CreateOrUpdateCalendarEntryRequest](#services-calendar-CreateOrUpdateCalendarEntryRequest) | [CreateOrUpdateCalendarEntryResponse](#services-calendar-CreateOrUpdateCalendarEntryResponse) | @perm | -| DeleteCalendarEntry | [DeleteCalendarEntryRequest](#services-calendar-DeleteCalendarEntryRequest) | [DeleteCalendarEntryResponse](#services-calendar-DeleteCalendarEntryResponse) | @perm | -| ShareCalendarEntry | [ShareCalendarEntryRequest](#services-calendar-ShareCalendarEntryRequest) | [ShareCalendarEntryResponse](#services-calendar-ShareCalendarEntryResponse) | @perm: Name=CreateOrUpdateCalendarEntry | -| ListCalendarEntryRSVP | [ListCalendarEntryRSVPRequest](#services-calendar-ListCalendarEntryRSVPRequest) | [ListCalendarEntryRSVPResponse](#services-calendar-ListCalendarEntryRSVPResponse) | @perm: Name=Any | -| RSVPCalendarEntry | [RSVPCalendarEntryRequest](#services-calendar-RSVPCalendarEntryRequest) | [RSVPCalendarEntryResponse](#services-calendar-RSVPCalendarEntryResponse) | @perm: Name=Any | -| ListSubscriptions | [ListSubscriptionsRequest](#services-calendar-ListSubscriptionsRequest) | [ListSubscriptionsResponse](#services-calendar-ListSubscriptionsResponse) | @perm: Name=Any | -| SubscribeToCalendar | [SubscribeToCalendarRequest](#services-calendar-SubscribeToCalendarRequest) | [SubscribeToCalendarResponse](#services-calendar-SubscribeToCalendarResponse) | @perm: Name=Any | +| GetStats | [GetStatsRequest](#services-stats-GetStatsRequest) | [GetStatsResponse](#services-stats-GetStatsResponse) | | - + -## services/stats/stats.proto +## services/wiki/wiki.proto - + + +### CreatePageRequest -### GetStatsRequest +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| page | [resources.wiki.Page](#resources-wiki-Page) | | | + - + -### GetStatsResponse +### CreatePageResponse | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| stats | [GetStatsResponse.StatsEntry](#services-stats-GetStatsResponse-StatsEntry) | repeated | | +| page | [resources.wiki.Page](#resources-wiki-Page) | | | - + -### GetStatsResponse.StatsEntry +### DeletePageRequest | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| key | [string](#string) | | | -| value | [resources.stats.Stat](#resources-stats-Stat) | | | +| id | [uint64](#uint64) | | | - - + - +### DeletePageResponse - -### StatsService -| Method Name | Request Type | Response Type | Description | -| ----------- | ------------ | ------------- | ------------| -| GetStats | [GetStatsRequest](#services-stats-GetStatsRequest) | [GetStatsResponse](#services-stats-GetStatsResponse) | | - + + +### GetPageRequest - - -## services/internet/ads.proto +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| id | [uint64](#uint64) | | | - -### GetAdsRequest + + + + +### GetPageResponse | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| ad_type | [resources.internet.AdType](#resources-internet-AdType) | | | -| count | [int32](#int32) | | | +| page | [resources.wiki.Page](#resources-wiki-Page) | | | - + -### GetAdsResponse +### ListPageActivityRequest | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| ads | [resources.internet.Ad](#resources-internet-Ad) | repeated | | - - - - +| pagination | [resources.common.database.PaginationRequest](#resources-common-database-PaginationRequest) | | | +| page_id | [uint64](#uint64) | | | - - - - -### AdsService + +### ListPageActivityResponse -| Method Name | Request Type | Response Type | Description | -| ----------- | ------------ | ------------- | ------------| -| GetAds | [GetAdsRequest](#services-internet-GetAdsRequest) | [GetAdsResponse](#services-internet-GetAdsResponse) | @perm: Name=Any | - +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| pagination | [resources.common.database.PaginationResponse](#resources-common-database-PaginationResponse) | | | +| activity | [resources.wiki.PageActivity](#resources-wiki-PageActivity) | repeated | | - - -## services/internet/internet.proto - + -### GetPageRequest +### ListPagesRequest | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| domain | [string](#string) | | | -| path | [string](#string) | | | +| pagination | [resources.common.database.PaginationRequest](#resources-common-database-PaginationRequest) | | | +| sort | [resources.common.database.Sort](#resources-common-database-Sort) | optional | | +| job | [string](#string) | optional | Search params | +| root_only | [bool](#bool) | optional | | +| search | [string](#string) | optional | | - + -### GetPageResponse +### ListPagesResponse | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| page | [resources.internet.Page](#resources-internet-Page) | optional | | +| pagination | [resources.common.database.PaginationResponse](#resources-common-database-PaginationResponse) | | | +| pages | [resources.wiki.PageShort](#resources-wiki-PageShort) | repeated | | - + -### SearchRequest +### UpdatePageRequest | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| search | [string](#string) | | | +| page | [resources.wiki.Page](#resources-wiki-Page) | | | - + -### SearchResponse +### UpdatePageResponse | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| results | [resources.internet.SearchResult](#resources-internet-SearchResult) | repeated | | +| page | [resources.wiki.Page](#resources-wiki-Page) | | | @@ -12305,15 +12431,19 @@ TODO add way to link to, e.g., internal "objects" (citizens, documents, calendar - + -### InternetService +### WikiService | Method Name | Request Type | Response Type | Description | | ----------- | ------------ | ------------- | ------------| -| Search | [SearchRequest](#services-internet-SearchRequest) | [SearchResponse](#services-internet-SearchResponse) | @perm: Name=Any | -| GetPage | [GetPageRequest](#services-internet-GetPageRequest) | [GetPageResponse](#services-internet-GetPageResponse) | @perm: Name=Any | +| ListPages | [ListPagesRequest](#services-wiki-ListPagesRequest) | [ListPagesResponse](#services-wiki-ListPagesResponse) | @perm | +| GetPage | [GetPageRequest](#services-wiki-GetPageRequest) | [GetPageResponse](#services-wiki-GetPageResponse) | @perm: Name=ListPages | +| CreatePage | [CreatePageRequest](#services-wiki-CreatePageRequest) | [CreatePageResponse](#services-wiki-CreatePageResponse) | @perm: Attrs=Fields/StringList:[]string{"Public"} | +| UpdatePage | [UpdatePageRequest](#services-wiki-UpdatePageRequest) | [UpdatePageResponse](#services-wiki-UpdatePageResponse) | @perm | +| DeletePage | [DeletePageRequest](#services-wiki-DeletePageRequest) | [DeletePageResponse](#services-wiki-DeletePageResponse) | @perm | +| ListPageActivity | [ListPageActivityRequest](#services-wiki-ListPageActivityRequest) | [ListPageActivityResponse](#services-wiki-ListPageActivityResponse) | @perm | @@ -13000,69 +13130,71 @@ TODO add way to link to, e.g., internal "objects" (citizens, documents, calendar - + -## services/wiki/wiki.proto +## services/internet/ads.proto - + -### CreatePageRequest +### GetAdsRequest | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| page | [resources.wiki.Page](#resources-wiki-Page) | | | +| ad_type | [resources.internet.AdType](#resources-internet-AdType) | | | +| count | [int32](#int32) | | | - + -### CreatePageResponse +### GetAdsResponse | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| page | [resources.wiki.Page](#resources-wiki-Page) | | | - - - - +| ads | [resources.internet.Ad](#resources-internet-Ad) | repeated | | - -### DeletePageRequest + -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| id | [uint64](#uint64) | | | + + + +### AdsService - +| Method Name | Request Type | Response Type | Description | +| ----------- | ------------ | ------------- | ------------| +| GetAds | [GetAdsRequest](#services-internet-GetAdsRequest) | [GetAdsResponse](#services-internet-GetAdsResponse) | @perm: Name=Any | -### DeletePageResponse + + + +## services/internet/internet.proto - + ### GetPageRequest @@ -13070,14 +13202,15 @@ TODO add way to link to, e.g., internal "objects" (citizens, documents, calendar | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| id | [uint64](#uint64) | | | +| domain | [string](#string) | | | +| path | [string](#string) | | | - + ### GetPageResponse @@ -13085,104 +13218,37 @@ TODO add way to link to, e.g., internal "objects" (citizens, documents, calendar | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| page | [resources.wiki.Page](#resources-wiki-Page) | | | - - - - - - - - -### ListPageActivityRequest - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| pagination | [resources.common.database.PaginationRequest](#resources-common-database-PaginationRequest) | | | -| page_id | [uint64](#uint64) | | | - - - - - - - - -### ListPageActivityResponse - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| pagination | [resources.common.database.PaginationResponse](#resources-common-database-PaginationResponse) | | | -| activity | [resources.wiki.PageActivity](#resources-wiki-PageActivity) | repeated | | - - - - - - - - -### ListPagesRequest - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| pagination | [resources.common.database.PaginationRequest](#resources-common-database-PaginationRequest) | | | -| sort | [resources.common.database.Sort](#resources-common-database-Sort) | optional | | -| job | [string](#string) | optional | Search params | -| root_only | [bool](#bool) | optional | | -| search | [string](#string) | optional | | - - - - - - - - -### ListPagesResponse - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| pagination | [resources.common.database.PaginationResponse](#resources-common-database-PaginationResponse) | | | -| pages | [resources.wiki.PageShort](#resources-wiki-PageShort) | repeated | | +| page | [resources.internet.Page](#resources-internet-Page) | optional | | - + -### UpdatePageRequest +### SearchRequest | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| page | [resources.wiki.Page](#resources-wiki-Page) | | | +| search | [string](#string) | | | - + -### UpdatePageResponse +### SearchResponse | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| page | [resources.wiki.Page](#resources-wiki-Page) | | | +| results | [resources.internet.SearchResult](#resources-internet-SearchResult) | repeated | | @@ -13195,19 +13261,15 @@ TODO add way to link to, e.g., internal "objects" (citizens, documents, calendar - + -### WikiService +### InternetService | Method Name | Request Type | Response Type | Description | | ----------- | ------------ | ------------- | ------------| -| ListPages | [ListPagesRequest](#services-wiki-ListPagesRequest) | [ListPagesResponse](#services-wiki-ListPagesResponse) | @perm | -| GetPage | [GetPageRequest](#services-wiki-GetPageRequest) | [GetPageResponse](#services-wiki-GetPageResponse) | @perm: Name=ListPages | -| CreatePage | [CreatePageRequest](#services-wiki-CreatePageRequest) | [CreatePageResponse](#services-wiki-CreatePageResponse) | @perm: Attrs=Fields/StringList:[]string{"Public"} | -| UpdatePage | [UpdatePageRequest](#services-wiki-UpdatePageRequest) | [UpdatePageResponse](#services-wiki-UpdatePageResponse) | @perm | -| DeletePage | [DeletePageRequest](#services-wiki-DeletePageRequest) | [DeletePageResponse](#services-wiki-DeletePageResponse) | @perm | -| ListPageActivity | [ListPageActivityRequest](#services-wiki-ListPageActivityRequest) | [ListPageActivityResponse](#services-wiki-ListPageActivityResponse) | @perm | +| Search | [SearchRequest](#services-internet-SearchRequest) | [SearchResponse](#services-internet-SearchResponse) | @perm: Name=Any | +| GetPage | [GetPageRequest](#services-internet-GetPageRequest) | [GetPageResponse](#services-internet-GetPageResponse) | @perm: Name=Any | diff --git a/gen/ts/perms.ts b/gen/ts/perms.ts index 688943c7a..58459aae2 100644 --- a/gen/ts/perms.ts +++ b/gen/ts/perms.ts @@ -79,6 +79,7 @@ // source: services/rector/filestore.proto // source: services/rector/laws.proto // source: services/rector/rector.proto +// source: services/rector/sync.proto // source: services/stats/stats.proto // source: services/wiki/wiki.proto diff --git a/gen/ts/services/rector/sync.client.ts b/gen/ts/services/rector/sync.client.ts new file mode 100644 index 000000000..9b3a9ea92 --- /dev/null +++ b/gen/ts/services/rector/sync.client.ts @@ -0,0 +1,37 @@ +// @generated by protobuf-ts 2.9.4 with parameter optimize_speed,long_type_number,force_server_none +// @generated from protobuf file "services/rector/sync.proto" (package "services.rector", syntax proto3) +// @ts-nocheck +import type { RpcTransport } from "@protobuf-ts/runtime-rpc"; +import type { ServiceInfo } from "@protobuf-ts/runtime-rpc"; +import { SyncService } from "./sync"; +import { stackIntercept } from "@protobuf-ts/runtime-rpc"; +import type { SyncResponse } from "./sync"; +import type { SyncRequest } from "./sync"; +import type { UnaryCall } from "@protobuf-ts/runtime-rpc"; +import type { RpcOptions } from "@protobuf-ts/runtime-rpc"; +/** + * @generated from protobuf service services.rector.SyncService + */ +export interface ISyncServiceClient { + /** + * @generated from protobuf rpc: Sync(services.rector.SyncRequest) returns (services.rector.SyncResponse); + */ + sync(input: SyncRequest, options?: RpcOptions): UnaryCall