@bufbuild/protobuf
Advanced tools
Comparing version 0.0.5 to 0.0.6
@@ -17,3 +17,4 @@ "use strict"; | ||
exports.Any = void 0; | ||
const index_runtime_js_1 = require("../../index-runtime.js"); | ||
const message_js_1 = require("../../message.js"); | ||
const proto3_js_1 = require("../../proto3.js"); | ||
/** | ||
@@ -106,3 +107,3 @@ * `Any` contains an arbitrary serialized protocol buffer message along with a | ||
*/ | ||
class Any extends index_runtime_js_1.Message { | ||
class Any extends message_js_1.Message { | ||
constructor(data) { | ||
@@ -149,3 +150,3 @@ super(); | ||
this.value = new Uint8Array(0); | ||
index_runtime_js_1.proto3.util.initPartial(data, this); | ||
proto3_js_1.proto3.util.initPartial(data, this); | ||
} | ||
@@ -236,11 +237,11 @@ toJson(options) { | ||
static equals(a, b) { | ||
return index_runtime_js_1.proto3.util.equals(Any, a, b); | ||
return proto3_js_1.proto3.util.equals(Any, a, b); | ||
} | ||
} | ||
exports.Any = Any; | ||
Any.runtime = index_runtime_js_1.proto3; | ||
Any.runtime = proto3_js_1.proto3; | ||
Any.typeName = "google.protobuf.Any"; | ||
Any.fields = index_runtime_js_1.proto3.util.newFieldList(() => [ | ||
Any.fields = proto3_js_1.proto3.util.newFieldList(() => [ | ||
{ no: 1, name: "type_url", kind: "scalar", T: 9 /* ScalarType.STRING */ }, | ||
{ no: 2, name: "value", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, | ||
]); |
@@ -17,5 +17,6 @@ "use strict"; | ||
exports.Mixin = exports.Method = exports.Api = void 0; | ||
const index_runtime_js_1 = require("../../index-runtime.js"); | ||
const message_js_1 = require("../../message.js"); | ||
const type_pb_js_1 = require("./type_pb.js"); | ||
const source_context_pb_js_1 = require("./source_context_pb.js"); | ||
const proto3_js_1 = require("../../proto3.js"); | ||
/** | ||
@@ -34,3 +35,3 @@ * Api is a light-weight descriptor for an API Interface. | ||
*/ | ||
class Api extends index_runtime_js_1.Message { | ||
class Api extends message_js_1.Message { | ||
constructor(data) { | ||
@@ -95,3 +96,3 @@ super(); | ||
this.syntax = type_pb_js_1.Syntax.PROTO2; | ||
index_runtime_js_1.proto3.util.initPartial(data, this); | ||
proto3_js_1.proto3.util.initPartial(data, this); | ||
} | ||
@@ -108,9 +109,9 @@ static fromBinary(bytes, options) { | ||
static equals(a, b) { | ||
return index_runtime_js_1.proto3.util.equals(Api, a, b); | ||
return proto3_js_1.proto3.util.equals(Api, a, b); | ||
} | ||
} | ||
exports.Api = Api; | ||
Api.runtime = index_runtime_js_1.proto3; | ||
Api.runtime = proto3_js_1.proto3; | ||
Api.typeName = "google.protobuf.Api"; | ||
Api.fields = index_runtime_js_1.proto3.util.newFieldList(() => [ | ||
Api.fields = proto3_js_1.proto3.util.newFieldList(() => [ | ||
{ no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, | ||
@@ -122,3 +123,3 @@ { no: 2, name: "methods", kind: "message", T: Method, repeated: true }, | ||
{ no: 6, name: "mixins", kind: "message", T: Mixin, repeated: true }, | ||
{ no: 7, name: "syntax", kind: "enum", T: index_runtime_js_1.proto3.getEnumType(type_pb_js_1.Syntax) }, | ||
{ no: 7, name: "syntax", kind: "enum", T: proto3_js_1.proto3.getEnumType(type_pb_js_1.Syntax) }, | ||
]); | ||
@@ -130,3 +131,3 @@ /** | ||
*/ | ||
class Method extends index_runtime_js_1.Message { | ||
class Method extends message_js_1.Message { | ||
constructor(data) { | ||
@@ -176,3 +177,3 @@ super(); | ||
this.syntax = type_pb_js_1.Syntax.PROTO2; | ||
index_runtime_js_1.proto3.util.initPartial(data, this); | ||
proto3_js_1.proto3.util.initPartial(data, this); | ||
} | ||
@@ -189,9 +190,9 @@ static fromBinary(bytes, options) { | ||
static equals(a, b) { | ||
return index_runtime_js_1.proto3.util.equals(Method, a, b); | ||
return proto3_js_1.proto3.util.equals(Method, a, b); | ||
} | ||
} | ||
exports.Method = Method; | ||
Method.runtime = index_runtime_js_1.proto3; | ||
Method.runtime = proto3_js_1.proto3; | ||
Method.typeName = "google.protobuf.Method"; | ||
Method.fields = index_runtime_js_1.proto3.util.newFieldList(() => [ | ||
Method.fields = proto3_js_1.proto3.util.newFieldList(() => [ | ||
{ no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, | ||
@@ -203,3 +204,3 @@ { no: 2, name: "request_type_url", kind: "scalar", T: 9 /* ScalarType.STRING */ }, | ||
{ no: 6, name: "options", kind: "message", T: type_pb_js_1.Option, repeated: true }, | ||
{ no: 7, name: "syntax", kind: "enum", T: index_runtime_js_1.proto3.getEnumType(type_pb_js_1.Syntax) }, | ||
{ no: 7, name: "syntax", kind: "enum", T: proto3_js_1.proto3.getEnumType(type_pb_js_1.Syntax) }, | ||
]); | ||
@@ -288,3 +289,3 @@ /** | ||
*/ | ||
class Mixin extends index_runtime_js_1.Message { | ||
class Mixin extends message_js_1.Message { | ||
constructor(data) { | ||
@@ -305,3 +306,3 @@ super(); | ||
this.root = ""; | ||
index_runtime_js_1.proto3.util.initPartial(data, this); | ||
proto3_js_1.proto3.util.initPartial(data, this); | ||
} | ||
@@ -318,11 +319,11 @@ static fromBinary(bytes, options) { | ||
static equals(a, b) { | ||
return index_runtime_js_1.proto3.util.equals(Mixin, a, b); | ||
return proto3_js_1.proto3.util.equals(Mixin, a, b); | ||
} | ||
} | ||
exports.Mixin = Mixin; | ||
Mixin.runtime = index_runtime_js_1.proto3; | ||
Mixin.runtime = proto3_js_1.proto3; | ||
Mixin.typeName = "google.protobuf.Mixin"; | ||
Mixin.fields = index_runtime_js_1.proto3.util.newFieldList(() => [ | ||
Mixin.fields = proto3_js_1.proto3.util.newFieldList(() => [ | ||
{ no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, | ||
{ no: 2, name: "root", kind: "scalar", T: 9 /* ScalarType.STRING */ }, | ||
]); |
@@ -17,3 +17,4 @@ "use strict"; | ||
exports.CodeGeneratorResponse_File = exports.CodeGeneratorResponse_Feature = exports.CodeGeneratorResponse = exports.CodeGeneratorRequest = exports.Version = void 0; | ||
const index_runtime_js_1 = require("../../../index-runtime.js"); | ||
const message_js_1 = require("../../../message.js"); | ||
const proto2_js_1 = require("../../../proto2.js"); | ||
const descriptor_pb_js_1 = require("../descriptor_pb.js"); | ||
@@ -25,6 +26,6 @@ /** | ||
*/ | ||
class Version extends index_runtime_js_1.Message { | ||
class Version extends message_js_1.Message { | ||
constructor(data) { | ||
super(); | ||
index_runtime_js_1.proto2.util.initPartial(data, this); | ||
proto2_js_1.proto2.util.initPartial(data, this); | ||
} | ||
@@ -41,9 +42,9 @@ static fromBinary(bytes, options) { | ||
static equals(a, b) { | ||
return index_runtime_js_1.proto2.util.equals(Version, a, b); | ||
return proto2_js_1.proto2.util.equals(Version, a, b); | ||
} | ||
} | ||
exports.Version = Version; | ||
Version.runtime = index_runtime_js_1.proto2; | ||
Version.runtime = proto2_js_1.proto2; | ||
Version.typeName = "google.protobuf.compiler.Version"; | ||
Version.fields = index_runtime_js_1.proto2.util.newFieldList(() => [ | ||
Version.fields = proto2_js_1.proto2.util.newFieldList(() => [ | ||
{ no: 1, name: "major", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true }, | ||
@@ -59,3 +60,3 @@ { no: 2, name: "minor", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true }, | ||
*/ | ||
class CodeGeneratorRequest extends index_runtime_js_1.Message { | ||
class CodeGeneratorRequest extends message_js_1.Message { | ||
constructor(data) { | ||
@@ -90,3 +91,3 @@ super(); | ||
this.protoFile = []; | ||
index_runtime_js_1.proto2.util.initPartial(data, this); | ||
proto2_js_1.proto2.util.initPartial(data, this); | ||
} | ||
@@ -103,9 +104,9 @@ static fromBinary(bytes, options) { | ||
static equals(a, b) { | ||
return index_runtime_js_1.proto2.util.equals(CodeGeneratorRequest, a, b); | ||
return proto2_js_1.proto2.util.equals(CodeGeneratorRequest, a, b); | ||
} | ||
} | ||
exports.CodeGeneratorRequest = CodeGeneratorRequest; | ||
CodeGeneratorRequest.runtime = index_runtime_js_1.proto2; | ||
CodeGeneratorRequest.runtime = proto2_js_1.proto2; | ||
CodeGeneratorRequest.typeName = "google.protobuf.compiler.CodeGeneratorRequest"; | ||
CodeGeneratorRequest.fields = index_runtime_js_1.proto2.util.newFieldList(() => [ | ||
CodeGeneratorRequest.fields = proto2_js_1.proto2.util.newFieldList(() => [ | ||
{ no: 1, name: "file_to_generate", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, | ||
@@ -121,3 +122,3 @@ { no: 2, name: "parameter", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true }, | ||
*/ | ||
class CodeGeneratorResponse extends index_runtime_js_1.Message { | ||
class CodeGeneratorResponse extends message_js_1.Message { | ||
constructor(data) { | ||
@@ -129,3 +130,3 @@ super(); | ||
this.file = []; | ||
index_runtime_js_1.proto2.util.initPartial(data, this); | ||
proto2_js_1.proto2.util.initPartial(data, this); | ||
} | ||
@@ -142,9 +143,9 @@ static fromBinary(bytes, options) { | ||
static equals(a, b) { | ||
return index_runtime_js_1.proto2.util.equals(CodeGeneratorResponse, a, b); | ||
return proto2_js_1.proto2.util.equals(CodeGeneratorResponse, a, b); | ||
} | ||
} | ||
exports.CodeGeneratorResponse = CodeGeneratorResponse; | ||
CodeGeneratorResponse.runtime = index_runtime_js_1.proto2; | ||
CodeGeneratorResponse.runtime = proto2_js_1.proto2; | ||
CodeGeneratorResponse.typeName = "google.protobuf.compiler.CodeGeneratorResponse"; | ||
CodeGeneratorResponse.fields = index_runtime_js_1.proto2.util.newFieldList(() => [ | ||
CodeGeneratorResponse.fields = proto2_js_1.proto2.util.newFieldList(() => [ | ||
{ no: 1, name: "error", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true }, | ||
@@ -171,3 +172,3 @@ { no: 2, name: "supported_features", kind: "scalar", T: 4 /* ScalarType.UINT64 */, opt: true }, | ||
// Retrieve enum metadata with: proto2.getEnumType(CodeGeneratorResponse_Feature) | ||
index_runtime_js_1.proto2.util.setEnumType(CodeGeneratorResponse_Feature, "google.protobuf.compiler.CodeGeneratorResponse.Feature", [ | ||
proto2_js_1.proto2.util.setEnumType(CodeGeneratorResponse_Feature, "google.protobuf.compiler.CodeGeneratorResponse.Feature", [ | ||
{ no: 0, name: "FEATURE_NONE" }, | ||
@@ -181,6 +182,6 @@ { no: 1, name: "FEATURE_PROTO3_OPTIONAL" }, | ||
*/ | ||
class CodeGeneratorResponse_File extends index_runtime_js_1.Message { | ||
class CodeGeneratorResponse_File extends message_js_1.Message { | ||
constructor(data) { | ||
super(); | ||
index_runtime_js_1.proto2.util.initPartial(data, this); | ||
proto2_js_1.proto2.util.initPartial(data, this); | ||
} | ||
@@ -197,9 +198,9 @@ static fromBinary(bytes, options) { | ||
static equals(a, b) { | ||
return index_runtime_js_1.proto2.util.equals(CodeGeneratorResponse_File, a, b); | ||
return proto2_js_1.proto2.util.equals(CodeGeneratorResponse_File, a, b); | ||
} | ||
} | ||
exports.CodeGeneratorResponse_File = CodeGeneratorResponse_File; | ||
CodeGeneratorResponse_File.runtime = index_runtime_js_1.proto2; | ||
CodeGeneratorResponse_File.runtime = proto2_js_1.proto2; | ||
CodeGeneratorResponse_File.typeName = "google.protobuf.compiler.CodeGeneratorResponse.File"; | ||
CodeGeneratorResponse_File.fields = index_runtime_js_1.proto2.util.newFieldList(() => [ | ||
CodeGeneratorResponse_File.fields = proto2_js_1.proto2.util.newFieldList(() => [ | ||
{ no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true }, | ||
@@ -206,0 +207,0 @@ { no: 2, name: "insertion_point", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true }, |
@@ -17,3 +17,5 @@ "use strict"; | ||
exports.Duration = void 0; | ||
const index_runtime_js_1 = require("../../index-runtime.js"); | ||
const message_js_1 = require("../../message.js"); | ||
const proto_int64_js_1 = require("../../proto-int64.js"); | ||
const proto3_js_1 = require("../../proto3.js"); | ||
/** | ||
@@ -83,3 +85,3 @@ * A Duration represents a signed, fixed-length span of time represented | ||
*/ | ||
class Duration extends index_runtime_js_1.Message { | ||
class Duration extends message_js_1.Message { | ||
constructor(data) { | ||
@@ -94,3 +96,3 @@ super(); | ||
*/ | ||
this.seconds = index_runtime_js_1.protoInt64.zero; | ||
this.seconds = proto_int64_js_1.protoInt64.zero; | ||
/** | ||
@@ -107,17 +109,17 @@ * Signed fractions of a second at nanosecond resolution of the span | ||
this.nanos = 0; | ||
index_runtime_js_1.proto3.util.initPartial(data, this); | ||
proto3_js_1.proto3.util.initPartial(data, this); | ||
} | ||
fromJson(json, options) { | ||
if (typeof json !== "string") { | ||
throw new Error(`cannot decode google.protobuf.Duration from JSON: ${index_runtime_js_1.proto3.json.debug(json)}`); | ||
throw new Error(`cannot decode google.protobuf.Duration from JSON: ${proto3_js_1.proto3.json.debug(json)}`); | ||
} | ||
const match = json.match(/^(-?[0-9]+)(?:\.([0-9]+))?s/); | ||
if (match === null) { | ||
throw new Error(`cannot decode google.protobuf.Duration from JSON: ${index_runtime_js_1.proto3.json.debug(json)}`); | ||
throw new Error(`cannot decode google.protobuf.Duration from JSON: ${proto3_js_1.proto3.json.debug(json)}`); | ||
} | ||
const longSeconds = Number(match[1]); | ||
if (longSeconds > 315576000000 || longSeconds < -315576000000) { | ||
throw new Error(`cannot decode google.protobuf.Duration from JSON: ${index_runtime_js_1.proto3.json.debug(json)}`); | ||
throw new Error(`cannot decode google.protobuf.Duration from JSON: ${proto3_js_1.proto3.json.debug(json)}`); | ||
} | ||
this.seconds = index_runtime_js_1.protoInt64.parse(longSeconds); | ||
this.seconds = proto_int64_js_1.protoInt64.parse(longSeconds); | ||
if (typeof match[2] == "string") { | ||
@@ -160,11 +162,11 @@ const nanosStr = match[2] + "0".repeat(9 - match[2].length); | ||
static equals(a, b) { | ||
return index_runtime_js_1.proto3.util.equals(Duration, a, b); | ||
return proto3_js_1.proto3.util.equals(Duration, a, b); | ||
} | ||
} | ||
exports.Duration = Duration; | ||
Duration.runtime = index_runtime_js_1.proto3; | ||
Duration.runtime = proto3_js_1.proto3; | ||
Duration.typeName = "google.protobuf.Duration"; | ||
Duration.fields = index_runtime_js_1.proto3.util.newFieldList(() => [ | ||
Duration.fields = proto3_js_1.proto3.util.newFieldList(() => [ | ||
{ no: 1, name: "seconds", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, | ||
{ no: 2, name: "nanos", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, | ||
]); |
@@ -17,3 +17,4 @@ "use strict"; | ||
exports.Empty = void 0; | ||
const index_runtime_js_1 = require("../../index-runtime.js"); | ||
const message_js_1 = require("../../message.js"); | ||
const proto3_js_1 = require("../../proto3.js"); | ||
/** | ||
@@ -32,6 +33,6 @@ * A generic empty message that you can re-use to avoid defining duplicated | ||
*/ | ||
class Empty extends index_runtime_js_1.Message { | ||
class Empty extends message_js_1.Message { | ||
constructor(data) { | ||
super(); | ||
index_runtime_js_1.proto3.util.initPartial(data, this); | ||
proto3_js_1.proto3.util.initPartial(data, this); | ||
} | ||
@@ -48,8 +49,8 @@ static fromBinary(bytes, options) { | ||
static equals(a, b) { | ||
return index_runtime_js_1.proto3.util.equals(Empty, a, b); | ||
return proto3_js_1.proto3.util.equals(Empty, a, b); | ||
} | ||
} | ||
exports.Empty = Empty; | ||
Empty.runtime = index_runtime_js_1.proto3; | ||
Empty.runtime = proto3_js_1.proto3; | ||
Empty.typeName = "google.protobuf.Empty"; | ||
Empty.fields = index_runtime_js_1.proto3.util.newFieldList(() => []); | ||
Empty.fields = proto3_js_1.proto3.util.newFieldList(() => []); |
@@ -17,3 +17,4 @@ "use strict"; | ||
exports.FieldMask = void 0; | ||
const index_runtime_js_1 = require("../../index-runtime.js"); | ||
const message_js_1 = require("../../message.js"); | ||
const proto3_js_1 = require("../../proto3.js"); | ||
/** | ||
@@ -222,3 +223,3 @@ * `FieldMask` represents a set of symbolic field paths, for example: | ||
*/ | ||
class FieldMask extends index_runtime_js_1.Message { | ||
class FieldMask extends message_js_1.Message { | ||
constructor(data) { | ||
@@ -232,3 +233,3 @@ super(); | ||
this.paths = []; | ||
index_runtime_js_1.proto3.util.initPartial(data, this); | ||
proto3_js_1.proto3.util.initPartial(data, this); | ||
} | ||
@@ -280,3 +281,3 @@ toJson(options) { | ||
if (typeof json !== "string") { | ||
throw new Error("cannot decode google.protobuf.FieldMask from JSON: " + index_runtime_js_1.proto3.json.debug(json)); | ||
throw new Error("cannot decode google.protobuf.FieldMask from JSON: " + proto3_js_1.proto3.json.debug(json)); | ||
} | ||
@@ -306,10 +307,10 @@ if (json === "") { | ||
static equals(a, b) { | ||
return index_runtime_js_1.proto3.util.equals(FieldMask, a, b); | ||
return proto3_js_1.proto3.util.equals(FieldMask, a, b); | ||
} | ||
} | ||
exports.FieldMask = FieldMask; | ||
FieldMask.runtime = index_runtime_js_1.proto3; | ||
FieldMask.runtime = proto3_js_1.proto3; | ||
FieldMask.typeName = "google.protobuf.FieldMask"; | ||
FieldMask.fields = index_runtime_js_1.proto3.util.newFieldList(() => [ | ||
FieldMask.fields = proto3_js_1.proto3.util.newFieldList(() => [ | ||
{ no: 1, name: "paths", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, | ||
]); |
@@ -17,3 +17,4 @@ "use strict"; | ||
exports.SourceContext = void 0; | ||
const index_runtime_js_1 = require("../../index-runtime.js"); | ||
const message_js_1 = require("../../message.js"); | ||
const proto3_js_1 = require("../../proto3.js"); | ||
/** | ||
@@ -25,3 +26,3 @@ * `SourceContext` represents information about the source of a | ||
*/ | ||
class SourceContext extends index_runtime_js_1.Message { | ||
class SourceContext extends message_js_1.Message { | ||
constructor(data) { | ||
@@ -36,3 +37,3 @@ super(); | ||
this.fileName = ""; | ||
index_runtime_js_1.proto3.util.initPartial(data, this); | ||
proto3_js_1.proto3.util.initPartial(data, this); | ||
} | ||
@@ -49,10 +50,10 @@ static fromBinary(bytes, options) { | ||
static equals(a, b) { | ||
return index_runtime_js_1.proto3.util.equals(SourceContext, a, b); | ||
return proto3_js_1.proto3.util.equals(SourceContext, a, b); | ||
} | ||
} | ||
exports.SourceContext = SourceContext; | ||
SourceContext.runtime = index_runtime_js_1.proto3; | ||
SourceContext.runtime = proto3_js_1.proto3; | ||
SourceContext.typeName = "google.protobuf.SourceContext"; | ||
SourceContext.fields = index_runtime_js_1.proto3.util.newFieldList(() => [ | ||
SourceContext.fields = proto3_js_1.proto3.util.newFieldList(() => [ | ||
{ no: 1, name: "file_name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, | ||
]); |
@@ -17,3 +17,7 @@ "use strict"; | ||
exports.ListValue = exports.Value = exports.Struct = exports.NullValue = void 0; | ||
const index_runtime_js_1 = require("../../index-runtime.js"); | ||
// @generated by protoc-gen-es v0.0.6 with parameter "bootstrap_wkt=true,ts_nocheck=false,target=ts" | ||
// @generated from file google/protobuf/struct.proto (package google.protobuf, syntax proto3) | ||
/* eslint-disable */ | ||
const proto3_js_1 = require("../../proto3.js"); | ||
const message_js_1 = require("../../message.js"); | ||
/** | ||
@@ -37,3 +41,3 @@ * `NullValue` is a singleton enumeration to represent the null value for the | ||
// Retrieve enum metadata with: proto3.getEnumType(NullValue) | ||
index_runtime_js_1.proto3.util.setEnumType(NullValue, "google.protobuf.NullValue", [ | ||
proto3_js_1.proto3.util.setEnumType(NullValue, "google.protobuf.NullValue", [ | ||
{ no: 0, name: "NULL_VALUE" }, | ||
@@ -53,3 +57,3 @@ ]); | ||
*/ | ||
class Struct extends index_runtime_js_1.Message { | ||
class Struct extends message_js_1.Message { | ||
constructor(data) { | ||
@@ -63,3 +67,3 @@ super(); | ||
this.fields = {}; | ||
index_runtime_js_1.proto3.util.initPartial(data, this); | ||
proto3_js_1.proto3.util.initPartial(data, this); | ||
} | ||
@@ -75,3 +79,3 @@ toJson(options) { | ||
if (typeof json != "object" || json == null || Array.isArray(json)) { | ||
throw new Error("cannot decode google.protobuf.Struct from JSON " + index_runtime_js_1.proto3.json.debug(json)); | ||
throw new Error("cannot decode google.protobuf.Struct from JSON " + proto3_js_1.proto3.json.debug(json)); | ||
} | ||
@@ -93,9 +97,9 @@ for (const [k, v] of Object.entries(json)) { | ||
static equals(a, b) { | ||
return index_runtime_js_1.proto3.util.equals(Struct, a, b); | ||
return proto3_js_1.proto3.util.equals(Struct, a, b); | ||
} | ||
} | ||
exports.Struct = Struct; | ||
Struct.runtime = index_runtime_js_1.proto3; | ||
Struct.runtime = proto3_js_1.proto3; | ||
Struct.typeName = "google.protobuf.Struct"; | ||
Struct.fields = index_runtime_js_1.proto3.util.newFieldList(() => [ | ||
Struct.fields = proto3_js_1.proto3.util.newFieldList(() => [ | ||
{ no: 1, name: "fields", kind: "map", K: 9 /* ScalarType.STRING */, V: { kind: "message", T: Value } }, | ||
@@ -113,3 +117,3 @@ ]); | ||
*/ | ||
class Value extends index_runtime_js_1.Message { | ||
class Value extends message_js_1.Message { | ||
constructor(data) { | ||
@@ -123,3 +127,3 @@ super(); | ||
this.kind = { case: undefined }; | ||
index_runtime_js_1.proto3.util.initPartial(data, this); | ||
proto3_js_1.proto3.util.initPartial(data, this); | ||
} | ||
@@ -163,3 +167,3 @@ toJson(options) { | ||
default: | ||
throw new Error("cannot decode google.protobuf.Value from JSON " + index_runtime_js_1.proto3.json.debug(json)); | ||
throw new Error("cannot decode google.protobuf.Value from JSON " + proto3_js_1.proto3.json.debug(json)); | ||
} | ||
@@ -178,10 +182,10 @@ return this; | ||
static equals(a, b) { | ||
return index_runtime_js_1.proto3.util.equals(Value, a, b); | ||
return proto3_js_1.proto3.util.equals(Value, a, b); | ||
} | ||
} | ||
exports.Value = Value; | ||
Value.runtime = index_runtime_js_1.proto3; | ||
Value.runtime = proto3_js_1.proto3; | ||
Value.typeName = "google.protobuf.Value"; | ||
Value.fields = index_runtime_js_1.proto3.util.newFieldList(() => [ | ||
{ no: 1, name: "null_value", kind: "enum", T: index_runtime_js_1.proto3.getEnumType(NullValue), oneof: "kind" }, | ||
Value.fields = proto3_js_1.proto3.util.newFieldList(() => [ | ||
{ no: 1, name: "null_value", kind: "enum", T: proto3_js_1.proto3.getEnumType(NullValue), oneof: "kind" }, | ||
{ no: 2, name: "number_value", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, oneof: "kind" }, | ||
@@ -200,3 +204,3 @@ { no: 3, name: "string_value", kind: "scalar", T: 9 /* ScalarType.STRING */, oneof: "kind" }, | ||
*/ | ||
class ListValue extends index_runtime_js_1.Message { | ||
class ListValue extends message_js_1.Message { | ||
constructor(data) { | ||
@@ -210,3 +214,3 @@ super(); | ||
this.values = []; | ||
index_runtime_js_1.proto3.util.initPartial(data, this); | ||
proto3_js_1.proto3.util.initPartial(data, this); | ||
} | ||
@@ -218,3 +222,3 @@ toJson(options) { | ||
if (!Array.isArray(json)) { | ||
throw new Error("cannot decode google.protobuf.ListValue from JSON " + index_runtime_js_1.proto3.json.debug(json)); | ||
throw new Error("cannot decode google.protobuf.ListValue from JSON " + proto3_js_1.proto3.json.debug(json)); | ||
} | ||
@@ -236,10 +240,10 @@ for (let e of json) { | ||
static equals(a, b) { | ||
return index_runtime_js_1.proto3.util.equals(ListValue, a, b); | ||
return proto3_js_1.proto3.util.equals(ListValue, a, b); | ||
} | ||
} | ||
exports.ListValue = ListValue; | ||
ListValue.runtime = index_runtime_js_1.proto3; | ||
ListValue.runtime = proto3_js_1.proto3; | ||
ListValue.typeName = "google.protobuf.ListValue"; | ||
ListValue.fields = index_runtime_js_1.proto3.util.newFieldList(() => [ | ||
ListValue.fields = proto3_js_1.proto3.util.newFieldList(() => [ | ||
{ no: 1, name: "values", kind: "message", T: Value, repeated: true }, | ||
]); |
@@ -17,3 +17,5 @@ "use strict"; | ||
exports.Timestamp = void 0; | ||
const index_runtime_js_1 = require("../../index-runtime.js"); | ||
const message_js_1 = require("../../message.js"); | ||
const proto_int64_js_1 = require("../../proto-int64.js"); | ||
const proto3_js_1 = require("../../proto3.js"); | ||
/** | ||
@@ -116,3 +118,3 @@ * A Timestamp represents a point in time independent of any time zone or local | ||
*/ | ||
class Timestamp extends index_runtime_js_1.Message { | ||
class Timestamp extends message_js_1.Message { | ||
constructor(data) { | ||
@@ -127,3 +129,3 @@ super(); | ||
*/ | ||
this.seconds = index_runtime_js_1.protoInt64.zero; | ||
this.seconds = proto_int64_js_1.protoInt64.zero; | ||
/** | ||
@@ -138,7 +140,7 @@ * Non-negative fractions of a second at nanosecond resolution. Negative | ||
this.nanos = 0; | ||
index_runtime_js_1.proto3.util.initPartial(data, this); | ||
proto3_js_1.proto3.util.initPartial(data, this); | ||
} | ||
fromJson(json, options) { | ||
if (typeof json !== "string") { | ||
throw new Error(`cannot decode google.protobuf.Timestamp from JSON: ${index_runtime_js_1.proto3.json.debug(json)}`); | ||
throw new Error(`cannot decode google.protobuf.Timestamp from JSON: ${proto3_js_1.proto3.json.debug(json)}`); | ||
} | ||
@@ -156,3 +158,3 @@ const matches = json.match(/^([0-9]{4})-([0-9]{2})-([0-9]{2})T([0-9]{2}):([0-9]{2}):([0-9]{2})(?:Z|\.([0-9]{3,9})Z|([+-][0-9][0-9]:[0-9][0-9]))$/); | ||
} | ||
this.seconds = index_runtime_js_1.protoInt64.parse(ms / 1000); | ||
this.seconds = proto_int64_js_1.protoInt64.parse(ms / 1000); | ||
this.nanos = 0; | ||
@@ -196,3 +198,3 @@ if (matches[7]) { | ||
return new Timestamp({ | ||
seconds: index_runtime_js_1.protoInt64.parse(Math.floor(ms / 1000)), | ||
seconds: proto_int64_js_1.protoInt64.parse(Math.floor(ms / 1000)), | ||
nanos: (ms % 1000) * 1000000, | ||
@@ -211,11 +213,11 @@ }); | ||
static equals(a, b) { | ||
return index_runtime_js_1.proto3.util.equals(Timestamp, a, b); | ||
return proto3_js_1.proto3.util.equals(Timestamp, a, b); | ||
} | ||
} | ||
exports.Timestamp = Timestamp; | ||
Timestamp.runtime = index_runtime_js_1.proto3; | ||
Timestamp.runtime = proto3_js_1.proto3; | ||
Timestamp.typeName = "google.protobuf.Timestamp"; | ||
Timestamp.fields = index_runtime_js_1.proto3.util.newFieldList(() => [ | ||
Timestamp.fields = proto3_js_1.proto3.util.newFieldList(() => [ | ||
{ no: 1, name: "seconds", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, | ||
{ no: 2, name: "nanos", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, | ||
]); |
@@ -17,3 +17,7 @@ "use strict"; | ||
exports.Option = exports.EnumValue = exports.Enum = exports.Field_Cardinality = exports.Field_Kind = exports.Field = exports.Type = exports.Syntax = void 0; | ||
const index_runtime_js_1 = require("../../index-runtime.js"); | ||
// @generated by protoc-gen-es v0.0.6 with parameter "bootstrap_wkt=true,ts_nocheck=false,target=ts" | ||
// @generated from file google/protobuf/type.proto (package google.protobuf, syntax proto3) | ||
/* eslint-disable */ | ||
const proto3_js_1 = require("../../proto3.js"); | ||
const message_js_1 = require("../../message.js"); | ||
const source_context_pb_js_1 = require("./source_context_pb.js"); | ||
@@ -42,3 +46,3 @@ const any_pb_js_1 = require("./any_pb.js"); | ||
// Retrieve enum metadata with: proto3.getEnumType(Syntax) | ||
index_runtime_js_1.proto3.util.setEnumType(Syntax, "google.protobuf.Syntax", [ | ||
proto3_js_1.proto3.util.setEnumType(Syntax, "google.protobuf.Syntax", [ | ||
{ no: 0, name: "SYNTAX_PROTO2" }, | ||
@@ -52,3 +56,3 @@ { no: 1, name: "SYNTAX_PROTO3" }, | ||
*/ | ||
class Type extends index_runtime_js_1.Message { | ||
class Type extends message_js_1.Message { | ||
constructor(data) { | ||
@@ -86,3 +90,3 @@ super(); | ||
this.syntax = Syntax.PROTO2; | ||
index_runtime_js_1.proto3.util.initPartial(data, this); | ||
proto3_js_1.proto3.util.initPartial(data, this); | ||
} | ||
@@ -99,9 +103,9 @@ static fromBinary(bytes, options) { | ||
static equals(a, b) { | ||
return index_runtime_js_1.proto3.util.equals(Type, a, b); | ||
return proto3_js_1.proto3.util.equals(Type, a, b); | ||
} | ||
} | ||
exports.Type = Type; | ||
Type.runtime = index_runtime_js_1.proto3; | ||
Type.runtime = proto3_js_1.proto3; | ||
Type.typeName = "google.protobuf.Type"; | ||
Type.fields = index_runtime_js_1.proto3.util.newFieldList(() => [ | ||
Type.fields = proto3_js_1.proto3.util.newFieldList(() => [ | ||
{ no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, | ||
@@ -112,3 +116,3 @@ { no: 2, name: "fields", kind: "message", T: Field, repeated: true }, | ||
{ no: 5, name: "source_context", kind: "message", T: source_context_pb_js_1.SourceContext }, | ||
{ no: 6, name: "syntax", kind: "enum", T: index_runtime_js_1.proto3.getEnumType(Syntax) }, | ||
{ no: 6, name: "syntax", kind: "enum", T: proto3_js_1.proto3.getEnumType(Syntax) }, | ||
]); | ||
@@ -120,3 +124,3 @@ /** | ||
*/ | ||
class Field extends index_runtime_js_1.Message { | ||
class Field extends message_js_1.Message { | ||
constructor(data) { | ||
@@ -186,3 +190,3 @@ super(); | ||
this.defaultValue = ""; | ||
index_runtime_js_1.proto3.util.initPartial(data, this); | ||
proto3_js_1.proto3.util.initPartial(data, this); | ||
} | ||
@@ -199,11 +203,11 @@ static fromBinary(bytes, options) { | ||
static equals(a, b) { | ||
return index_runtime_js_1.proto3.util.equals(Field, a, b); | ||
return proto3_js_1.proto3.util.equals(Field, a, b); | ||
} | ||
} | ||
exports.Field = Field; | ||
Field.runtime = index_runtime_js_1.proto3; | ||
Field.runtime = proto3_js_1.proto3; | ||
Field.typeName = "google.protobuf.Field"; | ||
Field.fields = index_runtime_js_1.proto3.util.newFieldList(() => [ | ||
{ no: 1, name: "kind", kind: "enum", T: index_runtime_js_1.proto3.getEnumType(Field_Kind) }, | ||
{ no: 2, name: "cardinality", kind: "enum", T: index_runtime_js_1.proto3.getEnumType(Field_Cardinality) }, | ||
Field.fields = proto3_js_1.proto3.util.newFieldList(() => [ | ||
{ no: 1, name: "kind", kind: "enum", T: proto3_js_1.proto3.getEnumType(Field_Kind) }, | ||
{ no: 2, name: "cardinality", kind: "enum", T: proto3_js_1.proto3.getEnumType(Field_Cardinality) }, | ||
{ no: 3, name: "number", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, | ||
@@ -341,3 +345,3 @@ { no: 4, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, | ||
// Retrieve enum metadata with: proto3.getEnumType(Field_Kind) | ||
index_runtime_js_1.proto3.util.setEnumType(Field_Kind, "google.protobuf.Field.Kind", [ | ||
proto3_js_1.proto3.util.setEnumType(Field_Kind, "google.protobuf.Field.Kind", [ | ||
{ no: 0, name: "TYPE_UNKNOWN" }, | ||
@@ -396,3 +400,3 @@ { no: 1, name: "TYPE_DOUBLE" }, | ||
// Retrieve enum metadata with: proto3.getEnumType(Field_Cardinality) | ||
index_runtime_js_1.proto3.util.setEnumType(Field_Cardinality, "google.protobuf.Field.Cardinality", [ | ||
proto3_js_1.proto3.util.setEnumType(Field_Cardinality, "google.protobuf.Field.Cardinality", [ | ||
{ no: 0, name: "CARDINALITY_UNKNOWN" }, | ||
@@ -408,3 +412,3 @@ { no: 1, name: "CARDINALITY_OPTIONAL" }, | ||
*/ | ||
class Enum extends index_runtime_js_1.Message { | ||
class Enum extends message_js_1.Message { | ||
constructor(data) { | ||
@@ -436,3 +440,3 @@ super(); | ||
this.syntax = Syntax.PROTO2; | ||
index_runtime_js_1.proto3.util.initPartial(data, this); | ||
proto3_js_1.proto3.util.initPartial(data, this); | ||
} | ||
@@ -449,9 +453,9 @@ static fromBinary(bytes, options) { | ||
static equals(a, b) { | ||
return index_runtime_js_1.proto3.util.equals(Enum, a, b); | ||
return proto3_js_1.proto3.util.equals(Enum, a, b); | ||
} | ||
} | ||
exports.Enum = Enum; | ||
Enum.runtime = index_runtime_js_1.proto3; | ||
Enum.runtime = proto3_js_1.proto3; | ||
Enum.typeName = "google.protobuf.Enum"; | ||
Enum.fields = index_runtime_js_1.proto3.util.newFieldList(() => [ | ||
Enum.fields = proto3_js_1.proto3.util.newFieldList(() => [ | ||
{ no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, | ||
@@ -461,3 +465,3 @@ { no: 2, name: "enumvalue", kind: "message", T: EnumValue, repeated: true }, | ||
{ no: 4, name: "source_context", kind: "message", T: source_context_pb_js_1.SourceContext }, | ||
{ no: 5, name: "syntax", kind: "enum", T: index_runtime_js_1.proto3.getEnumType(Syntax) }, | ||
{ no: 5, name: "syntax", kind: "enum", T: proto3_js_1.proto3.getEnumType(Syntax) }, | ||
]); | ||
@@ -469,3 +473,3 @@ /** | ||
*/ | ||
class EnumValue extends index_runtime_js_1.Message { | ||
class EnumValue extends message_js_1.Message { | ||
constructor(data) { | ||
@@ -491,3 +495,3 @@ super(); | ||
this.options = []; | ||
index_runtime_js_1.proto3.util.initPartial(data, this); | ||
proto3_js_1.proto3.util.initPartial(data, this); | ||
} | ||
@@ -504,9 +508,9 @@ static fromBinary(bytes, options) { | ||
static equals(a, b) { | ||
return index_runtime_js_1.proto3.util.equals(EnumValue, a, b); | ||
return proto3_js_1.proto3.util.equals(EnumValue, a, b); | ||
} | ||
} | ||
exports.EnumValue = EnumValue; | ||
EnumValue.runtime = index_runtime_js_1.proto3; | ||
EnumValue.runtime = proto3_js_1.proto3; | ||
EnumValue.typeName = "google.protobuf.EnumValue"; | ||
EnumValue.fields = index_runtime_js_1.proto3.util.newFieldList(() => [ | ||
EnumValue.fields = proto3_js_1.proto3.util.newFieldList(() => [ | ||
{ no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, | ||
@@ -522,3 +526,3 @@ { no: 2, name: "number", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, | ||
*/ | ||
class Option extends index_runtime_js_1.Message { | ||
class Option extends message_js_1.Message { | ||
constructor(data) { | ||
@@ -535,3 +539,3 @@ super(); | ||
this.name = ""; | ||
index_runtime_js_1.proto3.util.initPartial(data, this); | ||
proto3_js_1.proto3.util.initPartial(data, this); | ||
} | ||
@@ -548,11 +552,11 @@ static fromBinary(bytes, options) { | ||
static equals(a, b) { | ||
return index_runtime_js_1.proto3.util.equals(Option, a, b); | ||
return proto3_js_1.proto3.util.equals(Option, a, b); | ||
} | ||
} | ||
exports.Option = Option; | ||
Option.runtime = index_runtime_js_1.proto3; | ||
Option.runtime = proto3_js_1.proto3; | ||
Option.typeName = "google.protobuf.Option"; | ||
Option.fields = index_runtime_js_1.proto3.util.newFieldList(() => [ | ||
Option.fields = proto3_js_1.proto3.util.newFieldList(() => [ | ||
{ no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, | ||
{ no: 2, name: "value", kind: "message", T: any_pb_js_1.Any }, | ||
]); |
@@ -17,3 +17,6 @@ "use strict"; | ||
exports.BytesValue = exports.StringValue = exports.BoolValue = exports.UInt32Value = exports.Int32Value = exports.UInt64Value = exports.Int64Value = exports.FloatValue = exports.DoubleValue = void 0; | ||
const index_runtime_js_1 = require("../../index-runtime.js"); | ||
const message_js_1 = require("../../message.js"); | ||
const proto3_js_1 = require("../../proto3.js"); | ||
const field_js_1 = require("../../field.js"); | ||
const proto_int64_js_1 = require("../../proto-int64.js"); | ||
/** | ||
@@ -26,3 +29,3 @@ * Wrapper message for `double`. | ||
*/ | ||
class DoubleValue extends index_runtime_js_1.Message { | ||
class DoubleValue extends message_js_1.Message { | ||
constructor(data) { | ||
@@ -36,10 +39,10 @@ super(); | ||
this.value = 0; | ||
index_runtime_js_1.proto3.util.initPartial(data, this); | ||
proto3_js_1.proto3.util.initPartial(data, this); | ||
} | ||
toJson(options) { | ||
return index_runtime_js_1.proto3.json.writeScalar(index_runtime_js_1.ScalarType.DOUBLE, this.value, true); | ||
return proto3_js_1.proto3.json.writeScalar(field_js_1.ScalarType.DOUBLE, this.value, true); | ||
} | ||
fromJson(json, options) { | ||
try { | ||
this.value = index_runtime_js_1.proto3.json.readScalar(index_runtime_js_1.ScalarType.DOUBLE, json); | ||
this.value = proto3_js_1.proto3.json.readScalar(field_js_1.ScalarType.DOUBLE, json); | ||
} | ||
@@ -65,9 +68,9 @@ catch (e) { | ||
static equals(a, b) { | ||
return index_runtime_js_1.proto3.util.equals(DoubleValue, a, b); | ||
return proto3_js_1.proto3.util.equals(DoubleValue, a, b); | ||
} | ||
} | ||
exports.DoubleValue = DoubleValue; | ||
DoubleValue.runtime = index_runtime_js_1.proto3; | ||
DoubleValue.runtime = proto3_js_1.proto3; | ||
DoubleValue.typeName = "google.protobuf.DoubleValue"; | ||
DoubleValue.fields = index_runtime_js_1.proto3.util.newFieldList(() => [ | ||
DoubleValue.fields = proto3_js_1.proto3.util.newFieldList(() => [ | ||
{ no: 1, name: "value", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ }, | ||
@@ -90,3 +93,3 @@ ]); | ||
*/ | ||
class FloatValue extends index_runtime_js_1.Message { | ||
class FloatValue extends message_js_1.Message { | ||
constructor(data) { | ||
@@ -100,10 +103,10 @@ super(); | ||
this.value = 0; | ||
index_runtime_js_1.proto3.util.initPartial(data, this); | ||
proto3_js_1.proto3.util.initPartial(data, this); | ||
} | ||
toJson(options) { | ||
return index_runtime_js_1.proto3.json.writeScalar(index_runtime_js_1.ScalarType.FLOAT, this.value, true); | ||
return proto3_js_1.proto3.json.writeScalar(field_js_1.ScalarType.FLOAT, this.value, true); | ||
} | ||
fromJson(json, options) { | ||
try { | ||
this.value = index_runtime_js_1.proto3.json.readScalar(index_runtime_js_1.ScalarType.FLOAT, json); | ||
this.value = proto3_js_1.proto3.json.readScalar(field_js_1.ScalarType.FLOAT, json); | ||
} | ||
@@ -129,9 +132,9 @@ catch (e) { | ||
static equals(a, b) { | ||
return index_runtime_js_1.proto3.util.equals(FloatValue, a, b); | ||
return proto3_js_1.proto3.util.equals(FloatValue, a, b); | ||
} | ||
} | ||
exports.FloatValue = FloatValue; | ||
FloatValue.runtime = index_runtime_js_1.proto3; | ||
FloatValue.runtime = proto3_js_1.proto3; | ||
FloatValue.typeName = "google.protobuf.FloatValue"; | ||
FloatValue.fields = index_runtime_js_1.proto3.util.newFieldList(() => [ | ||
FloatValue.fields = proto3_js_1.proto3.util.newFieldList(() => [ | ||
{ no: 1, name: "value", kind: "scalar", T: 2 /* ScalarType.FLOAT */ }, | ||
@@ -154,3 +157,3 @@ ]); | ||
*/ | ||
class Int64Value extends index_runtime_js_1.Message { | ||
class Int64Value extends message_js_1.Message { | ||
constructor(data) { | ||
@@ -163,11 +166,11 @@ super(); | ||
*/ | ||
this.value = index_runtime_js_1.protoInt64.zero; | ||
index_runtime_js_1.proto3.util.initPartial(data, this); | ||
this.value = proto_int64_js_1.protoInt64.zero; | ||
proto3_js_1.proto3.util.initPartial(data, this); | ||
} | ||
toJson(options) { | ||
return index_runtime_js_1.proto3.json.writeScalar(index_runtime_js_1.ScalarType.INT64, this.value, true); | ||
return proto3_js_1.proto3.json.writeScalar(field_js_1.ScalarType.INT64, this.value, true); | ||
} | ||
fromJson(json, options) { | ||
try { | ||
this.value = index_runtime_js_1.proto3.json.readScalar(index_runtime_js_1.ScalarType.INT64, json); | ||
this.value = proto3_js_1.proto3.json.readScalar(field_js_1.ScalarType.INT64, json); | ||
} | ||
@@ -193,9 +196,9 @@ catch (e) { | ||
static equals(a, b) { | ||
return index_runtime_js_1.proto3.util.equals(Int64Value, a, b); | ||
return proto3_js_1.proto3.util.equals(Int64Value, a, b); | ||
} | ||
} | ||
exports.Int64Value = Int64Value; | ||
Int64Value.runtime = index_runtime_js_1.proto3; | ||
Int64Value.runtime = proto3_js_1.proto3; | ||
Int64Value.typeName = "google.protobuf.Int64Value"; | ||
Int64Value.fields = index_runtime_js_1.proto3.util.newFieldList(() => [ | ||
Int64Value.fields = proto3_js_1.proto3.util.newFieldList(() => [ | ||
{ no: 1, name: "value", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, | ||
@@ -218,3 +221,3 @@ ]); | ||
*/ | ||
class UInt64Value extends index_runtime_js_1.Message { | ||
class UInt64Value extends message_js_1.Message { | ||
constructor(data) { | ||
@@ -227,11 +230,11 @@ super(); | ||
*/ | ||
this.value = index_runtime_js_1.protoInt64.zero; | ||
index_runtime_js_1.proto3.util.initPartial(data, this); | ||
this.value = proto_int64_js_1.protoInt64.zero; | ||
proto3_js_1.proto3.util.initPartial(data, this); | ||
} | ||
toJson(options) { | ||
return index_runtime_js_1.proto3.json.writeScalar(index_runtime_js_1.ScalarType.UINT64, this.value, true); | ||
return proto3_js_1.proto3.json.writeScalar(field_js_1.ScalarType.UINT64, this.value, true); | ||
} | ||
fromJson(json, options) { | ||
try { | ||
this.value = index_runtime_js_1.proto3.json.readScalar(index_runtime_js_1.ScalarType.UINT64, json); | ||
this.value = proto3_js_1.proto3.json.readScalar(field_js_1.ScalarType.UINT64, json); | ||
} | ||
@@ -257,9 +260,9 @@ catch (e) { | ||
static equals(a, b) { | ||
return index_runtime_js_1.proto3.util.equals(UInt64Value, a, b); | ||
return proto3_js_1.proto3.util.equals(UInt64Value, a, b); | ||
} | ||
} | ||
exports.UInt64Value = UInt64Value; | ||
UInt64Value.runtime = index_runtime_js_1.proto3; | ||
UInt64Value.runtime = proto3_js_1.proto3; | ||
UInt64Value.typeName = "google.protobuf.UInt64Value"; | ||
UInt64Value.fields = index_runtime_js_1.proto3.util.newFieldList(() => [ | ||
UInt64Value.fields = proto3_js_1.proto3.util.newFieldList(() => [ | ||
{ no: 1, name: "value", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, | ||
@@ -282,3 +285,3 @@ ]); | ||
*/ | ||
class Int32Value extends index_runtime_js_1.Message { | ||
class Int32Value extends message_js_1.Message { | ||
constructor(data) { | ||
@@ -292,10 +295,10 @@ super(); | ||
this.value = 0; | ||
index_runtime_js_1.proto3.util.initPartial(data, this); | ||
proto3_js_1.proto3.util.initPartial(data, this); | ||
} | ||
toJson(options) { | ||
return index_runtime_js_1.proto3.json.writeScalar(index_runtime_js_1.ScalarType.INT32, this.value, true); | ||
return proto3_js_1.proto3.json.writeScalar(field_js_1.ScalarType.INT32, this.value, true); | ||
} | ||
fromJson(json, options) { | ||
try { | ||
this.value = index_runtime_js_1.proto3.json.readScalar(index_runtime_js_1.ScalarType.INT32, json); | ||
this.value = proto3_js_1.proto3.json.readScalar(field_js_1.ScalarType.INT32, json); | ||
} | ||
@@ -321,9 +324,9 @@ catch (e) { | ||
static equals(a, b) { | ||
return index_runtime_js_1.proto3.util.equals(Int32Value, a, b); | ||
return proto3_js_1.proto3.util.equals(Int32Value, a, b); | ||
} | ||
} | ||
exports.Int32Value = Int32Value; | ||
Int32Value.runtime = index_runtime_js_1.proto3; | ||
Int32Value.runtime = proto3_js_1.proto3; | ||
Int32Value.typeName = "google.protobuf.Int32Value"; | ||
Int32Value.fields = index_runtime_js_1.proto3.util.newFieldList(() => [ | ||
Int32Value.fields = proto3_js_1.proto3.util.newFieldList(() => [ | ||
{ no: 1, name: "value", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, | ||
@@ -346,3 +349,3 @@ ]); | ||
*/ | ||
class UInt32Value extends index_runtime_js_1.Message { | ||
class UInt32Value extends message_js_1.Message { | ||
constructor(data) { | ||
@@ -356,10 +359,10 @@ super(); | ||
this.value = 0; | ||
index_runtime_js_1.proto3.util.initPartial(data, this); | ||
proto3_js_1.proto3.util.initPartial(data, this); | ||
} | ||
toJson(options) { | ||
return index_runtime_js_1.proto3.json.writeScalar(index_runtime_js_1.ScalarType.UINT32, this.value, true); | ||
return proto3_js_1.proto3.json.writeScalar(field_js_1.ScalarType.UINT32, this.value, true); | ||
} | ||
fromJson(json, options) { | ||
try { | ||
this.value = index_runtime_js_1.proto3.json.readScalar(index_runtime_js_1.ScalarType.UINT32, json); | ||
this.value = proto3_js_1.proto3.json.readScalar(field_js_1.ScalarType.UINT32, json); | ||
} | ||
@@ -385,9 +388,9 @@ catch (e) { | ||
static equals(a, b) { | ||
return index_runtime_js_1.proto3.util.equals(UInt32Value, a, b); | ||
return proto3_js_1.proto3.util.equals(UInt32Value, a, b); | ||
} | ||
} | ||
exports.UInt32Value = UInt32Value; | ||
UInt32Value.runtime = index_runtime_js_1.proto3; | ||
UInt32Value.runtime = proto3_js_1.proto3; | ||
UInt32Value.typeName = "google.protobuf.UInt32Value"; | ||
UInt32Value.fields = index_runtime_js_1.proto3.util.newFieldList(() => [ | ||
UInt32Value.fields = proto3_js_1.proto3.util.newFieldList(() => [ | ||
{ no: 1, name: "value", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, | ||
@@ -410,3 +413,3 @@ ]); | ||
*/ | ||
class BoolValue extends index_runtime_js_1.Message { | ||
class BoolValue extends message_js_1.Message { | ||
constructor(data) { | ||
@@ -420,10 +423,10 @@ super(); | ||
this.value = false; | ||
index_runtime_js_1.proto3.util.initPartial(data, this); | ||
proto3_js_1.proto3.util.initPartial(data, this); | ||
} | ||
toJson(options) { | ||
return index_runtime_js_1.proto3.json.writeScalar(index_runtime_js_1.ScalarType.BOOL, this.value, true); | ||
return proto3_js_1.proto3.json.writeScalar(field_js_1.ScalarType.BOOL, this.value, true); | ||
} | ||
fromJson(json, options) { | ||
try { | ||
this.value = index_runtime_js_1.proto3.json.readScalar(index_runtime_js_1.ScalarType.BOOL, json); | ||
this.value = proto3_js_1.proto3.json.readScalar(field_js_1.ScalarType.BOOL, json); | ||
} | ||
@@ -449,9 +452,9 @@ catch (e) { | ||
static equals(a, b) { | ||
return index_runtime_js_1.proto3.util.equals(BoolValue, a, b); | ||
return proto3_js_1.proto3.util.equals(BoolValue, a, b); | ||
} | ||
} | ||
exports.BoolValue = BoolValue; | ||
BoolValue.runtime = index_runtime_js_1.proto3; | ||
BoolValue.runtime = proto3_js_1.proto3; | ||
BoolValue.typeName = "google.protobuf.BoolValue"; | ||
BoolValue.fields = index_runtime_js_1.proto3.util.newFieldList(() => [ | ||
BoolValue.fields = proto3_js_1.proto3.util.newFieldList(() => [ | ||
{ no: 1, name: "value", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, | ||
@@ -474,3 +477,3 @@ ]); | ||
*/ | ||
class StringValue extends index_runtime_js_1.Message { | ||
class StringValue extends message_js_1.Message { | ||
constructor(data) { | ||
@@ -484,10 +487,10 @@ super(); | ||
this.value = ""; | ||
index_runtime_js_1.proto3.util.initPartial(data, this); | ||
proto3_js_1.proto3.util.initPartial(data, this); | ||
} | ||
toJson(options) { | ||
return index_runtime_js_1.proto3.json.writeScalar(index_runtime_js_1.ScalarType.STRING, this.value, true); | ||
return proto3_js_1.proto3.json.writeScalar(field_js_1.ScalarType.STRING, this.value, true); | ||
} | ||
fromJson(json, options) { | ||
try { | ||
this.value = index_runtime_js_1.proto3.json.readScalar(index_runtime_js_1.ScalarType.STRING, json); | ||
this.value = proto3_js_1.proto3.json.readScalar(field_js_1.ScalarType.STRING, json); | ||
} | ||
@@ -513,9 +516,9 @@ catch (e) { | ||
static equals(a, b) { | ||
return index_runtime_js_1.proto3.util.equals(StringValue, a, b); | ||
return proto3_js_1.proto3.util.equals(StringValue, a, b); | ||
} | ||
} | ||
exports.StringValue = StringValue; | ||
StringValue.runtime = index_runtime_js_1.proto3; | ||
StringValue.runtime = proto3_js_1.proto3; | ||
StringValue.typeName = "google.protobuf.StringValue"; | ||
StringValue.fields = index_runtime_js_1.proto3.util.newFieldList(() => [ | ||
StringValue.fields = proto3_js_1.proto3.util.newFieldList(() => [ | ||
{ no: 1, name: "value", kind: "scalar", T: 9 /* ScalarType.STRING */ }, | ||
@@ -538,3 +541,3 @@ ]); | ||
*/ | ||
class BytesValue extends index_runtime_js_1.Message { | ||
class BytesValue extends message_js_1.Message { | ||
constructor(data) { | ||
@@ -548,10 +551,10 @@ super(); | ||
this.value = new Uint8Array(0); | ||
index_runtime_js_1.proto3.util.initPartial(data, this); | ||
proto3_js_1.proto3.util.initPartial(data, this); | ||
} | ||
toJson(options) { | ||
return index_runtime_js_1.proto3.json.writeScalar(index_runtime_js_1.ScalarType.BYTES, this.value, true); | ||
return proto3_js_1.proto3.json.writeScalar(field_js_1.ScalarType.BYTES, this.value, true); | ||
} | ||
fromJson(json, options) { | ||
try { | ||
this.value = index_runtime_js_1.proto3.json.readScalar(index_runtime_js_1.ScalarType.BYTES, json); | ||
this.value = proto3_js_1.proto3.json.readScalar(field_js_1.ScalarType.BYTES, json); | ||
} | ||
@@ -577,9 +580,9 @@ catch (e) { | ||
static equals(a, b) { | ||
return index_runtime_js_1.proto3.util.equals(BytesValue, a, b); | ||
return proto3_js_1.proto3.util.equals(BytesValue, a, b); | ||
} | ||
} | ||
exports.BytesValue = BytesValue; | ||
BytesValue.runtime = index_runtime_js_1.proto3; | ||
BytesValue.runtime = proto3_js_1.proto3; | ||
BytesValue.typeName = "google.protobuf.BytesValue"; | ||
BytesValue.fields = index_runtime_js_1.proto3.util.newFieldList(() => [ | ||
BytesValue.fields = proto3_js_1.proto3.util.newFieldList(() => [ | ||
{ no: 1, name: "value", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, | ||
@@ -586,0 +589,0 @@ ]); |
@@ -30,5 +30,41 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
// To avoid circular imports when the wkt import from ./index.js, we | ||
// use a separate ./index-runtime.js | ||
__exportStar(require("./index-runtime.js"), exports); | ||
__exportStar(require("./index-wkt.js"), exports); | ||
exports.BinaryReader = exports.BinaryWriter = exports.WireType = exports.DescriptorSet = exports.DescriptorRegistry = exports.TypeRegistry = exports.MethodIdempotency = exports.MethodKind = exports.ScalarType = exports.Message = exports.protoBase64 = exports.protoInt64 = exports.proto2 = exports.proto3 = void 0; | ||
var proto3_js_1 = require("./proto3.js"); | ||
Object.defineProperty(exports, "proto3", { enumerable: true, get: function () { return proto3_js_1.proto3; } }); | ||
var proto2_js_1 = require("./proto2.js"); | ||
Object.defineProperty(exports, "proto2", { enumerable: true, get: function () { return proto2_js_1.proto2; } }); | ||
var proto_int64_js_1 = require("./proto-int64.js"); | ||
Object.defineProperty(exports, "protoInt64", { enumerable: true, get: function () { return proto_int64_js_1.protoInt64; } }); | ||
var proto_base64_js_1 = require("./proto-base64.js"); | ||
Object.defineProperty(exports, "protoBase64", { enumerable: true, get: function () { return proto_base64_js_1.protoBase64; } }); | ||
var message_js_1 = require("./message.js"); | ||
Object.defineProperty(exports, "Message", { enumerable: true, get: function () { return message_js_1.Message; } }); | ||
var field_js_1 = require("./field.js"); | ||
Object.defineProperty(exports, "ScalarType", { enumerable: true, get: function () { return field_js_1.ScalarType; } }); | ||
var service_type_js_1 = require("./service-type.js"); | ||
Object.defineProperty(exports, "MethodKind", { enumerable: true, get: function () { return service_type_js_1.MethodKind; } }); | ||
Object.defineProperty(exports, "MethodIdempotency", { enumerable: true, get: function () { return service_type_js_1.MethodIdempotency; } }); | ||
var type_registry_js_1 = require("./type-registry.js"); | ||
Object.defineProperty(exports, "TypeRegistry", { enumerable: true, get: function () { return type_registry_js_1.TypeRegistry; } }); | ||
var descriptor_registry_js_1 = require("./descriptor-registry.js"); | ||
Object.defineProperty(exports, "DescriptorRegistry", { enumerable: true, get: function () { return descriptor_registry_js_1.DescriptorRegistry; } }); | ||
var descriptor_set_js_1 = require("./descriptor-set.js"); | ||
Object.defineProperty(exports, "DescriptorSet", { enumerable: true, get: function () { return descriptor_set_js_1.DescriptorSet; } }); | ||
var binary_encoding_js_1 = require("./binary-encoding.js"); | ||
Object.defineProperty(exports, "WireType", { enumerable: true, get: function () { return binary_encoding_js_1.WireType; } }); | ||
Object.defineProperty(exports, "BinaryWriter", { enumerable: true, get: function () { return binary_encoding_js_1.BinaryWriter; } }); | ||
Object.defineProperty(exports, "BinaryReader", { enumerable: true, get: function () { return binary_encoding_js_1.BinaryReader; } }); | ||
var json_format_js_1 = require("./json-format.js"); | ||
// ideally, we would export these types with sub-path exports: | ||
__exportStar(require("./google/protobuf/compiler/plugin_pb.js"), exports); | ||
__exportStar(require("./google/protobuf/api_pb.js"), exports); | ||
__exportStar(require("./google/protobuf/any_pb.js"), exports); | ||
__exportStar(require("./google/protobuf/descriptor_pb.js"), exports); | ||
__exportStar(require("./google/protobuf/duration_pb.js"), exports); | ||
__exportStar(require("./google/protobuf/empty_pb.js"), exports); | ||
__exportStar(require("./google/protobuf/field_mask_pb.js"), exports); | ||
__exportStar(require("./google/protobuf/source_context_pb.js"), exports); | ||
__exportStar(require("./google/protobuf/struct_pb.js"), exports); | ||
__exportStar(require("./google/protobuf/timestamp_pb.js"), exports); | ||
__exportStar(require("./google/protobuf/type_pb.js"), exports); | ||
__exportStar(require("./google/protobuf/wrappers_pb.js"), exports); |
@@ -14,3 +14,4 @@ // Copyright 2021-2022 Buf Technologies, Inc. | ||
// limitations under the License. | ||
import { Message, proto3 } from "../../index-runtime.js"; | ||
import { Message } from "../../message.js"; | ||
import { proto3 } from "../../proto3.js"; | ||
/** | ||
@@ -17,0 +18,0 @@ * `Any` contains an arbitrary serialized protocol buffer message along with a |
@@ -14,5 +14,6 @@ // Copyright 2021-2022 Buf Technologies, Inc. | ||
// limitations under the License. | ||
import { Message, proto3 } from "../../index-runtime.js"; | ||
import { Message } from "../../message.js"; | ||
import { Option, Syntax } from "./type_pb.js"; | ||
import { SourceContext } from "./source_context_pb.js"; | ||
import { proto3 } from "../../proto3.js"; | ||
/** | ||
@@ -19,0 +20,0 @@ * Api is a light-weight descriptor for an API Interface. |
@@ -14,3 +14,4 @@ // Copyright 2021-2022 Buf Technologies, Inc. | ||
// limitations under the License. | ||
import { Message, proto2 } from "../../../index-runtime.js"; | ||
import { Message } from "../../../message.js"; | ||
import { proto2 } from "../../../proto2.js"; | ||
import { FileDescriptorProto, GeneratedCodeInfo } from "../descriptor_pb.js"; | ||
@@ -17,0 +18,0 @@ /** |
@@ -14,3 +14,4 @@ // Copyright 2021-2022 Buf Technologies, Inc. | ||
// limitations under the License. | ||
import { Message, proto2 } from "../../index-runtime.js"; | ||
import { Message } from "../../message.js"; | ||
import { proto2 } from "../../proto2.js"; | ||
/** | ||
@@ -17,0 +18,0 @@ * The protocol compiler can output a FileDescriptorSet containing the .proto |
@@ -14,3 +14,5 @@ // Copyright 2021-2022 Buf Technologies, Inc. | ||
// limitations under the License. | ||
import { Message, proto3, protoInt64 } from "../../index-runtime.js"; | ||
import { Message } from "../../message.js"; | ||
import { protoInt64 } from "../../proto-int64.js"; | ||
import { proto3 } from "../../proto3.js"; | ||
/** | ||
@@ -17,0 +19,0 @@ * A Duration represents a signed, fixed-length span of time represented |
@@ -14,3 +14,4 @@ // Copyright 2021-2022 Buf Technologies, Inc. | ||
// limitations under the License. | ||
import { Message, proto3 } from "../../index-runtime.js"; | ||
import { Message } from "../../message.js"; | ||
import { proto3 } from "../../proto3.js"; | ||
/** | ||
@@ -17,0 +18,0 @@ * A generic empty message that you can re-use to avoid defining duplicated |
@@ -14,3 +14,4 @@ // Copyright 2021-2022 Buf Technologies, Inc. | ||
// limitations under the License. | ||
import { Message, proto3 } from "../../index-runtime.js"; | ||
import { Message } from "../../message.js"; | ||
import { proto3 } from "../../proto3.js"; | ||
/** | ||
@@ -17,0 +18,0 @@ * `FieldMask` represents a set of symbolic field paths, for example: |
@@ -14,3 +14,4 @@ // Copyright 2021-2022 Buf Technologies, Inc. | ||
// limitations under the License. | ||
import { Message, proto3 } from "../../index-runtime.js"; | ||
import { Message } from "../../message.js"; | ||
import { proto3 } from "../../proto3.js"; | ||
/** | ||
@@ -17,0 +18,0 @@ * `SourceContext` represents information about the source of a |
@@ -14,3 +14,7 @@ // Copyright 2021-2022 Buf Technologies, Inc. | ||
// limitations under the License. | ||
import { Message, proto3 } from "../../index-runtime.js"; | ||
// @generated by protoc-gen-es v0.0.6 with parameter "bootstrap_wkt=true,ts_nocheck=false,target=ts" | ||
// @generated from file google/protobuf/struct.proto (package google.protobuf, syntax proto3) | ||
/* eslint-disable */ | ||
import { proto3 } from "../../proto3.js"; | ||
import { Message } from "../../message.js"; | ||
/** | ||
@@ -17,0 +21,0 @@ * `NullValue` is a singleton enumeration to represent the null value for the |
@@ -14,3 +14,5 @@ // Copyright 2021-2022 Buf Technologies, Inc. | ||
// limitations under the License. | ||
import { Message, proto3, protoInt64 } from "../../index-runtime.js"; | ||
import { Message } from "../../message.js"; | ||
import { protoInt64 } from "../../proto-int64.js"; | ||
import { proto3 } from "../../proto3.js"; | ||
/** | ||
@@ -17,0 +19,0 @@ * A Timestamp represents a point in time independent of any time zone or local |
@@ -14,3 +14,7 @@ // Copyright 2021-2022 Buf Technologies, Inc. | ||
// limitations under the License. | ||
import { Message, proto3 } from "../../index-runtime.js"; | ||
// @generated by protoc-gen-es v0.0.6 with parameter "bootstrap_wkt=true,ts_nocheck=false,target=ts" | ||
// @generated from file google/protobuf/type.proto (package google.protobuf, syntax proto3) | ||
/* eslint-disable */ | ||
import { proto3 } from "../../proto3.js"; | ||
import { Message } from "../../message.js"; | ||
import { SourceContext } from "./source_context_pb.js"; | ||
@@ -17,0 +21,0 @@ import { Any } from "./any_pb.js"; |
@@ -14,3 +14,6 @@ // Copyright 2021-2022 Buf Technologies, Inc. | ||
// limitations under the License. | ||
import { Message, ScalarType, proto3, protoInt64 } from "../../index-runtime.js"; | ||
import { Message } from "../../message.js"; | ||
import { proto3 } from "../../proto3.js"; | ||
import { ScalarType } from "../../field.js"; | ||
import { protoInt64 } from "../../proto-int64.js"; | ||
/** | ||
@@ -17,0 +20,0 @@ * Wrapper message for `double`. |
@@ -14,5 +14,26 @@ // Copyright 2021-2022 Buf Technologies, Inc. | ||
// limitations under the License. | ||
// To avoid circular imports when the wkt import from ./index.js, we | ||
// use a separate ./index-runtime.js | ||
export * from "./index-runtime.js"; | ||
export * from "./index-wkt.js"; | ||
export { proto3 } from "./proto3.js"; | ||
export { proto2 } from "./proto2.js"; | ||
export { protoInt64 } from "./proto-int64.js"; | ||
export { protoBase64 } from "./proto-base64.js"; | ||
export { Message, } from "./message.js"; | ||
export { ScalarType } from "./field.js"; | ||
export { MethodKind, MethodIdempotency } from "./service-type.js"; | ||
export { TypeRegistry } from "./type-registry.js"; | ||
export { DescriptorRegistry } from "./descriptor-registry.js"; | ||
export { DescriptorSet } from "./descriptor-set.js"; | ||
export { WireType, BinaryWriter, BinaryReader } from "./binary-encoding.js"; | ||
export {} from "./json-format.js"; | ||
// ideally, we would export these types with sub-path exports: | ||
export * from "./google/protobuf/compiler/plugin_pb.js"; | ||
export * from "./google/protobuf/api_pb.js"; | ||
export * from "./google/protobuf/any_pb.js"; | ||
export * from "./google/protobuf/descriptor_pb.js"; | ||
export * from "./google/protobuf/duration_pb.js"; | ||
export * from "./google/protobuf/empty_pb.js"; | ||
export * from "./google/protobuf/field_mask_pb.js"; | ||
export * from "./google/protobuf/source_context_pb.js"; | ||
export * from "./google/protobuf/struct_pb.js"; | ||
export * from "./google/protobuf/timestamp_pb.js"; | ||
export * from "./google/protobuf/type_pb.js"; | ||
export * from "./google/protobuf/wrappers_pb.js"; |
@@ -1,3 +0,7 @@ | ||
import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, JsonWriteOptions, MessageType, PartialMessage, PlainMessage } from "../../index-runtime.js"; | ||
import { Message } from "../../index-runtime.js"; | ||
import type { PartialMessage, PlainMessage } from "../../message.js"; | ||
import { Message } from "../../message.js"; | ||
import type { JsonReadOptions, JsonValue, JsonWriteOptions } from "../../json-format.js"; | ||
import type { MessageType } from "../../message-type.js"; | ||
import type { FieldList } from "../../field-list.js"; | ||
import type { BinaryReadOptions } from "../../binary-format.js"; | ||
/** | ||
@@ -4,0 +8,0 @@ * `Any` contains an arbitrary serialized protocol buffer message along with a |
@@ -1,5 +0,8 @@ | ||
import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "../../index-runtime.js"; | ||
import { Message } from "../../index-runtime.js"; | ||
import type { PartialMessage, PlainMessage } from "../../message.js"; | ||
import { Message } from "../../message.js"; | ||
import { Option, Syntax } from "./type_pb.js"; | ||
import { SourceContext } from "./source_context_pb.js"; | ||
import type { FieldList } from "../../field-list.js"; | ||
import type { BinaryReadOptions } from "../../binary-format.js"; | ||
import type { JsonReadOptions, JsonValue } from "../../json-format.js"; | ||
/** | ||
@@ -6,0 +9,0 @@ * Api is a light-weight descriptor for an API Interface. |
@@ -1,3 +0,6 @@ | ||
import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "../../../index-runtime.js"; | ||
import { Message } from "../../../index-runtime.js"; | ||
import type { PartialMessage, PlainMessage } from "../../../message.js"; | ||
import { Message } from "../../../message.js"; | ||
import type { FieldList } from "../../../field-list.js"; | ||
import type { BinaryReadOptions } from "../../../binary-format.js"; | ||
import type { JsonReadOptions, JsonValue } from "../../../json-format.js"; | ||
import { FileDescriptorProto, GeneratedCodeInfo } from "../descriptor_pb.js"; | ||
@@ -4,0 +7,0 @@ /** |
@@ -1,3 +0,6 @@ | ||
import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, JsonWriteOptions, PartialMessage, PlainMessage } from "../../index-runtime.js"; | ||
import { Message } from "../../index-runtime.js"; | ||
import type { PartialMessage, PlainMessage } from "../../message.js"; | ||
import { Message } from "../../message.js"; | ||
import type { JsonReadOptions, JsonValue, JsonWriteOptions } from "../../json-format.js"; | ||
import type { FieldList } from "../../field-list.js"; | ||
import type { BinaryReadOptions } from "../../binary-format.js"; | ||
/** | ||
@@ -4,0 +7,0 @@ * A Duration represents a signed, fixed-length span of time represented |
@@ -1,3 +0,6 @@ | ||
import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "../../index-runtime.js"; | ||
import { Message } from "../../index-runtime.js"; | ||
import type { PartialMessage, PlainMessage } from "../../message.js"; | ||
import { Message } from "../../message.js"; | ||
import type { FieldList } from "../../field-list.js"; | ||
import type { BinaryReadOptions } from "../../binary-format.js"; | ||
import type { JsonReadOptions, JsonValue } from "../../json-format.js"; | ||
/** | ||
@@ -4,0 +7,0 @@ * A generic empty message that you can re-use to avoid defining duplicated |
@@ -1,3 +0,6 @@ | ||
import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, JsonWriteOptions, PartialMessage, PlainMessage } from "../../index-runtime.js"; | ||
import { Message } from "../../index-runtime.js"; | ||
import type { PartialMessage, PlainMessage } from "../../message.js"; | ||
import { Message } from "../../message.js"; | ||
import type { JsonReadOptions, JsonValue, JsonWriteOptions } from "../../json-format.js"; | ||
import type { FieldList } from "../../field-list.js"; | ||
import type { BinaryReadOptions } from "../../binary-format.js"; | ||
/** | ||
@@ -4,0 +7,0 @@ * `FieldMask` represents a set of symbolic field paths, for example: |
@@ -1,3 +0,6 @@ | ||
import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "../../index-runtime.js"; | ||
import { Message } from "../../index-runtime.js"; | ||
import type { PartialMessage, PlainMessage } from "../../message.js"; | ||
import { Message } from "../../message.js"; | ||
import type { FieldList } from "../../field-list.js"; | ||
import type { BinaryReadOptions } from "../../binary-format.js"; | ||
import type { JsonReadOptions, JsonValue } from "../../json-format.js"; | ||
/** | ||
@@ -4,0 +7,0 @@ * `SourceContext` represents information about the source of a |
@@ -1,3 +0,6 @@ | ||
import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, JsonWriteOptions, PartialMessage, PlainMessage } from "../../index-runtime.js"; | ||
import { Message } from "../../index-runtime.js"; | ||
import type { PartialMessage, PlainMessage } from "../../message.js"; | ||
import { Message } from "../../message.js"; | ||
import type { JsonReadOptions, JsonValue, JsonWriteOptions } from "../../json-format.js"; | ||
import type { FieldList } from "../../field-list.js"; | ||
import type { BinaryReadOptions } from "../../binary-format.js"; | ||
/** | ||
@@ -4,0 +7,0 @@ * `NullValue` is a singleton enumeration to represent the null value for the |
@@ -1,3 +0,6 @@ | ||
import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, JsonWriteOptions, PartialMessage, PlainMessage } from "../../index-runtime.js"; | ||
import { Message } from "../../index-runtime.js"; | ||
import type { PartialMessage, PlainMessage } from "../../message.js"; | ||
import { Message } from "../../message.js"; | ||
import type { JsonReadOptions, JsonValue, JsonWriteOptions } from "../../json-format.js"; | ||
import type { FieldList } from "../../field-list.js"; | ||
import type { BinaryReadOptions } from "../../binary-format.js"; | ||
/** | ||
@@ -4,0 +7,0 @@ * A Timestamp represents a point in time independent of any time zone or local |
@@ -1,4 +0,7 @@ | ||
import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "../../index-runtime.js"; | ||
import { Message } from "../../index-runtime.js"; | ||
import type { PartialMessage, PlainMessage } from "../../message.js"; | ||
import { Message } from "../../message.js"; | ||
import { SourceContext } from "./source_context_pb.js"; | ||
import type { FieldList } from "../../field-list.js"; | ||
import type { BinaryReadOptions } from "../../binary-format.js"; | ||
import type { JsonReadOptions, JsonValue } from "../../json-format.js"; | ||
import { Any } from "./any_pb.js"; | ||
@@ -5,0 +8,0 @@ /** |
@@ -1,3 +0,6 @@ | ||
import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, JsonWriteOptions, PartialMessage, PlainMessage } from "../../index-runtime.js"; | ||
import { Message } from "../../index-runtime.js"; | ||
import type { PartialMessage, PlainMessage } from "../../message.js"; | ||
import { Message } from "../../message.js"; | ||
import type { JsonReadOptions, JsonValue, JsonWriteOptions } from "../../json-format.js"; | ||
import type { FieldList } from "../../field-list.js"; | ||
import type { BinaryReadOptions } from "../../binary-format.js"; | ||
/** | ||
@@ -4,0 +7,0 @@ * Wrapper message for `double`. |
@@ -1,2 +0,31 @@ | ||
export * from "./index-runtime.js"; | ||
export * from "./index-wkt.js"; | ||
export { proto3 } from "./proto3.js"; | ||
export { proto2 } from "./proto2.js"; | ||
export { protoInt64 } from "./proto-int64.js"; | ||
export { protoBase64 } from "./proto-base64.js"; | ||
export { Message, AnyMessage, PartialMessage, PlainMessage, } from "./message.js"; | ||
export type { FieldInfo } from "./field.js"; | ||
export type { FieldList } from "./field-list.js"; | ||
export { ScalarType } from "./field.js"; | ||
export type { MessageType } from "./message-type.js"; | ||
export type { EnumType, EnumValueInfo } from "./enum.js"; | ||
export type { ServiceType, MethodInfo, MethodInfoUnary, MethodInfoServerStreaming, MethodInfoClientStreaming, MethodInfoBiDiStreaming, } from "./service-type.js"; | ||
export { MethodKind, MethodIdempotency } from "./service-type.js"; | ||
export { TypeRegistry, IMessageTypeRegistry } from "./type-registry.js"; | ||
export { DescriptorRegistry } from "./descriptor-registry.js"; | ||
export { DescriptorSet } from "./descriptor-set.js"; | ||
export { WireType, BinaryWriter, BinaryReader } from "./binary-encoding.js"; | ||
export type { IBinaryReader, IBinaryWriter } from "./binary-encoding.js"; | ||
export type { BinaryFormat, BinaryWriteOptions, BinaryReadOptions, } from "./binary-format.js"; | ||
export { JsonFormat, JsonObject, JsonValue, JsonReadOptions, JsonWriteOptions, JsonWriteStringOptions, } from "./json-format.js"; | ||
export * from "./google/protobuf/compiler/plugin_pb.js"; | ||
export * from "./google/protobuf/api_pb.js"; | ||
export * from "./google/protobuf/any_pb.js"; | ||
export * from "./google/protobuf/descriptor_pb.js"; | ||
export * from "./google/protobuf/duration_pb.js"; | ||
export * from "./google/protobuf/empty_pb.js"; | ||
export * from "./google/protobuf/field_mask_pb.js"; | ||
export * from "./google/protobuf/source_context_pb.js"; | ||
export * from "./google/protobuf/struct_pb.js"; | ||
export * from "./google/protobuf/timestamp_pb.js"; | ||
export * from "./google/protobuf/type_pb.js"; | ||
export * from "./google/protobuf/wrappers_pb.js"; |
{ | ||
"name": "@bufbuild/protobuf", | ||
"version": "0.0.5", | ||
"version": "0.0.6", | ||
"license": "(Apache-2.0 AND BSD-3-Clause)", | ||
@@ -5,0 +5,0 @@ "description": "A complete implementation of protocol buffers in TypeScript, suitable for web browsers and Node.js.", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
23155
903006
147