Latest generation

This commit is contained in:
ci core model
2025-04-28 12:35:42 +00:00
parent 595d5e3e36
commit 09d656c554
197 changed files with 25094 additions and 25094 deletions

View File

@@ -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 "user-groups.proto" (package "api", syntax proto3)
// tslint:disable
import { ServiceType } from "@protobuf-ts/runtime-rpc";
@@ -19,23 +19,23 @@ export interface UserGroup {
/**
* @generated from protobuf field: string ProjectID = 1 [json_name = "ProjectID"];
*/
projectID: string;
ProjectID: string;
/**
* @generated from protobuf field: string EntityRefID = 2 [json_name = "EntityRefID"];
*/
entityRefID: string;
EntityRefID: string;
/**
* @generated from protobuf field: api.EntityRefType EntityRefType = 3 [json_name = "EntityRefType"];
*/
entityRefType: EntityRefType;
EntityRefType: EntityRefType;
/**
* @generated from protobuf field: repeated string AllowedRoles = 4 [json_name = "AllowedRoles"];
*/
allowedRoles: string[];
AllowedRoles: string[];
/**
* @generated from protobuf field: bool AllowAllRoles = 5 [json_name = "AllowAllRoles"];
*/
allowAllRoles: boolean; // if true, AllowedRoles is ignored
AllowAllRoles: boolean; // if true, AllowedRoles is ignored
}
/**
* @generated from protobuf message api.PutUserGroupsRequest
@@ -44,23 +44,23 @@ export interface PutUserGroupsRequest {
/**
* @generated from protobuf field: api.RequestProjectHeader Header = 1 [json_name = "Header"];
*/
header?: RequestProjectHeader;
Header?: RequestProjectHeader;
/**
* @generated from protobuf field: string EntityRefID = 2 [json_name = "EntityRefID"];
*/
entityRefID: string;
EntityRefID: string;
/**
* @generated from protobuf field: api.EntityRefType EntityRefType = 3 [json_name = "EntityRefType"];
*/
entityRefType: EntityRefType;
EntityRefType: EntityRefType;
/**
* @generated from protobuf field: repeated string AllowedRoles = 4 [json_name = "AllowedRoles"];
*/
allowedRoles: string[];
AllowedRoles: string[];
/**
* @generated from protobuf field: bool AllowAllRoles = 5 [json_name = "AllowAllRoles"];
*/
allowAllRoles: boolean; // if true, AllowedRoles is ignored
AllowAllRoles: boolean; // if true, AllowedRoles is ignored
}
/**
* @generated from protobuf message api.PutUserGroupsResult
@@ -69,7 +69,7 @@ export interface PutUserGroupsResult {
/**
* @generated from protobuf field: api.UserGroup UserGroup = 1 [json_name = "UserGroup"];
*/
userGroup?: UserGroup;
UserGroup?: UserGroup;
}
/**
* @generated from protobuf message api.GetUserGroupsRequest
@@ -78,15 +78,15 @@ export interface GetUserGroupsRequest {
/**
* @generated from protobuf field: api.RequestProjectHeader Header = 1 [json_name = "Header"];
*/
header?: RequestProjectHeader;
Header?: RequestProjectHeader;
/**
* @generated from protobuf field: string EntityRefID = 2 [json_name = "EntityRefID"];
*/
entityRefID: string;
EntityRefID: string;
/**
* @generated from protobuf field: api.EntityRefType EntityRefType = 3 [json_name = "EntityRefType"];
*/
entityRefType: EntityRefType;
EntityRefType: EntityRefType;
}
/**
* @generated from protobuf message api.GetUserGroupsResult
@@ -95,7 +95,7 @@ export interface GetUserGroupsResult {
/**
* @generated from protobuf field: api.UserGroup UserGroup = 1 [json_name = "UserGroup"];
*/
userGroup?: UserGroup;
UserGroup?: UserGroup;
}
/**
* @generated from protobuf message api.DeleteUserGroupsRequest
@@ -104,15 +104,15 @@ export interface DeleteUserGroupsRequest {
/**
* @generated from protobuf field: api.RequestProjectHeader Header = 1 [json_name = "Header"];
*/
header?: RequestProjectHeader;
Header?: RequestProjectHeader;
/**
* @generated from protobuf field: string EntityRefID = 2 [json_name = "EntityRefID"];
*/
entityRefID: string;
EntityRefID: string;
/**
* @generated from protobuf field: api.EntityRefType EntityRefType = 3 [json_name = "EntityRefType"];
*/
entityRefType: EntityRefType;
EntityRefType: EntityRefType;
}
/**
* @generated from protobuf message api.DeleteUserGroupsResult
@@ -126,11 +126,11 @@ export interface ListUserGroupsRequest {
/**
* @generated from protobuf field: api.RequestProjectHeader Header = 1 [json_name = "Header"];
*/
header?: RequestProjectHeader;
Header?: RequestProjectHeader;
/**
* @generated from protobuf field: api.EntityRefType EntityRefType = 2 [json_name = "EntityRefType"];
*/
entityRefType: EntityRefType;
EntityRefType: EntityRefType;
}
/**
* @generated from protobuf message api.ListUserGroupsResult
@@ -139,7 +139,7 @@ export interface ListUserGroupsResult {
/**
* @generated from protobuf field: repeated api.UserGroup UserGroups = 1 [json_name = "UserGroups"];
*/
userGroups: UserGroup[];
UserGroups: UserGroup[];
}
/**
* @generated from protobuf enum api.EntityRefType
@@ -158,20 +158,20 @@ export enum EntityRefType {
class UserGroup$Type extends MessageType<UserGroup> {
constructor() {
super("api.UserGroup", [
{ no: 1, name: "ProjectID", kind: "scalar", jsonName: "ProjectID", T: 9 /*ScalarType.STRING*/ },
{ no: 2, name: "EntityRefID", kind: "scalar", jsonName: "EntityRefID", T: 9 /*ScalarType.STRING*/ },
{ no: 3, name: "EntityRefType", kind: "enum", jsonName: "EntityRefType", T: () => ["api.EntityRefType", EntityRefType], options: { "validate.rules": { enum: { definedOnly: true } } } },
{ no: 4, name: "AllowedRoles", kind: "scalar", jsonName: "AllowedRoles", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ },
{ no: 5, name: "AllowAllRoles", kind: "scalar", jsonName: "AllowAllRoles", T: 8 /*ScalarType.BOOL*/ }
{ no: 1, name: "ProjectID", kind: "scalar", localName: "ProjectID", jsonName: "ProjectID", T: 9 /*ScalarType.STRING*/ },
{ no: 2, name: "EntityRefID", kind: "scalar", localName: "EntityRefID", jsonName: "EntityRefID", T: 9 /*ScalarType.STRING*/ },
{ no: 3, name: "EntityRefType", kind: "enum", localName: "EntityRefType", jsonName: "EntityRefType", T: () => ["api.EntityRefType", EntityRefType], options: { "validate.rules": { enum: { definedOnly: true } } } },
{ no: 4, name: "AllowedRoles", kind: "scalar", localName: "AllowedRoles", jsonName: "AllowedRoles", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ },
{ no: 5, name: "AllowAllRoles", kind: "scalar", localName: "AllowAllRoles", jsonName: "AllowAllRoles", T: 8 /*ScalarType.BOOL*/ }
]);
}
create(value?: PartialMessage<UserGroup>): UserGroup {
const message = globalThis.Object.create((this.messagePrototype!));
message.projectID = "";
message.entityRefID = "";
message.entityRefType = 0;
message.allowedRoles = [];
message.allowAllRoles = false;
message.ProjectID = "";
message.EntityRefID = "";
message.EntityRefType = 0;
message.AllowedRoles = [];
message.AllowAllRoles = false;
if (value !== undefined)
reflectionMergePartial<UserGroup>(this, message, value);
return message;
@@ -182,19 +182,19 @@ class UserGroup$Type extends MessageType<UserGroup> {
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 EntityRefID = 2 [json_name = "EntityRefID"];*/ 2:
message.entityRefID = reader.string();
message.EntityRefID = reader.string();
break;
case /* api.EntityRefType EntityRefType = 3 [json_name = "EntityRefType"];*/ 3:
message.entityRefType = reader.int32();
message.EntityRefType = reader.int32();
break;
case /* repeated string AllowedRoles = 4 [json_name = "AllowedRoles"];*/ 4:
message.allowedRoles.push(reader.string());
message.AllowedRoles.push(reader.string());
break;
case /* bool AllowAllRoles = 5 [json_name = "AllowAllRoles"];*/ 5:
message.allowAllRoles = reader.bool();
message.AllowAllRoles = reader.bool();
break;
default:
let u = options.readUnknownField;
@@ -209,20 +209,20 @@ class UserGroup$Type extends MessageType<UserGroup> {
}
internalBinaryWrite(message: UserGroup, 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 EntityRefID = 2 [json_name = "EntityRefID"]; */
if (message.entityRefID !== "")
writer.tag(2, WireType.LengthDelimited).string(message.entityRefID);
if (message.EntityRefID !== "")
writer.tag(2, WireType.LengthDelimited).string(message.EntityRefID);
/* api.EntityRefType EntityRefType = 3 [json_name = "EntityRefType"]; */
if (message.entityRefType !== 0)
writer.tag(3, WireType.Varint).int32(message.entityRefType);
if (message.EntityRefType !== 0)
writer.tag(3, WireType.Varint).int32(message.EntityRefType);
/* repeated string AllowedRoles = 4 [json_name = "AllowedRoles"]; */
for (let i = 0; i < message.allowedRoles.length; i++)
writer.tag(4, WireType.LengthDelimited).string(message.allowedRoles[i]);
for (let i = 0; i < message.AllowedRoles.length; i++)
writer.tag(4, WireType.LengthDelimited).string(message.AllowedRoles[i]);
/* bool AllowAllRoles = 5 [json_name = "AllowAllRoles"]; */
if (message.allowAllRoles !== false)
writer.tag(5, WireType.Varint).bool(message.allowAllRoles);
if (message.AllowAllRoles !== false)
writer.tag(5, WireType.Varint).bool(message.AllowAllRoles);
let u = options.writeUnknownFields;
if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
@@ -237,19 +237,19 @@ export const UserGroup = new UserGroup$Type();
class PutUserGroupsRequest$Type extends MessageType<PutUserGroupsRequest> {
constructor() {
super("api.PutUserGroupsRequest", [
{ no: 1, name: "Header", kind: "message", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } },
{ no: 2, name: "EntityRefID", kind: "scalar", jsonName: "EntityRefID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } },
{ no: 3, name: "EntityRefType", kind: "enum", jsonName: "EntityRefType", T: () => ["api.EntityRefType", EntityRefType], options: { "validate.rules": { enum: { definedOnly: true } } } },
{ no: 4, name: "AllowedRoles", kind: "scalar", jsonName: "AllowedRoles", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ },
{ no: 5, name: "AllowAllRoles", kind: "scalar", jsonName: "AllowAllRoles", T: 8 /*ScalarType.BOOL*/ }
{ no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } },
{ no: 2, name: "EntityRefID", kind: "scalar", localName: "EntityRefID", jsonName: "EntityRefID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } },
{ no: 3, name: "EntityRefType", kind: "enum", localName: "EntityRefType", jsonName: "EntityRefType", T: () => ["api.EntityRefType", EntityRefType], options: { "validate.rules": { enum: { definedOnly: true } } } },
{ no: 4, name: "AllowedRoles", kind: "scalar", localName: "AllowedRoles", jsonName: "AllowedRoles", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ },
{ no: 5, name: "AllowAllRoles", kind: "scalar", localName: "AllowAllRoles", jsonName: "AllowAllRoles", T: 8 /*ScalarType.BOOL*/ }
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "EntityRefType", "EntityRefID"] } } });
}
create(value?: PartialMessage<PutUserGroupsRequest>): PutUserGroupsRequest {
const message = globalThis.Object.create((this.messagePrototype!));
message.entityRefID = "";
message.entityRefType = 0;
message.allowedRoles = [];
message.allowAllRoles = false;
message.EntityRefID = "";
message.EntityRefType = 0;
message.AllowedRoles = [];
message.AllowAllRoles = false;
if (value !== undefined)
reflectionMergePartial<PutUserGroupsRequest>(this, message, value);
return message;
@@ -260,19 +260,19 @@ class PutUserGroupsRequest$Type extends MessageType<PutUserGroupsRequest> {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* api.RequestProjectHeader Header = 1 [json_name = "Header"];*/ 1:
message.header = RequestProjectHeader.internalBinaryRead(reader, reader.uint32(), options, message.header);
message.Header = RequestProjectHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header);
break;
case /* string EntityRefID = 2 [json_name = "EntityRefID"];*/ 2:
message.entityRefID = reader.string();
message.EntityRefID = reader.string();
break;
case /* api.EntityRefType EntityRefType = 3 [json_name = "EntityRefType"];*/ 3:
message.entityRefType = reader.int32();
message.EntityRefType = reader.int32();
break;
case /* repeated string AllowedRoles = 4 [json_name = "AllowedRoles"];*/ 4:
message.allowedRoles.push(reader.string());
message.AllowedRoles.push(reader.string());
break;
case /* bool AllowAllRoles = 5 [json_name = "AllowAllRoles"];*/ 5:
message.allowAllRoles = reader.bool();
message.AllowAllRoles = reader.bool();
break;
default:
let u = options.readUnknownField;
@@ -287,20 +287,20 @@ class PutUserGroupsRequest$Type extends MessageType<PutUserGroupsRequest> {
}
internalBinaryWrite(message: PutUserGroupsRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* api.RequestProjectHeader Header = 1 [json_name = "Header"]; */
if (message.header)
RequestProjectHeader.internalBinaryWrite(message.header, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
if (message.Header)
RequestProjectHeader.internalBinaryWrite(message.Header, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
/* string EntityRefID = 2 [json_name = "EntityRefID"]; */
if (message.entityRefID !== "")
writer.tag(2, WireType.LengthDelimited).string(message.entityRefID);
if (message.EntityRefID !== "")
writer.tag(2, WireType.LengthDelimited).string(message.EntityRefID);
/* api.EntityRefType EntityRefType = 3 [json_name = "EntityRefType"]; */
if (message.entityRefType !== 0)
writer.tag(3, WireType.Varint).int32(message.entityRefType);
if (message.EntityRefType !== 0)
writer.tag(3, WireType.Varint).int32(message.EntityRefType);
/* repeated string AllowedRoles = 4 [json_name = "AllowedRoles"]; */
for (let i = 0; i < message.allowedRoles.length; i++)
writer.tag(4, WireType.LengthDelimited).string(message.allowedRoles[i]);
for (let i = 0; i < message.AllowedRoles.length; i++)
writer.tag(4, WireType.LengthDelimited).string(message.AllowedRoles[i]);
/* bool AllowAllRoles = 5 [json_name = "AllowAllRoles"]; */
if (message.allowAllRoles !== false)
writer.tag(5, WireType.Varint).bool(message.allowAllRoles);
if (message.AllowAllRoles !== false)
writer.tag(5, WireType.Varint).bool(message.AllowAllRoles);
let u = options.writeUnknownFields;
if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
@@ -315,7 +315,7 @@ export const PutUserGroupsRequest = new PutUserGroupsRequest$Type();
class PutUserGroupsResult$Type extends MessageType<PutUserGroupsResult> {
constructor() {
super("api.PutUserGroupsResult", [
{ no: 1, name: "UserGroup", kind: "message", jsonName: "UserGroup", T: () => UserGroup }
{ no: 1, name: "UserGroup", kind: "message", localName: "UserGroup", jsonName: "UserGroup", T: () => UserGroup }
]);
}
create(value?: PartialMessage<PutUserGroupsResult>): PutUserGroupsResult {
@@ -330,7 +330,7 @@ class PutUserGroupsResult$Type extends MessageType<PutUserGroupsResult> {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* api.UserGroup UserGroup = 1 [json_name = "UserGroup"];*/ 1:
message.userGroup = UserGroup.internalBinaryRead(reader, reader.uint32(), options, message.userGroup);
message.UserGroup = UserGroup.internalBinaryRead(reader, reader.uint32(), options, message.UserGroup);
break;
default:
let u = options.readUnknownField;
@@ -345,8 +345,8 @@ class PutUserGroupsResult$Type extends MessageType<PutUserGroupsResult> {
}
internalBinaryWrite(message: PutUserGroupsResult, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* api.UserGroup UserGroup = 1 [json_name = "UserGroup"]; */
if (message.userGroup)
UserGroup.internalBinaryWrite(message.userGroup, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
if (message.UserGroup)
UserGroup.internalBinaryWrite(message.UserGroup, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
let u = options.writeUnknownFields;
if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
@@ -361,15 +361,15 @@ export const PutUserGroupsResult = new PutUserGroupsResult$Type();
class GetUserGroupsRequest$Type extends MessageType<GetUserGroupsRequest> {
constructor() {
super("api.GetUserGroupsRequest", [
{ no: 1, name: "Header", kind: "message", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } },
{ no: 2, name: "EntityRefID", kind: "scalar", jsonName: "EntityRefID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } },
{ no: 3, name: "EntityRefType", kind: "enum", jsonName: "EntityRefType", T: () => ["api.EntityRefType", EntityRefType], options: { "validate.rules": { enum: { definedOnly: true } } } }
{ no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } },
{ no: 2, name: "EntityRefID", kind: "scalar", localName: "EntityRefID", jsonName: "EntityRefID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } },
{ no: 3, name: "EntityRefType", kind: "enum", localName: "EntityRefType", jsonName: "EntityRefType", T: () => ["api.EntityRefType", EntityRefType], options: { "validate.rules": { enum: { definedOnly: true } } } }
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "EntityRefType", "EntityRefID"] } } });
}
create(value?: PartialMessage<GetUserGroupsRequest>): GetUserGroupsRequest {
const message = globalThis.Object.create((this.messagePrototype!));
message.entityRefID = "";
message.entityRefType = 0;
message.EntityRefID = "";
message.EntityRefType = 0;
if (value !== undefined)
reflectionMergePartial<GetUserGroupsRequest>(this, message, value);
return message;
@@ -380,13 +380,13 @@ class GetUserGroupsRequest$Type extends MessageType<GetUserGroupsRequest> {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* api.RequestProjectHeader Header = 1 [json_name = "Header"];*/ 1:
message.header = RequestProjectHeader.internalBinaryRead(reader, reader.uint32(), options, message.header);
message.Header = RequestProjectHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header);
break;
case /* string EntityRefID = 2 [json_name = "EntityRefID"];*/ 2:
message.entityRefID = reader.string();
message.EntityRefID = reader.string();
break;
case /* api.EntityRefType EntityRefType = 3 [json_name = "EntityRefType"];*/ 3:
message.entityRefType = reader.int32();
message.EntityRefType = reader.int32();
break;
default:
let u = options.readUnknownField;
@@ -401,14 +401,14 @@ class GetUserGroupsRequest$Type extends MessageType<GetUserGroupsRequest> {
}
internalBinaryWrite(message: GetUserGroupsRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* api.RequestProjectHeader Header = 1 [json_name = "Header"]; */
if (message.header)
RequestProjectHeader.internalBinaryWrite(message.header, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
if (message.Header)
RequestProjectHeader.internalBinaryWrite(message.Header, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
/* string EntityRefID = 2 [json_name = "EntityRefID"]; */
if (message.entityRefID !== "")
writer.tag(2, WireType.LengthDelimited).string(message.entityRefID);
if (message.EntityRefID !== "")
writer.tag(2, WireType.LengthDelimited).string(message.EntityRefID);
/* api.EntityRefType EntityRefType = 3 [json_name = "EntityRefType"]; */
if (message.entityRefType !== 0)
writer.tag(3, WireType.Varint).int32(message.entityRefType);
if (message.EntityRefType !== 0)
writer.tag(3, WireType.Varint).int32(message.EntityRefType);
let u = options.writeUnknownFields;
if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
@@ -423,7 +423,7 @@ export const GetUserGroupsRequest = new GetUserGroupsRequest$Type();
class GetUserGroupsResult$Type extends MessageType<GetUserGroupsResult> {
constructor() {
super("api.GetUserGroupsResult", [
{ no: 1, name: "UserGroup", kind: "message", jsonName: "UserGroup", T: () => UserGroup }
{ no: 1, name: "UserGroup", kind: "message", localName: "UserGroup", jsonName: "UserGroup", T: () => UserGroup }
]);
}
create(value?: PartialMessage<GetUserGroupsResult>): GetUserGroupsResult {
@@ -438,7 +438,7 @@ class GetUserGroupsResult$Type extends MessageType<GetUserGroupsResult> {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* api.UserGroup UserGroup = 1 [json_name = "UserGroup"];*/ 1:
message.userGroup = UserGroup.internalBinaryRead(reader, reader.uint32(), options, message.userGroup);
message.UserGroup = UserGroup.internalBinaryRead(reader, reader.uint32(), options, message.UserGroup);
break;
default:
let u = options.readUnknownField;
@@ -453,8 +453,8 @@ class GetUserGroupsResult$Type extends MessageType<GetUserGroupsResult> {
}
internalBinaryWrite(message: GetUserGroupsResult, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* api.UserGroup UserGroup = 1 [json_name = "UserGroup"]; */
if (message.userGroup)
UserGroup.internalBinaryWrite(message.userGroup, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
if (message.UserGroup)
UserGroup.internalBinaryWrite(message.UserGroup, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
let u = options.writeUnknownFields;
if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
@@ -469,15 +469,15 @@ export const GetUserGroupsResult = new GetUserGroupsResult$Type();
class DeleteUserGroupsRequest$Type extends MessageType<DeleteUserGroupsRequest> {
constructor() {
super("api.DeleteUserGroupsRequest", [
{ no: 1, name: "Header", kind: "message", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } },
{ no: 2, name: "EntityRefID", kind: "scalar", jsonName: "EntityRefID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } },
{ no: 3, name: "EntityRefType", kind: "enum", jsonName: "EntityRefType", T: () => ["api.EntityRefType", EntityRefType], options: { "validate.rules": { enum: { definedOnly: true } } } }
{ no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } },
{ no: 2, name: "EntityRefID", kind: "scalar", localName: "EntityRefID", jsonName: "EntityRefID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } },
{ no: 3, name: "EntityRefType", kind: "enum", localName: "EntityRefType", jsonName: "EntityRefType", T: () => ["api.EntityRefType", EntityRefType], options: { "validate.rules": { enum: { definedOnly: true } } } }
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "EntityRefType", "EntityRefID"] } } });
}
create(value?: PartialMessage<DeleteUserGroupsRequest>): DeleteUserGroupsRequest {
const message = globalThis.Object.create((this.messagePrototype!));
message.entityRefID = "";
message.entityRefType = 0;
message.EntityRefID = "";
message.EntityRefType = 0;
if (value !== undefined)
reflectionMergePartial<DeleteUserGroupsRequest>(this, message, value);
return message;
@@ -488,13 +488,13 @@ class DeleteUserGroupsRequest$Type extends MessageType<DeleteUserGroupsRequest>
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* api.RequestProjectHeader Header = 1 [json_name = "Header"];*/ 1:
message.header = RequestProjectHeader.internalBinaryRead(reader, reader.uint32(), options, message.header);
message.Header = RequestProjectHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header);
break;
case /* string EntityRefID = 2 [json_name = "EntityRefID"];*/ 2:
message.entityRefID = reader.string();
message.EntityRefID = reader.string();
break;
case /* api.EntityRefType EntityRefType = 3 [json_name = "EntityRefType"];*/ 3:
message.entityRefType = reader.int32();
message.EntityRefType = reader.int32();
break;
default:
let u = options.readUnknownField;
@@ -509,14 +509,14 @@ class DeleteUserGroupsRequest$Type extends MessageType<DeleteUserGroupsRequest>
}
internalBinaryWrite(message: DeleteUserGroupsRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* api.RequestProjectHeader Header = 1 [json_name = "Header"]; */
if (message.header)
RequestProjectHeader.internalBinaryWrite(message.header, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
if (message.Header)
RequestProjectHeader.internalBinaryWrite(message.Header, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
/* string EntityRefID = 2 [json_name = "EntityRefID"]; */
if (message.entityRefID !== "")
writer.tag(2, WireType.LengthDelimited).string(message.entityRefID);
if (message.EntityRefID !== "")
writer.tag(2, WireType.LengthDelimited).string(message.EntityRefID);
/* api.EntityRefType EntityRefType = 3 [json_name = "EntityRefType"]; */
if (message.entityRefType !== 0)
writer.tag(3, WireType.Varint).int32(message.entityRefType);
if (message.EntityRefType !== 0)
writer.tag(3, WireType.Varint).int32(message.EntityRefType);
let u = options.writeUnknownFields;
if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
@@ -569,13 +569,13 @@ export const DeleteUserGroupsResult = new DeleteUserGroupsResult$Type();
class ListUserGroupsRequest$Type extends MessageType<ListUserGroupsRequest> {
constructor() {
super("api.ListUserGroupsRequest", [
{ no: 1, name: "Header", kind: "message", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } },
{ no: 2, name: "EntityRefType", kind: "enum", jsonName: "EntityRefType", T: () => ["api.EntityRefType", EntityRefType] }
{ no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } },
{ no: 2, name: "EntityRefType", kind: "enum", localName: "EntityRefType", jsonName: "EntityRefType", T: () => ["api.EntityRefType", EntityRefType] }
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header"] } } });
}
create(value?: PartialMessage<ListUserGroupsRequest>): ListUserGroupsRequest {
const message = globalThis.Object.create((this.messagePrototype!));
message.entityRefType = 0;
message.EntityRefType = 0;
if (value !== undefined)
reflectionMergePartial<ListUserGroupsRequest>(this, message, value);
return message;
@@ -586,10 +586,10 @@ class ListUserGroupsRequest$Type extends MessageType<ListUserGroupsRequest> {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* api.RequestProjectHeader Header = 1 [json_name = "Header"];*/ 1:
message.header = RequestProjectHeader.internalBinaryRead(reader, reader.uint32(), options, message.header);
message.Header = RequestProjectHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header);
break;
case /* api.EntityRefType EntityRefType = 2 [json_name = "EntityRefType"];*/ 2:
message.entityRefType = reader.int32();
message.EntityRefType = reader.int32();
break;
default:
let u = options.readUnknownField;
@@ -604,11 +604,11 @@ class ListUserGroupsRequest$Type extends MessageType<ListUserGroupsRequest> {
}
internalBinaryWrite(message: ListUserGroupsRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* api.RequestProjectHeader Header = 1 [json_name = "Header"]; */
if (message.header)
RequestProjectHeader.internalBinaryWrite(message.header, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
if (message.Header)
RequestProjectHeader.internalBinaryWrite(message.Header, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
/* api.EntityRefType EntityRefType = 2 [json_name = "EntityRefType"]; */
if (message.entityRefType !== 0)
writer.tag(2, WireType.Varint).int32(message.entityRefType);
if (message.EntityRefType !== 0)
writer.tag(2, WireType.Varint).int32(message.EntityRefType);
let u = options.writeUnknownFields;
if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
@@ -623,12 +623,12 @@ export const ListUserGroupsRequest = new ListUserGroupsRequest$Type();
class ListUserGroupsResult$Type extends MessageType<ListUserGroupsResult> {
constructor() {
super("api.ListUserGroupsResult", [
{ no: 1, name: "UserGroups", kind: "message", jsonName: "UserGroups", repeat: 1 /*RepeatType.PACKED*/, T: () => UserGroup }
{ no: 1, name: "UserGroups", kind: "message", localName: "UserGroups", jsonName: "UserGroups", repeat: 1 /*RepeatType.PACKED*/, T: () => UserGroup }
]);
}
create(value?: PartialMessage<ListUserGroupsResult>): ListUserGroupsResult {
const message = globalThis.Object.create((this.messagePrototype!));
message.userGroups = [];
message.UserGroups = [];
if (value !== undefined)
reflectionMergePartial<ListUserGroupsResult>(this, message, value);
return message;
@@ -639,7 +639,7 @@ class ListUserGroupsResult$Type extends MessageType<ListUserGroupsResult> {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* repeated api.UserGroup UserGroups = 1 [json_name = "UserGroups"];*/ 1:
message.userGroups.push(UserGroup.internalBinaryRead(reader, reader.uint32(), options));
message.UserGroups.push(UserGroup.internalBinaryRead(reader, reader.uint32(), options));
break;
default:
let u = options.readUnknownField;
@@ -654,8 +654,8 @@ class ListUserGroupsResult$Type extends MessageType<ListUserGroupsResult> {
}
internalBinaryWrite(message: ListUserGroupsResult, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* repeated api.UserGroup UserGroups = 1 [json_name = "UserGroups"]; */
for (let i = 0; i < message.userGroups.length; i++)
UserGroup.internalBinaryWrite(message.userGroups[i], writer.tag(1, WireType.LengthDelimited).fork(), options).join();
for (let i = 0; i < message.UserGroups.length; i++)
UserGroup.internalBinaryWrite(message.UserGroups[i], writer.tag(1, WireType.LengthDelimited).fork(), options).join();
let u = options.writeUnknownFields;
if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);