@provenanceio/wallet-utils
Version:
Typescript Utilities for Provenance Blockchain Wallet
1,666 lines (1,357 loc) • 73.9 kB
JavaScript
"use strict";
// source: provenance/marker/v1/proposals.proto
/**
* @fileoverview
* @enhanceable
* @suppress {missingRequire} reports error on implicit type usages.
* @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!
/* eslint-disable */
// @ts-nocheck
var jspb = require('google-protobuf');
var goog = jspb;
var global = function () {
return this || window || global || self || Function('return this')();
}.call(null);
var gogoproto_gogo_pb = require('../../../gogoproto/gogo_pb.js');
goog.object.extend(proto, gogoproto_gogo_pb);
var cosmos_bank_v1beta1_bank_pb = require('../../../cosmos/bank/v1beta1/bank_pb.js');
goog.object.extend(proto, cosmos_bank_v1beta1_bank_pb);
var cosmos_base_v1beta1_coin_pb = require('../../../cosmos/base/v1beta1/coin_pb.js');
goog.object.extend(proto, cosmos_base_v1beta1_coin_pb);
var provenance_marker_v1_marker_pb = require('../../../provenance/marker/v1/marker_pb.js');
goog.object.extend(proto, provenance_marker_v1_marker_pb);
var provenance_marker_v1_accessgrant_pb = require('../../../provenance/marker/v1/accessgrant_pb.js');
goog.object.extend(proto, provenance_marker_v1_accessgrant_pb);
goog.exportSymbol('proto.provenance.marker.v1.AddMarkerProposal', null, global);
goog.exportSymbol('proto.provenance.marker.v1.ChangeStatusProposal', null, global);
goog.exportSymbol('proto.provenance.marker.v1.RemoveAdministratorProposal', null, global);
goog.exportSymbol('proto.provenance.marker.v1.SetAdministratorProposal', null, global);
goog.exportSymbol('proto.provenance.marker.v1.SetDenomMetadataProposal', null, global);
goog.exportSymbol('proto.provenance.marker.v1.SupplyDecreaseProposal', null, global);
goog.exportSymbol('proto.provenance.marker.v1.SupplyIncreaseProposal', null, global);
goog.exportSymbol('proto.provenance.marker.v1.WithdrawEscrowProposal', 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.provenance.marker.v1.AddMarkerProposal = function (opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, proto.provenance.marker.v1.AddMarkerProposal.repeatedFields_, null);
};
goog.inherits(proto.provenance.marker.v1.AddMarkerProposal, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.provenance.marker.v1.AddMarkerProposal.displayName = 'proto.provenance.marker.v1.AddMarkerProposal';
}
/**
* 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.provenance.marker.v1.SupplyIncreaseProposal = function (opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.provenance.marker.v1.SupplyIncreaseProposal, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.provenance.marker.v1.SupplyIncreaseProposal.displayName = 'proto.provenance.marker.v1.SupplyIncreaseProposal';
}
/**
* 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.provenance.marker.v1.SupplyDecreaseProposal = function (opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.provenance.marker.v1.SupplyDecreaseProposal, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.provenance.marker.v1.SupplyDecreaseProposal.displayName = 'proto.provenance.marker.v1.SupplyDecreaseProposal';
}
/**
* 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.provenance.marker.v1.SetAdministratorProposal = function (opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, proto.provenance.marker.v1.SetAdministratorProposal.repeatedFields_, null);
};
goog.inherits(proto.provenance.marker.v1.SetAdministratorProposal, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.provenance.marker.v1.SetAdministratorProposal.displayName = 'proto.provenance.marker.v1.SetAdministratorProposal';
}
/**
* 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.provenance.marker.v1.RemoveAdministratorProposal = function (opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, proto.provenance.marker.v1.RemoveAdministratorProposal.repeatedFields_, null);
};
goog.inherits(proto.provenance.marker.v1.RemoveAdministratorProposal, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.provenance.marker.v1.RemoveAdministratorProposal.displayName = 'proto.provenance.marker.v1.RemoveAdministratorProposal';
}
/**
* 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.provenance.marker.v1.ChangeStatusProposal = function (opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.provenance.marker.v1.ChangeStatusProposal, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.provenance.marker.v1.ChangeStatusProposal.displayName = 'proto.provenance.marker.v1.ChangeStatusProposal';
}
/**
* 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.provenance.marker.v1.WithdrawEscrowProposal = function (opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, proto.provenance.marker.v1.WithdrawEscrowProposal.repeatedFields_, null);
};
goog.inherits(proto.provenance.marker.v1.WithdrawEscrowProposal, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.provenance.marker.v1.WithdrawEscrowProposal.displayName = 'proto.provenance.marker.v1.WithdrawEscrowProposal';
}
/**
* 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.provenance.marker.v1.SetDenomMetadataProposal = function (opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.provenance.marker.v1.SetDenomMetadataProposal, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.provenance.marker.v1.SetDenomMetadataProposal.displayName = 'proto.provenance.marker.v1.SetDenomMetadataProposal';
}
/**
* List of repeated fields within this message type.
* @private {!Array<number>}
* @const
*/
proto.provenance.marker.v1.AddMarkerProposal.repeatedFields_ = [7];
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.provenance.marker.v1.AddMarkerProposal.prototype.toObject = function (opt_includeInstance) {
return proto.provenance.marker.v1.AddMarkerProposal.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.provenance.marker.v1.AddMarkerProposal} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.provenance.marker.v1.AddMarkerProposal.toObject = function (includeInstance, msg) {
var f,
obj = {
title: jspb.Message.getFieldWithDefault(msg, 1, ""),
description: jspb.Message.getFieldWithDefault(msg, 2, ""),
amount: (f = msg.getAmount()) && cosmos_base_v1beta1_coin_pb.Coin.toObject(includeInstance, f),
manager: jspb.Message.getFieldWithDefault(msg, 4, ""),
status: jspb.Message.getFieldWithDefault(msg, 5, 0),
markerType: jspb.Message.getFieldWithDefault(msg, 6, 0),
accessListList: jspb.Message.toObjectList(msg.getAccessListList(), provenance_marker_v1_accessgrant_pb.AccessGrant.toObject, includeInstance),
supplyFixed: jspb.Message.getBooleanFieldWithDefault(msg, 8, false),
allowGovernanceControl: jspb.Message.getBooleanFieldWithDefault(msg, 9, false)
};
if (includeInstance) {
obj.$jspbMessageInstance = msg;
}
return obj;
};
}
/**
* Deserializes binary data (in protobuf wire format).
* @param {jspb.ByteSource} bytes The bytes to deserialize.
* @return {!proto.provenance.marker.v1.AddMarkerProposal}
*/
proto.provenance.marker.v1.AddMarkerProposal.deserializeBinary = function (bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.provenance.marker.v1.AddMarkerProposal();
return proto.provenance.marker.v1.AddMarkerProposal.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.provenance.marker.v1.AddMarkerProposal} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.provenance.marker.v1.AddMarkerProposal}
*/
proto.provenance.marker.v1.AddMarkerProposal.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.setTitle(value);
break;
case 2:
var value =
/** @type {string} */
reader.readString();
msg.setDescription(value);
break;
case 3:
var value = new cosmos_base_v1beta1_coin_pb.Coin();
reader.readMessage(value, cosmos_base_v1beta1_coin_pb.Coin.deserializeBinaryFromReader);
msg.setAmount(value);
break;
case 4:
var value =
/** @type {string} */
reader.readString();
msg.setManager(value);
break;
case 5:
var value =
/** @type {!proto.provenance.marker.v1.MarkerStatus} */
reader.readEnum();
msg.setStatus(value);
break;
case 6:
var value =
/** @type {!proto.provenance.marker.v1.MarkerType} */
reader.readEnum();
msg.setMarkerType(value);
break;
case 7:
var value = new provenance_marker_v1_accessgrant_pb.AccessGrant();
reader.readMessage(value, provenance_marker_v1_accessgrant_pb.AccessGrant.deserializeBinaryFromReader);
msg.addAccessList(value);
break;
case 8:
var value =
/** @type {boolean} */
reader.readBool();
msg.setSupplyFixed(value);
break;
case 9:
var value =
/** @type {boolean} */
reader.readBool();
msg.setAllowGovernanceControl(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.provenance.marker.v1.AddMarkerProposal.prototype.serializeBinary = function () {
var writer = new jspb.BinaryWriter();
proto.provenance.marker.v1.AddMarkerProposal.serializeBinaryToWriter(this, writer);
return writer.getResultBuffer();
};
/**
* Serializes the given message to binary data (in protobuf wire
* format), writing to the given BinaryWriter.
* @param {!proto.provenance.marker.v1.AddMarkerProposal} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.provenance.marker.v1.AddMarkerProposal.serializeBinaryToWriter = function (message, writer) {
var f = undefined;
f = message.getTitle();
if (f.length > 0) {
writer.writeString(1, f);
}
f = message.getDescription();
if (f.length > 0) {
writer.writeString(2, f);
}
f = message.getAmount();
if (f != null) {
writer.writeMessage(3, f, cosmos_base_v1beta1_coin_pb.Coin.serializeBinaryToWriter);
}
f = message.getManager();
if (f.length > 0) {
writer.writeString(4, f);
}
f = message.getStatus();
if (f !== 0.0) {
writer.writeEnum(5, f);
}
f = message.getMarkerType();
if (f !== 0.0) {
writer.writeEnum(6, f);
}
f = message.getAccessListList();
if (f.length > 0) {
writer.writeRepeatedMessage(7, f, provenance_marker_v1_accessgrant_pb.AccessGrant.serializeBinaryToWriter);
}
f = message.getSupplyFixed();
if (f) {
writer.writeBool(8, f);
}
f = message.getAllowGovernanceControl();
if (f) {
writer.writeBool(9, f);
}
};
/**
* optional string title = 1;
* @return {string}
*/
proto.provenance.marker.v1.AddMarkerProposal.prototype.getTitle = function () {
return (
/** @type {string} */
jspb.Message.getFieldWithDefault(this, 1, "")
);
};
/**
* @param {string} value
* @return {!proto.provenance.marker.v1.AddMarkerProposal} returns this
*/
proto.provenance.marker.v1.AddMarkerProposal.prototype.setTitle = function (value) {
return jspb.Message.setProto3StringField(this, 1, value);
};
/**
* optional string description = 2;
* @return {string}
*/
proto.provenance.marker.v1.AddMarkerProposal.prototype.getDescription = function () {
return (
/** @type {string} */
jspb.Message.getFieldWithDefault(this, 2, "")
);
};
/**
* @param {string} value
* @return {!proto.provenance.marker.v1.AddMarkerProposal} returns this
*/
proto.provenance.marker.v1.AddMarkerProposal.prototype.setDescription = function (value) {
return jspb.Message.setProto3StringField(this, 2, value);
};
/**
* optional cosmos.base.v1beta1.Coin amount = 3;
* @return {?proto.cosmos.base.v1beta1.Coin}
*/
proto.provenance.marker.v1.AddMarkerProposal.prototype.getAmount = function () {
return (
/** @type{?proto.cosmos.base.v1beta1.Coin} */
jspb.Message.getWrapperField(this, cosmos_base_v1beta1_coin_pb.Coin, 3)
);
};
/**
* @param {?proto.cosmos.base.v1beta1.Coin|undefined} value
* @return {!proto.provenance.marker.v1.AddMarkerProposal} returns this
*/
proto.provenance.marker.v1.AddMarkerProposal.prototype.setAmount = function (value) {
return jspb.Message.setWrapperField(this, 3, value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.provenance.marker.v1.AddMarkerProposal} returns this
*/
proto.provenance.marker.v1.AddMarkerProposal.prototype.clearAmount = function () {
return this.setAmount(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.provenance.marker.v1.AddMarkerProposal.prototype.hasAmount = function () {
return jspb.Message.getField(this, 3) != null;
};
/**
* optional string manager = 4;
* @return {string}
*/
proto.provenance.marker.v1.AddMarkerProposal.prototype.getManager = function () {
return (
/** @type {string} */
jspb.Message.getFieldWithDefault(this, 4, "")
);
};
/**
* @param {string} value
* @return {!proto.provenance.marker.v1.AddMarkerProposal} returns this
*/
proto.provenance.marker.v1.AddMarkerProposal.prototype.setManager = function (value) {
return jspb.Message.setProto3StringField(this, 4, value);
};
/**
* optional MarkerStatus status = 5;
* @return {!proto.provenance.marker.v1.MarkerStatus}
*/
proto.provenance.marker.v1.AddMarkerProposal.prototype.getStatus = function () {
return (
/** @type {!proto.provenance.marker.v1.MarkerStatus} */
jspb.Message.getFieldWithDefault(this, 5, 0)
);
};
/**
* @param {!proto.provenance.marker.v1.MarkerStatus} value
* @return {!proto.provenance.marker.v1.AddMarkerProposal} returns this
*/
proto.provenance.marker.v1.AddMarkerProposal.prototype.setStatus = function (value) {
return jspb.Message.setProto3EnumField(this, 5, value);
};
/**
* optional MarkerType marker_type = 6;
* @return {!proto.provenance.marker.v1.MarkerType}
*/
proto.provenance.marker.v1.AddMarkerProposal.prototype.getMarkerType = function () {
return (
/** @type {!proto.provenance.marker.v1.MarkerType} */
jspb.Message.getFieldWithDefault(this, 6, 0)
);
};
/**
* @param {!proto.provenance.marker.v1.MarkerType} value
* @return {!proto.provenance.marker.v1.AddMarkerProposal} returns this
*/
proto.provenance.marker.v1.AddMarkerProposal.prototype.setMarkerType = function (value) {
return jspb.Message.setProto3EnumField(this, 6, value);
};
/**
* repeated AccessGrant access_list = 7;
* @return {!Array<!proto.provenance.marker.v1.AccessGrant>}
*/
proto.provenance.marker.v1.AddMarkerProposal.prototype.getAccessListList = function () {
return (
/** @type{!Array<!proto.provenance.marker.v1.AccessGrant>} */
jspb.Message.getRepeatedWrapperField(this, provenance_marker_v1_accessgrant_pb.AccessGrant, 7)
);
};
/**
* @param {!Array<!proto.provenance.marker.v1.AccessGrant>} value
* @return {!proto.provenance.marker.v1.AddMarkerProposal} returns this
*/
proto.provenance.marker.v1.AddMarkerProposal.prototype.setAccessListList = function (value) {
return jspb.Message.setRepeatedWrapperField(this, 7, value);
};
/**
* @param {!proto.provenance.marker.v1.AccessGrant=} opt_value
* @param {number=} opt_index
* @return {!proto.provenance.marker.v1.AccessGrant}
*/
proto.provenance.marker.v1.AddMarkerProposal.prototype.addAccessList = function (opt_value, opt_index) {
return jspb.Message.addToRepeatedWrapperField(this, 7, opt_value, proto.provenance.marker.v1.AccessGrant, opt_index);
};
/**
* Clears the list making it empty but non-null.
* @return {!proto.provenance.marker.v1.AddMarkerProposal} returns this
*/
proto.provenance.marker.v1.AddMarkerProposal.prototype.clearAccessListList = function () {
return this.setAccessListList([]);
};
/**
* optional bool supply_fixed = 8;
* @return {boolean}
*/
proto.provenance.marker.v1.AddMarkerProposal.prototype.getSupplyFixed = function () {
return (
/** @type {boolean} */
jspb.Message.getBooleanFieldWithDefault(this, 8, false)
);
};
/**
* @param {boolean} value
* @return {!proto.provenance.marker.v1.AddMarkerProposal} returns this
*/
proto.provenance.marker.v1.AddMarkerProposal.prototype.setSupplyFixed = function (value) {
return jspb.Message.setProto3BooleanField(this, 8, value);
};
/**
* optional bool allow_governance_control = 9;
* @return {boolean}
*/
proto.provenance.marker.v1.AddMarkerProposal.prototype.getAllowGovernanceControl = function () {
return (
/** @type {boolean} */
jspb.Message.getBooleanFieldWithDefault(this, 9, false)
);
};
/**
* @param {boolean} value
* @return {!proto.provenance.marker.v1.AddMarkerProposal} returns this
*/
proto.provenance.marker.v1.AddMarkerProposal.prototype.setAllowGovernanceControl = function (value) {
return jspb.Message.setProto3BooleanField(this, 9, value);
};
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.provenance.marker.v1.SupplyIncreaseProposal.prototype.toObject = function (opt_includeInstance) {
return proto.provenance.marker.v1.SupplyIncreaseProposal.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.provenance.marker.v1.SupplyIncreaseProposal} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.provenance.marker.v1.SupplyIncreaseProposal.toObject = function (includeInstance, msg) {
var f,
obj = {
title: jspb.Message.getFieldWithDefault(msg, 1, ""),
description: jspb.Message.getFieldWithDefault(msg, 2, ""),
amount: (f = msg.getAmount()) && cosmos_base_v1beta1_coin_pb.Coin.toObject(includeInstance, f),
targetAddress: jspb.Message.getFieldWithDefault(msg, 4, "")
};
if (includeInstance) {
obj.$jspbMessageInstance = msg;
}
return obj;
};
}
/**
* Deserializes binary data (in protobuf wire format).
* @param {jspb.ByteSource} bytes The bytes to deserialize.
* @return {!proto.provenance.marker.v1.SupplyIncreaseProposal}
*/
proto.provenance.marker.v1.SupplyIncreaseProposal.deserializeBinary = function (bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.provenance.marker.v1.SupplyIncreaseProposal();
return proto.provenance.marker.v1.SupplyIncreaseProposal.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.provenance.marker.v1.SupplyIncreaseProposal} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.provenance.marker.v1.SupplyIncreaseProposal}
*/
proto.provenance.marker.v1.SupplyIncreaseProposal.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.setTitle(value);
break;
case 2:
var value =
/** @type {string} */
reader.readString();
msg.setDescription(value);
break;
case 3:
var value = new cosmos_base_v1beta1_coin_pb.Coin();
reader.readMessage(value, cosmos_base_v1beta1_coin_pb.Coin.deserializeBinaryFromReader);
msg.setAmount(value);
break;
case 4:
var value =
/** @type {string} */
reader.readString();
msg.setTargetAddress(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.provenance.marker.v1.SupplyIncreaseProposal.prototype.serializeBinary = function () {
var writer = new jspb.BinaryWriter();
proto.provenance.marker.v1.SupplyIncreaseProposal.serializeBinaryToWriter(this, writer);
return writer.getResultBuffer();
};
/**
* Serializes the given message to binary data (in protobuf wire
* format), writing to the given BinaryWriter.
* @param {!proto.provenance.marker.v1.SupplyIncreaseProposal} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.provenance.marker.v1.SupplyIncreaseProposal.serializeBinaryToWriter = function (message, writer) {
var f = undefined;
f = message.getTitle();
if (f.length > 0) {
writer.writeString(1, f);
}
f = message.getDescription();
if (f.length > 0) {
writer.writeString(2, f);
}
f = message.getAmount();
if (f != null) {
writer.writeMessage(3, f, cosmos_base_v1beta1_coin_pb.Coin.serializeBinaryToWriter);
}
f = message.getTargetAddress();
if (f.length > 0) {
writer.writeString(4, f);
}
};
/**
* optional string title = 1;
* @return {string}
*/
proto.provenance.marker.v1.SupplyIncreaseProposal.prototype.getTitle = function () {
return (
/** @type {string} */
jspb.Message.getFieldWithDefault(this, 1, "")
);
};
/**
* @param {string} value
* @return {!proto.provenance.marker.v1.SupplyIncreaseProposal} returns this
*/
proto.provenance.marker.v1.SupplyIncreaseProposal.prototype.setTitle = function (value) {
return jspb.Message.setProto3StringField(this, 1, value);
};
/**
* optional string description = 2;
* @return {string}
*/
proto.provenance.marker.v1.SupplyIncreaseProposal.prototype.getDescription = function () {
return (
/** @type {string} */
jspb.Message.getFieldWithDefault(this, 2, "")
);
};
/**
* @param {string} value
* @return {!proto.provenance.marker.v1.SupplyIncreaseProposal} returns this
*/
proto.provenance.marker.v1.SupplyIncreaseProposal.prototype.setDescription = function (value) {
return jspb.Message.setProto3StringField(this, 2, value);
};
/**
* optional cosmos.base.v1beta1.Coin amount = 3;
* @return {?proto.cosmos.base.v1beta1.Coin}
*/
proto.provenance.marker.v1.SupplyIncreaseProposal.prototype.getAmount = function () {
return (
/** @type{?proto.cosmos.base.v1beta1.Coin} */
jspb.Message.getWrapperField(this, cosmos_base_v1beta1_coin_pb.Coin, 3)
);
};
/**
* @param {?proto.cosmos.base.v1beta1.Coin|undefined} value
* @return {!proto.provenance.marker.v1.SupplyIncreaseProposal} returns this
*/
proto.provenance.marker.v1.SupplyIncreaseProposal.prototype.setAmount = function (value) {
return jspb.Message.setWrapperField(this, 3, value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.provenance.marker.v1.SupplyIncreaseProposal} returns this
*/
proto.provenance.marker.v1.SupplyIncreaseProposal.prototype.clearAmount = function () {
return this.setAmount(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.provenance.marker.v1.SupplyIncreaseProposal.prototype.hasAmount = function () {
return jspb.Message.getField(this, 3) != null;
};
/**
* optional string target_address = 4;
* @return {string}
*/
proto.provenance.marker.v1.SupplyIncreaseProposal.prototype.getTargetAddress = function () {
return (
/** @type {string} */
jspb.Message.getFieldWithDefault(this, 4, "")
);
};
/**
* @param {string} value
* @return {!proto.provenance.marker.v1.SupplyIncreaseProposal} returns this
*/
proto.provenance.marker.v1.SupplyIncreaseProposal.prototype.setTargetAddress = function (value) {
return jspb.Message.setProto3StringField(this, 4, value);
};
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.provenance.marker.v1.SupplyDecreaseProposal.prototype.toObject = function (opt_includeInstance) {
return proto.provenance.marker.v1.SupplyDecreaseProposal.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.provenance.marker.v1.SupplyDecreaseProposal} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.provenance.marker.v1.SupplyDecreaseProposal.toObject = function (includeInstance, msg) {
var f,
obj = {
title: jspb.Message.getFieldWithDefault(msg, 1, ""),
description: jspb.Message.getFieldWithDefault(msg, 2, ""),
amount: (f = msg.getAmount()) && cosmos_base_v1beta1_coin_pb.Coin.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.provenance.marker.v1.SupplyDecreaseProposal}
*/
proto.provenance.marker.v1.SupplyDecreaseProposal.deserializeBinary = function (bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.provenance.marker.v1.SupplyDecreaseProposal();
return proto.provenance.marker.v1.SupplyDecreaseProposal.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.provenance.marker.v1.SupplyDecreaseProposal} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.provenance.marker.v1.SupplyDecreaseProposal}
*/
proto.provenance.marker.v1.SupplyDecreaseProposal.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.setTitle(value);
break;
case 2:
var value =
/** @type {string} */
reader.readString();
msg.setDescription(value);
break;
case 3:
var value = new cosmos_base_v1beta1_coin_pb.Coin();
reader.readMessage(value, cosmos_base_v1beta1_coin_pb.Coin.deserializeBinaryFromReader);
msg.setAmount(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.provenance.marker.v1.SupplyDecreaseProposal.prototype.serializeBinary = function () {
var writer = new jspb.BinaryWriter();
proto.provenance.marker.v1.SupplyDecreaseProposal.serializeBinaryToWriter(this, writer);
return writer.getResultBuffer();
};
/**
* Serializes the given message to binary data (in protobuf wire
* format), writing to the given BinaryWriter.
* @param {!proto.provenance.marker.v1.SupplyDecreaseProposal} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.provenance.marker.v1.SupplyDecreaseProposal.serializeBinaryToWriter = function (message, writer) {
var f = undefined;
f = message.getTitle();
if (f.length > 0) {
writer.writeString(1, f);
}
f = message.getDescription();
if (f.length > 0) {
writer.writeString(2, f);
}
f = message.getAmount();
if (f != null) {
writer.writeMessage(3, f, cosmos_base_v1beta1_coin_pb.Coin.serializeBinaryToWriter);
}
};
/**
* optional string title = 1;
* @return {string}
*/
proto.provenance.marker.v1.SupplyDecreaseProposal.prototype.getTitle = function () {
return (
/** @type {string} */
jspb.Message.getFieldWithDefault(this, 1, "")
);
};
/**
* @param {string} value
* @return {!proto.provenance.marker.v1.SupplyDecreaseProposal} returns this
*/
proto.provenance.marker.v1.SupplyDecreaseProposal.prototype.setTitle = function (value) {
return jspb.Message.setProto3StringField(this, 1, value);
};
/**
* optional string description = 2;
* @return {string}
*/
proto.provenance.marker.v1.SupplyDecreaseProposal.prototype.getDescription = function () {
return (
/** @type {string} */
jspb.Message.getFieldWithDefault(this, 2, "")
);
};
/**
* @param {string} value
* @return {!proto.provenance.marker.v1.SupplyDecreaseProposal} returns this
*/
proto.provenance.marker.v1.SupplyDecreaseProposal.prototype.setDescription = function (value) {
return jspb.Message.setProto3StringField(this, 2, value);
};
/**
* optional cosmos.base.v1beta1.Coin amount = 3;
* @return {?proto.cosmos.base.v1beta1.Coin}
*/
proto.provenance.marker.v1.SupplyDecreaseProposal.prototype.getAmount = function () {
return (
/** @type{?proto.cosmos.base.v1beta1.Coin} */
jspb.Message.getWrapperField(this, cosmos_base_v1beta1_coin_pb.Coin, 3)
);
};
/**
* @param {?proto.cosmos.base.v1beta1.Coin|undefined} value
* @return {!proto.provenance.marker.v1.SupplyDecreaseProposal} returns this
*/
proto.provenance.marker.v1.SupplyDecreaseProposal.prototype.setAmount = function (value) {
return jspb.Message.setWrapperField(this, 3, value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.provenance.marker.v1.SupplyDecreaseProposal} returns this
*/
proto.provenance.marker.v1.SupplyDecreaseProposal.prototype.clearAmount = function () {
return this.setAmount(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.provenance.marker.v1.SupplyDecreaseProposal.prototype.hasAmount = function () {
return jspb.Message.getField(this, 3) != null;
};
/**
* List of repeated fields within this message type.
* @private {!Array<number>}
* @const
*/
proto.provenance.marker.v1.SetAdministratorProposal.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.provenance.marker.v1.SetAdministratorProposal.prototype.toObject = function (opt_includeInstance) {
return proto.provenance.marker.v1.SetAdministratorProposal.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.provenance.marker.v1.SetAdministratorProposal} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.provenance.marker.v1.SetAdministratorProposal.toObject = function (includeInstance, msg) {
var f,
obj = {
title: jspb.Message.getFieldWithDefault(msg, 1, ""),
description: jspb.Message.getFieldWithDefault(msg, 2, ""),
denom: jspb.Message.getFieldWithDefault(msg, 3, ""),
accessList: jspb.Message.toObjectList(msg.getAccessList(), provenance_marker_v1_accessgrant_pb.AccessGrant.toObject, includeInstance)
};
if (includeInstance) {
obj.$jspbMessageInstance = msg;
}
return obj;
};
}
/**
* Deserializes binary data (in protobuf wire format).
* @param {jspb.ByteSource} bytes The bytes to deserialize.
* @return {!proto.provenance.marker.v1.SetAdministratorProposal}
*/
proto.provenance.marker.v1.SetAdministratorProposal.deserializeBinary = function (bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.provenance.marker.v1.SetAdministratorProposal();
return proto.provenance.marker.v1.SetAdministratorProposal.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.provenance.marker.v1.SetAdministratorProposal} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.provenance.marker.v1.SetAdministratorProposal}
*/
proto.provenance.marker.v1.SetAdministratorProposal.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.setTitle(value);
break;
case 2:
var value =
/** @type {string} */
reader.readString();
msg.setDescription(value);
break;
case 3:
var value =
/** @type {string} */
reader.readString();
msg.setDenom(value);
break;
case 4:
var value = new provenance_marker_v1_accessgrant_pb.AccessGrant();
reader.readMessage(value, provenance_marker_v1_accessgrant_pb.AccessGrant.deserializeBinaryFromReader);
msg.addAccess(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.provenance.marker.v1.SetAdministratorProposal.prototype.serializeBinary = function () {
var writer = new jspb.BinaryWriter();
proto.provenance.marker.v1.SetAdministratorProposal.serializeBinaryToWriter(this, writer);
return writer.getResultBuffer();
};
/**
* Serializes the given message to binary data (in protobuf wire
* format), writing to the given BinaryWriter.
* @param {!proto.provenance.marker.v1.SetAdministratorProposal} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.provenance.marker.v1.SetAdministratorProposal.serializeBinaryToWriter = function (message, writer) {
var f = undefined;
f = message.getTitle();
if (f.length > 0) {
writer.writeString(1, f);
}
f = message.getDescription();
if (f.length > 0) {
writer.writeString(2, f);
}
f = message.getDenom();
if (f.length > 0) {
writer.writeString(3, f);
}
f = message.getAccessList();
if (f.length > 0) {
writer.writeRepeatedMessage(4, f, provenance_marker_v1_accessgrant_pb.AccessGrant.serializeBinaryToWriter);
}
};
/**
* optional string title = 1;
* @return {string}
*/
proto.provenance.marker.v1.SetAdministratorProposal.prototype.getTitle = function () {
return (
/** @type {string} */
jspb.Message.getFieldWithDefault(this, 1, "")
);
};
/**
* @param {string} value
* @return {!proto.provenance.marker.v1.SetAdministratorProposal} returns this
*/
proto.provenance.marker.v1.SetAdministratorProposal.prototype.setTitle = function (value) {
return jspb.Message.setProto3StringField(this, 1, value);
};
/**
* optional string description = 2;
* @return {string}
*/
proto.provenance.marker.v1.SetAdministratorProposal.prototype.getDescription = function () {
return (
/** @type {string} */
jspb.Message.getFieldWithDefault(this, 2, "")
);
};
/**
* @param {string} value
* @return {!proto.provenance.marker.v1.SetAdministratorProposal} returns this
*/
proto.provenance.marker.v1.SetAdministratorProposal.prototype.setDescription = function (value) {
return jspb.Message.setProto3StringField(this, 2, value);
};
/**
* optional string denom = 3;
* @return {string}
*/
proto.provenance.marker.v1.SetAdministratorProposal.prototype.getDenom = function () {
return (
/** @type {string} */
jspb.Message.getFieldWithDefault(this, 3, "")
);
};
/**
* @param {string} value
* @return {!proto.provenance.marker.v1.SetAdministratorProposal} returns this
*/
proto.provenance.marker.v1.SetAdministratorProposal.prototype.setDenom = function (value) {
return jspb.Message.setProto3StringField(this, 3, value);
};
/**
* repeated AccessGrant access = 4;
* @return {!Array<!proto.provenance.marker.v1.AccessGrant>}
*/
proto.provenance.marker.v1.SetAdministratorProposal.prototype.getAccessList = function () {
return (
/** @type{!Array<!proto.provenance.marker.v1.AccessGrant>} */
jspb.Message.getRepeatedWrapperField(this, provenance_marker_v1_accessgrant_pb.AccessGrant, 4)
);
};
/**
* @param {!Array<!proto.provenance.marker.v1.AccessGrant>} value
* @return {!proto.provenance.marker.v1.SetAdministratorProposal} returns this
*/
proto.provenance.marker.v1.SetAdministratorProposal.prototype.setAccessList = function (value) {
return jspb.Message.setRepeatedWrapperField(this, 4, value);
};
/**
* @param {!proto.provenance.marker.v1.AccessGrant=} opt_value
* @param {number=} opt_index
* @return {!proto.provenance.marker.v1.AccessGrant}
*/
proto.provenance.marker.v1.SetAdministratorProposal.prototype.addAccess = function (opt_value, opt_index) {
return jspb.Message.addToRepeatedWrapperField(this, 4, opt_value, proto.provenance.marker.v1.AccessGrant, opt_index);
};
/**
* Clears the list making it empty but non-null.
* @return {!proto.provenance.marker.v1.SetAdministratorProposal} returns this
*/
proto.provenance.marker.v1.SetAdministratorProposal.prototype.clearAccessList = function () {
return this.setAccessList([]);
};
/**
* List of repeated fields within this message type.
* @private {!Array<number>}
* @const
*/
proto.provenance.marker.v1.RemoveAdministratorProposal.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.provenance.marker.v1.RemoveAdministratorProposal.prototype.toObject = function (opt_includeInstance) {
return proto.provenance.marker.v1.RemoveAdministratorProposal.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.provenance.marker.v1.RemoveAdministratorProposal} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.provenance.marker.v1.RemoveAdministratorProposal.toObject = function (includeInstance, msg) {
var f,
obj = {
title: jspb.Message.getFieldWithDefault(msg, 1, ""),
description: jspb.Message.getFieldWithDefault(msg, 2, ""),
denom: jspb.Message.getFieldWithDefault(msg, 3, ""),
removedAddressList: (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.provenance.marker.v1.RemoveAdministratorProposal}
*/
proto.provenance.marker.v1.RemoveAdministratorProposal.deserializeBinary = function (bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.provenance.marker.v1.RemoveAdministratorProposal();
return proto.provenance.marker.v1.RemoveAdministratorProposal.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.provenance.marker.v1.RemoveAdministratorProposal} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.provenance.marker.v1.RemoveAdministratorProposal}
*/
proto.provenance.marker.v1.RemoveAdministratorProposal.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.setTitle(value);
break;
case 2:
var value =
/** @type {string} */
reader.readString();
msg.setDescription(value);
break;
case 3:
var value =
/** @type {string} */
reader.readString();
msg.setDenom(value);
break;
case 4:
var value =
/** @type {string} */
reader.readString();
msg.addRemovedAddress(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.provenance.marker.v1.RemoveAdministratorProposal.prototype.serializeBinary = function () {
var writer = new jspb.BinaryWriter();
proto.provenance.marker.v1.RemoveAdministratorProposal.serializeBinaryToWriter(this, writer);
return writer.getResultBuffer();
};
/**
* Serializes the given message to binary data (in protobuf wire
* format), writing to the given BinaryWriter.
* @param {!proto.provenance.marker.v1.RemoveAdministratorProposal} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.provenance.marker.v1.RemoveAdministratorProposal.serializeBinaryToWriter = function (message, writer) {
var f = undefined;
f = message.getTitle();
if (f.length > 0) {
writer.writeString(1, f);
}
f = message.getDescription();
if (f.length > 0) {
writer.writeString(2, f);
}
f = message.getDenom();
if (f.length > 0) {
writer.writeString(3, f);
}
f = message.getRemovedAddressList();
if (f.length > 0) {
writer.writeRepeatedString(4, f);
}
};
/**
* optional string title = 1;
* @return {string}
*/
proto.provenance.marker.v1.RemoveAdministratorProposal.prototype.getTitle = function () {
return (
/** @type {string} */
jspb.Message.getFieldWithDefault(this, 1, "")
);
};
/**
* @param {string} value
* @return {!proto.provenance.marker.v1.RemoveAdministratorProposal} returns this
*/
proto.provenance.marker.v1.RemoveAdministratorProposal.prototype.setTitle = function (value) {
return jspb.Message.setProto3StringField(this, 1, value);
};
/**
* optional string description = 2;
* @return {string}
*/
proto.provenance.marker.v1.RemoveAdministratorProposal.prototype.getDescription = function () {
return (
/** @type {string} */
jspb.Message.getFieldWithDefault(this, 2, "")
);
};
/**
* @param {string} value
* @return {!proto.provenance.marker.v1.RemoveAdministratorProposal} returns this
*/
proto.provenance.marker.v1.RemoveAdministratorProposal.prototype.setDescription = function (value) {
return jspb.Message.setProto3StringField(this, 2, value);
};
/**
* optional string denom = 3;
* @return {string}
*/
proto.provenance.marker.v1.RemoveAdministratorProposal.prototype.getDenom = function () {