You've already forked npm-viz-sdk
90 lines
3.3 KiB
TypeScript
90 lines
3.3 KiB
TypeScript
// @generated by protoc-gen-es v1.10.0 with parameter "target=ts"
|
|
// @generated from file counter.proto (package vizapi, syntax proto3)
|
|
/* eslint-disable */
|
|
// @ts-nocheck
|
|
|
|
import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf";
|
|
import { Message, proto3, protoInt64 } from "@bufbuild/protobuf";
|
|
import { RequestProjectHeader } from "./core/shared_pb.js";
|
|
|
|
/**
|
|
* @generated from message vizapi.NextProjectCounterRequest
|
|
*/
|
|
export class NextProjectCounterRequest extends Message<NextProjectCounterRequest> {
|
|
/**
|
|
* @generated from field: api.RequestProjectHeader Header = 1;
|
|
*/
|
|
Header?: RequestProjectHeader;
|
|
|
|
/**
|
|
* @generated from field: string Key = 2;
|
|
*/
|
|
Key = "";
|
|
|
|
constructor(data?: PartialMessage<NextProjectCounterRequest>) {
|
|
super();
|
|
proto3.util.initPartial(data, this);
|
|
}
|
|
|
|
static readonly runtime: typeof proto3 = proto3;
|
|
static readonly typeName = "vizapi.NextProjectCounterRequest";
|
|
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
{ no: 1, name: "Header", kind: "message", T: RequestProjectHeader },
|
|
{ no: 2, name: "Key", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
]);
|
|
|
|
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): NextProjectCounterRequest {
|
|
return new NextProjectCounterRequest().fromBinary(bytes, options);
|
|
}
|
|
|
|
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): NextProjectCounterRequest {
|
|
return new NextProjectCounterRequest().fromJson(jsonValue, options);
|
|
}
|
|
|
|
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): NextProjectCounterRequest {
|
|
return new NextProjectCounterRequest().fromJsonString(jsonString, options);
|
|
}
|
|
|
|
static equals(a: NextProjectCounterRequest | PlainMessage<NextProjectCounterRequest> | undefined, b: NextProjectCounterRequest | PlainMessage<NextProjectCounterRequest> | undefined): boolean {
|
|
return proto3.util.equals(NextProjectCounterRequest, a, b);
|
|
}
|
|
}
|
|
|
|
/**
|
|
* @generated from message vizapi.NextCounterResult
|
|
*/
|
|
export class NextCounterResult extends Message<NextCounterResult> {
|
|
/**
|
|
* @generated from field: int64 Value = 1;
|
|
*/
|
|
Value = protoInt64.zero;
|
|
|
|
constructor(data?: PartialMessage<NextCounterResult>) {
|
|
super();
|
|
proto3.util.initPartial(data, this);
|
|
}
|
|
|
|
static readonly runtime: typeof proto3 = proto3;
|
|
static readonly typeName = "vizapi.NextCounterResult";
|
|
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
{ no: 1, name: "Value", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
|
|
]);
|
|
|
|
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): NextCounterResult {
|
|
return new NextCounterResult().fromBinary(bytes, options);
|
|
}
|
|
|
|
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): NextCounterResult {
|
|
return new NextCounterResult().fromJson(jsonValue, options);
|
|
}
|
|
|
|
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): NextCounterResult {
|
|
return new NextCounterResult().fromJsonString(jsonString, options);
|
|
}
|
|
|
|
static equals(a: NextCounterResult | PlainMessage<NextCounterResult> | undefined, b: NextCounterResult | PlainMessage<NextCounterResult> | undefined): boolean {
|
|
return proto3.util.equals(NextCounterResult, a, b);
|
|
}
|
|
}
|
|
|