You've already forked npm-core-sdk
Latest generation
This commit is contained in:
164
matrix-proxy.ts
164
matrix-proxy.ts
@@ -1,4 +1,4 @@
|
||||
// @generated by protobuf-ts 2.10.0 with parameter use_proto_field_name
|
||||
// @generated by protobuf-ts 2.11.0 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";
|
||||
@@ -18,7 +18,7 @@ import { MessageType } from "@protobuf-ts/runtime";
|
||||
*/
|
||||
export interface CreateRoomRequest {
|
||||
/**
|
||||
* @generated from protobuf field: string Name = 1 [json_name = "Name"];
|
||||
* @generated from protobuf field: string Name = 1
|
||||
*/
|
||||
Name: string; // The name of the room to create. It needs to be unique otherwise the room creation will fail.
|
||||
}
|
||||
@@ -27,7 +27,7 @@ export interface CreateRoomRequest {
|
||||
*/
|
||||
export interface CreateRoomResponse {
|
||||
/**
|
||||
* @generated from protobuf field: string RoomID = 1 [json_name = "RoomID"];
|
||||
* @generated from protobuf field: string RoomID = 1
|
||||
*/
|
||||
RoomID: string; // The matrix room ID of the newly created room.
|
||||
}
|
||||
@@ -36,7 +36,7 @@ export interface CreateRoomResponse {
|
||||
*/
|
||||
export interface DeleteRoomRequest {
|
||||
/**
|
||||
* @generated from protobuf field: string Name = 1 [json_name = "Name"];
|
||||
* @generated from protobuf field: string Name = 1
|
||||
*/
|
||||
Name: string; // The name of the room to delete.
|
||||
}
|
||||
@@ -55,20 +55,20 @@ export interface InviteUserToRoomRequest {
|
||||
User: {
|
||||
oneofKind: "Mail";
|
||||
/**
|
||||
* @generated from protobuf field: string Mail = 1 [json_name = "Mail"];
|
||||
* @generated from protobuf field: string Mail = 1
|
||||
*/
|
||||
Mail: string; // The mail of the user to invite to the room. Mutually exclusive with ID.
|
||||
} | {
|
||||
oneofKind: "ID";
|
||||
/**
|
||||
* @generated from protobuf field: string ID = 2 [json_name = "ID"];
|
||||
* @generated from protobuf field: string ID = 2
|
||||
*/
|
||||
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"];
|
||||
* @generated from protobuf field: string RoomName = 3
|
||||
*/
|
||||
RoomName: string; // The name of the room to invite the given user to.
|
||||
}
|
||||
@@ -77,7 +77,7 @@ export interface InviteUserToRoomRequest {
|
||||
*/
|
||||
export interface InviteUserToRoomResponse {
|
||||
/**
|
||||
* @generated from protobuf field: string RoomID = 1 [json_name = "RoomID"];
|
||||
* @generated from protobuf field: string RoomID = 1
|
||||
*/
|
||||
RoomID: string; // The matrix room ID of the room the user has been invited to.
|
||||
}
|
||||
@@ -86,11 +86,11 @@ export interface InviteUserToRoomResponse {
|
||||
*/
|
||||
export interface SendNoticeToRoomRequest {
|
||||
/**
|
||||
* @generated from protobuf field: string RoomName = 1 [json_name = "RoomName"];
|
||||
* @generated from protobuf field: string RoomName = 1
|
||||
*/
|
||||
RoomName: string; // The name of the room to send the notice to.
|
||||
/**
|
||||
* @generated from protobuf field: string Message = 2 [json_name = "Message"];
|
||||
* @generated from protobuf field: string Message = 2
|
||||
*/
|
||||
Message: string; // The message to send to the room. Could be a simple text or a markdown message.
|
||||
}
|
||||
@@ -106,11 +106,11 @@ export interface SendNoticeToRoomResponse {
|
||||
*/
|
||||
export interface CreateProjectRoomRequest {
|
||||
/**
|
||||
* @generated from protobuf field: string ProjectID = 1 [json_name = "ProjectID"];
|
||||
* @generated from protobuf field: string ProjectID = 1
|
||||
*/
|
||||
ProjectID: string; // The ID of the project the room is related to.
|
||||
/**
|
||||
* @generated from protobuf field: string Name = 2 [json_name = "Name"];
|
||||
* @generated from protobuf field: string Name = 2
|
||||
*/
|
||||
Name: string; // The name of the room to create. It needs to be unique otherwise the room creation will fail.
|
||||
}
|
||||
@@ -119,7 +119,7 @@ export interface CreateProjectRoomRequest {
|
||||
*/
|
||||
export interface CreateProjectRoomResponse {
|
||||
/**
|
||||
* @generated from protobuf field: string RoomID = 1 [json_name = "RoomID"];
|
||||
* @generated from protobuf field: string RoomID = 1
|
||||
*/
|
||||
RoomID: string; // The matrix room ID of the newly created room.
|
||||
}
|
||||
@@ -128,11 +128,11 @@ export interface CreateProjectRoomResponse {
|
||||
*/
|
||||
export interface DeleteProjectRoomRequest {
|
||||
/**
|
||||
* @generated from protobuf field: string ProjectID = 1 [json_name = "ProjectID"];
|
||||
* @generated from protobuf field: string ProjectID = 1
|
||||
*/
|
||||
ProjectID: string; // The ID of the project the room is related to.
|
||||
/**
|
||||
* @generated from protobuf field: string Name = 2 [json_name = "Name"];
|
||||
* @generated from protobuf field: string Name = 2
|
||||
*/
|
||||
Name: string; // The name of the room to delete.
|
||||
}
|
||||
@@ -146,7 +146,7 @@ export interface DeleteProjectRoomResponse {
|
||||
*/
|
||||
export interface InviteUserToProjectRoomRequest {
|
||||
/**
|
||||
* @generated from protobuf field: string ProjectID = 1 [json_name = "ProjectID"];
|
||||
* @generated from protobuf field: string ProjectID = 1
|
||||
*/
|
||||
ProjectID: string; // The ID of the project the room is related to.
|
||||
/**
|
||||
@@ -155,20 +155,20 @@ export interface InviteUserToProjectRoomRequest {
|
||||
User: {
|
||||
oneofKind: "Mail";
|
||||
/**
|
||||
* @generated from protobuf field: string Mail = 2 [json_name = "Mail"];
|
||||
* @generated from protobuf field: string Mail = 2
|
||||
*/
|
||||
Mail: string; // The mail of the user to invite to the room. Mutually exclusive with ID.
|
||||
} | {
|
||||
oneofKind: "ID";
|
||||
/**
|
||||
* @generated from protobuf field: string ID = 3 [json_name = "ID"];
|
||||
* @generated from protobuf field: string ID = 3
|
||||
*/
|
||||
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"];
|
||||
* @generated from protobuf field: string RoomName = 4
|
||||
*/
|
||||
RoomName: string; // The name of the room to invite the given user to.
|
||||
}
|
||||
@@ -177,7 +177,7 @@ export interface InviteUserToProjectRoomRequest {
|
||||
*/
|
||||
export interface InviteUserToProjectRoomResponse {
|
||||
/**
|
||||
* @generated from protobuf field: string RoomID = 1 [json_name = "RoomID"];
|
||||
* @generated from protobuf field: string RoomID = 1
|
||||
*/
|
||||
RoomID: string; // The matrix room ID of the room the user has been invited to.
|
||||
}
|
||||
@@ -186,15 +186,15 @@ export interface InviteUserToProjectRoomResponse {
|
||||
*/
|
||||
export interface SendNoticeToProjectRoomRequest {
|
||||
/**
|
||||
* @generated from protobuf field: string ProjectID = 1 [json_name = "ProjectID"];
|
||||
* @generated from protobuf field: string ProjectID = 1
|
||||
*/
|
||||
ProjectID: string; // The ID of the project the room is related to.
|
||||
/**
|
||||
* @generated from protobuf field: string RoomName = 2 [json_name = "RoomName"];
|
||||
* @generated from protobuf field: string RoomName = 2
|
||||
*/
|
||||
RoomName: string; // The name of the room to send the notice to.
|
||||
/**
|
||||
* @generated from protobuf field: string Message = 3 [json_name = "Message"];
|
||||
* @generated from protobuf field: string Message = 3
|
||||
*/
|
||||
Message: string; // The message to send to the room. Could be a simple text or a markdown message.
|
||||
}
|
||||
@@ -208,7 +208,7 @@ export interface SendNoticeToProjectRoomResponse {
|
||||
*/
|
||||
export interface DeleteRoomsForProjectRequest {
|
||||
/**
|
||||
* @generated from protobuf field: string ProjectID = 1 [json_name = "ProjectID"];
|
||||
* @generated from protobuf field: string ProjectID = 1
|
||||
*/
|
||||
ProjectID: string; // The ID of the project the rooms are related to.
|
||||
}
|
||||
@@ -222,19 +222,19 @@ export interface DeleteRoomsForProjectResponse {
|
||||
*/
|
||||
export interface SendMessageToProjectRoomRequest {
|
||||
/**
|
||||
* @generated from protobuf field: string ProjectID = 1 [json_name = "ProjectID"];
|
||||
* @generated from protobuf field: string ProjectID = 1
|
||||
*/
|
||||
ProjectID: string; // The ID of the project the room is related to.
|
||||
/**
|
||||
* @generated from protobuf field: string RoomName = 2 [json_name = "RoomName"];
|
||||
* @generated from protobuf field: string RoomName = 2
|
||||
*/
|
||||
RoomName: string; // The name of the room to send the message to.
|
||||
/**
|
||||
* @generated from protobuf field: string Message = 3 [json_name = "Message"];
|
||||
* @generated from protobuf field: string Message = 3
|
||||
*/
|
||||
Message: string; // The message to send to the room. A simple text m
|
||||
/**
|
||||
* @generated from protobuf field: string UserJWT = 4 [json_name = "UserJWT"];
|
||||
* @generated from protobuf field: string UserJWT = 4
|
||||
*/
|
||||
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.
|
||||
}
|
||||
@@ -262,7 +262,7 @@ class CreateRoomRequest$Type extends MessageType<CreateRoomRequest> {
|
||||
while (reader.pos < end) {
|
||||
let [fieldNo, wireType] = reader.tag();
|
||||
switch (fieldNo) {
|
||||
case /* string Name = 1 [json_name = "Name"];*/ 1:
|
||||
case /* string Name */ 1:
|
||||
message.Name = reader.string();
|
||||
break;
|
||||
default:
|
||||
@@ -277,7 +277,7 @@ class CreateRoomRequest$Type extends MessageType<CreateRoomRequest> {
|
||||
return message;
|
||||
}
|
||||
internalBinaryWrite(message: CreateRoomRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
||||
/* string Name = 1 [json_name = "Name"]; */
|
||||
/* string Name = 1; */
|
||||
if (message.Name !== "")
|
||||
writer.tag(1, WireType.LengthDelimited).string(message.Name);
|
||||
let u = options.writeUnknownFields;
|
||||
@@ -309,7 +309,7 @@ class CreateRoomResponse$Type extends MessageType<CreateRoomResponse> {
|
||||
while (reader.pos < end) {
|
||||
let [fieldNo, wireType] = reader.tag();
|
||||
switch (fieldNo) {
|
||||
case /* string RoomID = 1 [json_name = "RoomID"];*/ 1:
|
||||
case /* string RoomID */ 1:
|
||||
message.RoomID = reader.string();
|
||||
break;
|
||||
default:
|
||||
@@ -324,7 +324,7 @@ class CreateRoomResponse$Type extends MessageType<CreateRoomResponse> {
|
||||
return message;
|
||||
}
|
||||
internalBinaryWrite(message: CreateRoomResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
||||
/* string RoomID = 1 [json_name = "RoomID"]; */
|
||||
/* string RoomID = 1; */
|
||||
if (message.RoomID !== "")
|
||||
writer.tag(1, WireType.LengthDelimited).string(message.RoomID);
|
||||
let u = options.writeUnknownFields;
|
||||
@@ -356,7 +356,7 @@ class DeleteRoomRequest$Type extends MessageType<DeleteRoomRequest> {
|
||||
while (reader.pos < end) {
|
||||
let [fieldNo, wireType] = reader.tag();
|
||||
switch (fieldNo) {
|
||||
case /* string Name = 1 [json_name = "Name"];*/ 1:
|
||||
case /* string Name */ 1:
|
||||
message.Name = reader.string();
|
||||
break;
|
||||
default:
|
||||
@@ -371,7 +371,7 @@ class DeleteRoomRequest$Type extends MessageType<DeleteRoomRequest> {
|
||||
return message;
|
||||
}
|
||||
internalBinaryWrite(message: DeleteRoomRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
||||
/* string Name = 1 [json_name = "Name"]; */
|
||||
/* string Name = 1; */
|
||||
if (message.Name !== "")
|
||||
writer.tag(1, WireType.LengthDelimited).string(message.Name);
|
||||
let u = options.writeUnknownFields;
|
||||
@@ -444,19 +444,19 @@ class InviteUserToRoomRequest$Type extends MessageType<InviteUserToRoomRequest>
|
||||
while (reader.pos < end) {
|
||||
let [fieldNo, wireType] = reader.tag();
|
||||
switch (fieldNo) {
|
||||
case /* string Mail = 1 [json_name = "Mail"];*/ 1:
|
||||
case /* string Mail */ 1:
|
||||
message.User = {
|
||||
oneofKind: "Mail",
|
||||
Mail: reader.string()
|
||||
};
|
||||
break;
|
||||
case /* string ID = 2 [json_name = "ID"];*/ 2:
|
||||
case /* string ID */ 2:
|
||||
message.User = {
|
||||
oneofKind: "ID",
|
||||
ID: reader.string()
|
||||
};
|
||||
break;
|
||||
case /* string RoomName = 3 [json_name = "RoomName"];*/ 3:
|
||||
case /* string RoomName */ 3:
|
||||
message.RoomName = reader.string();
|
||||
break;
|
||||
default:
|
||||
@@ -471,13 +471,13 @@ class InviteUserToRoomRequest$Type extends MessageType<InviteUserToRoomRequest>
|
||||
return message;
|
||||
}
|
||||
internalBinaryWrite(message: InviteUserToRoomRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
||||
/* string Mail = 1 [json_name = "Mail"]; */
|
||||
/* string Mail = 1; */
|
||||
if (message.User.oneofKind === "Mail")
|
||||
writer.tag(1, WireType.LengthDelimited).string(message.User.Mail);
|
||||
/* string ID = 2 [json_name = "ID"]; */
|
||||
/* string ID = 2; */
|
||||
if (message.User.oneofKind === "ID")
|
||||
writer.tag(2, WireType.LengthDelimited).string(message.User.ID);
|
||||
/* string RoomName = 3 [json_name = "RoomName"]; */
|
||||
/* string RoomName = 3; */
|
||||
if (message.RoomName !== "")
|
||||
writer.tag(3, WireType.LengthDelimited).string(message.RoomName);
|
||||
let u = options.writeUnknownFields;
|
||||
@@ -509,7 +509,7 @@ class InviteUserToRoomResponse$Type extends MessageType<InviteUserToRoomResponse
|
||||
while (reader.pos < end) {
|
||||
let [fieldNo, wireType] = reader.tag();
|
||||
switch (fieldNo) {
|
||||
case /* string RoomID = 1 [json_name = "RoomID"];*/ 1:
|
||||
case /* string RoomID */ 1:
|
||||
message.RoomID = reader.string();
|
||||
break;
|
||||
default:
|
||||
@@ -524,7 +524,7 @@ class InviteUserToRoomResponse$Type extends MessageType<InviteUserToRoomResponse
|
||||
return message;
|
||||
}
|
||||
internalBinaryWrite(message: InviteUserToRoomResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
||||
/* string RoomID = 1 [json_name = "RoomID"]; */
|
||||
/* string RoomID = 1; */
|
||||
if (message.RoomID !== "")
|
||||
writer.tag(1, WireType.LengthDelimited).string(message.RoomID);
|
||||
let u = options.writeUnknownFields;
|
||||
@@ -558,10 +558,10 @@ class SendNoticeToRoomRequest$Type extends MessageType<SendNoticeToRoomRequest>
|
||||
while (reader.pos < end) {
|
||||
let [fieldNo, wireType] = reader.tag();
|
||||
switch (fieldNo) {
|
||||
case /* string RoomName = 1 [json_name = "RoomName"];*/ 1:
|
||||
case /* string RoomName */ 1:
|
||||
message.RoomName = reader.string();
|
||||
break;
|
||||
case /* string Message = 2 [json_name = "Message"];*/ 2:
|
||||
case /* string Message */ 2:
|
||||
message.Message = reader.string();
|
||||
break;
|
||||
default:
|
||||
@@ -576,10 +576,10 @@ class SendNoticeToRoomRequest$Type extends MessageType<SendNoticeToRoomRequest>
|
||||
return message;
|
||||
}
|
||||
internalBinaryWrite(message: SendNoticeToRoomRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
||||
/* string RoomName = 1 [json_name = "RoomName"]; */
|
||||
/* string RoomName = 1; */
|
||||
if (message.RoomName !== "")
|
||||
writer.tag(1, WireType.LengthDelimited).string(message.RoomName);
|
||||
/* string Message = 2 [json_name = "Message"]; */
|
||||
/* string Message = 2; */
|
||||
if (message.Message !== "")
|
||||
writer.tag(2, WireType.LengthDelimited).string(message.Message);
|
||||
let u = options.writeUnknownFields;
|
||||
@@ -651,10 +651,10 @@ class CreateProjectRoomRequest$Type extends MessageType<CreateProjectRoomRequest
|
||||
while (reader.pos < end) {
|
||||
let [fieldNo, wireType] = reader.tag();
|
||||
switch (fieldNo) {
|
||||
case /* string ProjectID = 1 [json_name = "ProjectID"];*/ 1:
|
||||
case /* string ProjectID */ 1:
|
||||
message.ProjectID = reader.string();
|
||||
break;
|
||||
case /* string Name = 2 [json_name = "Name"];*/ 2:
|
||||
case /* string Name */ 2:
|
||||
message.Name = reader.string();
|
||||
break;
|
||||
default:
|
||||
@@ -669,10 +669,10 @@ class CreateProjectRoomRequest$Type extends MessageType<CreateProjectRoomRequest
|
||||
return message;
|
||||
}
|
||||
internalBinaryWrite(message: CreateProjectRoomRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
||||
/* string ProjectID = 1 [json_name = "ProjectID"]; */
|
||||
/* string ProjectID = 1; */
|
||||
if (message.ProjectID !== "")
|
||||
writer.tag(1, WireType.LengthDelimited).string(message.ProjectID);
|
||||
/* string Name = 2 [json_name = "Name"]; */
|
||||
/* string Name = 2; */
|
||||
if (message.Name !== "")
|
||||
writer.tag(2, WireType.LengthDelimited).string(message.Name);
|
||||
let u = options.writeUnknownFields;
|
||||
@@ -704,7 +704,7 @@ class CreateProjectRoomResponse$Type extends MessageType<CreateProjectRoomRespon
|
||||
while (reader.pos < end) {
|
||||
let [fieldNo, wireType] = reader.tag();
|
||||
switch (fieldNo) {
|
||||
case /* string RoomID = 1 [json_name = "RoomID"];*/ 1:
|
||||
case /* string RoomID */ 1:
|
||||
message.RoomID = reader.string();
|
||||
break;
|
||||
default:
|
||||
@@ -719,7 +719,7 @@ class CreateProjectRoomResponse$Type extends MessageType<CreateProjectRoomRespon
|
||||
return message;
|
||||
}
|
||||
internalBinaryWrite(message: CreateProjectRoomResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
||||
/* string RoomID = 1 [json_name = "RoomID"]; */
|
||||
/* string RoomID = 1; */
|
||||
if (message.RoomID !== "")
|
||||
writer.tag(1, WireType.LengthDelimited).string(message.RoomID);
|
||||
let u = options.writeUnknownFields;
|
||||
@@ -753,10 +753,10 @@ class DeleteProjectRoomRequest$Type extends MessageType<DeleteProjectRoomRequest
|
||||
while (reader.pos < end) {
|
||||
let [fieldNo, wireType] = reader.tag();
|
||||
switch (fieldNo) {
|
||||
case /* string ProjectID = 1 [json_name = "ProjectID"];*/ 1:
|
||||
case /* string ProjectID */ 1:
|
||||
message.ProjectID = reader.string();
|
||||
break;
|
||||
case /* string Name = 2 [json_name = "Name"];*/ 2:
|
||||
case /* string Name */ 2:
|
||||
message.Name = reader.string();
|
||||
break;
|
||||
default:
|
||||
@@ -771,10 +771,10 @@ class DeleteProjectRoomRequest$Type extends MessageType<DeleteProjectRoomRequest
|
||||
return message;
|
||||
}
|
||||
internalBinaryWrite(message: DeleteProjectRoomRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
||||
/* string ProjectID = 1 [json_name = "ProjectID"]; */
|
||||
/* string ProjectID = 1; */
|
||||
if (message.ProjectID !== "")
|
||||
writer.tag(1, WireType.LengthDelimited).string(message.ProjectID);
|
||||
/* string Name = 2 [json_name = "Name"]; */
|
||||
/* string Name = 2; */
|
||||
if (message.Name !== "")
|
||||
writer.tag(2, WireType.LengthDelimited).string(message.Name);
|
||||
let u = options.writeUnknownFields;
|
||||
@@ -849,22 +849,22 @@ class InviteUserToProjectRoomRequest$Type extends MessageType<InviteUserToProjec
|
||||
while (reader.pos < end) {
|
||||
let [fieldNo, wireType] = reader.tag();
|
||||
switch (fieldNo) {
|
||||
case /* string ProjectID = 1 [json_name = "ProjectID"];*/ 1:
|
||||
case /* string ProjectID */ 1:
|
||||
message.ProjectID = reader.string();
|
||||
break;
|
||||
case /* string Mail = 2 [json_name = "Mail"];*/ 2:
|
||||
case /* string Mail */ 2:
|
||||
message.User = {
|
||||
oneofKind: "Mail",
|
||||
Mail: reader.string()
|
||||
};
|
||||
break;
|
||||
case /* string ID = 3 [json_name = "ID"];*/ 3:
|
||||
case /* string ID */ 3:
|
||||
message.User = {
|
||||
oneofKind: "ID",
|
||||
ID: reader.string()
|
||||
};
|
||||
break;
|
||||
case /* string RoomName = 4 [json_name = "RoomName"];*/ 4:
|
||||
case /* string RoomName */ 4:
|
||||
message.RoomName = reader.string();
|
||||
break;
|
||||
default:
|
||||
@@ -879,16 +879,16 @@ class InviteUserToProjectRoomRequest$Type extends MessageType<InviteUserToProjec
|
||||
return message;
|
||||
}
|
||||
internalBinaryWrite(message: InviteUserToProjectRoomRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
||||
/* string ProjectID = 1 [json_name = "ProjectID"]; */
|
||||
/* string ProjectID = 1; */
|
||||
if (message.ProjectID !== "")
|
||||
writer.tag(1, WireType.LengthDelimited).string(message.ProjectID);
|
||||
/* string Mail = 2 [json_name = "Mail"]; */
|
||||
/* string Mail = 2; */
|
||||
if (message.User.oneofKind === "Mail")
|
||||
writer.tag(2, WireType.LengthDelimited).string(message.User.Mail);
|
||||
/* string ID = 3 [json_name = "ID"]; */
|
||||
/* string ID = 3; */
|
||||
if (message.User.oneofKind === "ID")
|
||||
writer.tag(3, WireType.LengthDelimited).string(message.User.ID);
|
||||
/* string RoomName = 4 [json_name = "RoomName"]; */
|
||||
/* string RoomName = 4; */
|
||||
if (message.RoomName !== "")
|
||||
writer.tag(4, WireType.LengthDelimited).string(message.RoomName);
|
||||
let u = options.writeUnknownFields;
|
||||
@@ -920,7 +920,7 @@ class InviteUserToProjectRoomResponse$Type extends MessageType<InviteUserToProje
|
||||
while (reader.pos < end) {
|
||||
let [fieldNo, wireType] = reader.tag();
|
||||
switch (fieldNo) {
|
||||
case /* string RoomID = 1 [json_name = "RoomID"];*/ 1:
|
||||
case /* string RoomID */ 1:
|
||||
message.RoomID = reader.string();
|
||||
break;
|
||||
default:
|
||||
@@ -935,7 +935,7 @@ class InviteUserToProjectRoomResponse$Type extends MessageType<InviteUserToProje
|
||||
return message;
|
||||
}
|
||||
internalBinaryWrite(message: InviteUserToProjectRoomResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
||||
/* string RoomID = 1 [json_name = "RoomID"]; */
|
||||
/* string RoomID = 1; */
|
||||
if (message.RoomID !== "")
|
||||
writer.tag(1, WireType.LengthDelimited).string(message.RoomID);
|
||||
let u = options.writeUnknownFields;
|
||||
@@ -971,13 +971,13 @@ class SendNoticeToProjectRoomRequest$Type extends MessageType<SendNoticeToProjec
|
||||
while (reader.pos < end) {
|
||||
let [fieldNo, wireType] = reader.tag();
|
||||
switch (fieldNo) {
|
||||
case /* string ProjectID = 1 [json_name = "ProjectID"];*/ 1:
|
||||
case /* string ProjectID */ 1:
|
||||
message.ProjectID = reader.string();
|
||||
break;
|
||||
case /* string RoomName = 2 [json_name = "RoomName"];*/ 2:
|
||||
case /* string RoomName */ 2:
|
||||
message.RoomName = reader.string();
|
||||
break;
|
||||
case /* string Message = 3 [json_name = "Message"];*/ 3:
|
||||
case /* string Message */ 3:
|
||||
message.Message = reader.string();
|
||||
break;
|
||||
default:
|
||||
@@ -992,13 +992,13 @@ class SendNoticeToProjectRoomRequest$Type extends MessageType<SendNoticeToProjec
|
||||
return message;
|
||||
}
|
||||
internalBinaryWrite(message: SendNoticeToProjectRoomRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
||||
/* string ProjectID = 1 [json_name = "ProjectID"]; */
|
||||
/* string ProjectID = 1; */
|
||||
if (message.ProjectID !== "")
|
||||
writer.tag(1, WireType.LengthDelimited).string(message.ProjectID);
|
||||
/* string RoomName = 2 [json_name = "RoomName"]; */
|
||||
/* string RoomName = 2; */
|
||||
if (message.RoomName !== "")
|
||||
writer.tag(2, WireType.LengthDelimited).string(message.RoomName);
|
||||
/* string Message = 3 [json_name = "Message"]; */
|
||||
/* string Message = 3; */
|
||||
if (message.Message !== "")
|
||||
writer.tag(3, WireType.LengthDelimited).string(message.Message);
|
||||
let u = options.writeUnknownFields;
|
||||
@@ -1068,7 +1068,7 @@ class DeleteRoomsForProjectRequest$Type extends MessageType<DeleteRoomsForProjec
|
||||
while (reader.pos < end) {
|
||||
let [fieldNo, wireType] = reader.tag();
|
||||
switch (fieldNo) {
|
||||
case /* string ProjectID = 1 [json_name = "ProjectID"];*/ 1:
|
||||
case /* string ProjectID */ 1:
|
||||
message.ProjectID = reader.string();
|
||||
break;
|
||||
default:
|
||||
@@ -1083,7 +1083,7 @@ class DeleteRoomsForProjectRequest$Type extends MessageType<DeleteRoomsForProjec
|
||||
return message;
|
||||
}
|
||||
internalBinaryWrite(message: DeleteRoomsForProjectRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
||||
/* string ProjectID = 1 [json_name = "ProjectID"]; */
|
||||
/* string ProjectID = 1; */
|
||||
if (message.ProjectID !== "")
|
||||
writer.tag(1, WireType.LengthDelimited).string(message.ProjectID);
|
||||
let u = options.writeUnknownFields;
|
||||
@@ -1159,16 +1159,16 @@ class SendMessageToProjectRoomRequest$Type extends MessageType<SendMessageToProj
|
||||
while (reader.pos < end) {
|
||||
let [fieldNo, wireType] = reader.tag();
|
||||
switch (fieldNo) {
|
||||
case /* string ProjectID = 1 [json_name = "ProjectID"];*/ 1:
|
||||
case /* string ProjectID */ 1:
|
||||
message.ProjectID = reader.string();
|
||||
break;
|
||||
case /* string RoomName = 2 [json_name = "RoomName"];*/ 2:
|
||||
case /* string RoomName */ 2:
|
||||
message.RoomName = reader.string();
|
||||
break;
|
||||
case /* string Message = 3 [json_name = "Message"];*/ 3:
|
||||
case /* string Message */ 3:
|
||||
message.Message = reader.string();
|
||||
break;
|
||||
case /* string UserJWT = 4 [json_name = "UserJWT"];*/ 4:
|
||||
case /* string UserJWT */ 4:
|
||||
message.UserJWT = reader.string();
|
||||
break;
|
||||
default:
|
||||
@@ -1183,16 +1183,16 @@ class SendMessageToProjectRoomRequest$Type extends MessageType<SendMessageToProj
|
||||
return message;
|
||||
}
|
||||
internalBinaryWrite(message: SendMessageToProjectRoomRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
||||
/* string ProjectID = 1 [json_name = "ProjectID"]; */
|
||||
/* string ProjectID = 1; */
|
||||
if (message.ProjectID !== "")
|
||||
writer.tag(1, WireType.LengthDelimited).string(message.ProjectID);
|
||||
/* string RoomName = 2 [json_name = "RoomName"]; */
|
||||
/* string RoomName = 2; */
|
||||
if (message.RoomName !== "")
|
||||
writer.tag(2, WireType.LengthDelimited).string(message.RoomName);
|
||||
/* string Message = 3 [json_name = "Message"]; */
|
||||
/* string Message = 3; */
|
||||
if (message.Message !== "")
|
||||
writer.tag(3, WireType.LengthDelimited).string(message.Message);
|
||||
/* string UserJWT = 4 [json_name = "UserJWT"]; */
|
||||
/* string UserJWT = 4; */
|
||||
if (message.UserJWT !== "")
|
||||
writer.tag(4, WireType.LengthDelimited).string(message.UserJWT);
|
||||
let u = options.writeUnknownFields;
|
||||
|
||||
Reference in New Issue
Block a user