Files
npm-core-sdk/base_pb.ts
2025-03-17 09:56:44 +00:00

203 lines
6.4 KiB
TypeScript

// @generated by protoc-gen-es v1.10.0 with parameter "target=ts"
// @generated from file base.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";
/**
* @generated from message api.AdminAddress
*/
export class AdminAddress extends Message<AdminAddress> {
/**
* @generated from field: string City = 1;
*/
City = "";
/**
* Country Code in <a href='https://en.wikipedia.org/wiki/ISO_3166-1'>ISO_3166-1</a> format
*
* @generated from field: string CountryCode = 2;
*/
CountryCode = "";
/**
* @generated from field: api.AdminGeographicalCoordinates GeographicalCoordinates = 3;
*/
GeographicalCoordinates?: AdminGeographicalCoordinates;
/**
* @generated from field: string Name = 4;
*/
Name = "";
/**
* @generated from field: string POBoxNumber = 5;
*/
POBoxNumber = "";
/**
* @generated from field: string PostalCode = 6;
*/
PostalCode = "";
/**
* @generated from field: string ProvinceCode = 7;
*/
ProvinceCode = "";
/**
* @generated from field: string State = 8;
*/
State = "";
/**
* @generated from field: string StreetAddressOne = 9;
*/
StreetAddressOne = "";
/**
* @generated from field: string StreetAddressTwo = 10;
*/
StreetAddressTwo = "";
/**
* @generated from field: string StreetAddressThree = 11;
*/
StreetAddressThree = "";
/**
* @generated from field: string PlusCode = 12;
*/
PlusCode = "";
constructor(data?: PartialMessage<AdminAddress>) {
super();
proto3.util.initPartial(data, this);
}
static readonly runtime: typeof proto3 = proto3;
static readonly typeName = "api.AdminAddress";
static readonly fields: FieldList = proto3.util.newFieldList(() => [
{ no: 1, name: "City", kind: "scalar", T: 9 /* ScalarType.STRING */ },
{ no: 2, name: "CountryCode", kind: "scalar", T: 9 /* ScalarType.STRING */ },
{ no: 3, name: "GeographicalCoordinates", kind: "message", T: AdminGeographicalCoordinates },
{ no: 4, name: "Name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
{ no: 5, name: "POBoxNumber", kind: "scalar", T: 9 /* ScalarType.STRING */ },
{ no: 6, name: "PostalCode", kind: "scalar", T: 9 /* ScalarType.STRING */ },
{ no: 7, name: "ProvinceCode", kind: "scalar", T: 9 /* ScalarType.STRING */ },
{ no: 8, name: "State", kind: "scalar", T: 9 /* ScalarType.STRING */ },
{ no: 9, name: "StreetAddressOne", kind: "scalar", T: 9 /* ScalarType.STRING */ },
{ no: 10, name: "StreetAddressTwo", kind: "scalar", T: 9 /* ScalarType.STRING */ },
{ no: 11, name: "StreetAddressThree", kind: "scalar", T: 9 /* ScalarType.STRING */ },
{ no: 12, name: "PlusCode", kind: "scalar", T: 9 /* ScalarType.STRING */ },
]);
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): AdminAddress {
return new AdminAddress().fromBinary(bytes, options);
}
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): AdminAddress {
return new AdminAddress().fromJson(jsonValue, options);
}
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): AdminAddress {
return new AdminAddress().fromJsonString(jsonString, options);
}
static equals(a: AdminAddress | PlainMessage<AdminAddress> | undefined, b: AdminAddress | PlainMessage<AdminAddress> | undefined): boolean {
return proto3.util.equals(AdminAddress, a, b);
}
}
/**
*
* Geographical coordinates information
*
* @generated from message api.AdminGeographicalCoordinates
*/
export class AdminGeographicalCoordinates extends Message<AdminGeographicalCoordinates> {
/**
* @generated from field: string Latitude = 1;
*/
Latitude = "";
/**
* @generated from field: string Longitude = 2;
*/
Longitude = "";
constructor(data?: PartialMessage<AdminGeographicalCoordinates>) {
super();
proto3.util.initPartial(data, this);
}
static readonly runtime: typeof proto3 = proto3;
static readonly typeName = "api.AdminGeographicalCoordinates";
static readonly fields: FieldList = proto3.util.newFieldList(() => [
{ no: 1, name: "Latitude", kind: "scalar", T: 9 /* ScalarType.STRING */ },
{ no: 2, name: "Longitude", kind: "scalar", T: 9 /* ScalarType.STRING */ },
]);
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): AdminGeographicalCoordinates {
return new AdminGeographicalCoordinates().fromBinary(bytes, options);
}
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): AdminGeographicalCoordinates {
return new AdminGeographicalCoordinates().fromJson(jsonValue, options);
}
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): AdminGeographicalCoordinates {
return new AdminGeographicalCoordinates().fromJsonString(jsonString, options);
}
static equals(a: AdminGeographicalCoordinates | PlainMessage<AdminGeographicalCoordinates> | undefined, b: AdminGeographicalCoordinates | PlainMessage<AdminGeographicalCoordinates> | undefined): boolean {
return proto3.util.equals(AdminGeographicalCoordinates, a, b);
}
}
/**
* @generated from message api.Paging
*/
export class Paging extends Message<Paging> {
/**
* @generated from field: int32 Limit = 1;
*/
Limit = 0;
/**
* @generated from field: int32 Offset = 2;
*/
Offset = 0;
constructor(data?: PartialMessage<Paging>) {
super();
proto3.util.initPartial(data, this);
}
static readonly runtime: typeof proto3 = proto3;
static readonly typeName = "api.Paging";
static readonly fields: FieldList = proto3.util.newFieldList(() => [
{ no: 1, name: "Limit", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
{ no: 2, name: "Offset", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
]);
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Paging {
return new Paging().fromBinary(bytes, options);
}
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Paging {
return new Paging().fromJson(jsonValue, options);
}
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Paging {
return new Paging().fromJsonString(jsonString, options);
}
static equals(a: Paging | PlainMessage<Paging> | undefined, b: Paging | PlainMessage<Paging> | undefined): boolean {
return proto3.util.equals(Paging, a, b);
}
}