Latest generation

This commit is contained in:
ci core model
2025-12-10 09:42:29 +00:00
parent 6ef90ba29b
commit d6576f315a
3 changed files with 25 additions and 12 deletions

View File

@@ -12,6 +12,7 @@ import type { PartialMessage } from "@protobuf-ts/runtime";
import { reflectionMergePartial } from "@protobuf-ts/runtime";
import { MessageType } from "@protobuf-ts/runtime";
import { RequestProjectHeader } from "./shared";
import { BookingAuthorization } from "./slotbooking";
/**
* @generated from protobuf message api.UserAttribute
*/
@@ -32,6 +33,10 @@ export interface UserAttribute {
* @generated from protobuf field: repeated api.RestrictionActorIDs RestrictionActorIDs = 4
*/
RestrictionActorIDs: RestrictionActorIDs[];
/**
* @generated from protobuf field: repeated api.BookingAuthorization BookingAuthorizations = 5
*/
BookingAuthorizations: BookingAuthorization[];
}
/**
* @generated from protobuf message api.RestrictionActorIDs
@@ -159,7 +164,8 @@ class UserAttribute$Type extends MessageType<UserAttribute> {
{ no: 1, name: "ProjectID", kind: "scalar", localName: "ProjectID", jsonName: "ProjectID", T: 9 /*ScalarType.STRING*/ },
{ no: 2, name: "UserID", kind: "scalar", localName: "UserID", jsonName: "UserID", T: 9 /*ScalarType.STRING*/ },
{ no: 3, name: "PartnerID", kind: "scalar", localName: "PartnerID", jsonName: "PartnerID", T: 9 /*ScalarType.STRING*/ },
{ no: 4, name: "RestrictionActorIDs", kind: "message", localName: "RestrictionActorIDs", jsonName: "RestrictionActorIDs", repeat: 2 /*RepeatType.UNPACKED*/, T: () => RestrictionActorIDs }
{ no: 4, name: "RestrictionActorIDs", kind: "message", localName: "RestrictionActorIDs", jsonName: "RestrictionActorIDs", repeat: 2 /*RepeatType.UNPACKED*/, T: () => RestrictionActorIDs },
{ no: 5, name: "BookingAuthorizations", kind: "message", localName: "BookingAuthorizations", jsonName: "BookingAuthorizations", repeat: 2 /*RepeatType.UNPACKED*/, T: () => BookingAuthorization }
]);
}
create(value?: PartialMessage<UserAttribute>): UserAttribute {
@@ -168,6 +174,7 @@ class UserAttribute$Type extends MessageType<UserAttribute> {
message.UserID = "";
message.PartnerID = "";
message.RestrictionActorIDs = [];
message.BookingAuthorizations = [];
if (value !== undefined)
reflectionMergePartial<UserAttribute>(this, message, value);
return message;
@@ -189,6 +196,9 @@ class UserAttribute$Type extends MessageType<UserAttribute> {
case /* repeated api.RestrictionActorIDs RestrictionActorIDs */ 4:
message.RestrictionActorIDs.push(RestrictionActorIDs.internalBinaryRead(reader, reader.uint32(), options));
break;
case /* repeated api.BookingAuthorization BookingAuthorizations */ 5:
message.BookingAuthorizations.push(BookingAuthorization.internalBinaryRead(reader, reader.uint32(), options));
break;
default:
let u = options.readUnknownField;
if (u === "throw")
@@ -213,6 +223,9 @@ class UserAttribute$Type extends MessageType<UserAttribute> {
/* repeated api.RestrictionActorIDs RestrictionActorIDs = 4; */
for (let i = 0; i < message.RestrictionActorIDs.length; i++)
RestrictionActorIDs.internalBinaryWrite(message.RestrictionActorIDs[i], writer.tag(4, WireType.LengthDelimited).fork(), options).join();
/* repeated api.BookingAuthorization BookingAuthorizations = 5; */
for (let i = 0; i < message.BookingAuthorizations.length; i++)
BookingAuthorization.internalBinaryWrite(message.BookingAuthorizations[i], writer.tag(5, WireType.LengthDelimited).fork(), options).join();
let u = options.writeUnknownFields;
if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);