UNPKG

@digitalasset/daml-ledger

Version:
1,615 lines (1,383 loc) 51 kB
// source: com/daml/ledger/api/v1/event.proto /** * @fileoverview * @enhanceable * @suppress {messageConventions} JS Compiler reports an error if a variable or * field starts with 'MSG_' and isn't a translatable message. * @public */ // GENERATED CODE -- DO NOT EDIT! var jspb = require('google-protobuf'); var goog = jspb; var global = Function('return this')(); var com_daml_ledger_api_v1_value_pb = require('../../../../../com/daml/ledger/api/v1/value_pb.js'); goog.object.extend(proto, com_daml_ledger_api_v1_value_pb); var google_protobuf_wrappers_pb = require('google-protobuf/google/protobuf/wrappers_pb.js'); goog.object.extend(proto, google_protobuf_wrappers_pb); goog.exportSymbol('proto.com.daml.ledger.api.v1.ArchivedEvent', null, global); goog.exportSymbol('proto.com.daml.ledger.api.v1.CreatedEvent', null, global); goog.exportSymbol('proto.com.daml.ledger.api.v1.Event', null, global); goog.exportSymbol('proto.com.daml.ledger.api.v1.Event.EventCase', null, global); goog.exportSymbol('proto.com.daml.ledger.api.v1.ExercisedEvent', null, global); /** * Generated by JsPbCodeGenerator. * @param {Array=} opt_data Optional initial data array, typically from a * server response, or constructed directly in Javascript. The array is used * in place and becomes part of the constructed object. It is not cloned. * If no data is provided, the constructed object will be empty, but still * valid. * @extends {jspb.Message} * @constructor */ proto.com.daml.ledger.api.v1.Event = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, proto.com.daml.ledger.api.v1.Event.oneofGroups_); }; goog.inherits(proto.com.daml.ledger.api.v1.Event, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.com.daml.ledger.api.v1.Event.displayName = 'proto.com.daml.ledger.api.v1.Event'; } /** * Generated by JsPbCodeGenerator. * @param {Array=} opt_data Optional initial data array, typically from a * server response, or constructed directly in Javascript. The array is used * in place and becomes part of the constructed object. It is not cloned. * If no data is provided, the constructed object will be empty, but still * valid. * @extends {jspb.Message} * @constructor */ proto.com.daml.ledger.api.v1.CreatedEvent = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, proto.com.daml.ledger.api.v1.CreatedEvent.repeatedFields_, null); }; goog.inherits(proto.com.daml.ledger.api.v1.CreatedEvent, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.com.daml.ledger.api.v1.CreatedEvent.displayName = 'proto.com.daml.ledger.api.v1.CreatedEvent'; } /** * Generated by JsPbCodeGenerator. * @param {Array=} opt_data Optional initial data array, typically from a * server response, or constructed directly in Javascript. The array is used * in place and becomes part of the constructed object. It is not cloned. * If no data is provided, the constructed object will be empty, but still * valid. * @extends {jspb.Message} * @constructor */ proto.com.daml.ledger.api.v1.ArchivedEvent = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, proto.com.daml.ledger.api.v1.ArchivedEvent.repeatedFields_, null); }; goog.inherits(proto.com.daml.ledger.api.v1.ArchivedEvent, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.com.daml.ledger.api.v1.ArchivedEvent.displayName = 'proto.com.daml.ledger.api.v1.ArchivedEvent'; } /** * Generated by JsPbCodeGenerator. * @param {Array=} opt_data Optional initial data array, typically from a * server response, or constructed directly in Javascript. The array is used * in place and becomes part of the constructed object. It is not cloned. * If no data is provided, the constructed object will be empty, but still * valid. * @extends {jspb.Message} * @constructor */ proto.com.daml.ledger.api.v1.ExercisedEvent = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, proto.com.daml.ledger.api.v1.ExercisedEvent.repeatedFields_, null); }; goog.inherits(proto.com.daml.ledger.api.v1.ExercisedEvent, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.com.daml.ledger.api.v1.ExercisedEvent.displayName = 'proto.com.daml.ledger.api.v1.ExercisedEvent'; } /** * Oneof group definitions for this message. Each group defines the field * numbers belonging to that group. When of these fields' value is set, all * other fields in the group are cleared. During deserialization, if multiple * fields are encountered for a group, only the last value seen will be kept. * @private {!Array<!Array<number>>} * @const */ proto.com.daml.ledger.api.v1.Event.oneofGroups_ = [[1,3]]; /** * @enum {number} */ proto.com.daml.ledger.api.v1.Event.EventCase = { EVENT_NOT_SET: 0, CREATED: 1, ARCHIVED: 3 }; /** * @return {proto.com.daml.ledger.api.v1.Event.EventCase} */ proto.com.daml.ledger.api.v1.Event.prototype.getEventCase = function() { return /** @type {proto.com.daml.ledger.api.v1.Event.EventCase} */(jspb.Message.computeOneofCase(this, proto.com.daml.ledger.api.v1.Event.oneofGroups_[0])); }; if (jspb.Message.GENERATE_TO_OBJECT) { /** * Creates an object representation of this proto. * Field names that are reserved in JavaScript and will be renamed to pb_name. * Optional fields that are not set will be set to undefined. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default. * For the list of reserved names please see: * net/proto2/compiler/js/internal/generator.cc#kKeyword. * @param {boolean=} opt_includeInstance Deprecated. whether to include the * JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @return {!Object} */ proto.com.daml.ledger.api.v1.Event.prototype.toObject = function(opt_includeInstance) { return proto.com.daml.ledger.api.v1.Event.toObject(opt_includeInstance, this); }; /** * Static version of the {@see toObject} method. * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.com.daml.ledger.api.v1.Event} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.com.daml.ledger.api.v1.Event.toObject = function(includeInstance, msg) { var f, obj = { created: (f = msg.getCreated()) && proto.com.daml.ledger.api.v1.CreatedEvent.toObject(includeInstance, f), archived: (f = msg.getArchived()) && proto.com.daml.ledger.api.v1.ArchivedEvent.toObject(includeInstance, f) }; if (includeInstance) { obj.$jspbMessageInstance = msg; } return obj; }; } /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. * @return {!proto.com.daml.ledger.api.v1.Event} */ proto.com.daml.ledger.api.v1.Event.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); var msg = new proto.com.daml.ledger.api.v1.Event; return proto.com.daml.ledger.api.v1.Event.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. * @param {!proto.com.daml.ledger.api.v1.Event} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.com.daml.ledger.api.v1.Event} */ proto.com.daml.ledger.api.v1.Event.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; } var field = reader.getFieldNumber(); switch (field) { case 1: var value = new proto.com.daml.ledger.api.v1.CreatedEvent; reader.readMessage(value,proto.com.daml.ledger.api.v1.CreatedEvent.deserializeBinaryFromReader); msg.setCreated(value); break; case 3: var value = new proto.com.daml.ledger.api.v1.ArchivedEvent; reader.readMessage(value,proto.com.daml.ledger.api.v1.ArchivedEvent.deserializeBinaryFromReader); msg.setArchived(value); break; default: reader.skipField(); break; } } return msg; }; /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ proto.com.daml.ledger.api.v1.Event.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); proto.com.daml.ledger.api.v1.Event.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. * @param {!proto.com.daml.ledger.api.v1.Event} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.com.daml.ledger.api.v1.Event.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getCreated(); if (f != null) { writer.writeMessage( 1, f, proto.com.daml.ledger.api.v1.CreatedEvent.serializeBinaryToWriter ); } f = message.getArchived(); if (f != null) { writer.writeMessage( 3, f, proto.com.daml.ledger.api.v1.ArchivedEvent.serializeBinaryToWriter ); } }; /** * optional CreatedEvent created = 1; * @return {?proto.com.daml.ledger.api.v1.CreatedEvent} */ proto.com.daml.ledger.api.v1.Event.prototype.getCreated = function() { return /** @type{?proto.com.daml.ledger.api.v1.CreatedEvent} */ ( jspb.Message.getWrapperField(this, proto.com.daml.ledger.api.v1.CreatedEvent, 1)); }; /** * @param {?proto.com.daml.ledger.api.v1.CreatedEvent|undefined} value * @return {!proto.com.daml.ledger.api.v1.Event} returns this */ proto.com.daml.ledger.api.v1.Event.prototype.setCreated = function(value) { return jspb.Message.setOneofWrapperField(this, 1, proto.com.daml.ledger.api.v1.Event.oneofGroups_[0], value); }; /** * Clears the message field making it undefined. * @return {!proto.com.daml.ledger.api.v1.Event} returns this */ proto.com.daml.ledger.api.v1.Event.prototype.clearCreated = function() { return this.setCreated(undefined); }; /** * Returns whether this field is set. * @return {boolean} */ proto.com.daml.ledger.api.v1.Event.prototype.hasCreated = function() { return jspb.Message.getField(this, 1) != null; }; /** * optional ArchivedEvent archived = 3; * @return {?proto.com.daml.ledger.api.v1.ArchivedEvent} */ proto.com.daml.ledger.api.v1.Event.prototype.getArchived = function() { return /** @type{?proto.com.daml.ledger.api.v1.ArchivedEvent} */ ( jspb.Message.getWrapperField(this, proto.com.daml.ledger.api.v1.ArchivedEvent, 3)); }; /** * @param {?proto.com.daml.ledger.api.v1.ArchivedEvent|undefined} value * @return {!proto.com.daml.ledger.api.v1.Event} returns this */ proto.com.daml.ledger.api.v1.Event.prototype.setArchived = function(value) { return jspb.Message.setOneofWrapperField(this, 3, proto.com.daml.ledger.api.v1.Event.oneofGroups_[0], value); }; /** * Clears the message field making it undefined. * @return {!proto.com.daml.ledger.api.v1.Event} returns this */ proto.com.daml.ledger.api.v1.Event.prototype.clearArchived = function() { return this.setArchived(undefined); }; /** * Returns whether this field is set. * @return {boolean} */ proto.com.daml.ledger.api.v1.Event.prototype.hasArchived = function() { return jspb.Message.getField(this, 3) != null; }; /** * List of repeated fields within this message type. * @private {!Array<number>} * @const */ proto.com.daml.ledger.api.v1.CreatedEvent.repeatedFields_ = [5,8,9]; if (jspb.Message.GENERATE_TO_OBJECT) { /** * Creates an object representation of this proto. * Field names that are reserved in JavaScript and will be renamed to pb_name. * Optional fields that are not set will be set to undefined. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default. * For the list of reserved names please see: * net/proto2/compiler/js/internal/generator.cc#kKeyword. * @param {boolean=} opt_includeInstance Deprecated. whether to include the * JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @return {!Object} */ proto.com.daml.ledger.api.v1.CreatedEvent.prototype.toObject = function(opt_includeInstance) { return proto.com.daml.ledger.api.v1.CreatedEvent.toObject(opt_includeInstance, this); }; /** * Static version of the {@see toObject} method. * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.com.daml.ledger.api.v1.CreatedEvent} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.com.daml.ledger.api.v1.CreatedEvent.toObject = function(includeInstance, msg) { var f, obj = { eventId: jspb.Message.getFieldWithDefault(msg, 1, ""), contractId: jspb.Message.getFieldWithDefault(msg, 2, ""), templateId: (f = msg.getTemplateId()) && com_daml_ledger_api_v1_value_pb.Identifier.toObject(includeInstance, f), contractKey: (f = msg.getContractKey()) && com_daml_ledger_api_v1_value_pb.Value.toObject(includeInstance, f), createArguments: (f = msg.getCreateArguments()) && com_daml_ledger_api_v1_value_pb.Record.toObject(includeInstance, f), witnessPartiesList: (f = jspb.Message.getRepeatedField(msg, 5)) == null ? undefined : f, signatoriesList: (f = jspb.Message.getRepeatedField(msg, 8)) == null ? undefined : f, observersList: (f = jspb.Message.getRepeatedField(msg, 9)) == null ? undefined : f, agreementText: (f = msg.getAgreementText()) && google_protobuf_wrappers_pb.StringValue.toObject(includeInstance, f) }; if (includeInstance) { obj.$jspbMessageInstance = msg; } return obj; }; } /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. * @return {!proto.com.daml.ledger.api.v1.CreatedEvent} */ proto.com.daml.ledger.api.v1.CreatedEvent.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); var msg = new proto.com.daml.ledger.api.v1.CreatedEvent; return proto.com.daml.ledger.api.v1.CreatedEvent.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. * @param {!proto.com.daml.ledger.api.v1.CreatedEvent} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.com.daml.ledger.api.v1.CreatedEvent} */ proto.com.daml.ledger.api.v1.CreatedEvent.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; } var field = reader.getFieldNumber(); switch (field) { case 1: var value = /** @type {string} */ (reader.readString()); msg.setEventId(value); break; case 2: var value = /** @type {string} */ (reader.readString()); msg.setContractId(value); break; case 3: var value = new com_daml_ledger_api_v1_value_pb.Identifier; reader.readMessage(value,com_daml_ledger_api_v1_value_pb.Identifier.deserializeBinaryFromReader); msg.setTemplateId(value); break; case 7: var value = new com_daml_ledger_api_v1_value_pb.Value; reader.readMessage(value,com_daml_ledger_api_v1_value_pb.Value.deserializeBinaryFromReader); msg.setContractKey(value); break; case 4: var value = new com_daml_ledger_api_v1_value_pb.Record; reader.readMessage(value,com_daml_ledger_api_v1_value_pb.Record.deserializeBinaryFromReader); msg.setCreateArguments(value); break; case 5: var value = /** @type {string} */ (reader.readString()); msg.addWitnessParties(value); break; case 8: var value = /** @type {string} */ (reader.readString()); msg.addSignatories(value); break; case 9: var value = /** @type {string} */ (reader.readString()); msg.addObservers(value); break; case 6: var value = new google_protobuf_wrappers_pb.StringValue; reader.readMessage(value,google_protobuf_wrappers_pb.StringValue.deserializeBinaryFromReader); msg.setAgreementText(value); break; default: reader.skipField(); break; } } return msg; }; /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ proto.com.daml.ledger.api.v1.CreatedEvent.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); proto.com.daml.ledger.api.v1.CreatedEvent.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. * @param {!proto.com.daml.ledger.api.v1.CreatedEvent} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.com.daml.ledger.api.v1.CreatedEvent.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getEventId(); if (f.length > 0) { writer.writeString( 1, f ); } f = message.getContractId(); if (f.length > 0) { writer.writeString( 2, f ); } f = message.getTemplateId(); if (f != null) { writer.writeMessage( 3, f, com_daml_ledger_api_v1_value_pb.Identifier.serializeBinaryToWriter ); } f = message.getContractKey(); if (f != null) { writer.writeMessage( 7, f, com_daml_ledger_api_v1_value_pb.Value.serializeBinaryToWriter ); } f = message.getCreateArguments(); if (f != null) { writer.writeMessage( 4, f, com_daml_ledger_api_v1_value_pb.Record.serializeBinaryToWriter ); } f = message.getWitnessPartiesList(); if (f.length > 0) { writer.writeRepeatedString( 5, f ); } f = message.getSignatoriesList(); if (f.length > 0) { writer.writeRepeatedString( 8, f ); } f = message.getObserversList(); if (f.length > 0) { writer.writeRepeatedString( 9, f ); } f = message.getAgreementText(); if (f != null) { writer.writeMessage( 6, f, google_protobuf_wrappers_pb.StringValue.serializeBinaryToWriter ); } }; /** * optional string event_id = 1; * @return {string} */ proto.com.daml.ledger.api.v1.CreatedEvent.prototype.getEventId = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; /** * @param {string} value * @return {!proto.com.daml.ledger.api.v1.CreatedEvent} returns this */ proto.com.daml.ledger.api.v1.CreatedEvent.prototype.setEventId = function(value) { return jspb.Message.setProto3StringField(this, 1, value); }; /** * optional string contract_id = 2; * @return {string} */ proto.com.daml.ledger.api.v1.CreatedEvent.prototype.getContractId = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); }; /** * @param {string} value * @return {!proto.com.daml.ledger.api.v1.CreatedEvent} returns this */ proto.com.daml.ledger.api.v1.CreatedEvent.prototype.setContractId = function(value) { return jspb.Message.setProto3StringField(this, 2, value); }; /** * optional Identifier template_id = 3; * @return {?proto.com.daml.ledger.api.v1.Identifier} */ proto.com.daml.ledger.api.v1.CreatedEvent.prototype.getTemplateId = function() { return /** @type{?proto.com.daml.ledger.api.v1.Identifier} */ ( jspb.Message.getWrapperField(this, com_daml_ledger_api_v1_value_pb.Identifier, 3)); }; /** * @param {?proto.com.daml.ledger.api.v1.Identifier|undefined} value * @return {!proto.com.daml.ledger.api.v1.CreatedEvent} returns this */ proto.com.daml.ledger.api.v1.CreatedEvent.prototype.setTemplateId = function(value) { return jspb.Message.setWrapperField(this, 3, value); }; /** * Clears the message field making it undefined. * @return {!proto.com.daml.ledger.api.v1.CreatedEvent} returns this */ proto.com.daml.ledger.api.v1.CreatedEvent.prototype.clearTemplateId = function() { return this.setTemplateId(undefined); }; /** * Returns whether this field is set. * @return {boolean} */ proto.com.daml.ledger.api.v1.CreatedEvent.prototype.hasTemplateId = function() { return jspb.Message.getField(this, 3) != null; }; /** * optional Value contract_key = 7; * @return {?proto.com.daml.ledger.api.v1.Value} */ proto.com.daml.ledger.api.v1.CreatedEvent.prototype.getContractKey = function() { return /** @type{?proto.com.daml.ledger.api.v1.Value} */ ( jspb.Message.getWrapperField(this, com_daml_ledger_api_v1_value_pb.Value, 7)); }; /** * @param {?proto.com.daml.ledger.api.v1.Value|undefined} value * @return {!proto.com.daml.ledger.api.v1.CreatedEvent} returns this */ proto.com.daml.ledger.api.v1.CreatedEvent.prototype.setContractKey = function(value) { return jspb.Message.setWrapperField(this, 7, value); }; /** * Clears the message field making it undefined. * @return {!proto.com.daml.ledger.api.v1.CreatedEvent} returns this */ proto.com.daml.ledger.api.v1.CreatedEvent.prototype.clearContractKey = function() { return this.setContractKey(undefined); }; /** * Returns whether this field is set. * @return {boolean} */ proto.com.daml.ledger.api.v1.CreatedEvent.prototype.hasContractKey = function() { return jspb.Message.getField(this, 7) != null; }; /** * optional Record create_arguments = 4; * @return {?proto.com.daml.ledger.api.v1.Record} */ proto.com.daml.ledger.api.v1.CreatedEvent.prototype.getCreateArguments = function() { return /** @type{?proto.com.daml.ledger.api.v1.Record} */ ( jspb.Message.getWrapperField(this, com_daml_ledger_api_v1_value_pb.Record, 4)); }; /** * @param {?proto.com.daml.ledger.api.v1.Record|undefined} value * @return {!proto.com.daml.ledger.api.v1.CreatedEvent} returns this */ proto.com.daml.ledger.api.v1.CreatedEvent.prototype.setCreateArguments = function(value) { return jspb.Message.setWrapperField(this, 4, value); }; /** * Clears the message field making it undefined. * @return {!proto.com.daml.ledger.api.v1.CreatedEvent} returns this */ proto.com.daml.ledger.api.v1.CreatedEvent.prototype.clearCreateArguments = function() { return this.setCreateArguments(undefined); }; /** * Returns whether this field is set. * @return {boolean} */ proto.com.daml.ledger.api.v1.CreatedEvent.prototype.hasCreateArguments = function() { return jspb.Message.getField(this, 4) != null; }; /** * repeated string witness_parties = 5; * @return {!Array<string>} */ proto.com.daml.ledger.api.v1.CreatedEvent.prototype.getWitnessPartiesList = function() { return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 5)); }; /** * @param {!Array<string>} value * @return {!proto.com.daml.ledger.api.v1.CreatedEvent} returns this */ proto.com.daml.ledger.api.v1.CreatedEvent.prototype.setWitnessPartiesList = function(value) { return jspb.Message.setField(this, 5, value || []); }; /** * @param {string} value * @param {number=} opt_index * @return {!proto.com.daml.ledger.api.v1.CreatedEvent} returns this */ proto.com.daml.ledger.api.v1.CreatedEvent.prototype.addWitnessParties = function(value, opt_index) { return jspb.Message.addToRepeatedField(this, 5, value, opt_index); }; /** * Clears the list making it empty but non-null. * @return {!proto.com.daml.ledger.api.v1.CreatedEvent} returns this */ proto.com.daml.ledger.api.v1.CreatedEvent.prototype.clearWitnessPartiesList = function() { return this.setWitnessPartiesList([]); }; /** * repeated string signatories = 8; * @return {!Array<string>} */ proto.com.daml.ledger.api.v1.CreatedEvent.prototype.getSignatoriesList = function() { return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 8)); }; /** * @param {!Array<string>} value * @return {!proto.com.daml.ledger.api.v1.CreatedEvent} returns this */ proto.com.daml.ledger.api.v1.CreatedEvent.prototype.setSignatoriesList = function(value) { return jspb.Message.setField(this, 8, value || []); }; /** * @param {string} value * @param {number=} opt_index * @return {!proto.com.daml.ledger.api.v1.CreatedEvent} returns this */ proto.com.daml.ledger.api.v1.CreatedEvent.prototype.addSignatories = function(value, opt_index) { return jspb.Message.addToRepeatedField(this, 8, value, opt_index); }; /** * Clears the list making it empty but non-null. * @return {!proto.com.daml.ledger.api.v1.CreatedEvent} returns this */ proto.com.daml.ledger.api.v1.CreatedEvent.prototype.clearSignatoriesList = function() { return this.setSignatoriesList([]); }; /** * repeated string observers = 9; * @return {!Array<string>} */ proto.com.daml.ledger.api.v1.CreatedEvent.prototype.getObserversList = function() { return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 9)); }; /** * @param {!Array<string>} value * @return {!proto.com.daml.ledger.api.v1.CreatedEvent} returns this */ proto.com.daml.ledger.api.v1.CreatedEvent.prototype.setObserversList = function(value) { return jspb.Message.setField(this, 9, value || []); }; /** * @param {string} value * @param {number=} opt_index * @return {!proto.com.daml.ledger.api.v1.CreatedEvent} returns this */ proto.com.daml.ledger.api.v1.CreatedEvent.prototype.addObservers = function(value, opt_index) { return jspb.Message.addToRepeatedField(this, 9, value, opt_index); }; /** * Clears the list making it empty but non-null. * @return {!proto.com.daml.ledger.api.v1.CreatedEvent} returns this */ proto.com.daml.ledger.api.v1.CreatedEvent.prototype.clearObserversList = function() { return this.setObserversList([]); }; /** * optional google.protobuf.StringValue agreement_text = 6; * @return {?proto.google.protobuf.StringValue} */ proto.com.daml.ledger.api.v1.CreatedEvent.prototype.getAgreementText = function() { return /** @type{?proto.google.protobuf.StringValue} */ ( jspb.Message.getWrapperField(this, google_protobuf_wrappers_pb.StringValue, 6)); }; /** * @param {?proto.google.protobuf.StringValue|undefined} value * @return {!proto.com.daml.ledger.api.v1.CreatedEvent} returns this */ proto.com.daml.ledger.api.v1.CreatedEvent.prototype.setAgreementText = function(value) { return jspb.Message.setWrapperField(this, 6, value); }; /** * Clears the message field making it undefined. * @return {!proto.com.daml.ledger.api.v1.CreatedEvent} returns this */ proto.com.daml.ledger.api.v1.CreatedEvent.prototype.clearAgreementText = function() { return this.setAgreementText(undefined); }; /** * Returns whether this field is set. * @return {boolean} */ proto.com.daml.ledger.api.v1.CreatedEvent.prototype.hasAgreementText = function() { return jspb.Message.getField(this, 6) != null; }; /** * List of repeated fields within this message type. * @private {!Array<number>} * @const */ proto.com.daml.ledger.api.v1.ArchivedEvent.repeatedFields_ = [4]; if (jspb.Message.GENERATE_TO_OBJECT) { /** * Creates an object representation of this proto. * Field names that are reserved in JavaScript and will be renamed to pb_name. * Optional fields that are not set will be set to undefined. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default. * For the list of reserved names please see: * net/proto2/compiler/js/internal/generator.cc#kKeyword. * @param {boolean=} opt_includeInstance Deprecated. whether to include the * JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @return {!Object} */ proto.com.daml.ledger.api.v1.ArchivedEvent.prototype.toObject = function(opt_includeInstance) { return proto.com.daml.ledger.api.v1.ArchivedEvent.toObject(opt_includeInstance, this); }; /** * Static version of the {@see toObject} method. * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.com.daml.ledger.api.v1.ArchivedEvent} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.com.daml.ledger.api.v1.ArchivedEvent.toObject = function(includeInstance, msg) { var f, obj = { eventId: jspb.Message.getFieldWithDefault(msg, 1, ""), contractId: jspb.Message.getFieldWithDefault(msg, 2, ""), templateId: (f = msg.getTemplateId()) && com_daml_ledger_api_v1_value_pb.Identifier.toObject(includeInstance, f), witnessPartiesList: (f = jspb.Message.getRepeatedField(msg, 4)) == null ? undefined : f }; if (includeInstance) { obj.$jspbMessageInstance = msg; } return obj; }; } /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. * @return {!proto.com.daml.ledger.api.v1.ArchivedEvent} */ proto.com.daml.ledger.api.v1.ArchivedEvent.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); var msg = new proto.com.daml.ledger.api.v1.ArchivedEvent; return proto.com.daml.ledger.api.v1.ArchivedEvent.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. * @param {!proto.com.daml.ledger.api.v1.ArchivedEvent} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.com.daml.ledger.api.v1.ArchivedEvent} */ proto.com.daml.ledger.api.v1.ArchivedEvent.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; } var field = reader.getFieldNumber(); switch (field) { case 1: var value = /** @type {string} */ (reader.readString()); msg.setEventId(value); break; case 2: var value = /** @type {string} */ (reader.readString()); msg.setContractId(value); break; case 3: var value = new com_daml_ledger_api_v1_value_pb.Identifier; reader.readMessage(value,com_daml_ledger_api_v1_value_pb.Identifier.deserializeBinaryFromReader); msg.setTemplateId(value); break; case 4: var value = /** @type {string} */ (reader.readString()); msg.addWitnessParties(value); break; default: reader.skipField(); break; } } return msg; }; /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ proto.com.daml.ledger.api.v1.ArchivedEvent.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); proto.com.daml.ledger.api.v1.ArchivedEvent.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. * @param {!proto.com.daml.ledger.api.v1.ArchivedEvent} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.com.daml.ledger.api.v1.ArchivedEvent.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getEventId(); if (f.length > 0) { writer.writeString( 1, f ); } f = message.getContractId(); if (f.length > 0) { writer.writeString( 2, f ); } f = message.getTemplateId(); if (f != null) { writer.writeMessage( 3, f, com_daml_ledger_api_v1_value_pb.Identifier.serializeBinaryToWriter ); } f = message.getWitnessPartiesList(); if (f.length > 0) { writer.writeRepeatedString( 4, f ); } }; /** * optional string event_id = 1; * @return {string} */ proto.com.daml.ledger.api.v1.ArchivedEvent.prototype.getEventId = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; /** * @param {string} value * @return {!proto.com.daml.ledger.api.v1.ArchivedEvent} returns this */ proto.com.daml.ledger.api.v1.ArchivedEvent.prototype.setEventId = function(value) { return jspb.Message.setProto3StringField(this, 1, value); }; /** * optional string contract_id = 2; * @return {string} */ proto.com.daml.ledger.api.v1.ArchivedEvent.prototype.getContractId = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); }; /** * @param {string} value * @return {!proto.com.daml.ledger.api.v1.ArchivedEvent} returns this */ proto.com.daml.ledger.api.v1.ArchivedEvent.prototype.setContractId = function(value) { return jspb.Message.setProto3StringField(this, 2, value); }; /** * optional Identifier template_id = 3; * @return {?proto.com.daml.ledger.api.v1.Identifier} */ proto.com.daml.ledger.api.v1.ArchivedEvent.prototype.getTemplateId = function() { return /** @type{?proto.com.daml.ledger.api.v1.Identifier} */ ( jspb.Message.getWrapperField(this, com_daml_ledger_api_v1_value_pb.Identifier, 3)); }; /** * @param {?proto.com.daml.ledger.api.v1.Identifier|undefined} value * @return {!proto.com.daml.ledger.api.v1.ArchivedEvent} returns this */ proto.com.daml.ledger.api.v1.ArchivedEvent.prototype.setTemplateId = function(value) { return jspb.Message.setWrapperField(this, 3, value); }; /** * Clears the message field making it undefined. * @return {!proto.com.daml.ledger.api.v1.ArchivedEvent} returns this */ proto.com.daml.ledger.api.v1.ArchivedEvent.prototype.clearTemplateId = function() { return this.setTemplateId(undefined); }; /** * Returns whether this field is set. * @return {boolean} */ proto.com.daml.ledger.api.v1.ArchivedEvent.prototype.hasTemplateId = function() { return jspb.Message.getField(this, 3) != null; }; /** * repeated string witness_parties = 4; * @return {!Array<string>} */ proto.com.daml.ledger.api.v1.ArchivedEvent.prototype.getWitnessPartiesList = function() { return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 4)); }; /** * @param {!Array<string>} value * @return {!proto.com.daml.ledger.api.v1.ArchivedEvent} returns this */ proto.com.daml.ledger.api.v1.ArchivedEvent.prototype.setWitnessPartiesList = function(value) { return jspb.Message.setField(this, 4, value || []); }; /** * @param {string} value * @param {number=} opt_index * @return {!proto.com.daml.ledger.api.v1.ArchivedEvent} returns this */ proto.com.daml.ledger.api.v1.ArchivedEvent.prototype.addWitnessParties = function(value, opt_index) { return jspb.Message.addToRepeatedField(this, 4, value, opt_index); }; /** * Clears the list making it empty but non-null. * @return {!proto.com.daml.ledger.api.v1.ArchivedEvent} returns this */ proto.com.daml.ledger.api.v1.ArchivedEvent.prototype.clearWitnessPartiesList = function() { return this.setWitnessPartiesList([]); }; /** * List of repeated fields within this message type. * @private {!Array<number>} * @const */ proto.com.daml.ledger.api.v1.ExercisedEvent.repeatedFields_ = [7,10,11]; if (jspb.Message.GENERATE_TO_OBJECT) { /** * Creates an object representation of this proto. * Field names that are reserved in JavaScript and will be renamed to pb_name. * Optional fields that are not set will be set to undefined. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default. * For the list of reserved names please see: * net/proto2/compiler/js/internal/generator.cc#kKeyword. * @param {boolean=} opt_includeInstance Deprecated. whether to include the * JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @return {!Object} */ proto.com.daml.ledger.api.v1.ExercisedEvent.prototype.toObject = function(opt_includeInstance) { return proto.com.daml.ledger.api.v1.ExercisedEvent.toObject(opt_includeInstance, this); }; /** * Static version of the {@see toObject} method. * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.com.daml.ledger.api.v1.ExercisedEvent} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.com.daml.ledger.api.v1.ExercisedEvent.toObject = function(includeInstance, msg) { var f, obj = { eventId: jspb.Message.getFieldWithDefault(msg, 1, ""), contractId: jspb.Message.getFieldWithDefault(msg, 2, ""), templateId: (f = msg.getTemplateId()) && com_daml_ledger_api_v1_value_pb.Identifier.toObject(includeInstance, f), choice: jspb.Message.getFieldWithDefault(msg, 5, ""), choiceArgument: (f = msg.getChoiceArgument()) && com_daml_ledger_api_v1_value_pb.Value.toObject(includeInstance, f), actingPartiesList: (f = jspb.Message.getRepeatedField(msg, 7)) == null ? undefined : f, consuming: jspb.Message.getBooleanFieldWithDefault(msg, 8, false), witnessPartiesList: (f = jspb.Message.getRepeatedField(msg, 10)) == null ? undefined : f, childEventIdsList: (f = jspb.Message.getRepeatedField(msg, 11)) == null ? undefined : f, exerciseResult: (f = msg.getExerciseResult()) && com_daml_ledger_api_v1_value_pb.Value.toObject(includeInstance, f) }; if (includeInstance) { obj.$jspbMessageInstance = msg; } return obj; }; } /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. * @return {!proto.com.daml.ledger.api.v1.ExercisedEvent} */ proto.com.daml.ledger.api.v1.ExercisedEvent.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); var msg = new proto.com.daml.ledger.api.v1.ExercisedEvent; return proto.com.daml.ledger.api.v1.ExercisedEvent.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. * @param {!proto.com.daml.ledger.api.v1.ExercisedEvent} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.com.daml.ledger.api.v1.ExercisedEvent} */ proto.com.daml.ledger.api.v1.ExercisedEvent.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; } var field = reader.getFieldNumber(); switch (field) { case 1: var value = /** @type {string} */ (reader.readString()); msg.setEventId(value); break; case 2: var value = /** @type {string} */ (reader.readString()); msg.setContractId(value); break; case 3: var value = new com_daml_ledger_api_v1_value_pb.Identifier; reader.readMessage(value,com_daml_ledger_api_v1_value_pb.Identifier.deserializeBinaryFromReader); msg.setTemplateId(value); break; case 5: var value = /** @type {string} */ (reader.readString()); msg.setChoice(value); break; case 6: var value = new com_daml_ledger_api_v1_value_pb.Value; reader.readMessage(value,com_daml_ledger_api_v1_value_pb.Value.deserializeBinaryFromReader); msg.setChoiceArgument(value); break; case 7: var value = /** @type {string} */ (reader.readString()); msg.addActingParties(value); break; case 8: var value = /** @type {boolean} */ (reader.readBool()); msg.setConsuming(value); break; case 10: var value = /** @type {string} */ (reader.readString()); msg.addWitnessParties(value); break; case 11: var value = /** @type {string} */ (reader.readString()); msg.addChildEventIds(value); break; case 12: var value = new com_daml_ledger_api_v1_value_pb.Value; reader.readMessage(value,com_daml_ledger_api_v1_value_pb.Value.deserializeBinaryFromReader); msg.setExerciseResult(value); break; default: reader.skipField(); break; } } return msg; }; /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ proto.com.daml.ledger.api.v1.ExercisedEvent.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); proto.com.daml.ledger.api.v1.ExercisedEvent.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. * @param {!proto.com.daml.ledger.api.v1.ExercisedEvent} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.com.daml.ledger.api.v1.ExercisedEvent.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getEventId(); if (f.length > 0) { writer.writeString( 1, f ); } f = message.getContractId(); if (f.length > 0) { writer.writeString( 2, f ); } f = message.getTemplateId(); if (f != null) { writer.writeMessage( 3, f, com_daml_ledger_api_v1_value_pb.Identifier.serializeBinaryToWriter ); } f = message.getChoice(); if (f.length > 0) { writer.writeString( 5, f ); } f = message.getChoiceArgument(); if (f != null) { writer.writeMessage( 6, f, com_daml_ledger_api_v1_value_pb.Value.serializeBinaryToWriter ); } f = message.getActingPartiesList(); if (f.length > 0) { writer.writeRepeatedString( 7, f ); } f = message.getConsuming(); if (f) { writer.writeBool( 8, f ); } f = message.getWitnessPartiesList(); if (f.length > 0) { writer.writeRepeatedString( 10, f ); } f = message.getChildEventIdsList(); if (f.length > 0) { writer.writeRepeatedString( 11, f ); } f = message.getExerciseResult(); if (f != null) { writer.writeMessage( 12, f, com_daml_ledger_api_v1_value_pb.Value.serializeBinaryToWriter ); } }; /** * optional string event_id = 1; * @return {string} */ proto.com.daml.ledger.api.v1.ExercisedEvent.prototype.getEventId = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; /** * @param {string} value * @return {!proto.com.daml.ledger.api.v1.ExercisedEvent} returns this */ proto.com.daml.ledger.api.v1.ExercisedEvent.prototype.setEventId = function(value) { return jspb.Message.setProto3StringField(this, 1, value); }; /** * optional string contract_id = 2; * @return {string} */ proto.com.daml.ledger.api.v1.ExercisedEvent.prototype.getContractId = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); }; /** * @param {string} value * @return {!proto.com.daml.ledger.api.v1.ExercisedEvent} returns this */ proto.com.daml.ledger.api.v1.ExercisedEvent.prototype.setContractId = function(value) { return jspb.Message.setProto3StringField(this, 2, value); }; /** * optional Identifier template_id = 3; * @return {?proto.com.daml.ledger.api.v1.Identifier} */ proto.com.daml.ledger.api.v1.ExercisedEvent.prototype.getTemplateId = function() { return /** @type{?proto.com.daml.ledger.api.v1.Identifier} */ ( jspb.Message.getWrapperField(this, com_daml_ledger_api_v1_value_pb.Identifier, 3)); }; /** * @param {?proto.com.daml.ledger.api.v1.Identifier|undefined} value * @return {!proto.com.daml.ledger.api.v1.ExercisedEvent} returns this */ proto.com.daml.ledger.api.v1.ExercisedEvent.prototype.setTemplateId = function(value) { return jspb.Message.setWrapperField(this, 3, value); }; /** * Clears the message field making it undefined. * @return {!proto.com.daml.ledger.api.v1.ExercisedEvent} returns this */ proto.com.daml.ledger.api.v1.ExercisedEvent.prototype.clearTemplateId = function() { return this.setTemplateId(undefined); }; /** * Returns whether this field is set. * @return {boolean} */ proto.com.daml.ledger.api.v1.ExercisedEvent.prototype.hasTemplateId = function() { return jspb.Message.getField(this, 3) != null; }; /** * optional string choice = 5; * @return {string} */ proto.com.daml.ledger.api.v1.ExercisedEvent.prototype.getChoice = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, "")); }; /** * @param {string} value * @return {!proto.com.daml.ledger.api.v1.ExercisedEvent} returns this */ proto.com.daml.ledger.api.v1.ExercisedEvent.prototype.setChoice = function(value) { return jspb.Message.setProto3StringField(this, 5, value); }; /** * optional Value choice_argument = 6; * @return {?proto.com.daml.ledger.api.v1.Value} */ proto.com.daml.ledger.api.v1.ExercisedEvent.prototype.getChoiceArgument = function() { return /** @type{?proto.com.daml.ledger.api.v1.Value} */ ( jspb.Message.getWrapperField(this, com_daml_ledger_api_v1_value_pb.Value, 6)); }; /** * @param {?proto.com.daml.ledger.api.v1.Value|undefined} value * @return {!proto.com.daml.ledger.api.v1.ExercisedEvent} returns this */ proto.com.daml.ledger.api.v1.ExercisedEvent.prototype.setChoiceArgument = function(value) { return jspb.Message.setWrapperField(this, 6, value); }; /** * Clears the message field making it undefined. * @return {!proto.com.daml.ledger.api.v1.ExercisedEvent} returns this */ proto.com.daml.ledger.api.v1.ExercisedEvent.prototype.clearChoiceArgument = function() { return this.setChoiceArgument(undefined); }; /** * Returns whether this field is set. * @return {boolean} */ proto.com.daml.ledger.api.v1.ExercisedEvent.prototype.hasChoiceArgument = function() { return jspb.Message.getField(this, 6) != null; }; /** * repeated string acting_parties = 7; * @return {!Array<string>} */ proto.com.daml.ledger.api.v1.ExercisedEvent.prototype.getActingPartiesList = function() { return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 7)); }; /** * @param {!Array<string>} value * @return {!proto.com.daml.ledger.api.v1.ExercisedEvent} returns this */ proto.com.daml.ledger.api.v1.ExercisedEvent.prototype.setActingPartiesList = function(value) { return jspb.Message.setField(this, 7, value || []); }; /** * @param {string} value * @param {number=} opt_index * @return {!proto.com.daml.ledger.api.v1.ExercisedEvent} returns this */ proto.com.daml.ledger.api.v1.ExercisedEvent.prototype.addActingParties = function(value, opt_index) { return jspb.Message.addToRepeatedField(this, 7, value, opt_index); }; /** * Clears the list making it empty but non-null. * @return {!proto.com.daml.ledger.api.v1.ExercisedEvent} returns this */ proto.com.daml.ledger.api.v1.ExercisedEvent.prototype.clearActingPartiesList = function() { return this.setActingPartiesList([]); }; /** * optional bool consuming = 8; * @return {boolean} */ proto.com.daml.ledger.api.v1.ExercisedEvent.prototype.getConsuming = function() { return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 8, false)); }; /** * @param {boolean} value * @return {!proto.com.daml.ledger.api.v1.ExercisedEvent} returns this */ proto.com.daml.ledger.api.v1.ExercisedEvent.prototype.setConsuming = function(value) { return jspb.Message.setProto3BooleanField(this, 8, value); }; /** * repeated string witness_parties = 10; * @return {!Array<string>} */ proto.com.daml.ledger.api.v1.ExercisedEvent.prototype.getWitnessPartiesList = function() { return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 10)); }; /** * @param {!Array<string>} value * @return {!proto.com.daml.ledger.api.v1.ExercisedEvent} returns this */ proto.com.daml.ledger.api.v1.ExercisedEvent.prototype.setWitnessPartiesList = function(value) { return jspb.Message.setField(this, 10, value || []); }; /** * @param {string} value * @param {number=} opt_index * @return {!proto.com.daml.ledger.api.v1.ExercisedEvent} returns this */ proto.com.daml.ledger.api.v1.ExercisedEvent.prototype.addWitnessParties = function(value, opt_index) { return jspb.Message.addToRepeatedField(this, 10, value, opt_index); }; /** * Clears the list making it empty but non-null. * @return {!proto.com.daml.ledger.api.v1.ExercisedEvent} returns this */ proto.com.daml.ledger.api.v1.ExercisedEvent.prototype.clearWitnessPartiesList = function() { return this.setWitnessPartiesList([]); }; /** * repeated string child_event_ids = 11; * @return {!Array<string>} */ proto.com.daml.ledger.api.v1.ExercisedEvent.prototype.getChildEventIdsList = function() { return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 11)); }; /** * @param {!Array<string>} value * @return {!proto.com.daml.ledger.api.v1.ExercisedEvent} returns this */ proto.com.daml.ledger.api.v1.ExercisedEvent.prototype.setChildEventIdsList = function(value) { return jspb.Message.setField(this, 11, value || []); }; /** * @param {string} value * @param {number=} opt_index * @return {!proto.com.daml.ledger.api.v1.ExercisedEvent} returns this */ proto.com.daml.ledger.api.v1.ExercisedEvent.prototype.addChildEventIds = function(value, opt_index) { return jspb.Message.addToRepeatedField(this, 11, value, opt_index); }; /** * Clears the list making it empty but non-null. * @return {!proto.com.daml.ledger.api.v1.ExercisedEvent} returns this */ proto.com.daml.ledger.api.v1.ExercisedEvent.prototype.clearChildEventIdsList = function() { return this.setChildEventIdsList([]); }; /** * optional Value exercise_result = 12; * @return {?proto.com.daml.ledger.api.v1.Value} */ proto.com.daml.ledg