Skip to content

Commit

Permalink
Re-codegen.
Browse files Browse the repository at this point in the history
  • Loading branch information
stephenh committed Aug 15, 2024
1 parent bbca7a8 commit ab1e039
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// source: remove-enum-prefix-unrecognized-enum-value.proto

/* eslint-disable */
import * as _m0 from "protobufjs/minimal";
import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";

export const protobufPackage = "";

Expand Down Expand Up @@ -158,7 +158,7 @@ function createBaseWithNestedEnum(): WithNestedEnum {
}

export const WithNestedEnum = {
encode(message: WithNestedEnum, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
encode(message: WithNestedEnum, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
if (message.foo !== 0) {
writer.uint32(8).int32(message.foo);
}
Expand All @@ -174,8 +174,8 @@ export const WithNestedEnum = {
return writer;
},

decode(input: _m0.Reader | Uint8Array, length?: number): WithNestedEnum {
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
decode(input: BinaryReader | Uint8Array, length?: number): WithNestedEnum {
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
let end = length === undefined ? reader.len : reader.pos + length;
const message = createBaseWithNestedEnum();
while (reader.pos < end) {
Expand Down Expand Up @@ -213,7 +213,7 @@ export const WithNestedEnum = {
if ((tag & 7) === 4 || tag === 0) {
break;
}
reader.skipType(tag & 7);
reader.skip(tag & 7);
}
return message;
},
Expand Down

0 comments on commit ab1e039

Please sign in to comment.