You've already forked npm-core-sdk
94 lines
2.9 KiB
TypeScript
94 lines
2.9 KiB
TypeScript
// @generated by protoc-gen-es v1.10.0 with parameter "target=ts"
|
|
// @generated from file admin-partner.proto (package api, syntax proto3)
|
|
/* eslint-disable */
|
|
// @ts-nocheck
|
|
|
|
import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf";
|
|
import { Message, proto3 } from "@bufbuild/protobuf";
|
|
import { Address } from "./repositoryShared_pb.js";
|
|
import { AdminActor } from "./admin-actor_pb.js";
|
|
|
|
/**
|
|
* @generated from message api.AdminPartner
|
|
*/
|
|
export class AdminPartner extends Message<AdminPartner> {
|
|
/**
|
|
* @generated from field: string ID = 1;
|
|
*/
|
|
ID = "";
|
|
|
|
/**
|
|
* @generated from field: string Name = 2;
|
|
*/
|
|
Name = "";
|
|
|
|
/**
|
|
* @generated from field: string LegalStructure = 3;
|
|
*/
|
|
LegalStructure = "";
|
|
|
|
/**
|
|
* @generated from field: api.Address Address = 4;
|
|
*/
|
|
Address?: Address;
|
|
|
|
/**
|
|
* @generated from field: string OrganisationID = 5;
|
|
*/
|
|
OrganisationID = "";
|
|
|
|
/**
|
|
* In ActorIDs are given / Out not present
|
|
*
|
|
* @generated from field: repeated string ActorIDs = 6;
|
|
*/
|
|
ActorIDs: string[] = [];
|
|
|
|
/**
|
|
* In not accepted / Out Actors are returned
|
|
*
|
|
* @generated from field: repeated api.AdminActor Actors = 7;
|
|
*/
|
|
Actors: AdminActor[] = [];
|
|
|
|
/**
|
|
* @generated from field: string PhotoURI = 8;
|
|
*/
|
|
PhotoURI = "";
|
|
|
|
constructor(data?: PartialMessage<AdminPartner>) {
|
|
super();
|
|
proto3.util.initPartial(data, this);
|
|
}
|
|
|
|
static readonly runtime: typeof proto3 = proto3;
|
|
static readonly typeName = "api.AdminPartner";
|
|
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
{ no: 1, name: "ID", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
{ no: 2, name: "Name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
{ no: 3, name: "LegalStructure", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
{ no: 4, name: "Address", kind: "message", T: Address },
|
|
{ no: 5, name: "OrganisationID", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
{ no: 6, name: "ActorIDs", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
|
|
{ no: 7, name: "Actors", kind: "message", T: AdminActor, repeated: true },
|
|
{ no: 8, name: "PhotoURI", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
]);
|
|
|
|
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): AdminPartner {
|
|
return new AdminPartner().fromBinary(bytes, options);
|
|
}
|
|
|
|
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): AdminPartner {
|
|
return new AdminPartner().fromJson(jsonValue, options);
|
|
}
|
|
|
|
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): AdminPartner {
|
|
return new AdminPartner().fromJsonString(jsonString, options);
|
|
}
|
|
|
|
static equals(a: AdminPartner | PlainMessage<AdminPartner> | undefined, b: AdminPartner | PlainMessage<AdminPartner> | undefined): boolean {
|
|
return proto3.util.equals(AdminPartner, a, b);
|
|
}
|
|
}
|
|
|