Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump the ts-proto group in /impl/ts-proto with 5 updates #260

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
79 changes: 54 additions & 25 deletions impl/ts-proto/gen/conformance/conformance.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
// versions:
// protoc-gen-ts_proto v2.0.3
// protoc-gen-ts_proto v2.2.1
// protoc unknown
// source: conformance/conformance.proto

Expand Down Expand Up @@ -203,7 +203,7 @@ function createBaseFailureSet(): FailureSet {
return { failure: [] };
}

export const FailureSet = {
export const FailureSet: MessageFns<FailureSet> = {
encode(message: FailureSet, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
for (const v of message.failure) {
writer.uint32(10).string(v!);
Expand All @@ -218,13 +218,14 @@ export const FailureSet = {
while (reader.pos < end) {
const tag = reader.uint32();
switch (tag >>> 3) {
case 1:
case 1: {
if (tag !== 10) {
break;
}

message.failure.push(reader.string());
continue;
}
}
if ((tag & 7) === 4 || tag === 0) {
break;
Expand Down Expand Up @@ -269,7 +270,7 @@ function createBaseConformanceRequest(): ConformanceRequest {
};
}

export const ConformanceRequest = {
export const ConformanceRequest: MessageFns<ConformanceRequest> = {
encode(message: ConformanceRequest, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
switch (message.payload?.$case) {
case "protobufPayload":
Expand Down Expand Up @@ -310,69 +311,78 @@ export const ConformanceRequest = {
while (reader.pos < end) {
const tag = reader.uint32();
switch (tag >>> 3) {
case 1:
case 1: {
if (tag !== 10) {
break;
}

message.payload = { $case: "protobufPayload", protobufPayload: reader.bytes() };
continue;
case 2:
}
case 2: {
if (tag !== 18) {
break;
}

message.payload = { $case: "jsonPayload", jsonPayload: reader.string() };
continue;
case 7:
}
case 7: {
if (tag !== 58) {
break;
}

message.payload = { $case: "jspbPayload", jspbPayload: reader.string() };
continue;
case 8:
}
case 8: {
if (tag !== 66) {
break;
}

message.payload = { $case: "textPayload", textPayload: reader.string() };
continue;
case 3:
}
case 3: {
if (tag !== 24) {
break;
}

message.requestedOutputFormat = reader.int32() as any;
continue;
case 4:
}
case 4: {
if (tag !== 34) {
break;
}

message.messageType = reader.string();
continue;
case 5:
}
case 5: {
if (tag !== 40) {
break;
}

message.testCategory = reader.int32() as any;
continue;
case 6:
}
case 6: {
if (tag !== 50) {
break;
}

message.jspbEncodingOptions = JspbEncodingConfig.decode(reader, reader.uint32());
continue;
case 9:
}
case 9: {
if (tag !== 72) {
break;
}

message.printUnknownFields = reader.bool();
continue;
}
}
if ((tag & 7) === 4 || tag === 0) {
break;
Expand Down Expand Up @@ -483,7 +493,7 @@ function createBaseConformanceResponse(): ConformanceResponse {
return { result: undefined };
}

export const ConformanceResponse = {
export const ConformanceResponse: MessageFns<ConformanceResponse> = {
encode(message: ConformanceResponse, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
switch (message.result?.$case) {
case "parseError":
Expand Down Expand Up @@ -524,69 +534,78 @@ export const ConformanceResponse = {
while (reader.pos < end) {
const tag = reader.uint32();
switch (tag >>> 3) {
case 1:
case 1: {
if (tag !== 10) {
break;
}

message.result = { $case: "parseError", parseError: reader.string() };
continue;
case 6:
}
case 6: {
if (tag !== 50) {
break;
}

message.result = { $case: "serializeError", serializeError: reader.string() };
continue;
case 9:
}
case 9: {
if (tag !== 74) {
break;
}

message.result = { $case: "timeoutError", timeoutError: reader.string() };
continue;
case 2:
}
case 2: {
if (tag !== 18) {
break;
}

message.result = { $case: "runtimeError", runtimeError: reader.string() };
continue;
case 3:
}
case 3: {
if (tag !== 26) {
break;
}

message.result = { $case: "protobufPayload", protobufPayload: reader.bytes() };
continue;
case 4:
}
case 4: {
if (tag !== 34) {
break;
}

message.result = { $case: "jsonPayload", jsonPayload: reader.string() };
continue;
case 5:
}
case 5: {
if (tag !== 42) {
break;
}

message.result = { $case: "skipped", skipped: reader.string() };
continue;
case 7:
}
case 7: {
if (tag !== 58) {
break;
}

message.result = { $case: "jspbPayload", jspbPayload: reader.string() };
continue;
case 8:
}
case 8: {
if (tag !== 66) {
break;
}

message.result = { $case: "textPayload", textPayload: reader.string() };
continue;
}
}
if ((tag & 7) === 4 || tag === 0) {
break;
Expand Down Expand Up @@ -724,7 +743,7 @@ function createBaseJspbEncodingConfig(): JspbEncodingConfig {
return { useJspbArrayAnyFormat: false };
}

export const JspbEncodingConfig = {
export const JspbEncodingConfig: MessageFns<JspbEncodingConfig> = {
encode(message: JspbEncodingConfig, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
if (message.useJspbArrayAnyFormat !== false) {
writer.uint32(8).bool(message.useJspbArrayAnyFormat);
Expand All @@ -739,13 +758,14 @@ export const JspbEncodingConfig = {
while (reader.pos < end) {
const tag = reader.uint32();
switch (tag >>> 3) {
case 1:
case 1: {
if (tag !== 8) {
break;
}

message.useJspbArrayAnyFormat = reader.bool();
continue;
}
}
if ((tag & 7) === 4 || tag === 0) {
break;
Expand Down Expand Up @@ -822,3 +842,12 @@ export type Exact<P, I extends P> = P extends Builtin ? P
function isSet(value: any): boolean {
return value !== null && value !== undefined;
}

export interface MessageFns<T> {
encode(message: T, writer?: BinaryWriter): BinaryWriter;
decode(input: BinaryReader | Uint8Array, length?: number): T;
fromJSON(object: any): T;
toJSON(message: T): unknown;
create<I extends Exact<DeepPartial<T>, I>>(base?: I): T;
fromPartial<I extends Exact<DeepPartial<T>, I>>(object: I): T;
}
19 changes: 15 additions & 4 deletions impl/ts-proto/gen/google/protobuf/any.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
// versions:
// protoc-gen-ts_proto v2.0.3
// protoc-gen-ts_proto v2.2.1
// protoc unknown
// source: google/protobuf/any.proto

Expand Down Expand Up @@ -136,7 +136,7 @@ function createBaseAny(): Any {
return { typeUrl: "", value: new Uint8Array(0) };
}

export const Any = {
export const Any: MessageFns<Any> = {
encode(message: Any, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
if (message.typeUrl !== "") {
writer.uint32(10).string(message.typeUrl);
Expand All @@ -154,20 +154,22 @@ export const Any = {
while (reader.pos < end) {
const tag = reader.uint32();
switch (tag >>> 3) {
case 1:
case 1: {
if (tag !== 10) {
break;
}

message.typeUrl = reader.string();
continue;
case 2:
}
case 2: {
if (tag !== 18) {
break;
}

message.value = reader.bytes();
continue;
}
}
if ((tag & 7) === 4 || tag === 0) {
break;
Expand Down Expand Up @@ -247,3 +249,12 @@ export type Exact<P, I extends P> = P extends Builtin ? P
function isSet(value: any): boolean {
return value !== null && value !== undefined;
}

export interface MessageFns<T> {
encode(message: T, writer?: BinaryWriter): BinaryWriter;
decode(input: BinaryReader | Uint8Array, length?: number): T;
fromJSON(object: any): T;
toJSON(message: T): unknown;
create<I extends Exact<DeepPartial<T>, I>>(base?: I): T;
fromPartial<I extends Exact<DeepPartial<T>, I>>(object: I): T;
}
19 changes: 15 additions & 4 deletions impl/ts-proto/gen/google/protobuf/duration.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
// versions:
// protoc-gen-ts_proto v2.0.3
// protoc-gen-ts_proto v2.2.1
// protoc unknown
// source: google/protobuf/duration.proto

Expand Down Expand Up @@ -91,7 +91,7 @@ function createBaseDuration(): Duration {
return { seconds: 0, nanos: 0 };
}

export const Duration = {
export const Duration: MessageFns<Duration> = {
encode(message: Duration, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
if (message.seconds !== 0) {
writer.uint32(8).int64(message.seconds);
Expand All @@ -109,20 +109,22 @@ export const Duration = {
while (reader.pos < end) {
const tag = reader.uint32();
switch (tag >>> 3) {
case 1:
case 1: {
if (tag !== 8) {
break;
}

message.seconds = longToNumber(reader.int64());
continue;
case 2:
}
case 2: {
if (tag !== 16) {
break;
}

message.nanos = reader.int32();
continue;
}
}
if ((tag & 7) === 4 || tag === 0) {
break;
Expand Down Expand Up @@ -188,3 +190,12 @@ function longToNumber(int64: { toString(): string }): number {
function isSet(value: any): boolean {
return value !== null && value !== undefined;
}

export interface MessageFns<T> {
encode(message: T, writer?: BinaryWriter): BinaryWriter;
decode(input: BinaryReader | Uint8Array, length?: number): T;
fromJSON(object: any): T;
toJSON(message: T): unknown;
create<I extends Exact<DeepPartial<T>, I>>(base?: I): T;
fromPartial<I extends Exact<DeepPartial<T>, I>>(object: I): T;
}
Loading