You've already forked npm-core-sdk
Latest generation
This commit is contained in:
@@ -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 "collabClickhouseStatement.proto" (package "api", syntax proto3)
|
||||
// tslint:disable
|
||||
import type { BinaryWriteOptions } from "@protobuf-ts/runtime";
|
||||
@@ -21,11 +21,11 @@ export interface CollabClickHouseInput {
|
||||
/**
|
||||
* @generated from protobuf field: api.CollabClickhouseElements ClickhouseElements = 1 [json_name = "ClickhouseElements"];
|
||||
*/
|
||||
clickhouseElements?: CollabClickhouseElements;
|
||||
ClickhouseElements?: CollabClickhouseElements;
|
||||
/**
|
||||
* @generated from protobuf field: repeated api.MetadatasToApply MetadatasToApply = 2 [json_name = "MetadatasToApply"];
|
||||
*/
|
||||
metadatasToApply: MetadatasToApply[];
|
||||
MetadatasToApply: MetadatasToApply[];
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf message api.CollabClickhouseElement
|
||||
@@ -34,12 +34,12 @@ export interface CollabClickhouseElement {
|
||||
/**
|
||||
* @generated from protobuf oneof: Content
|
||||
*/
|
||||
content: {
|
||||
oneofKind: "claim";
|
||||
Content: {
|
||||
oneofKind: "Claim";
|
||||
/**
|
||||
* @generated from protobuf field: api.Claim Claim = 1 [json_name = "Claim"];
|
||||
*/
|
||||
claim: Claim;
|
||||
Claim: Claim;
|
||||
} | {
|
||||
oneofKind: undefined;
|
||||
};
|
||||
@@ -51,7 +51,7 @@ export interface CollabClickhouseElements {
|
||||
/**
|
||||
* @generated from protobuf field: repeated api.CollabClickhouseElement ClickhouseElements = 1 [json_name = "ClickhouseElements"];
|
||||
*/
|
||||
clickhouseElements: CollabClickhouseElement[];
|
||||
ClickhouseElements: CollabClickhouseElement[];
|
||||
}
|
||||
/**
|
||||
* CollabCheckpointData Proto message for clickhouse streaming process
|
||||
@@ -62,27 +62,27 @@ export interface CollabCheckpointData {
|
||||
/**
|
||||
* @generated from protobuf field: int64 IdCheckpoint = 1 [json_name = "IdCheckpoint"];
|
||||
*/
|
||||
idCheckpoint: bigint;
|
||||
IdCheckpoint: bigint;
|
||||
/**
|
||||
* @generated from protobuf field: string Project = 2 [json_name = "Project"];
|
||||
*/
|
||||
project: string;
|
||||
Project: string;
|
||||
/**
|
||||
* @generated from protobuf field: repeated api.CollabClickHouseInput ClickHouseInput = 3 [json_name = "ClickHouseInput"];
|
||||
*/
|
||||
clickHouseInput: CollabClickHouseInput[];
|
||||
ClickHouseInput: CollabClickHouseInput[];
|
||||
}
|
||||
// @generated message type with reflection information, may provide speed optimized methods
|
||||
class CollabClickHouseInput$Type extends MessageType<CollabClickHouseInput> {
|
||||
constructor() {
|
||||
super("api.CollabClickHouseInput", [
|
||||
{ no: 1, name: "ClickhouseElements", kind: "message", jsonName: "ClickhouseElements", T: () => CollabClickhouseElements },
|
||||
{ no: 2, name: "MetadatasToApply", kind: "message", jsonName: "MetadatasToApply", repeat: 1 /*RepeatType.PACKED*/, T: () => MetadatasToApply }
|
||||
{ no: 1, name: "ClickhouseElements", kind: "message", localName: "ClickhouseElements", jsonName: "ClickhouseElements", T: () => CollabClickhouseElements },
|
||||
{ no: 2, name: "MetadatasToApply", kind: "message", localName: "MetadatasToApply", jsonName: "MetadatasToApply", repeat: 1 /*RepeatType.PACKED*/, T: () => MetadatasToApply }
|
||||
]);
|
||||
}
|
||||
create(value?: PartialMessage<CollabClickHouseInput>): CollabClickHouseInput {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
message.metadatasToApply = [];
|
||||
message.MetadatasToApply = [];
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<CollabClickHouseInput>(this, message, value);
|
||||
return message;
|
||||
@@ -93,10 +93,10 @@ class CollabClickHouseInput$Type extends MessageType<CollabClickHouseInput> {
|
||||
let [fieldNo, wireType] = reader.tag();
|
||||
switch (fieldNo) {
|
||||
case /* api.CollabClickhouseElements ClickhouseElements = 1 [json_name = "ClickhouseElements"];*/ 1:
|
||||
message.clickhouseElements = CollabClickhouseElements.internalBinaryRead(reader, reader.uint32(), options, message.clickhouseElements);
|
||||
message.ClickhouseElements = CollabClickhouseElements.internalBinaryRead(reader, reader.uint32(), options, message.ClickhouseElements);
|
||||
break;
|
||||
case /* repeated api.MetadatasToApply MetadatasToApply = 2 [json_name = "MetadatasToApply"];*/ 2:
|
||||
message.metadatasToApply.push(MetadatasToApply.internalBinaryRead(reader, reader.uint32(), options));
|
||||
message.MetadatasToApply.push(MetadatasToApply.internalBinaryRead(reader, reader.uint32(), options));
|
||||
break;
|
||||
default:
|
||||
let u = options.readUnknownField;
|
||||
@@ -111,11 +111,11 @@ class CollabClickHouseInput$Type extends MessageType<CollabClickHouseInput> {
|
||||
}
|
||||
internalBinaryWrite(message: CollabClickHouseInput, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
||||
/* api.CollabClickhouseElements ClickhouseElements = 1 [json_name = "ClickhouseElements"]; */
|
||||
if (message.clickhouseElements)
|
||||
CollabClickhouseElements.internalBinaryWrite(message.clickhouseElements, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
||||
if (message.ClickhouseElements)
|
||||
CollabClickhouseElements.internalBinaryWrite(message.ClickhouseElements, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
||||
/* repeated api.MetadatasToApply MetadatasToApply = 2 [json_name = "MetadatasToApply"]; */
|
||||
for (let i = 0; i < message.metadatasToApply.length; i++)
|
||||
MetadatasToApply.internalBinaryWrite(message.metadatasToApply[i], writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
||||
for (let i = 0; i < message.MetadatasToApply.length; i++)
|
||||
MetadatasToApply.internalBinaryWrite(message.MetadatasToApply[i], writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
||||
let u = options.writeUnknownFields;
|
||||
if (u !== false)
|
||||
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
||||
@@ -130,12 +130,12 @@ export const CollabClickHouseInput = new CollabClickHouseInput$Type();
|
||||
class CollabClickhouseElement$Type extends MessageType<CollabClickhouseElement> {
|
||||
constructor() {
|
||||
super("api.CollabClickhouseElement", [
|
||||
{ no: 1, name: "Claim", kind: "message", jsonName: "Claim", oneof: "content", T: () => Claim }
|
||||
{ no: 1, name: "Claim", kind: "message", localName: "Claim", jsonName: "Claim", oneof: "Content", T: () => Claim }
|
||||
]);
|
||||
}
|
||||
create(value?: PartialMessage<CollabClickhouseElement>): CollabClickhouseElement {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
message.content = { oneofKind: undefined };
|
||||
message.Content = { oneofKind: undefined };
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<CollabClickhouseElement>(this, message, value);
|
||||
return message;
|
||||
@@ -146,9 +146,9 @@ class CollabClickhouseElement$Type extends MessageType<CollabClickhouseElement>
|
||||
let [fieldNo, wireType] = reader.tag();
|
||||
switch (fieldNo) {
|
||||
case /* api.Claim Claim = 1 [json_name = "Claim"];*/ 1:
|
||||
message.content = {
|
||||
oneofKind: "claim",
|
||||
claim: Claim.internalBinaryRead(reader, reader.uint32(), options, (message.content as any).claim)
|
||||
message.Content = {
|
||||
oneofKind: "Claim",
|
||||
Claim: Claim.internalBinaryRead(reader, reader.uint32(), options, (message.Content as any).Claim)
|
||||
};
|
||||
break;
|
||||
default:
|
||||
@@ -164,8 +164,8 @@ class CollabClickhouseElement$Type extends MessageType<CollabClickhouseElement>
|
||||
}
|
||||
internalBinaryWrite(message: CollabClickhouseElement, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
||||
/* api.Claim Claim = 1 [json_name = "Claim"]; */
|
||||
if (message.content.oneofKind === "claim")
|
||||
Claim.internalBinaryWrite(message.content.claim, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
||||
if (message.Content.oneofKind === "Claim")
|
||||
Claim.internalBinaryWrite(message.Content.Claim, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
||||
let u = options.writeUnknownFields;
|
||||
if (u !== false)
|
||||
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
||||
@@ -180,12 +180,12 @@ export const CollabClickhouseElement = new CollabClickhouseElement$Type();
|
||||
class CollabClickhouseElements$Type extends MessageType<CollabClickhouseElements> {
|
||||
constructor() {
|
||||
super("api.CollabClickhouseElements", [
|
||||
{ no: 1, name: "ClickhouseElements", kind: "message", jsonName: "ClickhouseElements", repeat: 1 /*RepeatType.PACKED*/, T: () => CollabClickhouseElement }
|
||||
{ no: 1, name: "ClickhouseElements", kind: "message", localName: "ClickhouseElements", jsonName: "ClickhouseElements", repeat: 1 /*RepeatType.PACKED*/, T: () => CollabClickhouseElement }
|
||||
]);
|
||||
}
|
||||
create(value?: PartialMessage<CollabClickhouseElements>): CollabClickhouseElements {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
message.clickhouseElements = [];
|
||||
message.ClickhouseElements = [];
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<CollabClickhouseElements>(this, message, value);
|
||||
return message;
|
||||
@@ -196,7 +196,7 @@ class CollabClickhouseElements$Type extends MessageType<CollabClickhouseElements
|
||||
let [fieldNo, wireType] = reader.tag();
|
||||
switch (fieldNo) {
|
||||
case /* repeated api.CollabClickhouseElement ClickhouseElements = 1 [json_name = "ClickhouseElements"];*/ 1:
|
||||
message.clickhouseElements.push(CollabClickhouseElement.internalBinaryRead(reader, reader.uint32(), options));
|
||||
message.ClickhouseElements.push(CollabClickhouseElement.internalBinaryRead(reader, reader.uint32(), options));
|
||||
break;
|
||||
default:
|
||||
let u = options.readUnknownField;
|
||||
@@ -211,8 +211,8 @@ class CollabClickhouseElements$Type extends MessageType<CollabClickhouseElements
|
||||
}
|
||||
internalBinaryWrite(message: CollabClickhouseElements, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
||||
/* repeated api.CollabClickhouseElement ClickhouseElements = 1 [json_name = "ClickhouseElements"]; */
|
||||
for (let i = 0; i < message.clickhouseElements.length; i++)
|
||||
CollabClickhouseElement.internalBinaryWrite(message.clickhouseElements[i], writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
||||
for (let i = 0; i < message.ClickhouseElements.length; i++)
|
||||
CollabClickhouseElement.internalBinaryWrite(message.ClickhouseElements[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);
|
||||
@@ -227,16 +227,16 @@ export const CollabClickhouseElements = new CollabClickhouseElements$Type();
|
||||
class CollabCheckpointData$Type extends MessageType<CollabCheckpointData> {
|
||||
constructor() {
|
||||
super("api.CollabCheckpointData", [
|
||||
{ no: 1, name: "IdCheckpoint", kind: "scalar", jsonName: "IdCheckpoint", T: 3 /*ScalarType.INT64*/, L: 0 /*LongType.BIGINT*/ },
|
||||
{ no: 2, name: "Project", kind: "scalar", jsonName: "Project", T: 9 /*ScalarType.STRING*/ },
|
||||
{ no: 3, name: "ClickHouseInput", kind: "message", jsonName: "ClickHouseInput", repeat: 1 /*RepeatType.PACKED*/, T: () => CollabClickHouseInput }
|
||||
{ no: 1, name: "IdCheckpoint", kind: "scalar", localName: "IdCheckpoint", jsonName: "IdCheckpoint", T: 3 /*ScalarType.INT64*/, L: 0 /*LongType.BIGINT*/ },
|
||||
{ no: 2, name: "Project", kind: "scalar", localName: "Project", jsonName: "Project", T: 9 /*ScalarType.STRING*/ },
|
||||
{ no: 3, name: "ClickHouseInput", kind: "message", localName: "ClickHouseInput", jsonName: "ClickHouseInput", repeat: 1 /*RepeatType.PACKED*/, T: () => CollabClickHouseInput }
|
||||
]);
|
||||
}
|
||||
create(value?: PartialMessage<CollabCheckpointData>): CollabCheckpointData {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
message.idCheckpoint = 0n;
|
||||
message.project = "";
|
||||
message.clickHouseInput = [];
|
||||
message.IdCheckpoint = 0n;
|
||||
message.Project = "";
|
||||
message.ClickHouseInput = [];
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<CollabCheckpointData>(this, message, value);
|
||||
return message;
|
||||
@@ -247,13 +247,13 @@ class CollabCheckpointData$Type extends MessageType<CollabCheckpointData> {
|
||||
let [fieldNo, wireType] = reader.tag();
|
||||
switch (fieldNo) {
|
||||
case /* int64 IdCheckpoint = 1 [json_name = "IdCheckpoint"];*/ 1:
|
||||
message.idCheckpoint = reader.int64().toBigInt();
|
||||
message.IdCheckpoint = reader.int64().toBigInt();
|
||||
break;
|
||||
case /* string Project = 2 [json_name = "Project"];*/ 2:
|
||||
message.project = reader.string();
|
||||
message.Project = reader.string();
|
||||
break;
|
||||
case /* repeated api.CollabClickHouseInput ClickHouseInput = 3 [json_name = "ClickHouseInput"];*/ 3:
|
||||
message.clickHouseInput.push(CollabClickHouseInput.internalBinaryRead(reader, reader.uint32(), options));
|
||||
message.ClickHouseInput.push(CollabClickHouseInput.internalBinaryRead(reader, reader.uint32(), options));
|
||||
break;
|
||||
default:
|
||||
let u = options.readUnknownField;
|
||||
@@ -268,14 +268,14 @@ class CollabCheckpointData$Type extends MessageType<CollabCheckpointData> {
|
||||
}
|
||||
internalBinaryWrite(message: CollabCheckpointData, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
||||
/* int64 IdCheckpoint = 1 [json_name = "IdCheckpoint"]; */
|
||||
if (message.idCheckpoint !== 0n)
|
||||
writer.tag(1, WireType.Varint).int64(message.idCheckpoint);
|
||||
if (message.IdCheckpoint !== 0n)
|
||||
writer.tag(1, WireType.Varint).int64(message.IdCheckpoint);
|
||||
/* string Project = 2 [json_name = "Project"]; */
|
||||
if (message.project !== "")
|
||||
writer.tag(2, WireType.LengthDelimited).string(message.project);
|
||||
if (message.Project !== "")
|
||||
writer.tag(2, WireType.LengthDelimited).string(message.Project);
|
||||
/* repeated api.CollabClickHouseInput ClickHouseInput = 3 [json_name = "ClickHouseInput"]; */
|
||||
for (let i = 0; i < message.clickHouseInput.length; i++)
|
||||
CollabClickHouseInput.internalBinaryWrite(message.clickHouseInput[i], writer.tag(3, WireType.LengthDelimited).fork(), options).join();
|
||||
for (let i = 0; i < message.ClickHouseInput.length; i++)
|
||||
CollabClickHouseInput.internalBinaryWrite(message.ClickHouseInput[i], writer.tag(3, WireType.LengthDelimited).fork(), options).join();
|
||||
let u = options.writeUnknownFields;
|
||||
if (u !== false)
|
||||
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
||||
|
||||
Reference in New Issue
Block a user