UNPKG

@digitalasset/daml-ledger

Version:
486 lines (362 loc) 14.8 kB
// package: com.daml.ledger.api.v1 // file: com/daml/ledger/api/v1/value.proto /* tslint:disable */ /* eslint-disable */ import * as jspb from "google-protobuf"; import * as google_protobuf_empty_pb from "google-protobuf/google/protobuf/empty_pb"; import * as google_protobuf_timestamp_pb from "google-protobuf/google/protobuf/timestamp_pb"; import * as google_protobuf_duration_pb from "google-protobuf/google/protobuf/duration_pb"; export class Value extends jspb.Message { hasRecord(): boolean; clearRecord(): void; getRecord(): Record | undefined; setRecord(value?: Record): Value; hasVariant(): boolean; clearVariant(): void; getVariant(): Variant | undefined; setVariant(value?: Variant): Value; hasContractId(): boolean; clearContractId(): void; getContractId(): string; setContractId(value: string): Value; hasList(): boolean; clearList(): void; getList(): List | undefined; setList(value?: List): Value; hasInt64(): boolean; clearInt64(): void; getInt64(): string; setInt64(value: string): Value; hasNumeric(): boolean; clearNumeric(): void; getNumeric(): string; setNumeric(value: string): Value; hasText(): boolean; clearText(): void; getText(): string; setText(value: string): Value; hasTimestamp(): boolean; clearTimestamp(): void; getTimestamp(): string; setTimestamp(value: string): Value; hasParty(): boolean; clearParty(): void; getParty(): string; setParty(value: string): Value; hasBool(): boolean; clearBool(): void; getBool(): boolean; setBool(value: boolean): Value; hasUnit(): boolean; clearUnit(): void; getUnit(): google_protobuf_empty_pb.Empty | undefined; setUnit(value?: google_protobuf_empty_pb.Empty): Value; hasDate(): boolean; clearDate(): void; getDate(): number; setDate(value: number): Value; hasOptional(): boolean; clearOptional(): void; getOptional(): Optional | undefined; setOptional(value?: Optional): Value; hasMap(): boolean; clearMap(): void; getMap(): Map | undefined; setMap(value?: Map): Value; hasEnum(): boolean; clearEnum(): void; getEnum(): Enum | undefined; setEnum(value?: Enum): Value; hasGenMap(): boolean; clearGenMap(): void; getGenMap(): GenMap | undefined; setGenMap(value?: GenMap): Value; getSumCase(): Value.SumCase; serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): Value.AsObject; static toObject(includeInstance: boolean, msg: Value): Value.AsObject; static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>}; static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>}; static serializeBinaryToWriter(message: Value, writer: jspb.BinaryWriter): void; static deserializeBinary(bytes: Uint8Array): Value; static deserializeBinaryFromReader(message: Value, reader: jspb.BinaryReader): Value; } export namespace Value { export type AsObject = { record?: Record.AsObject, variant?: Variant.AsObject, contractId: string, list?: List.AsObject, int64: string, numeric: string, text: string, timestamp: string, party: string, bool: boolean, unit?: google_protobuf_empty_pb.Empty.AsObject, date: number, optional?: Optional.AsObject, map?: Map.AsObject, pb_enum?: Enum.AsObject, genMap?: GenMap.AsObject, } export enum SumCase { SUM_NOT_SET = 0, RECORD = 1, VARIANT = 2, CONTRACT_ID = 3, LIST = 4, INT64 = 5, NUMERIC = 6, TEXT = 8, TIMESTAMP = 9, PARTY = 11, BOOL = 12, UNIT = 13, DATE = 14, OPTIONAL = 15, MAP = 16, ENUM = 17, GEN_MAP = 18, } } export class Record extends jspb.Message { hasRecordId(): boolean; clearRecordId(): void; getRecordId(): Identifier | undefined; setRecordId(value?: Identifier): Record; clearFieldsList(): void; getFieldsList(): Array<RecordField>; setFieldsList(value: Array<RecordField>): Record; addFields(value?: RecordField, index?: number): RecordField; serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): Record.AsObject; static toObject(includeInstance: boolean, msg: Record): Record.AsObject; static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>}; static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>}; static serializeBinaryToWriter(message: Record, writer: jspb.BinaryWriter): void; static deserializeBinary(bytes: Uint8Array): Record; static deserializeBinaryFromReader(message: Record, reader: jspb.BinaryReader): Record; } export namespace Record { export type AsObject = { recordId?: Identifier.AsObject, fieldsList: Array<RecordField.AsObject>, } } export class RecordField extends jspb.Message { getLabel(): string; setLabel(value: string): RecordField; hasValue(): boolean; clearValue(): void; getValue(): Value | undefined; setValue(value?: Value): RecordField; serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): RecordField.AsObject; static toObject(includeInstance: boolean, msg: RecordField): RecordField.AsObject; static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>}; static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>}; static serializeBinaryToWriter(message: RecordField, writer: jspb.BinaryWriter): void; static deserializeBinary(bytes: Uint8Array): RecordField; static deserializeBinaryFromReader(message: RecordField, reader: jspb.BinaryReader): RecordField; } export namespace RecordField { export type AsObject = { label: string, value?: Value.AsObject, } } export class Identifier extends jspb.Message { getPackageId(): string; setPackageId(value: string): Identifier; getModuleName(): string; setModuleName(value: string): Identifier; getEntityName(): string; setEntityName(value: string): Identifier; serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): Identifier.AsObject; static toObject(includeInstance: boolean, msg: Identifier): Identifier.AsObject; static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>}; static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>}; static serializeBinaryToWriter(message: Identifier, writer: jspb.BinaryWriter): void; static deserializeBinary(bytes: Uint8Array): Identifier; static deserializeBinaryFromReader(message: Identifier, reader: jspb.BinaryReader): Identifier; } export namespace Identifier { export type AsObject = { packageId: string, moduleName: string, entityName: string, } } export class Variant extends jspb.Message { hasVariantId(): boolean; clearVariantId(): void; getVariantId(): Identifier | undefined; setVariantId(value?: Identifier): Variant; getConstructor(): string; setConstructor(value: string): Variant; hasValue(): boolean; clearValue(): void; getValue(): Value | undefined; setValue(value?: Value): Variant; serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): Variant.AsObject; static toObject(includeInstance: boolean, msg: Variant): Variant.AsObject; static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>}; static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>}; static serializeBinaryToWriter(message: Variant, writer: jspb.BinaryWriter): void; static deserializeBinary(bytes: Uint8Array): Variant; static deserializeBinaryFromReader(message: Variant, reader: jspb.BinaryReader): Variant; } export namespace Variant { export type AsObject = { variantId?: Identifier.AsObject, constructor: string, value?: Value.AsObject, } } export class Enum extends jspb.Message { hasEnumId(): boolean; clearEnumId(): void; getEnumId(): Identifier | undefined; setEnumId(value?: Identifier): Enum; getConstructor(): string; setConstructor(value: string): Enum; serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): Enum.AsObject; static toObject(includeInstance: boolean, msg: Enum): Enum.AsObject; static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>}; static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>}; static serializeBinaryToWriter(message: Enum, writer: jspb.BinaryWriter): void; static deserializeBinary(bytes: Uint8Array): Enum; static deserializeBinaryFromReader(message: Enum, reader: jspb.BinaryReader): Enum; } export namespace Enum { export type AsObject = { enumId?: Identifier.AsObject, constructor: string, } } export class List extends jspb.Message { clearElementsList(): void; getElementsList(): Array<Value>; setElementsList(value: Array<Value>): List; addElements(value?: Value, index?: number): Value; serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): List.AsObject; static toObject(includeInstance: boolean, msg: List): List.AsObject; static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>}; static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>}; static serializeBinaryToWriter(message: List, writer: jspb.BinaryWriter): void; static deserializeBinary(bytes: Uint8Array): List; static deserializeBinaryFromReader(message: List, reader: jspb.BinaryReader): List; } export namespace List { export type AsObject = { elementsList: Array<Value.AsObject>, } } export class Optional extends jspb.Message { hasValue(): boolean; clearValue(): void; getValue(): Value | undefined; setValue(value?: Value): Optional; serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): Optional.AsObject; static toObject(includeInstance: boolean, msg: Optional): Optional.AsObject; static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>}; static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>}; static serializeBinaryToWriter(message: Optional, writer: jspb.BinaryWriter): void; static deserializeBinary(bytes: Uint8Array): Optional; static deserializeBinaryFromReader(message: Optional, reader: jspb.BinaryReader): Optional; } export namespace Optional { export type AsObject = { value?: Value.AsObject, } } export class Map extends jspb.Message { clearEntriesList(): void; getEntriesList(): Array<Map.Entry>; setEntriesList(value: Array<Map.Entry>): Map; addEntries(value?: Map.Entry, index?: number): Map.Entry; serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): Map.AsObject; static toObject(includeInstance: boolean, msg: Map): Map.AsObject; static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>}; static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>}; static serializeBinaryToWriter(message: Map, writer: jspb.BinaryWriter): void; static deserializeBinary(bytes: Uint8Array): Map; static deserializeBinaryFromReader(message: Map, reader: jspb.BinaryReader): Map; } export namespace Map { export type AsObject = { entriesList: Array<Map.Entry.AsObject>, } export class Entry extends jspb.Message { getKey(): string; setKey(value: string): Entry; hasValue(): boolean; clearValue(): void; getValue(): Value | undefined; setValue(value?: Value): Entry; serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): Entry.AsObject; static toObject(includeInstance: boolean, msg: Entry): Entry.AsObject; static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>}; static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>}; static serializeBinaryToWriter(message: Entry, writer: jspb.BinaryWriter): void; static deserializeBinary(bytes: Uint8Array): Entry; static deserializeBinaryFromReader(message: Entry, reader: jspb.BinaryReader): Entry; } export namespace Entry { export type AsObject = { key: string, value?: Value.AsObject, } } } export class GenMap extends jspb.Message { clearEntriesList(): void; getEntriesList(): Array<GenMap.Entry>; setEntriesList(value: Array<GenMap.Entry>): GenMap; addEntries(value?: GenMap.Entry, index?: number): GenMap.Entry; serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): GenMap.AsObject; static toObject(includeInstance: boolean, msg: GenMap): GenMap.AsObject; static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>}; static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>}; static serializeBinaryToWriter(message: GenMap, writer: jspb.BinaryWriter): void; static deserializeBinary(bytes: Uint8Array): GenMap; static deserializeBinaryFromReader(message: GenMap, reader: jspb.BinaryReader): GenMap; } export namespace GenMap { export type AsObject = { entriesList: Array<GenMap.Entry.AsObject>, } export class Entry extends jspb.Message { hasKey(): boolean; clearKey(): void; getKey(): Value | undefined; setKey(value?: Value): Entry; hasValue(): boolean; clearValue(): void; getValue(): Value | undefined; setValue(value?: Value): Entry; serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): Entry.AsObject; static toObject(includeInstance: boolean, msg: Entry): Entry.AsObject; static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>}; static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>}; static serializeBinaryToWriter(message: Entry, writer: jspb.BinaryWriter): void; static deserializeBinary(bytes: Uint8Array): Entry; static deserializeBinaryFromReader(message: Entry, reader: jspb.BinaryReader): Entry; } export namespace Entry { export type AsObject = { key?: Value.AsObject, value?: Value.AsObject, } } }