|
| 1 | +/* eslint-disable */ |
| 2 | +import * as Long from "long"; |
| 3 | +import * as _m0 from "protobufjs/minimal"; |
| 4 | + |
| 5 | +export const protobufPackage = "google.protobuf"; |
| 6 | + |
| 7 | +/** |
| 8 | + * Wrapper message for `double`. |
| 9 | + * |
| 10 | + * The JSON representation for `DoubleValue` is JSON number. |
| 11 | + */ |
| 12 | +export interface DoubleValue { |
| 13 | + /** The double value. */ |
| 14 | + value: number; |
| 15 | +} |
| 16 | + |
| 17 | +/** |
| 18 | + * Wrapper message for `float`. |
| 19 | + * |
| 20 | + * The JSON representation for `FloatValue` is JSON number. |
| 21 | + */ |
| 22 | +export interface FloatValue { |
| 23 | + /** The float value. */ |
| 24 | + value: number; |
| 25 | +} |
| 26 | + |
| 27 | +/** |
| 28 | + * Wrapper message for `int64`. |
| 29 | + * |
| 30 | + * The JSON representation for `Int64Value` is JSON string. |
| 31 | + */ |
| 32 | +export interface Int64Value { |
| 33 | + /** The int64 value. */ |
| 34 | + value: number; |
| 35 | +} |
| 36 | + |
| 37 | +/** |
| 38 | + * Wrapper message for `uint64`. |
| 39 | + * |
| 40 | + * The JSON representation for `UInt64Value` is JSON string. |
| 41 | + */ |
| 42 | +export interface UInt64Value { |
| 43 | + /** The uint64 value. */ |
| 44 | + value: number; |
| 45 | +} |
| 46 | + |
| 47 | +/** |
| 48 | + * Wrapper message for `int32`. |
| 49 | + * |
| 50 | + * The JSON representation for `Int32Value` is JSON number. |
| 51 | + */ |
| 52 | +export interface Int32Value { |
| 53 | + /** The int32 value. */ |
| 54 | + value: number; |
| 55 | +} |
| 56 | + |
| 57 | +/** |
| 58 | + * Wrapper message for `uint32`. |
| 59 | + * |
| 60 | + * The JSON representation for `UInt32Value` is JSON number. |
| 61 | + */ |
| 62 | +export interface UInt32Value { |
| 63 | + /** The uint32 value. */ |
| 64 | + value: number; |
| 65 | +} |
| 66 | + |
| 67 | +/** |
| 68 | + * Wrapper message for `bool`. |
| 69 | + * |
| 70 | + * The JSON representation for `BoolValue` is JSON `true` and `false`. |
| 71 | + */ |
| 72 | +export interface BoolValue { |
| 73 | + /** The bool value. */ |
| 74 | + value: boolean; |
| 75 | +} |
| 76 | + |
| 77 | +/** |
| 78 | + * Wrapper message for `string`. |
| 79 | + * |
| 80 | + * The JSON representation for `StringValue` is JSON string. |
| 81 | + */ |
| 82 | +export interface StringValue { |
| 83 | + /** The string value. */ |
| 84 | + value: string; |
| 85 | +} |
| 86 | + |
| 87 | +/** |
| 88 | + * Wrapper message for `bytes`. |
| 89 | + * |
| 90 | + * The JSON representation for `BytesValue` is JSON string. |
| 91 | + */ |
| 92 | +export interface BytesValue { |
| 93 | + /** The bytes value. */ |
| 94 | + value: Uint8Array; |
| 95 | +} |
| 96 | + |
| 97 | +function createBaseDoubleValue(): DoubleValue { |
| 98 | + return { value: 0 }; |
| 99 | +} |
| 100 | + |
| 101 | +export const DoubleValue = { |
| 102 | + decode(input: _m0.Reader | Uint8Array, length?: number): DoubleValue { |
| 103 | + const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); |
| 104 | + let end = length === undefined ? reader.len : reader.pos + length; |
| 105 | + const message = createBaseDoubleValue(); |
| 106 | + while (reader.pos < end) { |
| 107 | + const tag = reader.uint32(); |
| 108 | + switch (tag >>> 3) { |
| 109 | + case 1: |
| 110 | + message.value = reader.double(); |
| 111 | + break; |
| 112 | + default: |
| 113 | + reader.skipType(tag & 7); |
| 114 | + break; |
| 115 | + } |
| 116 | + } |
| 117 | + return message; |
| 118 | + }, |
| 119 | +}; |
| 120 | + |
| 121 | +function createBaseFloatValue(): FloatValue { |
| 122 | + return { value: 0 }; |
| 123 | +} |
| 124 | + |
| 125 | +export const FloatValue = { |
| 126 | + decode(input: _m0.Reader | Uint8Array, length?: number): FloatValue { |
| 127 | + const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); |
| 128 | + let end = length === undefined ? reader.len : reader.pos + length; |
| 129 | + const message = createBaseFloatValue(); |
| 130 | + while (reader.pos < end) { |
| 131 | + const tag = reader.uint32(); |
| 132 | + switch (tag >>> 3) { |
| 133 | + case 1: |
| 134 | + message.value = reader.float(); |
| 135 | + break; |
| 136 | + default: |
| 137 | + reader.skipType(tag & 7); |
| 138 | + break; |
| 139 | + } |
| 140 | + } |
| 141 | + return message; |
| 142 | + }, |
| 143 | +}; |
| 144 | + |
| 145 | +function createBaseInt64Value(): Int64Value { |
| 146 | + return { value: 0 }; |
| 147 | +} |
| 148 | + |
| 149 | +export const Int64Value = { |
| 150 | + decode(input: _m0.Reader | Uint8Array, length?: number): Int64Value { |
| 151 | + const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); |
| 152 | + let end = length === undefined ? reader.len : reader.pos + length; |
| 153 | + const message = createBaseInt64Value(); |
| 154 | + while (reader.pos < end) { |
| 155 | + const tag = reader.uint32(); |
| 156 | + switch (tag >>> 3) { |
| 157 | + case 1: |
| 158 | + message.value = longToNumber(reader.int64() as Long); |
| 159 | + break; |
| 160 | + default: |
| 161 | + reader.skipType(tag & 7); |
| 162 | + break; |
| 163 | + } |
| 164 | + } |
| 165 | + return message; |
| 166 | + }, |
| 167 | +}; |
| 168 | + |
| 169 | +function createBaseUInt64Value(): UInt64Value { |
| 170 | + return { value: 0 }; |
| 171 | +} |
| 172 | + |
| 173 | +export const UInt64Value = { |
| 174 | + decode(input: _m0.Reader | Uint8Array, length?: number): UInt64Value { |
| 175 | + const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); |
| 176 | + let end = length === undefined ? reader.len : reader.pos + length; |
| 177 | + const message = createBaseUInt64Value(); |
| 178 | + while (reader.pos < end) { |
| 179 | + const tag = reader.uint32(); |
| 180 | + switch (tag >>> 3) { |
| 181 | + case 1: |
| 182 | + message.value = longToNumber(reader.uint64() as Long); |
| 183 | + break; |
| 184 | + default: |
| 185 | + reader.skipType(tag & 7); |
| 186 | + break; |
| 187 | + } |
| 188 | + } |
| 189 | + return message; |
| 190 | + }, |
| 191 | +}; |
| 192 | + |
| 193 | +function createBaseInt32Value(): Int32Value { |
| 194 | + return { value: 0 }; |
| 195 | +} |
| 196 | + |
| 197 | +export const Int32Value = { |
| 198 | + decode(input: _m0.Reader | Uint8Array, length?: number): Int32Value { |
| 199 | + const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); |
| 200 | + let end = length === undefined ? reader.len : reader.pos + length; |
| 201 | + const message = createBaseInt32Value(); |
| 202 | + while (reader.pos < end) { |
| 203 | + const tag = reader.uint32(); |
| 204 | + switch (tag >>> 3) { |
| 205 | + case 1: |
| 206 | + message.value = reader.int32(); |
| 207 | + break; |
| 208 | + default: |
| 209 | + reader.skipType(tag & 7); |
| 210 | + break; |
| 211 | + } |
| 212 | + } |
| 213 | + return message; |
| 214 | + }, |
| 215 | +}; |
| 216 | + |
| 217 | +function createBaseUInt32Value(): UInt32Value { |
| 218 | + return { value: 0 }; |
| 219 | +} |
| 220 | + |
| 221 | +export const UInt32Value = { |
| 222 | + decode(input: _m0.Reader | Uint8Array, length?: number): UInt32Value { |
| 223 | + const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); |
| 224 | + let end = length === undefined ? reader.len : reader.pos + length; |
| 225 | + const message = createBaseUInt32Value(); |
| 226 | + while (reader.pos < end) { |
| 227 | + const tag = reader.uint32(); |
| 228 | + switch (tag >>> 3) { |
| 229 | + case 1: |
| 230 | + message.value = reader.uint32(); |
| 231 | + break; |
| 232 | + default: |
| 233 | + reader.skipType(tag & 7); |
| 234 | + break; |
| 235 | + } |
| 236 | + } |
| 237 | + return message; |
| 238 | + }, |
| 239 | +}; |
| 240 | + |
| 241 | +function createBaseBoolValue(): BoolValue { |
| 242 | + return { value: false }; |
| 243 | +} |
| 244 | + |
| 245 | +export const BoolValue = { |
| 246 | + decode(input: _m0.Reader | Uint8Array, length?: number): BoolValue { |
| 247 | + const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); |
| 248 | + let end = length === undefined ? reader.len : reader.pos + length; |
| 249 | + const message = createBaseBoolValue(); |
| 250 | + while (reader.pos < end) { |
| 251 | + const tag = reader.uint32(); |
| 252 | + switch (tag >>> 3) { |
| 253 | + case 1: |
| 254 | + message.value = reader.bool(); |
| 255 | + break; |
| 256 | + default: |
| 257 | + reader.skipType(tag & 7); |
| 258 | + break; |
| 259 | + } |
| 260 | + } |
| 261 | + return message; |
| 262 | + }, |
| 263 | +}; |
| 264 | + |
| 265 | +function createBaseStringValue(): StringValue { |
| 266 | + return { value: "" }; |
| 267 | +} |
| 268 | + |
| 269 | +export const StringValue = { |
| 270 | + decode(input: _m0.Reader | Uint8Array, length?: number): StringValue { |
| 271 | + const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); |
| 272 | + let end = length === undefined ? reader.len : reader.pos + length; |
| 273 | + const message = createBaseStringValue(); |
| 274 | + while (reader.pos < end) { |
| 275 | + const tag = reader.uint32(); |
| 276 | + switch (tag >>> 3) { |
| 277 | + case 1: |
| 278 | + message.value = reader.string(); |
| 279 | + break; |
| 280 | + default: |
| 281 | + reader.skipType(tag & 7); |
| 282 | + break; |
| 283 | + } |
| 284 | + } |
| 285 | + return message; |
| 286 | + }, |
| 287 | +}; |
| 288 | + |
| 289 | +function createBaseBytesValue(): BytesValue { |
| 290 | + return { value: new Uint8Array() }; |
| 291 | +} |
| 292 | + |
| 293 | +export const BytesValue = { |
| 294 | + decode(input: _m0.Reader | Uint8Array, length?: number): BytesValue { |
| 295 | + const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); |
| 296 | + let end = length === undefined ? reader.len : reader.pos + length; |
| 297 | + const message = createBaseBytesValue(); |
| 298 | + while (reader.pos < end) { |
| 299 | + const tag = reader.uint32(); |
| 300 | + switch (tag >>> 3) { |
| 301 | + case 1: |
| 302 | + message.value = reader.bytes(); |
| 303 | + break; |
| 304 | + default: |
| 305 | + reader.skipType(tag & 7); |
| 306 | + break; |
| 307 | + } |
| 308 | + } |
| 309 | + return message; |
| 310 | + }, |
| 311 | +}; |
| 312 | + |
| 313 | +declare var self: any | undefined; |
| 314 | +declare var window: any | undefined; |
| 315 | +declare var global: any | undefined; |
| 316 | +var tsProtoGlobalThis: any = (() => { |
| 317 | + if (typeof globalThis !== "undefined") { |
| 318 | + return globalThis; |
| 319 | + } |
| 320 | + if (typeof self !== "undefined") { |
| 321 | + return self; |
| 322 | + } |
| 323 | + if (typeof window !== "undefined") { |
| 324 | + return window; |
| 325 | + } |
| 326 | + if (typeof global !== "undefined") { |
| 327 | + return global; |
| 328 | + } |
| 329 | + throw "Unable to locate global object"; |
| 330 | +})(); |
| 331 | + |
| 332 | +function longToNumber(long: Long): number { |
| 333 | + if (long.gt(Number.MAX_SAFE_INTEGER)) { |
| 334 | + throw new tsProtoGlobalThis.Error("Value is larger than Number.MAX_SAFE_INTEGER"); |
| 335 | + } |
| 336 | + return long.toNumber(); |
| 337 | +} |
| 338 | + |
| 339 | +// If you get a compile-error about 'Constructor<Long> and ... have no overlap', |
| 340 | +// add '--ts_proto_opt=esModuleInterop=true' as a flag when calling 'protoc'. |
| 341 | +if (_m0.util.Long !== Long) { |
| 342 | + _m0.util.Long = Long as any; |
| 343 | + _m0.configure(); |
| 344 | +} |
0 commit comments