You've already forked npm-core-sdk
Latest generation
This commit is contained in:
350
matrix-proxy.ts
350
matrix-proxy.ts
@@ -1,4 +1,4 @@
|
||||
// @generated by protobuf-ts 2.9.6
|
||||
// @generated by protobuf-ts 2.9.6 with parameter use_proto_field_name
|
||||
// @generated from protobuf file "matrix-proxy.proto" (package "api", syntax proto3)
|
||||
// tslint:disable
|
||||
import { ServiceType } from "@protobuf-ts/runtime-rpc";
|
||||
@@ -20,7 +20,7 @@ export interface CreateRoomRequest {
|
||||
/**
|
||||
* @generated from protobuf field: string Name = 1 [json_name = "Name"];
|
||||
*/
|
||||
name: string; // The name of the room to create. It needs to be unique otherwise the room creation will fail.
|
||||
Name: string; // The name of the room to create. It needs to be unique otherwise the room creation will fail.
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf message api.CreateRoomResponse
|
||||
@@ -29,7 +29,7 @@ export interface CreateRoomResponse {
|
||||
/**
|
||||
* @generated from protobuf field: string RoomID = 1 [json_name = "RoomID"];
|
||||
*/
|
||||
roomID: string; // The matrix room ID of the newly created room.
|
||||
RoomID: string; // The matrix room ID of the newly created room.
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf message api.DeleteRoomRequest
|
||||
@@ -38,7 +38,7 @@ export interface DeleteRoomRequest {
|
||||
/**
|
||||
* @generated from protobuf field: string Name = 1 [json_name = "Name"];
|
||||
*/
|
||||
name: string; // The name of the room to delete.
|
||||
Name: string; // The name of the room to delete.
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf message api.DeleteRoomResponse
|
||||
@@ -52,25 +52,25 @@ export interface InviteUserToRoomRequest {
|
||||
/**
|
||||
* @generated from protobuf oneof: User
|
||||
*/
|
||||
user: {
|
||||
oneofKind: "mail";
|
||||
User: {
|
||||
oneofKind: "Mail";
|
||||
/**
|
||||
* @generated from protobuf field: string Mail = 1 [json_name = "Mail"];
|
||||
*/
|
||||
mail: string; // The mail of the user to invite to the room. Mutually exclusive with ID.
|
||||
Mail: string; // The mail of the user to invite to the room. Mutually exclusive with ID.
|
||||
} | {
|
||||
oneofKind: "iD";
|
||||
oneofKind: "ID";
|
||||
/**
|
||||
* @generated from protobuf field: string ID = 2 [json_name = "ID"];
|
||||
*/
|
||||
iD: string; // The ID of the user to invite to the room. Mutually exclusive with Mail. The ID is the OIDC sub claim that was used to authenticate the user during the SSO process.
|
||||
ID: string; // The ID of the user to invite to the room. Mutually exclusive with Mail. The ID is the OIDC sub claim that was used to authenticate the user during the SSO process.
|
||||
} | {
|
||||
oneofKind: undefined;
|
||||
};
|
||||
/**
|
||||
* @generated from protobuf field: string RoomName = 3 [json_name = "RoomName"];
|
||||
*/
|
||||
roomName: string; // The name of the room to invite the given user to.
|
||||
RoomName: string; // The name of the room to invite the given user to.
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf message api.InviteUserToRoomResponse
|
||||
@@ -79,7 +79,7 @@ export interface InviteUserToRoomResponse {
|
||||
/**
|
||||
* @generated from protobuf field: string RoomID = 1 [json_name = "RoomID"];
|
||||
*/
|
||||
roomID: string; // The matrix room ID of the room the user has been invited to.
|
||||
RoomID: string; // The matrix room ID of the room the user has been invited to.
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf message api.SendNoticeToRoomRequest
|
||||
@@ -88,11 +88,11 @@ export interface SendNoticeToRoomRequest {
|
||||
/**
|
||||
* @generated from protobuf field: string RoomName = 1 [json_name = "RoomName"];
|
||||
*/
|
||||
roomName: string; // The name of the room to send the notice to.
|
||||
RoomName: string; // The name of the room to send the notice to.
|
||||
/**
|
||||
* @generated from protobuf field: string Message = 2 [json_name = "Message"];
|
||||
*/
|
||||
message: string; // The message to send to the room. Could be a simple text or a markdown message.
|
||||
Message: string; // The message to send to the room. Could be a simple text or a markdown message.
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf message api.SendNoticeToRoomResponse
|
||||
@@ -108,11 +108,11 @@ export interface CreateProjectRoomRequest {
|
||||
/**
|
||||
* @generated from protobuf field: string ProjectID = 1 [json_name = "ProjectID"];
|
||||
*/
|
||||
projectID: string; // The ID of the project the room is related to.
|
||||
ProjectID: string; // The ID of the project the room is related to.
|
||||
/**
|
||||
* @generated from protobuf field: string Name = 2 [json_name = "Name"];
|
||||
*/
|
||||
name: string; // The name of the room to create. It needs to be unique otherwise the room creation will fail.
|
||||
Name: string; // The name of the room to create. It needs to be unique otherwise the room creation will fail.
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf message api.CreateProjectRoomResponse
|
||||
@@ -121,7 +121,7 @@ export interface CreateProjectRoomResponse {
|
||||
/**
|
||||
* @generated from protobuf field: string RoomID = 1 [json_name = "RoomID"];
|
||||
*/
|
||||
roomID: string; // The matrix room ID of the newly created room.
|
||||
RoomID: string; // The matrix room ID of the newly created room.
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf message api.DeleteProjectRoomRequest
|
||||
@@ -130,11 +130,11 @@ export interface DeleteProjectRoomRequest {
|
||||
/**
|
||||
* @generated from protobuf field: string ProjectID = 1 [json_name = "ProjectID"];
|
||||
*/
|
||||
projectID: string; // The ID of the project the room is related to.
|
||||
ProjectID: string; // The ID of the project the room is related to.
|
||||
/**
|
||||
* @generated from protobuf field: string Name = 2 [json_name = "Name"];
|
||||
*/
|
||||
name: string; // The name of the room to delete.
|
||||
Name: string; // The name of the room to delete.
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf message api.DeleteProjectRoomResponse
|
||||
@@ -148,29 +148,29 @@ export interface InviteUserToProjectRoomRequest {
|
||||
/**
|
||||
* @generated from protobuf field: string ProjectID = 1 [json_name = "ProjectID"];
|
||||
*/
|
||||
projectID: string; // The ID of the project the room is related to.
|
||||
ProjectID: string; // The ID of the project the room is related to.
|
||||
/**
|
||||
* @generated from protobuf oneof: User
|
||||
*/
|
||||
user: {
|
||||
oneofKind: "mail";
|
||||
User: {
|
||||
oneofKind: "Mail";
|
||||
/**
|
||||
* @generated from protobuf field: string Mail = 2 [json_name = "Mail"];
|
||||
*/
|
||||
mail: string; // The mail of the user to invite to the room. Mutually exclusive with ID.
|
||||
Mail: string; // The mail of the user to invite to the room. Mutually exclusive with ID.
|
||||
} | {
|
||||
oneofKind: "iD";
|
||||
oneofKind: "ID";
|
||||
/**
|
||||
* @generated from protobuf field: string ID = 3 [json_name = "ID"];
|
||||
*/
|
||||
iD: string; // The ID of the user to invite to the room. Mutually exclusive with Mail. The ID is the OIDC sub claim that was used to authenticate the user during the SSO process.
|
||||
ID: string; // The ID of the user to invite to the room. Mutually exclusive with Mail. The ID is the OIDC sub claim that was used to authenticate the user during the SSO process.
|
||||
} | {
|
||||
oneofKind: undefined;
|
||||
};
|
||||
/**
|
||||
* @generated from protobuf field: string RoomName = 4 [json_name = "RoomName"];
|
||||
*/
|
||||
roomName: string; // The name of the room to invite the given user to.
|
||||
RoomName: string; // The name of the room to invite the given user to.
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf message api.InviteUserToProjectRoomResponse
|
||||
@@ -179,7 +179,7 @@ export interface InviteUserToProjectRoomResponse {
|
||||
/**
|
||||
* @generated from protobuf field: string RoomID = 1 [json_name = "RoomID"];
|
||||
*/
|
||||
roomID: string; // The matrix room ID of the room the user has been invited to.
|
||||
RoomID: string; // The matrix room ID of the room the user has been invited to.
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf message api.SendNoticeToProjectRoomRequest
|
||||
@@ -188,15 +188,15 @@ export interface SendNoticeToProjectRoomRequest {
|
||||
/**
|
||||
* @generated from protobuf field: string ProjectID = 1 [json_name = "ProjectID"];
|
||||
*/
|
||||
projectID: string; // The ID of the project the room is related to.
|
||||
ProjectID: string; // The ID of the project the room is related to.
|
||||
/**
|
||||
* @generated from protobuf field: string RoomName = 2 [json_name = "RoomName"];
|
||||
*/
|
||||
roomName: string; // The name of the room to send the notice to.
|
||||
RoomName: string; // The name of the room to send the notice to.
|
||||
/**
|
||||
* @generated from protobuf field: string Message = 3 [json_name = "Message"];
|
||||
*/
|
||||
message: string; // The message to send to the room. Could be a simple text or a markdown message.
|
||||
Message: string; // The message to send to the room. Could be a simple text or a markdown message.
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf message api.SendNoticeToProjectRoomResponse
|
||||
@@ -210,7 +210,7 @@ export interface DeleteRoomsForProjectRequest {
|
||||
/**
|
||||
* @generated from protobuf field: string ProjectID = 1 [json_name = "ProjectID"];
|
||||
*/
|
||||
projectID: string; // The ID of the project the rooms are related to.
|
||||
ProjectID: string; // The ID of the project the rooms are related to.
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf message api.DeleteRoomsForProjectResponse
|
||||
@@ -224,19 +224,19 @@ export interface SendMessageToProjectRoomRequest {
|
||||
/**
|
||||
* @generated from protobuf field: string ProjectID = 1 [json_name = "ProjectID"];
|
||||
*/
|
||||
projectID: string; // The ID of the project the room is related to.
|
||||
ProjectID: string; // The ID of the project the room is related to.
|
||||
/**
|
||||
* @generated from protobuf field: string RoomName = 2 [json_name = "RoomName"];
|
||||
*/
|
||||
roomName: string; // The name of the room to send the message to.
|
||||
RoomName: string; // The name of the room to send the message to.
|
||||
/**
|
||||
* @generated from protobuf field: string Message = 3 [json_name = "Message"];
|
||||
*/
|
||||
message: string; // The message to send to the room. A simple text m
|
||||
Message: string; // The message to send to the room. A simple text m
|
||||
/**
|
||||
* @generated from protobuf field: string UserJWT = 4 [json_name = "UserJWT"];
|
||||
*/
|
||||
userJWT: string; // The JWT of the user sending the message. It is used to authenticate the user in the matrix server. The JWT is the OIDC access token that was used to authenticate the user during the SSO process. The requests will be made on behalf of the user.
|
||||
UserJWT: string; // The JWT of the user sending the message. It is used to authenticate the user in the matrix server. The JWT is the OIDC access token that was used to authenticate the user during the SSO process. The requests will be made on behalf of the user.
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf message api.SendMessageToProjectRoomResponse
|
||||
@@ -247,12 +247,12 @@ export interface SendMessageToProjectRoomResponse {
|
||||
class CreateRoomRequest$Type extends MessageType<CreateRoomRequest> {
|
||||
constructor() {
|
||||
super("api.CreateRoomRequest", [
|
||||
{ no: 1, name: "Name", kind: "scalar", jsonName: "Name", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }
|
||||
{ no: 1, name: "Name", kind: "scalar", localName: "Name", jsonName: "Name", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }
|
||||
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Name"] } } });
|
||||
}
|
||||
create(value?: PartialMessage<CreateRoomRequest>): CreateRoomRequest {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
message.name = "";
|
||||
message.Name = "";
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<CreateRoomRequest>(this, message, value);
|
||||
return message;
|
||||
@@ -263,7 +263,7 @@ class CreateRoomRequest$Type extends MessageType<CreateRoomRequest> {
|
||||
let [fieldNo, wireType] = reader.tag();
|
||||
switch (fieldNo) {
|
||||
case /* string Name = 1 [json_name = "Name"];*/ 1:
|
||||
message.name = reader.string();
|
||||
message.Name = reader.string();
|
||||
break;
|
||||
default:
|
||||
let u = options.readUnknownField;
|
||||
@@ -278,8 +278,8 @@ class CreateRoomRequest$Type extends MessageType<CreateRoomRequest> {
|
||||
}
|
||||
internalBinaryWrite(message: CreateRoomRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
||||
/* string Name = 1 [json_name = "Name"]; */
|
||||
if (message.name !== "")
|
||||
writer.tag(1, WireType.LengthDelimited).string(message.name);
|
||||
if (message.Name !== "")
|
||||
writer.tag(1, WireType.LengthDelimited).string(message.Name);
|
||||
let u = options.writeUnknownFields;
|
||||
if (u !== false)
|
||||
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
||||
@@ -294,12 +294,12 @@ export const CreateRoomRequest = new CreateRoomRequest$Type();
|
||||
class CreateRoomResponse$Type extends MessageType<CreateRoomResponse> {
|
||||
constructor() {
|
||||
super("api.CreateRoomResponse", [
|
||||
{ no: 1, name: "RoomID", kind: "scalar", jsonName: "RoomID", T: 9 /*ScalarType.STRING*/ }
|
||||
{ no: 1, name: "RoomID", kind: "scalar", localName: "RoomID", jsonName: "RoomID", T: 9 /*ScalarType.STRING*/ }
|
||||
]);
|
||||
}
|
||||
create(value?: PartialMessage<CreateRoomResponse>): CreateRoomResponse {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
message.roomID = "";
|
||||
message.RoomID = "";
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<CreateRoomResponse>(this, message, value);
|
||||
return message;
|
||||
@@ -310,7 +310,7 @@ class CreateRoomResponse$Type extends MessageType<CreateRoomResponse> {
|
||||
let [fieldNo, wireType] = reader.tag();
|
||||
switch (fieldNo) {
|
||||
case /* string RoomID = 1 [json_name = "RoomID"];*/ 1:
|
||||
message.roomID = reader.string();
|
||||
message.RoomID = reader.string();
|
||||
break;
|
||||
default:
|
||||
let u = options.readUnknownField;
|
||||
@@ -325,8 +325,8 @@ class CreateRoomResponse$Type extends MessageType<CreateRoomResponse> {
|
||||
}
|
||||
internalBinaryWrite(message: CreateRoomResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
||||
/* string RoomID = 1 [json_name = "RoomID"]; */
|
||||
if (message.roomID !== "")
|
||||
writer.tag(1, WireType.LengthDelimited).string(message.roomID);
|
||||
if (message.RoomID !== "")
|
||||
writer.tag(1, WireType.LengthDelimited).string(message.RoomID);
|
||||
let u = options.writeUnknownFields;
|
||||
if (u !== false)
|
||||
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
||||
@@ -341,12 +341,12 @@ export const CreateRoomResponse = new CreateRoomResponse$Type();
|
||||
class DeleteRoomRequest$Type extends MessageType<DeleteRoomRequest> {
|
||||
constructor() {
|
||||
super("api.DeleteRoomRequest", [
|
||||
{ no: 1, name: "Name", kind: "scalar", jsonName: "Name", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }
|
||||
{ no: 1, name: "Name", kind: "scalar", localName: "Name", jsonName: "Name", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }
|
||||
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Name"] } } });
|
||||
}
|
||||
create(value?: PartialMessage<DeleteRoomRequest>): DeleteRoomRequest {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
message.name = "";
|
||||
message.Name = "";
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<DeleteRoomRequest>(this, message, value);
|
||||
return message;
|
||||
@@ -357,7 +357,7 @@ class DeleteRoomRequest$Type extends MessageType<DeleteRoomRequest> {
|
||||
let [fieldNo, wireType] = reader.tag();
|
||||
switch (fieldNo) {
|
||||
case /* string Name = 1 [json_name = "Name"];*/ 1:
|
||||
message.name = reader.string();
|
||||
message.Name = reader.string();
|
||||
break;
|
||||
default:
|
||||
let u = options.readUnknownField;
|
||||
@@ -372,8 +372,8 @@ class DeleteRoomRequest$Type extends MessageType<DeleteRoomRequest> {
|
||||
}
|
||||
internalBinaryWrite(message: DeleteRoomRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
||||
/* string Name = 1 [json_name = "Name"]; */
|
||||
if (message.name !== "")
|
||||
writer.tag(1, WireType.LengthDelimited).string(message.name);
|
||||
if (message.Name !== "")
|
||||
writer.tag(1, WireType.LengthDelimited).string(message.Name);
|
||||
let u = options.writeUnknownFields;
|
||||
if (u !== false)
|
||||
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
||||
@@ -426,15 +426,15 @@ export const DeleteRoomResponse = new DeleteRoomResponse$Type();
|
||||
class InviteUserToRoomRequest$Type extends MessageType<InviteUserToRoomRequest> {
|
||||
constructor() {
|
||||
super("api.InviteUserToRoomRequest", [
|
||||
{ no: 1, name: "Mail", kind: "scalar", jsonName: "Mail", oneof: "user", T: 9 /*ScalarType.STRING*/ },
|
||||
{ no: 2, name: "ID", kind: "scalar", jsonName: "ID", oneof: "user", T: 9 /*ScalarType.STRING*/ },
|
||||
{ no: 3, name: "RoomName", kind: "scalar", jsonName: "RoomName", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }
|
||||
{ no: 1, name: "Mail", kind: "scalar", localName: "Mail", jsonName: "Mail", oneof: "User", T: 9 /*ScalarType.STRING*/ },
|
||||
{ no: 2, name: "ID", kind: "scalar", localName: "ID", jsonName: "ID", oneof: "User", T: 9 /*ScalarType.STRING*/ },
|
||||
{ no: 3, name: "RoomName", kind: "scalar", localName: "RoomName", jsonName: "RoomName", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }
|
||||
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["RoomName"] } } });
|
||||
}
|
||||
create(value?: PartialMessage<InviteUserToRoomRequest>): InviteUserToRoomRequest {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
message.user = { oneofKind: undefined };
|
||||
message.roomName = "";
|
||||
message.User = { oneofKind: undefined };
|
||||
message.RoomName = "";
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<InviteUserToRoomRequest>(this, message, value);
|
||||
return message;
|
||||
@@ -445,19 +445,19 @@ class InviteUserToRoomRequest$Type extends MessageType<InviteUserToRoomRequest>
|
||||
let [fieldNo, wireType] = reader.tag();
|
||||
switch (fieldNo) {
|
||||
case /* string Mail = 1 [json_name = "Mail"];*/ 1:
|
||||
message.user = {
|
||||
oneofKind: "mail",
|
||||
mail: reader.string()
|
||||
message.User = {
|
||||
oneofKind: "Mail",
|
||||
Mail: reader.string()
|
||||
};
|
||||
break;
|
||||
case /* string ID = 2 [json_name = "ID"];*/ 2:
|
||||
message.user = {
|
||||
oneofKind: "iD",
|
||||
iD: reader.string()
|
||||
message.User = {
|
||||
oneofKind: "ID",
|
||||
ID: reader.string()
|
||||
};
|
||||
break;
|
||||
case /* string RoomName = 3 [json_name = "RoomName"];*/ 3:
|
||||
message.roomName = reader.string();
|
||||
message.RoomName = reader.string();
|
||||
break;
|
||||
default:
|
||||
let u = options.readUnknownField;
|
||||
@@ -472,14 +472,14 @@ class InviteUserToRoomRequest$Type extends MessageType<InviteUserToRoomRequest>
|
||||
}
|
||||
internalBinaryWrite(message: InviteUserToRoomRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
||||
/* string Mail = 1 [json_name = "Mail"]; */
|
||||
if (message.user.oneofKind === "mail")
|
||||
writer.tag(1, WireType.LengthDelimited).string(message.user.mail);
|
||||
if (message.User.oneofKind === "Mail")
|
||||
writer.tag(1, WireType.LengthDelimited).string(message.User.Mail);
|
||||
/* string ID = 2 [json_name = "ID"]; */
|
||||
if (message.user.oneofKind === "iD")
|
||||
writer.tag(2, WireType.LengthDelimited).string(message.user.iD);
|
||||
if (message.User.oneofKind === "ID")
|
||||
writer.tag(2, WireType.LengthDelimited).string(message.User.ID);
|
||||
/* string RoomName = 3 [json_name = "RoomName"]; */
|
||||
if (message.roomName !== "")
|
||||
writer.tag(3, WireType.LengthDelimited).string(message.roomName);
|
||||
if (message.RoomName !== "")
|
||||
writer.tag(3, WireType.LengthDelimited).string(message.RoomName);
|
||||
let u = options.writeUnknownFields;
|
||||
if (u !== false)
|
||||
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
||||
@@ -494,12 +494,12 @@ export const InviteUserToRoomRequest = new InviteUserToRoomRequest$Type();
|
||||
class InviteUserToRoomResponse$Type extends MessageType<InviteUserToRoomResponse> {
|
||||
constructor() {
|
||||
super("api.InviteUserToRoomResponse", [
|
||||
{ no: 1, name: "RoomID", kind: "scalar", jsonName: "RoomID", T: 9 /*ScalarType.STRING*/ }
|
||||
{ no: 1, name: "RoomID", kind: "scalar", localName: "RoomID", jsonName: "RoomID", T: 9 /*ScalarType.STRING*/ }
|
||||
]);
|
||||
}
|
||||
create(value?: PartialMessage<InviteUserToRoomResponse>): InviteUserToRoomResponse {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
message.roomID = "";
|
||||
message.RoomID = "";
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<InviteUserToRoomResponse>(this, message, value);
|
||||
return message;
|
||||
@@ -510,7 +510,7 @@ class InviteUserToRoomResponse$Type extends MessageType<InviteUserToRoomResponse
|
||||
let [fieldNo, wireType] = reader.tag();
|
||||
switch (fieldNo) {
|
||||
case /* string RoomID = 1 [json_name = "RoomID"];*/ 1:
|
||||
message.roomID = reader.string();
|
||||
message.RoomID = reader.string();
|
||||
break;
|
||||
default:
|
||||
let u = options.readUnknownField;
|
||||
@@ -525,8 +525,8 @@ class InviteUserToRoomResponse$Type extends MessageType<InviteUserToRoomResponse
|
||||
}
|
||||
internalBinaryWrite(message: InviteUserToRoomResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
||||
/* string RoomID = 1 [json_name = "RoomID"]; */
|
||||
if (message.roomID !== "")
|
||||
writer.tag(1, WireType.LengthDelimited).string(message.roomID);
|
||||
if (message.RoomID !== "")
|
||||
writer.tag(1, WireType.LengthDelimited).string(message.RoomID);
|
||||
let u = options.writeUnknownFields;
|
||||
if (u !== false)
|
||||
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
||||
@@ -541,14 +541,14 @@ export const InviteUserToRoomResponse = new InviteUserToRoomResponse$Type();
|
||||
class SendNoticeToRoomRequest$Type extends MessageType<SendNoticeToRoomRequest> {
|
||||
constructor() {
|
||||
super("api.SendNoticeToRoomRequest", [
|
||||
{ no: 1, name: "RoomName", kind: "scalar", jsonName: "RoomName", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } },
|
||||
{ no: 2, name: "Message", kind: "scalar", jsonName: "Message", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }
|
||||
{ no: 1, name: "RoomName", kind: "scalar", localName: "RoomName", jsonName: "RoomName", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } },
|
||||
{ no: 2, name: "Message", kind: "scalar", localName: "Message", jsonName: "Message", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }
|
||||
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["RoomName", "Message"] } } });
|
||||
}
|
||||
create(value?: PartialMessage<SendNoticeToRoomRequest>): SendNoticeToRoomRequest {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
message.roomName = "";
|
||||
message.message = "";
|
||||
message.RoomName = "";
|
||||
message.Message = "";
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<SendNoticeToRoomRequest>(this, message, value);
|
||||
return message;
|
||||
@@ -559,10 +559,10 @@ class SendNoticeToRoomRequest$Type extends MessageType<SendNoticeToRoomRequest>
|
||||
let [fieldNo, wireType] = reader.tag();
|
||||
switch (fieldNo) {
|
||||
case /* string RoomName = 1 [json_name = "RoomName"];*/ 1:
|
||||
message.roomName = reader.string();
|
||||
message.RoomName = reader.string();
|
||||
break;
|
||||
case /* string Message = 2 [json_name = "Message"];*/ 2:
|
||||
message.message = reader.string();
|
||||
message.Message = reader.string();
|
||||
break;
|
||||
default:
|
||||
let u = options.readUnknownField;
|
||||
@@ -577,11 +577,11 @@ class SendNoticeToRoomRequest$Type extends MessageType<SendNoticeToRoomRequest>
|
||||
}
|
||||
internalBinaryWrite(message: SendNoticeToRoomRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
||||
/* string RoomName = 1 [json_name = "RoomName"]; */
|
||||
if (message.roomName !== "")
|
||||
writer.tag(1, WireType.LengthDelimited).string(message.roomName);
|
||||
if (message.RoomName !== "")
|
||||
writer.tag(1, WireType.LengthDelimited).string(message.RoomName);
|
||||
/* string Message = 2 [json_name = "Message"]; */
|
||||
if (message.message !== "")
|
||||
writer.tag(2, WireType.LengthDelimited).string(message.message);
|
||||
if (message.Message !== "")
|
||||
writer.tag(2, WireType.LengthDelimited).string(message.Message);
|
||||
let u = options.writeUnknownFields;
|
||||
if (u !== false)
|
||||
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
||||
@@ -634,14 +634,14 @@ export const SendNoticeToRoomResponse = new SendNoticeToRoomResponse$Type();
|
||||
class CreateProjectRoomRequest$Type extends MessageType<CreateProjectRoomRequest> {
|
||||
constructor() {
|
||||
super("api.CreateProjectRoomRequest", [
|
||||
{ no: 1, name: "ProjectID", kind: "scalar", jsonName: "ProjectID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } },
|
||||
{ no: 2, name: "Name", kind: "scalar", jsonName: "Name", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }
|
||||
{ no: 1, name: "ProjectID", kind: "scalar", localName: "ProjectID", jsonName: "ProjectID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } },
|
||||
{ no: 2, name: "Name", kind: "scalar", localName: "Name", jsonName: "Name", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }
|
||||
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["ProjectID", "Name"] } } });
|
||||
}
|
||||
create(value?: PartialMessage<CreateProjectRoomRequest>): CreateProjectRoomRequest {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
message.projectID = "";
|
||||
message.name = "";
|
||||
message.ProjectID = "";
|
||||
message.Name = "";
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<CreateProjectRoomRequest>(this, message, value);
|
||||
return message;
|
||||
@@ -652,10 +652,10 @@ class CreateProjectRoomRequest$Type extends MessageType<CreateProjectRoomRequest
|
||||
let [fieldNo, wireType] = reader.tag();
|
||||
switch (fieldNo) {
|
||||
case /* string ProjectID = 1 [json_name = "ProjectID"];*/ 1:
|
||||
message.projectID = reader.string();
|
||||
message.ProjectID = reader.string();
|
||||
break;
|
||||
case /* string Name = 2 [json_name = "Name"];*/ 2:
|
||||
message.name = reader.string();
|
||||
message.Name = reader.string();
|
||||
break;
|
||||
default:
|
||||
let u = options.readUnknownField;
|
||||
@@ -670,11 +670,11 @@ class CreateProjectRoomRequest$Type extends MessageType<CreateProjectRoomRequest
|
||||
}
|
||||
internalBinaryWrite(message: CreateProjectRoomRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
||||
/* string ProjectID = 1 [json_name = "ProjectID"]; */
|
||||
if (message.projectID !== "")
|
||||
writer.tag(1, WireType.LengthDelimited).string(message.projectID);
|
||||
if (message.ProjectID !== "")
|
||||
writer.tag(1, WireType.LengthDelimited).string(message.ProjectID);
|
||||
/* string Name = 2 [json_name = "Name"]; */
|
||||
if (message.name !== "")
|
||||
writer.tag(2, WireType.LengthDelimited).string(message.name);
|
||||
if (message.Name !== "")
|
||||
writer.tag(2, WireType.LengthDelimited).string(message.Name);
|
||||
let u = options.writeUnknownFields;
|
||||
if (u !== false)
|
||||
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
||||
@@ -689,12 +689,12 @@ export const CreateProjectRoomRequest = new CreateProjectRoomRequest$Type();
|
||||
class CreateProjectRoomResponse$Type extends MessageType<CreateProjectRoomResponse> {
|
||||
constructor() {
|
||||
super("api.CreateProjectRoomResponse", [
|
||||
{ no: 1, name: "RoomID", kind: "scalar", jsonName: "RoomID", T: 9 /*ScalarType.STRING*/ }
|
||||
{ no: 1, name: "RoomID", kind: "scalar", localName: "RoomID", jsonName: "RoomID", T: 9 /*ScalarType.STRING*/ }
|
||||
]);
|
||||
}
|
||||
create(value?: PartialMessage<CreateProjectRoomResponse>): CreateProjectRoomResponse {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
message.roomID = "";
|
||||
message.RoomID = "";
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<CreateProjectRoomResponse>(this, message, value);
|
||||
return message;
|
||||
@@ -705,7 +705,7 @@ class CreateProjectRoomResponse$Type extends MessageType<CreateProjectRoomRespon
|
||||
let [fieldNo, wireType] = reader.tag();
|
||||
switch (fieldNo) {
|
||||
case /* string RoomID = 1 [json_name = "RoomID"];*/ 1:
|
||||
message.roomID = reader.string();
|
||||
message.RoomID = reader.string();
|
||||
break;
|
||||
default:
|
||||
let u = options.readUnknownField;
|
||||
@@ -720,8 +720,8 @@ class CreateProjectRoomResponse$Type extends MessageType<CreateProjectRoomRespon
|
||||
}
|
||||
internalBinaryWrite(message: CreateProjectRoomResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
||||
/* string RoomID = 1 [json_name = "RoomID"]; */
|
||||
if (message.roomID !== "")
|
||||
writer.tag(1, WireType.LengthDelimited).string(message.roomID);
|
||||
if (message.RoomID !== "")
|
||||
writer.tag(1, WireType.LengthDelimited).string(message.RoomID);
|
||||
let u = options.writeUnknownFields;
|
||||
if (u !== false)
|
||||
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
||||
@@ -736,14 +736,14 @@ export const CreateProjectRoomResponse = new CreateProjectRoomResponse$Type();
|
||||
class DeleteProjectRoomRequest$Type extends MessageType<DeleteProjectRoomRequest> {
|
||||
constructor() {
|
||||
super("api.DeleteProjectRoomRequest", [
|
||||
{ no: 1, name: "ProjectID", kind: "scalar", jsonName: "ProjectID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } },
|
||||
{ no: 2, name: "Name", kind: "scalar", jsonName: "Name", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }
|
||||
{ no: 1, name: "ProjectID", kind: "scalar", localName: "ProjectID", jsonName: "ProjectID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } },
|
||||
{ no: 2, name: "Name", kind: "scalar", localName: "Name", jsonName: "Name", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }
|
||||
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["ProjectID", "Name"] } } });
|
||||
}
|
||||
create(value?: PartialMessage<DeleteProjectRoomRequest>): DeleteProjectRoomRequest {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
message.projectID = "";
|
||||
message.name = "";
|
||||
message.ProjectID = "";
|
||||
message.Name = "";
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<DeleteProjectRoomRequest>(this, message, value);
|
||||
return message;
|
||||
@@ -754,10 +754,10 @@ class DeleteProjectRoomRequest$Type extends MessageType<DeleteProjectRoomRequest
|
||||
let [fieldNo, wireType] = reader.tag();
|
||||
switch (fieldNo) {
|
||||
case /* string ProjectID = 1 [json_name = "ProjectID"];*/ 1:
|
||||
message.projectID = reader.string();
|
||||
message.ProjectID = reader.string();
|
||||
break;
|
||||
case /* string Name = 2 [json_name = "Name"];*/ 2:
|
||||
message.name = reader.string();
|
||||
message.Name = reader.string();
|
||||
break;
|
||||
default:
|
||||
let u = options.readUnknownField;
|
||||
@@ -772,11 +772,11 @@ class DeleteProjectRoomRequest$Type extends MessageType<DeleteProjectRoomRequest
|
||||
}
|
||||
internalBinaryWrite(message: DeleteProjectRoomRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
||||
/* string ProjectID = 1 [json_name = "ProjectID"]; */
|
||||
if (message.projectID !== "")
|
||||
writer.tag(1, WireType.LengthDelimited).string(message.projectID);
|
||||
if (message.ProjectID !== "")
|
||||
writer.tag(1, WireType.LengthDelimited).string(message.ProjectID);
|
||||
/* string Name = 2 [json_name = "Name"]; */
|
||||
if (message.name !== "")
|
||||
writer.tag(2, WireType.LengthDelimited).string(message.name);
|
||||
if (message.Name !== "")
|
||||
writer.tag(2, WireType.LengthDelimited).string(message.Name);
|
||||
let u = options.writeUnknownFields;
|
||||
if (u !== false)
|
||||
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
||||
@@ -829,17 +829,17 @@ export const DeleteProjectRoomResponse = new DeleteProjectRoomResponse$Type();
|
||||
class InviteUserToProjectRoomRequest$Type extends MessageType<InviteUserToProjectRoomRequest> {
|
||||
constructor() {
|
||||
super("api.InviteUserToProjectRoomRequest", [
|
||||
{ no: 1, name: "ProjectID", kind: "scalar", jsonName: "ProjectID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } },
|
||||
{ no: 2, name: "Mail", kind: "scalar", jsonName: "Mail", oneof: "user", T: 9 /*ScalarType.STRING*/ },
|
||||
{ no: 3, name: "ID", kind: "scalar", jsonName: "ID", oneof: "user", T: 9 /*ScalarType.STRING*/ },
|
||||
{ no: 4, name: "RoomName", kind: "scalar", jsonName: "RoomName", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }
|
||||
{ no: 1, name: "ProjectID", kind: "scalar", localName: "ProjectID", jsonName: "ProjectID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } },
|
||||
{ no: 2, name: "Mail", kind: "scalar", localName: "Mail", jsonName: "Mail", oneof: "User", T: 9 /*ScalarType.STRING*/ },
|
||||
{ no: 3, name: "ID", kind: "scalar", localName: "ID", jsonName: "ID", oneof: "User", T: 9 /*ScalarType.STRING*/ },
|
||||
{ no: 4, name: "RoomName", kind: "scalar", localName: "RoomName", jsonName: "RoomName", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }
|
||||
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["ProjectID", "RoomName"] } } });
|
||||
}
|
||||
create(value?: PartialMessage<InviteUserToProjectRoomRequest>): InviteUserToProjectRoomRequest {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
message.projectID = "";
|
||||
message.user = { oneofKind: undefined };
|
||||
message.roomName = "";
|
||||
message.ProjectID = "";
|
||||
message.User = { oneofKind: undefined };
|
||||
message.RoomName = "";
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<InviteUserToProjectRoomRequest>(this, message, value);
|
||||
return message;
|
||||
@@ -850,22 +850,22 @@ class InviteUserToProjectRoomRequest$Type extends MessageType<InviteUserToProjec
|
||||
let [fieldNo, wireType] = reader.tag();
|
||||
switch (fieldNo) {
|
||||
case /* string ProjectID = 1 [json_name = "ProjectID"];*/ 1:
|
||||
message.projectID = reader.string();
|
||||
message.ProjectID = reader.string();
|
||||
break;
|
||||
case /* string Mail = 2 [json_name = "Mail"];*/ 2:
|
||||
message.user = {
|
||||
oneofKind: "mail",
|
||||
mail: reader.string()
|
||||
message.User = {
|
||||
oneofKind: "Mail",
|
||||
Mail: reader.string()
|
||||
};
|
||||
break;
|
||||
case /* string ID = 3 [json_name = "ID"];*/ 3:
|
||||
message.user = {
|
||||
oneofKind: "iD",
|
||||
iD: reader.string()
|
||||
message.User = {
|
||||
oneofKind: "ID",
|
||||
ID: reader.string()
|
||||
};
|
||||
break;
|
||||
case /* string RoomName = 4 [json_name = "RoomName"];*/ 4:
|
||||
message.roomName = reader.string();
|
||||
message.RoomName = reader.string();
|
||||
break;
|
||||
default:
|
||||
let u = options.readUnknownField;
|
||||
@@ -880,17 +880,17 @@ class InviteUserToProjectRoomRequest$Type extends MessageType<InviteUserToProjec
|
||||
}
|
||||
internalBinaryWrite(message: InviteUserToProjectRoomRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
||||
/* string ProjectID = 1 [json_name = "ProjectID"]; */
|
||||
if (message.projectID !== "")
|
||||
writer.tag(1, WireType.LengthDelimited).string(message.projectID);
|
||||
if (message.ProjectID !== "")
|
||||
writer.tag(1, WireType.LengthDelimited).string(message.ProjectID);
|
||||
/* string Mail = 2 [json_name = "Mail"]; */
|
||||
if (message.user.oneofKind === "mail")
|
||||
writer.tag(2, WireType.LengthDelimited).string(message.user.mail);
|
||||
if (message.User.oneofKind === "Mail")
|
||||
writer.tag(2, WireType.LengthDelimited).string(message.User.Mail);
|
||||
/* string ID = 3 [json_name = "ID"]; */
|
||||
if (message.user.oneofKind === "iD")
|
||||
writer.tag(3, WireType.LengthDelimited).string(message.user.iD);
|
||||
if (message.User.oneofKind === "ID")
|
||||
writer.tag(3, WireType.LengthDelimited).string(message.User.ID);
|
||||
/* string RoomName = 4 [json_name = "RoomName"]; */
|
||||
if (message.roomName !== "")
|
||||
writer.tag(4, WireType.LengthDelimited).string(message.roomName);
|
||||
if (message.RoomName !== "")
|
||||
writer.tag(4, WireType.LengthDelimited).string(message.RoomName);
|
||||
let u = options.writeUnknownFields;
|
||||
if (u !== false)
|
||||
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
||||
@@ -905,12 +905,12 @@ export const InviteUserToProjectRoomRequest = new InviteUserToProjectRoomRequest
|
||||
class InviteUserToProjectRoomResponse$Type extends MessageType<InviteUserToProjectRoomResponse> {
|
||||
constructor() {
|
||||
super("api.InviteUserToProjectRoomResponse", [
|
||||
{ no: 1, name: "RoomID", kind: "scalar", jsonName: "RoomID", T: 9 /*ScalarType.STRING*/ }
|
||||
{ no: 1, name: "RoomID", kind: "scalar", localName: "RoomID", jsonName: "RoomID", T: 9 /*ScalarType.STRING*/ }
|
||||
]);
|
||||
}
|
||||
create(value?: PartialMessage<InviteUserToProjectRoomResponse>): InviteUserToProjectRoomResponse {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
message.roomID = "";
|
||||
message.RoomID = "";
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<InviteUserToProjectRoomResponse>(this, message, value);
|
||||
return message;
|
||||
@@ -921,7 +921,7 @@ class InviteUserToProjectRoomResponse$Type extends MessageType<InviteUserToProje
|
||||
let [fieldNo, wireType] = reader.tag();
|
||||
switch (fieldNo) {
|
||||
case /* string RoomID = 1 [json_name = "RoomID"];*/ 1:
|
||||
message.roomID = reader.string();
|
||||
message.RoomID = reader.string();
|
||||
break;
|
||||
default:
|
||||
let u = options.readUnknownField;
|
||||
@@ -936,8 +936,8 @@ class InviteUserToProjectRoomResponse$Type extends MessageType<InviteUserToProje
|
||||
}
|
||||
internalBinaryWrite(message: InviteUserToProjectRoomResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
||||
/* string RoomID = 1 [json_name = "RoomID"]; */
|
||||
if (message.roomID !== "")
|
||||
writer.tag(1, WireType.LengthDelimited).string(message.roomID);
|
||||
if (message.RoomID !== "")
|
||||
writer.tag(1, WireType.LengthDelimited).string(message.RoomID);
|
||||
let u = options.writeUnknownFields;
|
||||
if (u !== false)
|
||||
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
||||
@@ -952,16 +952,16 @@ export const InviteUserToProjectRoomResponse = new InviteUserToProjectRoomRespon
|
||||
class SendNoticeToProjectRoomRequest$Type extends MessageType<SendNoticeToProjectRoomRequest> {
|
||||
constructor() {
|
||||
super("api.SendNoticeToProjectRoomRequest", [
|
||||
{ no: 1, name: "ProjectID", kind: "scalar", jsonName: "ProjectID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } },
|
||||
{ no: 2, name: "RoomName", kind: "scalar", jsonName: "RoomName", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } },
|
||||
{ no: 3, name: "Message", kind: "scalar", jsonName: "Message", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }
|
||||
{ no: 1, name: "ProjectID", kind: "scalar", localName: "ProjectID", jsonName: "ProjectID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } },
|
||||
{ no: 2, name: "RoomName", kind: "scalar", localName: "RoomName", jsonName: "RoomName", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } },
|
||||
{ no: 3, name: "Message", kind: "scalar", localName: "Message", jsonName: "Message", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }
|
||||
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["ProjectID", "RoomName", "Message"] } } });
|
||||
}
|
||||
create(value?: PartialMessage<SendNoticeToProjectRoomRequest>): SendNoticeToProjectRoomRequest {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
message.projectID = "";
|
||||
message.roomName = "";
|
||||
message.message = "";
|
||||
message.ProjectID = "";
|
||||
message.RoomName = "";
|
||||
message.Message = "";
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<SendNoticeToProjectRoomRequest>(this, message, value);
|
||||
return message;
|
||||
@@ -972,13 +972,13 @@ class SendNoticeToProjectRoomRequest$Type extends MessageType<SendNoticeToProjec
|
||||
let [fieldNo, wireType] = reader.tag();
|
||||
switch (fieldNo) {
|
||||
case /* string ProjectID = 1 [json_name = "ProjectID"];*/ 1:
|
||||
message.projectID = reader.string();
|
||||
message.ProjectID = reader.string();
|
||||
break;
|
||||
case /* string RoomName = 2 [json_name = "RoomName"];*/ 2:
|
||||
message.roomName = reader.string();
|
||||
message.RoomName = reader.string();
|
||||
break;
|
||||
case /* string Message = 3 [json_name = "Message"];*/ 3:
|
||||
message.message = reader.string();
|
||||
message.Message = reader.string();
|
||||
break;
|
||||
default:
|
||||
let u = options.readUnknownField;
|
||||
@@ -993,14 +993,14 @@ class SendNoticeToProjectRoomRequest$Type extends MessageType<SendNoticeToProjec
|
||||
}
|
||||
internalBinaryWrite(message: SendNoticeToProjectRoomRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
||||
/* string ProjectID = 1 [json_name = "ProjectID"]; */
|
||||
if (message.projectID !== "")
|
||||
writer.tag(1, WireType.LengthDelimited).string(message.projectID);
|
||||
if (message.ProjectID !== "")
|
||||
writer.tag(1, WireType.LengthDelimited).string(message.ProjectID);
|
||||
/* string RoomName = 2 [json_name = "RoomName"]; */
|
||||
if (message.roomName !== "")
|
||||
writer.tag(2, WireType.LengthDelimited).string(message.roomName);
|
||||
if (message.RoomName !== "")
|
||||
writer.tag(2, WireType.LengthDelimited).string(message.RoomName);
|
||||
/* string Message = 3 [json_name = "Message"]; */
|
||||
if (message.message !== "")
|
||||
writer.tag(3, WireType.LengthDelimited).string(message.message);
|
||||
if (message.Message !== "")
|
||||
writer.tag(3, WireType.LengthDelimited).string(message.Message);
|
||||
let u = options.writeUnknownFields;
|
||||
if (u !== false)
|
||||
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
||||
@@ -1053,12 +1053,12 @@ export const SendNoticeToProjectRoomResponse = new SendNoticeToProjectRoomRespon
|
||||
class DeleteRoomsForProjectRequest$Type extends MessageType<DeleteRoomsForProjectRequest> {
|
||||
constructor() {
|
||||
super("api.DeleteRoomsForProjectRequest", [
|
||||
{ no: 1, name: "ProjectID", kind: "scalar", jsonName: "ProjectID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }
|
||||
{ no: 1, name: "ProjectID", kind: "scalar", localName: "ProjectID", jsonName: "ProjectID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }
|
||||
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["ProjectID"] } } });
|
||||
}
|
||||
create(value?: PartialMessage<DeleteRoomsForProjectRequest>): DeleteRoomsForProjectRequest {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
message.projectID = "";
|
||||
message.ProjectID = "";
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<DeleteRoomsForProjectRequest>(this, message, value);
|
||||
return message;
|
||||
@@ -1069,7 +1069,7 @@ class DeleteRoomsForProjectRequest$Type extends MessageType<DeleteRoomsForProjec
|
||||
let [fieldNo, wireType] = reader.tag();
|
||||
switch (fieldNo) {
|
||||
case /* string ProjectID = 1 [json_name = "ProjectID"];*/ 1:
|
||||
message.projectID = reader.string();
|
||||
message.ProjectID = reader.string();
|
||||
break;
|
||||
default:
|
||||
let u = options.readUnknownField;
|
||||
@@ -1084,8 +1084,8 @@ class DeleteRoomsForProjectRequest$Type extends MessageType<DeleteRoomsForProjec
|
||||
}
|
||||
internalBinaryWrite(message: DeleteRoomsForProjectRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
||||
/* string ProjectID = 1 [json_name = "ProjectID"]; */
|
||||
if (message.projectID !== "")
|
||||
writer.tag(1, WireType.LengthDelimited).string(message.projectID);
|
||||
if (message.ProjectID !== "")
|
||||
writer.tag(1, WireType.LengthDelimited).string(message.ProjectID);
|
||||
let u = options.writeUnknownFields;
|
||||
if (u !== false)
|
||||
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
||||
@@ -1138,18 +1138,18 @@ export const DeleteRoomsForProjectResponse = new DeleteRoomsForProjectResponse$T
|
||||
class SendMessageToProjectRoomRequest$Type extends MessageType<SendMessageToProjectRoomRequest> {
|
||||
constructor() {
|
||||
super("api.SendMessageToProjectRoomRequest", [
|
||||
{ no: 1, name: "ProjectID", kind: "scalar", jsonName: "ProjectID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } },
|
||||
{ no: 2, name: "RoomName", kind: "scalar", jsonName: "RoomName", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } },
|
||||
{ no: 3, name: "Message", kind: "scalar", jsonName: "Message", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } },
|
||||
{ no: 4, name: "UserJWT", kind: "scalar", jsonName: "UserJWT", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }
|
||||
{ no: 1, name: "ProjectID", kind: "scalar", localName: "ProjectID", jsonName: "ProjectID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } },
|
||||
{ no: 2, name: "RoomName", kind: "scalar", localName: "RoomName", jsonName: "RoomName", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } },
|
||||
{ no: 3, name: "Message", kind: "scalar", localName: "Message", jsonName: "Message", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } },
|
||||
{ no: 4, name: "UserJWT", kind: "scalar", localName: "UserJWT", jsonName: "UserJWT", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }
|
||||
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["ProjectID", "RoomName", "Message", "UserJWT"] } } });
|
||||
}
|
||||
create(value?: PartialMessage<SendMessageToProjectRoomRequest>): SendMessageToProjectRoomRequest {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
message.projectID = "";
|
||||
message.roomName = "";
|
||||
message.message = "";
|
||||
message.userJWT = "";
|
||||
message.ProjectID = "";
|
||||
message.RoomName = "";
|
||||
message.Message = "";
|
||||
message.UserJWT = "";
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<SendMessageToProjectRoomRequest>(this, message, value);
|
||||
return message;
|
||||
@@ -1160,16 +1160,16 @@ class SendMessageToProjectRoomRequest$Type extends MessageType<SendMessageToProj
|
||||
let [fieldNo, wireType] = reader.tag();
|
||||
switch (fieldNo) {
|
||||
case /* string ProjectID = 1 [json_name = "ProjectID"];*/ 1:
|
||||
message.projectID = reader.string();
|
||||
message.ProjectID = reader.string();
|
||||
break;
|
||||
case /* string RoomName = 2 [json_name = "RoomName"];*/ 2:
|
||||
message.roomName = reader.string();
|
||||
message.RoomName = reader.string();
|
||||
break;
|
||||
case /* string Message = 3 [json_name = "Message"];*/ 3:
|
||||
message.message = reader.string();
|
||||
message.Message = reader.string();
|
||||
break;
|
||||
case /* string UserJWT = 4 [json_name = "UserJWT"];*/ 4:
|
||||
message.userJWT = reader.string();
|
||||
message.UserJWT = reader.string();
|
||||
break;
|
||||
default:
|
||||
let u = options.readUnknownField;
|
||||
@@ -1184,17 +1184,17 @@ class SendMessageToProjectRoomRequest$Type extends MessageType<SendMessageToProj
|
||||
}
|
||||
internalBinaryWrite(message: SendMessageToProjectRoomRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
||||
/* string ProjectID = 1 [json_name = "ProjectID"]; */
|
||||
if (message.projectID !== "")
|
||||
writer.tag(1, WireType.LengthDelimited).string(message.projectID);
|
||||
if (message.ProjectID !== "")
|
||||
writer.tag(1, WireType.LengthDelimited).string(message.ProjectID);
|
||||
/* string RoomName = 2 [json_name = "RoomName"]; */
|
||||
if (message.roomName !== "")
|
||||
writer.tag(2, WireType.LengthDelimited).string(message.roomName);
|
||||
if (message.RoomName !== "")
|
||||
writer.tag(2, WireType.LengthDelimited).string(message.RoomName);
|
||||
/* string Message = 3 [json_name = "Message"]; */
|
||||
if (message.message !== "")
|
||||
writer.tag(3, WireType.LengthDelimited).string(message.message);
|
||||
if (message.Message !== "")
|
||||
writer.tag(3, WireType.LengthDelimited).string(message.Message);
|
||||
/* string UserJWT = 4 [json_name = "UserJWT"]; */
|
||||
if (message.userJWT !== "")
|
||||
writer.tag(4, WireType.LengthDelimited).string(message.userJWT);
|
||||
if (message.UserJWT !== "")
|
||||
writer.tag(4, WireType.LengthDelimited).string(message.UserJWT);
|
||||
let u = options.writeUnknownFields;
|
||||
if (u !== false)
|
||||
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
||||
|
||||
Reference in New Issue
Block a user