Skip to content

Instantly share code, notes, and snippets.

@Sammuel09
Created February 13, 2020 11:32
Show Gist options
  • Save Sammuel09/5d16563fb4f77c46192eaaaa8324d359 to your computer and use it in GitHub Desktop.
Save Sammuel09/5d16563fb4f77c46192eaaaa8324d359 to your computer and use it in GitHub Desktop.
all_pb.js
// source: all.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 google_protobuf_timestamp_pb = require('google-protobuf/google/protobuf/timestamp_pb.js');
goog.object.extend(proto, google_protobuf_timestamp_pb);
var protoc$gen$swagger_options_annotations_pb = require('./protoc-gen-swagger/options/annotations_pb.js');
goog.object.extend(proto, protoc$gen$swagger_options_annotations_pb);
var brank_as_openbank$services_suite_b$enterprise_gunk_disbursement_v1_types_all_pb = require('./all_pb.js');
goog.object.extend(proto, brank_as_openbank$services_suite_b$enterprise_gunk_disbursement_v1_types_all_pb);
goog.exportSymbol('proto.disbursement.AccountInquiryRequest', null, global);
goog.exportSymbol('proto.disbursement.AccountInquiryResponse', null, global);
goog.exportSymbol('proto.disbursement.BankAccountInfo', null, global);
goog.exportSymbol('proto.disbursement.BankAccountType', null, global);
goog.exportSymbol('proto.disbursement.BankCode', null, global);
goog.exportSymbol('proto.disbursement.BankCredential', null, global);
goog.exportSymbol('proto.disbursement.BankCredentialType', null, global);
goog.exportSymbol('proto.disbursement.CreateDisbursementsRequest', null, global);
goog.exportSymbol('proto.disbursement.CreateDisbursementsResponse', null, global);
goog.exportSymbol('proto.disbursement.Date', null, global);
goog.exportSymbol('proto.disbursement.Disbursement', null, global);
goog.exportSymbol('proto.disbursement.DisbursementResult', null, global);
goog.exportSymbol('proto.disbursement.DisbursementType', null, global);
goog.exportSymbol('proto.disbursement.Error', null, global);
goog.exportSymbol('proto.disbursement.External', null, global);
goog.exportSymbol('proto.disbursement.ExternalStatusUpdatesRequest', null, global);
goog.exportSymbol('proto.disbursement.ExternalStatusUpdatesResponse', null, global);
goog.exportSymbol('proto.disbursement.Fee', null, global);
goog.exportSymbol('proto.disbursement.Fees', null, global);
goog.exportSymbol('proto.disbursement.ProcessFutureDisbursementsRequest', null, global);
goog.exportSymbol('proto.disbursement.ProcessFutureDisbursementsResponse', null, global);
goog.exportSymbol('proto.disbursement.Result', null, global);
goog.exportSymbol('proto.disbursement.RetrieveDisbursementsRequest', null, global);
goog.exportSymbol('proto.disbursement.RetrieveDisbursementsResponse', null, global);
goog.exportSymbol('proto.disbursement.Status', 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.disbursement.Result = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, proto.disbursement.Result.repeatedFields_, null);
};
goog.inherits(proto.disbursement.Result, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.disbursement.Result.displayName = 'proto.disbursement.Result';
}
/**
* 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.disbursement.Error = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.disbursement.Error, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.disbursement.Error.displayName = 'proto.disbursement.Error';
}
/**
* 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.disbursement.Date = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.disbursement.Date, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.disbursement.Date.displayName = 'proto.disbursement.Date';
}
/**
* 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.disbursement.BankAccountInfo = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.disbursement.BankAccountInfo, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.disbursement.BankAccountInfo.displayName = 'proto.disbursement.BankAccountInfo';
}
/**
* 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.disbursement.External = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, proto.disbursement.External.repeatedFields_, null);
};
goog.inherits(proto.disbursement.External, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.disbursement.External.displayName = 'proto.disbursement.External';
}
/**
* 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.disbursement.Fee = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.disbursement.Fee, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.disbursement.Fee.displayName = 'proto.disbursement.Fee';
}
/**
* 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.disbursement.Fees = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, proto.disbursement.Fees.repeatedFields_, null);
};
goog.inherits(proto.disbursement.Fees, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.disbursement.Fees.displayName = 'proto.disbursement.Fees';
}
/**
* 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.disbursement.Disbursement = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.disbursement.Disbursement, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.disbursement.Disbursement.displayName = 'proto.disbursement.Disbursement';
}
/**
* 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.disbursement.DisbursementResult = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.disbursement.DisbursementResult, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.disbursement.DisbursementResult.displayName = 'proto.disbursement.DisbursementResult';
}
/**
* 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.disbursement.BankCredential = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.disbursement.BankCredential, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.disbursement.BankCredential.displayName = 'proto.disbursement.BankCredential';
}
/**
* 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.disbursement.CreateDisbursementsRequest = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, proto.disbursement.CreateDisbursementsRequest.repeatedFields_, null);
};
goog.inherits(proto.disbursement.CreateDisbursementsRequest, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.disbursement.CreateDisbursementsRequest.displayName = 'proto.disbursement.CreateDisbursementsRequest';
}
/**
* 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.disbursement.CreateDisbursementsResponse = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, proto.disbursement.CreateDisbursementsResponse.repeatedFields_, null);
};
goog.inherits(proto.disbursement.CreateDisbursementsResponse, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.disbursement.CreateDisbursementsResponse.displayName = 'proto.disbursement.CreateDisbursementsResponse';
}
/**
* 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.disbursement.RetrieveDisbursementsRequest = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, proto.disbursement.RetrieveDisbursementsRequest.repeatedFields_, null);
};
goog.inherits(proto.disbursement.RetrieveDisbursementsRequest, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.disbursement.RetrieveDisbursementsRequest.displayName = 'proto.disbursement.RetrieveDisbursementsRequest';
}
/**
* 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.disbursement.RetrieveDisbursementsResponse = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, proto.disbursement.RetrieveDisbursementsResponse.repeatedFields_, null);
};
goog.inherits(proto.disbursement.RetrieveDisbursementsResponse, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.disbursement.RetrieveDisbursementsResponse.displayName = 'proto.disbursement.RetrieveDisbursementsResponse';
}
/**
* 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.disbursement.ExternalStatusUpdatesRequest = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, proto.disbursement.ExternalStatusUpdatesRequest.repeatedFields_, null);
};
goog.inherits(proto.disbursement.ExternalStatusUpdatesRequest, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.disbursement.ExternalStatusUpdatesRequest.displayName = 'proto.disbursement.ExternalStatusUpdatesRequest';
}
/**
* 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.disbursement.ExternalStatusUpdatesResponse = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, proto.disbursement.ExternalStatusUpdatesResponse.repeatedFields_, null);
};
goog.inherits(proto.disbursement.ExternalStatusUpdatesResponse, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.disbursement.ExternalStatusUpdatesResponse.displayName = 'proto.disbursement.ExternalStatusUpdatesResponse';
}
/**
* 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.disbursement.ProcessFutureDisbursementsRequest = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, proto.disbursement.ProcessFutureDisbursementsRequest.repeatedFields_, null);
};
goog.inherits(proto.disbursement.ProcessFutureDisbursementsRequest, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.disbursement.ProcessFutureDisbursementsRequest.displayName = 'proto.disbursement.ProcessFutureDisbursementsRequest';
}
/**
* 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.disbursement.ProcessFutureDisbursementsResponse = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, proto.disbursement.ProcessFutureDisbursementsResponse.repeatedFields_, null);
};
goog.inherits(proto.disbursement.ProcessFutureDisbursementsResponse, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.disbursement.ProcessFutureDisbursementsResponse.displayName = 'proto.disbursement.ProcessFutureDisbursementsResponse';
}
/**
* 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.disbursement.AccountInquiryRequest = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.disbursement.AccountInquiryRequest, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.disbursement.AccountInquiryRequest.displayName = 'proto.disbursement.AccountInquiryRequest';
}
/**
* 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.disbursement.AccountInquiryResponse = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.disbursement.AccountInquiryResponse, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.disbursement.AccountInquiryResponse.displayName = 'proto.disbursement.AccountInquiryResponse';
}
/**
* List of repeated fields within this message type.
* @private {!Array<number>}
* @const
*/
proto.disbursement.Result.repeatedFields_ = [2];
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.disbursement.Result.prototype.toObject = function(opt_includeInstance) {
return proto.disbursement.Result.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.disbursement.Result} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.disbursement.Result.toObject = function(includeInstance, msg) {
var f, obj = {
success: jspb.Message.getBooleanFieldWithDefault(msg, 1, false),
errorList: jspb.Message.toObjectList(msg.getErrorList(),
proto.disbursement.Error.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.disbursement.Result}
*/
proto.disbursement.Result.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.disbursement.Result;
return proto.disbursement.Result.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.disbursement.Result} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.disbursement.Result}
*/
proto.disbursement.Result.deserializeBinaryFromReader = function(msg, reader) {
while (reader.nextField()) {
if (reader.isEndGroup()) {
break;
}
var field = reader.getFieldNumber();
switch (field) {
case 1:
var value = /** @type {boolean} */ (reader.readBool());
msg.setSuccess(value);
break;
case 2:
var value = new proto.disbursement.Error;
reader.readMessage(value,proto.disbursement.Error.deserializeBinaryFromReader);
msg.addError(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.disbursement.Result.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.disbursement.Result.serializeBinaryToWriter(this, writer);
return writer.getResultBuffer();
};
/**
* Serializes the given message to binary data (in protobuf wire
* format), writing to the given BinaryWriter.
* @param {!proto.disbursement.Result} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.disbursement.Result.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = message.getSuccess();
if (f) {
writer.writeBool(
1,
f
);
}
f = message.getErrorList();
if (f.length > 0) {
writer.writeRepeatedMessage(
2,
f,
proto.disbursement.Error.serializeBinaryToWriter
);
}
};
/**
* optional bool Success = 1;
* @return {boolean}
*/
proto.disbursement.Result.prototype.getSuccess = function() {
return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 1, false));
};
/** @param {boolean} value */
proto.disbursement.Result.prototype.setSuccess = function(value) {
jspb.Message.setProto3BooleanField(this, 1, value);
};
/**
* repeated Error Error = 2;
* @return {!Array<!proto.disbursement.Error>}
*/
proto.disbursement.Result.prototype.getErrorList = function() {
return /** @type{!Array<!proto.disbursement.Error>} */ (
jspb.Message.getRepeatedWrapperField(this, proto.disbursement.Error, 2));
};
/** @param {!Array<!proto.disbursement.Error>} value */
proto.disbursement.Result.prototype.setErrorList = function(value) {
jspb.Message.setRepeatedWrapperField(this, 2, value);
};
/**
* @param {!proto.disbursement.Error=} opt_value
* @param {number=} opt_index
* @return {!proto.disbursement.Error}
*/
proto.disbursement.Result.prototype.addError = function(opt_value, opt_index) {
return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.disbursement.Error, opt_index);
};
/**
* Clears the list making it empty but non-null.
*/
proto.disbursement.Result.prototype.clearErrorList = function() {
this.setErrorList([]);
};
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.disbursement.Error.prototype.toObject = function(opt_includeInstance) {
return proto.disbursement.Error.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.disbursement.Error} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.disbursement.Error.toObject = function(includeInstance, msg) {
var f, obj = {
code: jspb.Message.getFieldWithDefault(msg, 1, ""),
message: jspb.Message.getFieldWithDefault(msg, 2, "")
};
if (includeInstance) {
obj.$jspbMessageInstance = msg;
}
return obj;
};
}
/**
* Deserializes binary data (in protobuf wire format).
* @param {jspb.ByteSource} bytes The bytes to deserialize.
* @return {!proto.disbursement.Error}
*/
proto.disbursement.Error.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.disbursement.Error;
return proto.disbursement.Error.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.disbursement.Error} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.disbursement.Error}
*/
proto.disbursement.Error.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.setCode(value);
break;
case 2:
var value = /** @type {string} */ (reader.readString());
msg.setMessage(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.disbursement.Error.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.disbursement.Error.serializeBinaryToWriter(this, writer);
return writer.getResultBuffer();
};
/**
* Serializes the given message to binary data (in protobuf wire
* format), writing to the given BinaryWriter.
* @param {!proto.disbursement.Error} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.disbursement.Error.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = message.getCode();
if (f.length > 0) {
writer.writeString(
1,
f
);
}
f = message.getMessage();
if (f.length > 0) {
writer.writeString(
2,
f
);
}
};
/**
* optional string Code = 1;
* @return {string}
*/
proto.disbursement.Error.prototype.getCode = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
};
/** @param {string} value */
proto.disbursement.Error.prototype.setCode = function(value) {
jspb.Message.setProto3StringField(this, 1, value);
};
/**
* optional string Message = 2;
* @return {string}
*/
proto.disbursement.Error.prototype.getMessage = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
};
/** @param {string} value */
proto.disbursement.Error.prototype.setMessage = function(value) {
jspb.Message.setProto3StringField(this, 2, 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.disbursement.Date.prototype.toObject = function(opt_includeInstance) {
return proto.disbursement.Date.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.disbursement.Date} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.disbursement.Date.toObject = function(includeInstance, msg) {
var f, obj = {
year: jspb.Message.getFieldWithDefault(msg, 1, 0),
month: jspb.Message.getFieldWithDefault(msg, 2, 0),
day: jspb.Message.getFieldWithDefault(msg, 3, 0)
};
if (includeInstance) {
obj.$jspbMessageInstance = msg;
}
return obj;
};
}
/**
* Deserializes binary data (in protobuf wire format).
* @param {jspb.ByteSource} bytes The bytes to deserialize.
* @return {!proto.disbursement.Date}
*/
proto.disbursement.Date.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.disbursement.Date;
return proto.disbursement.Date.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.disbursement.Date} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.disbursement.Date}
*/
proto.disbursement.Date.deserializeBinaryFromReader = function(msg, reader) {
while (reader.nextField()) {
if (reader.isEndGroup()) {
break;
}
var field = reader.getFieldNumber();
switch (field) {
case 1:
var value = /** @type {number} */ (reader.readInt32());
msg.setYear(value);
break;
case 2:
var value = /** @type {number} */ (reader.readInt32());
msg.setMonth(value);
break;
case 3:
var value = /** @type {number} */ (reader.readInt32());
msg.setDay(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.disbursement.Date.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.disbursement.Date.serializeBinaryToWriter(this, writer);
return writer.getResultBuffer();
};
/**
* Serializes the given message to binary data (in protobuf wire
* format), writing to the given BinaryWriter.
* @param {!proto.disbursement.Date} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.disbursement.Date.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = message.getYear();
if (f !== 0) {
writer.writeInt32(
1,
f
);
}
f = message.getMonth();
if (f !== 0) {
writer.writeInt32(
2,
f
);
}
f = message.getDay();
if (f !== 0) {
writer.writeInt32(
3,
f
);
}
};
/**
* optional int32 Year = 1;
* @return {number}
*/
proto.disbursement.Date.prototype.getYear = function() {
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
};
/** @param {number} value */
proto.disbursement.Date.prototype.setYear = function(value) {
jspb.Message.setProto3IntField(this, 1, value);
};
/**
* optional int32 Month = 2;
* @return {number}
*/
proto.disbursement.Date.prototype.getMonth = function() {
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
};
/** @param {number} value */
proto.disbursement.Date.prototype.setMonth = function(value) {
jspb.Message.setProto3IntField(this, 2, value);
};
/**
* optional int32 Day = 3;
* @return {number}
*/
proto.disbursement.Date.prototype.getDay = function() {
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
};
/** @param {number} value */
proto.disbursement.Date.prototype.setDay = function(value) {
jspb.Message.setProto3IntField(this, 3, 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.disbursement.BankAccountInfo.prototype.toObject = function(opt_includeInstance) {
return proto.disbursement.BankAccountInfo.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.disbursement.BankAccountInfo} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.disbursement.BankAccountInfo.toObject = function(includeInstance, msg) {
var f, obj = {
bank: jspb.Message.getFieldWithDefault(msg, 1, 0),
number: jspb.Message.getFieldWithDefault(msg, 2, ""),
holdername: jspb.Message.getFieldWithDefault(msg, 3, ""),
type: jspb.Message.getFieldWithDefault(msg, 4, 0)
};
if (includeInstance) {
obj.$jspbMessageInstance = msg;
}
return obj;
};
}
/**
* Deserializes binary data (in protobuf wire format).
* @param {jspb.ByteSource} bytes The bytes to deserialize.
* @return {!proto.disbursement.BankAccountInfo}
*/
proto.disbursement.BankAccountInfo.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.disbursement.BankAccountInfo;
return proto.disbursement.BankAccountInfo.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.disbursement.BankAccountInfo} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.disbursement.BankAccountInfo}
*/
proto.disbursement.BankAccountInfo.deserializeBinaryFromReader = function(msg, reader) {
while (reader.nextField()) {
if (reader.isEndGroup()) {
break;
}
var field = reader.getFieldNumber();
switch (field) {
case 1:
var value = /** @type {!proto.disbursement.BankCode} */ (reader.readEnum());
msg.setBank(value);
break;
case 2:
var value = /** @type {string} */ (reader.readString());
msg.setNumber(value);
break;
case 3:
var value = /** @type {string} */ (reader.readString());
msg.setHoldername(value);
break;
case 4:
var value = /** @type {!proto.disbursement.BankAccountType} */ (reader.readEnum());
msg.setType(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.disbursement.BankAccountInfo.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.disbursement.BankAccountInfo.serializeBinaryToWriter(this, writer);
return writer.getResultBuffer();
};
/**
* Serializes the given message to binary data (in protobuf wire
* format), writing to the given BinaryWriter.
* @param {!proto.disbursement.BankAccountInfo} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.disbursement.BankAccountInfo.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = message.getBank();
if (f !== 0.0) {
writer.writeEnum(
1,
f
);
}
f = message.getNumber();
if (f.length > 0) {
writer.writeString(
2,
f
);
}
f = message.getHoldername();
if (f.length > 0) {
writer.writeString(
3,
f
);
}
f = message.getType();
if (f !== 0.0) {
writer.writeEnum(
4,
f
);
}
};
/**
* optional BankCode Bank = 1;
* @return {!proto.disbursement.BankCode}
*/
proto.disbursement.BankAccountInfo.prototype.getBank = function() {
return /** @type {!proto.disbursement.BankCode} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
};
/** @param {!proto.disbursement.BankCode} value */
proto.disbursement.BankAccountInfo.prototype.setBank = function(value) {
jspb.Message.setProto3EnumField(this, 1, value);
};
/**
* optional string Number = 2;
* @return {string}
*/
proto.disbursement.BankAccountInfo.prototype.getNumber = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
};
/** @param {string} value */
proto.disbursement.BankAccountInfo.prototype.setNumber = function(value) {
jspb.Message.setProto3StringField(this, 2, value);
};
/**
* optional string HolderName = 3;
* @return {string}
*/
proto.disbursement.BankAccountInfo.prototype.getHoldername = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
};
/** @param {string} value */
proto.disbursement.BankAccountInfo.prototype.setHoldername = function(value) {
jspb.Message.setProto3StringField(this, 3, value);
};
/**
* optional BankAccountType Type = 4;
* @return {!proto.disbursement.BankAccountType}
*/
proto.disbursement.BankAccountInfo.prototype.getType = function() {
return /** @type {!proto.disbursement.BankAccountType} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
};
/** @param {!proto.disbursement.BankAccountType} value */
proto.disbursement.BankAccountInfo.prototype.setType = function(value) {
jspb.Message.setProto3EnumField(this, 4, value);
};
/**
* List of repeated fields within this message type.
* @private {!Array<number>}
* @const
*/
proto.disbursement.External.repeatedFields_ = [3];
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.disbursement.External.prototype.toObject = function(opt_includeInstance) {
return proto.disbursement.External.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.disbursement.External} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.disbursement.External.toObject = function(includeInstance, msg) {
var f, obj = {
referenceid: jspb.Message.getFieldWithDefault(msg, 1, ""),
status: jspb.Message.getFieldWithDefault(msg, 2, ""),
errorList: jspb.Message.toObjectList(msg.getErrorList(),
proto.disbursement.Error.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.disbursement.External}
*/
proto.disbursement.External.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.disbursement.External;
return proto.disbursement.External.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.disbursement.External} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.disbursement.External}
*/
proto.disbursement.External.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.setReferenceid(value);
break;
case 2:
var value = /** @type {string} */ (reader.readString());
msg.setStatus(value);
break;
case 3:
var value = new proto.disbursement.Error;
reader.readMessage(value,proto.disbursement.Error.deserializeBinaryFromReader);
msg.addError(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.disbursement.External.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.disbursement.External.serializeBinaryToWriter(this, writer);
return writer.getResultBuffer();
};
/**
* Serializes the given message to binary data (in protobuf wire
* format), writing to the given BinaryWriter.
* @param {!proto.disbursement.External} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.disbursement.External.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = message.getReferenceid();
if (f.length > 0) {
writer.writeString(
1,
f
);
}
f = message.getStatus();
if (f.length > 0) {
writer.writeString(
2,
f
);
}
f = message.getErrorList();
if (f.length > 0) {
writer.writeRepeatedMessage(
3,
f,
proto.disbursement.Error.serializeBinaryToWriter
);
}
};
/**
* optional string ReferenceID = 1;
* @return {string}
*/
proto.disbursement.External.prototype.getReferenceid = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
};
/** @param {string} value */
proto.disbursement.External.prototype.setReferenceid = function(value) {
jspb.Message.setProto3StringField(this, 1, value);
};
/**
* optional string Status = 2;
* @return {string}
*/
proto.disbursement.External.prototype.getStatus = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
};
/** @param {string} value */
proto.disbursement.External.prototype.setStatus = function(value) {
jspb.Message.setProto3StringField(this, 2, value);
};
/**
* repeated Error Error = 3;
* @return {!Array<!proto.disbursement.Error>}
*/
proto.disbursement.External.prototype.getErrorList = function() {
return /** @type{!Array<!proto.disbursement.Error>} */ (
jspb.Message.getRepeatedWrapperField(this, proto.disbursement.Error, 3));
};
/** @param {!Array<!proto.disbursement.Error>} value */
proto.disbursement.External.prototype.setErrorList = function(value) {
jspb.Message.setRepeatedWrapperField(this, 3, value);
};
/**
* @param {!proto.disbursement.Error=} opt_value
* @param {number=} opt_index
* @return {!proto.disbursement.Error}
*/
proto.disbursement.External.prototype.addError = function(opt_value, opt_index) {
return jspb.Message.addToRepeatedWrapperField(this, 3, opt_value, proto.disbursement.Error, opt_index);
};
/**
* Clears the list making it empty but non-null.
*/
proto.disbursement.External.prototype.clearErrorList = function() {
this.setErrorList([]);
};
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.disbursement.Fee.prototype.toObject = function(opt_includeInstance) {
return proto.disbursement.Fee.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.disbursement.Fee} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.disbursement.Fee.toObject = function(includeInstance, msg) {
var f, obj = {
name: jspb.Message.getFieldWithDefault(msg, 1, ""),
amount: jspb.Message.getFieldWithDefault(msg, 2, ""),
cur: jspb.Message.getFieldWithDefault(msg, 3, "")
};
if (includeInstance) {
obj.$jspbMessageInstance = msg;
}
return obj;
};
}
/**
* Deserializes binary data (in protobuf wire format).
* @param {jspb.ByteSource} bytes The bytes to deserialize.
* @return {!proto.disbursement.Fee}
*/
proto.disbursement.Fee.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.disbursement.Fee;
return proto.disbursement.Fee.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.disbursement.Fee} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.disbursement.Fee}
*/
proto.disbursement.Fee.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.setName(value);
break;
case 2:
var value = /** @type {string} */ (reader.readString());
msg.setAmount(value);
break;
case 3:
var value = /** @type {string} */ (reader.readString());
msg.setCur(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.disbursement.Fee.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.disbursement.Fee.serializeBinaryToWriter(this, writer);
return writer.getResultBuffer();
};
/**
* Serializes the given message to binary data (in protobuf wire
* format), writing to the given BinaryWriter.
* @param {!proto.disbursement.Fee} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.disbursement.Fee.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = message.getName();
if (f.length > 0) {
writer.writeString(
1,
f
);
}
f = message.getAmount();
if (f.length > 0) {
writer.writeString(
2,
f
);
}
f = message.getCur();
if (f.length > 0) {
writer.writeString(
3,
f
);
}
};
/**
* optional string Name = 1;
* @return {string}
*/
proto.disbursement.Fee.prototype.getName = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
};
/** @param {string} value */
proto.disbursement.Fee.prototype.setName = function(value) {
jspb.Message.setProto3StringField(this, 1, value);
};
/**
* optional string Amount = 2;
* @return {string}
*/
proto.disbursement.Fee.prototype.getAmount = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
};
/** @param {string} value */
proto.disbursement.Fee.prototype.setAmount = function(value) {
jspb.Message.setProto3StringField(this, 2, value);
};
/**
* optional string Cur = 3;
* @return {string}
*/
proto.disbursement.Fee.prototype.getCur = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
};
/** @param {string} value */
proto.disbursement.Fee.prototype.setCur = function(value) {
jspb.Message.setProto3StringField(this, 3, value);
};
/**
* List of repeated fields within this message type.
* @private {!Array<number>}
* @const
*/
proto.disbursement.Fees.repeatedFields_ = [1];
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.disbursement.Fees.prototype.toObject = function(opt_includeInstance) {
return proto.disbursement.Fees.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.disbursement.Fees} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.disbursement.Fees.toObject = function(includeInstance, msg) {
var f, obj = {
feeList: jspb.Message.toObjectList(msg.getFeeList(),
proto.disbursement.Fee.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.disbursement.Fees}
*/
proto.disbursement.Fees.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.disbursement.Fees;
return proto.disbursement.Fees.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.disbursement.Fees} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.disbursement.Fees}
*/
proto.disbursement.Fees.deserializeBinaryFromReader = function(msg, reader) {
while (reader.nextField()) {
if (reader.isEndGroup()) {
break;
}
var field = reader.getFieldNumber();
switch (field) {
case 1:
var value = new proto.disbursement.Fee;
reader.readMessage(value,proto.disbursement.Fee.deserializeBinaryFromReader);
msg.addFee(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.disbursement.Fees.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.disbursement.Fees.serializeBinaryToWriter(this, writer);
return writer.getResultBuffer();
};
/**
* Serializes the given message to binary data (in protobuf wire
* format), writing to the given BinaryWriter.
* @param {!proto.disbursement.Fees} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.disbursement.Fees.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = message.getFeeList();
if (f.length > 0) {
writer.writeRepeatedMessage(
1,
f,
proto.disbursement.Fee.serializeBinaryToWriter
);
}
};
/**
* repeated Fee Fee = 1;
* @return {!Array<!proto.disbursement.Fee>}
*/
proto.disbursement.Fees.prototype.getFeeList = function() {
return /** @type{!Array<!proto.disbursement.Fee>} */ (
jspb.Message.getRepeatedWrapperField(this, proto.disbursement.Fee, 1));
};
/** @param {!Array<!proto.disbursement.Fee>} value */
proto.disbursement.Fees.prototype.setFeeList = function(value) {
jspb.Message.setRepeatedWrapperField(this, 1, value);
};
/**
* @param {!proto.disbursement.Fee=} opt_value
* @param {number=} opt_index
* @return {!proto.disbursement.Fee}
*/
proto.disbursement.Fees.prototype.addFee = function(opt_value, opt_index) {
return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.disbursement.Fee, opt_index);
};
/**
* Clears the list making it empty but non-null.
*/
proto.disbursement.Fees.prototype.clearFeeList = function() {
this.setFeeList([]);
};
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.disbursement.Disbursement.prototype.toObject = function(opt_includeInstance) {
return proto.disbursement.Disbursement.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.disbursement.Disbursement} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.disbursement.Disbursement.toObject = function(includeInstance, msg) {
var f, obj = {
corporateid: jspb.Message.getFieldWithDefault(msg, 1, ""),
referenceid: jspb.Message.getFieldWithDefault(msg, 2, ""),
type: jspb.Message.getFieldWithDefault(msg, 3, 0),
sourceaccount: (f = msg.getSourceaccount()) && proto.disbursement.BankAccountInfo.toObject(includeInstance, f),
destinationaccount: (f = msg.getDestinationaccount()) && proto.disbursement.BankAccountInfo.toObject(includeInstance, f),
sourceamount: (f = msg.getSourceamount()) && brank_as_openbank$services_suite_b$enterprise_gunk_disbursement_v1_types_all_pb.Amount.toObject(includeInstance, f),
destinationamount: (f = msg.getDestinationamount()) && brank_as_openbank$services_suite_b$enterprise_gunk_disbursement_v1_types_all_pb.Amount.toObject(includeInstance, f),
description: jspb.Message.getFieldWithDefault(msg, 8, ""),
exchangerate: jspb.Message.getFieldWithDefault(msg, 9, ""),
fees: (f = msg.getFees()) && proto.disbursement.Fees.toObject(includeInstance, f),
disbursementid: jspb.Message.getFieldWithDefault(msg, 11, ""),
external: (f = msg.getExternal()) && proto.disbursement.External.toObject(includeInstance, f),
status: jspb.Message.getFieldWithDefault(msg, 13, 0),
created: (f = msg.getCreated()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
updated: (f = msg.getUpdated()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
processed: (f = msg.getProcessed()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
batchid: jspb.Message.getFieldWithDefault(msg, 17, "")
};
if (includeInstance) {
obj.$jspbMessageInstance = msg;
}
return obj;
};
}
/**
* Deserializes binary data (in protobuf wire format).
* @param {jspb.ByteSource} bytes The bytes to deserialize.
* @return {!proto.disbursement.Disbursement}
*/
proto.disbursement.Disbursement.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.disbursement.Disbursement;
return proto.disbursement.Disbursement.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.disbursement.Disbursement} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.disbursement.Disbursement}
*/
proto.disbursement.Disbursement.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.setCorporateid(value);
break;
case 2:
var value = /** @type {string} */ (reader.readString());
msg.setReferenceid(value);
break;
case 3:
var value = /** @type {!proto.disbursement.DisbursementType} */ (reader.readEnum());
msg.setType(value);
break;
case 4:
var value = new proto.disbursement.BankAccountInfo;
reader.readMessage(value,proto.disbursement.BankAccountInfo.deserializeBinaryFromReader);
msg.setSourceaccount(value);
break;
case 5:
var value = new proto.disbursement.BankAccountInfo;
reader.readMessage(value,proto.disbursement.BankAccountInfo.deserializeBinaryFromReader);
msg.setDestinationaccount(value);
break;
case 6:
var value = new brank_as_openbank$services_suite_b$enterprise_gunk_disbursement_v1_types_all_pb.Amount;
reader.readMessage(value,brank_as_openbank$services_suite_b$enterprise_gunk_disbursement_v1_types_all_pb.Amount.deserializeBinaryFromReader);
msg.setSourceamount(value);
break;
case 7:
var value = new brank_as_openbank$services_suite_b$enterprise_gunk_disbursement_v1_types_all_pb.Amount;
reader.readMessage(value,brank_as_openbank$services_suite_b$enterprise_gunk_disbursement_v1_types_all_pb.Amount.deserializeBinaryFromReader);
msg.setDestinationamount(value);
break;
case 8:
var value = /** @type {string} */ (reader.readString());
msg.setDescription(value);
break;
case 9:
var value = /** @type {string} */ (reader.readString());
msg.setExchangerate(value);
break;
case 10:
var value = new proto.disbursement.Fees;
reader.readMessage(value,proto.disbursement.Fees.deserializeBinaryFromReader);
msg.setFees(value);
break;
case 11:
var value = /** @type {string} */ (reader.readString());
msg.setDisbursementid(value);
break;
case 12:
var value = new proto.disbursement.External;
reader.readMessage(value,proto.disbursement.External.deserializeBinaryFromReader);
msg.setExternal(value);
break;
case 13:
var value = /** @type {!proto.disbursement.Status} */ (reader.readEnum());
msg.setStatus(value);
break;
case 14:
var value = new google_protobuf_timestamp_pb.Timestamp;
reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
msg.setCreated(value);
break;
case 15:
var value = new google_protobuf_timestamp_pb.Timestamp;
reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
msg.setUpdated(value);
break;
case 16:
var value = new google_protobuf_timestamp_pb.Timestamp;
reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
msg.setProcessed(value);
break;
case 17:
var value = /** @type {string} */ (reader.readString());
msg.setBatchid(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.disbursement.Disbursement.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.disbursement.Disbursement.serializeBinaryToWriter(this, writer);
return writer.getResultBuffer();
};
/**
* Serializes the given message to binary data (in protobuf wire
* format), writing to the given BinaryWriter.
* @param {!proto.disbursement.Disbursement} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.disbursement.Disbursement.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = message.getCorporateid();
if (f.length > 0) {
writer.writeString(
1,
f
);
}
f = message.getReferenceid();
if (f.length > 0) {
writer.writeString(
2,
f
);
}
f = message.getType();
if (f !== 0.0) {
writer.writeEnum(
3,
f
);
}
f = message.getSourceaccount();
if (f != null) {
writer.writeMessage(
4,
f,
proto.disbursement.BankAccountInfo.serializeBinaryToWriter
);
}
f = message.getDestinationaccount();
if (f != null) {
writer.writeMessage(
5,
f,
proto.disbursement.BankAccountInfo.serializeBinaryToWriter
);
}
f = message.getSourceamount();
if (f != null) {
writer.writeMessage(
6,
f,
brank_as_openbank$services_suite_b$enterprise_gunk_disbursement_v1_types_all_pb.Amount.serializeBinaryToWriter
);
}
f = message.getDestinationamount();
if (f != null) {
writer.writeMessage(
7,
f,
brank_as_openbank$services_suite_b$enterprise_gunk_disbursement_v1_types_all_pb.Amount.serializeBinaryToWriter
);
}
f = message.getDescription();
if (f.length > 0) {
writer.writeString(
8,
f
);
}
f = message.getExchangerate();
if (f.length > 0) {
writer.writeString(
9,
f
);
}
f = message.getFees();
if (f != null) {
writer.writeMessage(
10,
f,
proto.disbursement.Fees.serializeBinaryToWriter
);
}
f = message.getDisbursementid();
if (f.length > 0) {
writer.writeString(
11,
f
);
}
f = message.getExternal();
if (f != null) {
writer.writeMessage(
12,
f,
proto.disbursement.External.serializeBinaryToWriter
);
}
f = message.getStatus();
if (f !== 0.0) {
writer.writeEnum(
13,
f
);
}
f = message.getCreated();
if (f != null) {
writer.writeMessage(
14,
f,
google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
);
}
f = message.getUpdated();
if (f != null) {
writer.writeMessage(
15,
f,
google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
);
}
f = message.getProcessed();
if (f != null) {
writer.writeMessage(
16,
f,
google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
);
}
f = message.getBatchid();
if (f.length > 0) {
writer.writeString(
17,
f
);
}
};
/**
* optional string CorporateID = 1;
* @return {string}
*/
proto.disbursement.Disbursement.prototype.getCorporateid = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
};
/** @param {string} value */
proto.disbursement.Disbursement.prototype.setCorporateid = function(value) {
jspb.Message.setProto3StringField(this, 1, value);
};
/**
* optional string ReferenceID = 2;
* @return {string}
*/
proto.disbursement.Disbursement.prototype.getReferenceid = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
};
/** @param {string} value */
proto.disbursement.Disbursement.prototype.setReferenceid = function(value) {
jspb.Message.setProto3StringField(this, 2, value);
};
/**
* optional DisbursementType Type = 3;
* @return {!proto.disbursement.DisbursementType}
*/
proto.disbursement.Disbursement.prototype.getType = function() {
return /** @type {!proto.disbursement.DisbursementType} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
};
/** @param {!proto.disbursement.DisbursementType} value */
proto.disbursement.Disbursement.prototype.setType = function(value) {
jspb.Message.setProto3EnumField(this, 3, value);
};
/**
* optional BankAccountInfo SourceAccount = 4;
* @return {?proto.disbursement.BankAccountInfo}
*/
proto.disbursement.Disbursement.prototype.getSourceaccount = function() {
return /** @type{?proto.disbursement.BankAccountInfo} */ (
jspb.Message.getWrapperField(this, proto.disbursement.BankAccountInfo, 4));
};
/** @param {?proto.disbursement.BankAccountInfo|undefined} value */
proto.disbursement.Disbursement.prototype.setSourceaccount = function(value) {
jspb.Message.setWrapperField(this, 4, value);
};
/**
* Clears the message field making it undefined.
*/
proto.disbursement.Disbursement.prototype.clearSourceaccount = function() {
this.setSourceaccount(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.disbursement.Disbursement.prototype.hasSourceaccount = function() {
return jspb.Message.getField(this, 4) != null;
};
/**
* optional BankAccountInfo DestinationAccount = 5;
* @return {?proto.disbursement.BankAccountInfo}
*/
proto.disbursement.Disbursement.prototype.getDestinationaccount = function() {
return /** @type{?proto.disbursement.BankAccountInfo} */ (
jspb.Message.getWrapperField(this, proto.disbursement.BankAccountInfo, 5));
};
/** @param {?proto.disbursement.BankAccountInfo|undefined} value */
proto.disbursement.Disbursement.prototype.setDestinationaccount = function(value) {
jspb.Message.setWrapperField(this, 5, value);
};
/**
* Clears the message field making it undefined.
*/
proto.disbursement.Disbursement.prototype.clearDestinationaccount = function() {
this.setDestinationaccount(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.disbursement.Disbursement.prototype.hasDestinationaccount = function() {
return jspb.Message.getField(this, 5) != null;
};
/**
* optional types.Amount SourceAmount = 6;
* @return {?proto.types.Amount}
*/
proto.disbursement.Disbursement.prototype.getSourceamount = function() {
return /** @type{?proto.types.Amount} */ (
jspb.Message.getWrapperField(this, brank_as_openbank$services_suite_b$enterprise_gunk_disbursement_v1_types_all_pb.Amount, 6));
};
/** @param {?proto.types.Amount|undefined} value */
proto.disbursement.Disbursement.prototype.setSourceamount = function(value) {
jspb.Message.setWrapperField(this, 6, value);
};
/**
* Clears the message field making it undefined.
*/
proto.disbursement.Disbursement.prototype.clearSourceamount = function() {
this.setSourceamount(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.disbursement.Disbursement.prototype.hasSourceamount = function() {
return jspb.Message.getField(this, 6) != null;
};
/**
* optional types.Amount DestinationAmount = 7;
* @return {?proto.types.Amount}
*/
proto.disbursement.Disbursement.prototype.getDestinationamount = function() {
return /** @type{?proto.types.Amount} */ (
jspb.Message.getWrapperField(this, brank_as_openbank$services_suite_b$enterprise_gunk_disbursement_v1_types_all_pb.Amount, 7));
};
/** @param {?proto.types.Amount|undefined} value */
proto.disbursement.Disbursement.prototype.setDestinationamount = function(value) {
jspb.Message.setWrapperField(this, 7, value);
};
/**
* Clears the message field making it undefined.
*/
proto.disbursement.Disbursement.prototype.clearDestinationamount = function() {
this.setDestinationamount(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.disbursement.Disbursement.prototype.hasDestinationamount = function() {
return jspb.Message.getField(this, 7) != null;
};
/**
* optional string Description = 8;
* @return {string}
*/
proto.disbursement.Disbursement.prototype.getDescription = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, ""));
};
/** @param {string} value */
proto.disbursement.Disbursement.prototype.setDescription = function(value) {
jspb.Message.setProto3StringField(this, 8, value);
};
/**
* optional string ExchangeRate = 9;
* @return {string}
*/
proto.disbursement.Disbursement.prototype.getExchangerate = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 9, ""));
};
/** @param {string} value */
proto.disbursement.Disbursement.prototype.setExchangerate = function(value) {
jspb.Message.setProto3StringField(this, 9, value);
};
/**
* optional Fees Fees = 10;
* @return {?proto.disbursement.Fees}
*/
proto.disbursement.Disbursement.prototype.getFees = function() {
return /** @type{?proto.disbursement.Fees} */ (
jspb.Message.getWrapperField(this, proto.disbursement.Fees, 10));
};
/** @param {?proto.disbursement.Fees|undefined} value */
proto.disbursement.Disbursement.prototype.setFees = function(value) {
jspb.Message.setWrapperField(this, 10, value);
};
/**
* Clears the message field making it undefined.
*/
proto.disbursement.Disbursement.prototype.clearFees = function() {
this.setFees(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.disbursement.Disbursement.prototype.hasFees = function() {
return jspb.Message.getField(this, 10) != null;
};
/**
* optional string DisbursementID = 11;
* @return {string}
*/
proto.disbursement.Disbursement.prototype.getDisbursementid = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 11, ""));
};
/** @param {string} value */
proto.disbursement.Disbursement.prototype.setDisbursementid = function(value) {
jspb.Message.setProto3StringField(this, 11, value);
};
/**
* optional External External = 12;
* @return {?proto.disbursement.External}
*/
proto.disbursement.Disbursement.prototype.getExternal = function() {
return /** @type{?proto.disbursement.External} */ (
jspb.Message.getWrapperField(this, proto.disbursement.External, 12));
};
/** @param {?proto.disbursement.External|undefined} value */
proto.disbursement.Disbursement.prototype.setExternal = function(value) {
jspb.Message.setWrapperField(this, 12, value);
};
/**
* Clears the message field making it undefined.
*/
proto.disbursement.Disbursement.prototype.clearExternal = function() {
this.setExternal(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.disbursement.Disbursement.prototype.hasExternal = function() {
return jspb.Message.getField(this, 12) != null;
};
/**
* optional Status Status = 13;
* @return {!proto.disbursement.Status}
*/
proto.disbursement.Disbursement.prototype.getStatus = function() {
return /** @type {!proto.disbursement.Status} */ (jspb.Message.getFieldWithDefault(this, 13, 0));
};
/** @param {!proto.disbursement.Status} value */
proto.disbursement.Disbursement.prototype.setStatus = function(value) {
jspb.Message.setProto3EnumField(this, 13, value);
};
/**
* optional google.protobuf.Timestamp Created = 14;
* @return {?proto.google.protobuf.Timestamp}
*/
proto.disbursement.Disbursement.prototype.getCreated = function() {
return /** @type{?proto.google.protobuf.Timestamp} */ (
jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 14));
};
/** @param {?proto.google.protobuf.Timestamp|undefined} value */
proto.disbursement.Disbursement.prototype.setCreated = function(value) {
jspb.Message.setWrapperField(this, 14, value);
};
/**
* Clears the message field making it undefined.
*/
proto.disbursement.Disbursement.prototype.clearCreated = function() {
this.setCreated(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.disbursement.Disbursement.prototype.hasCreated = function() {
return jspb.Message.getField(this, 14) != null;
};
/**
* optional google.protobuf.Timestamp Updated = 15;
* @return {?proto.google.protobuf.Timestamp}
*/
proto.disbursement.Disbursement.prototype.getUpdated = function() {
return /** @type{?proto.google.protobuf.Timestamp} */ (
jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 15));
};
/** @param {?proto.google.protobuf.Timestamp|undefined} value */
proto.disbursement.Disbursement.prototype.setUpdated = function(value) {
jspb.Message.setWrapperField(this, 15, value);
};
/**
* Clears the message field making it undefined.
*/
proto.disbursement.Disbursement.prototype.clearUpdated = function() {
this.setUpdated(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.disbursement.Disbursement.prototype.hasUpdated = function() {
return jspb.Message.getField(this, 15) != null;
};
/**
* optional google.protobuf.Timestamp Processed = 16;
* @return {?proto.google.protobuf.Timestamp}
*/
proto.disbursement.Disbursement.prototype.getProcessed = function() {
return /** @type{?proto.google.protobuf.Timestamp} */ (
jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 16));
};
/** @param {?proto.google.protobuf.Timestamp|undefined} value */
proto.disbursement.Disbursement.prototype.setProcessed = function(value) {
jspb.Message.setWrapperField(this, 16, value);
};
/**
* Clears the message field making it undefined.
*/
proto.disbursement.Disbursement.prototype.clearProcessed = function() {
this.setProcessed(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.disbursement.Disbursement.prototype.hasProcessed = function() {
return jspb.Message.getField(this, 16) != null;
};
/**
* optional string BatchID = 17;
* @return {string}
*/
proto.disbursement.Disbursement.prototype.getBatchid = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 17, ""));
};
/** @param {string} value */
proto.disbursement.Disbursement.prototype.setBatchid = function(value) {
jspb.Message.setProto3StringField(this, 17, 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.disbursement.DisbursementResult.prototype.toObject = function(opt_includeInstance) {
return proto.disbursement.DisbursementResult.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.disbursement.DisbursementResult} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.disbursement.DisbursementResult.toObject = function(includeInstance, msg) {
var f, obj = {
disbursement: (f = msg.getDisbursement()) && proto.disbursement.Disbursement.toObject(includeInstance, f),
result: (f = msg.getResult()) && proto.disbursement.Result.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.disbursement.DisbursementResult}
*/
proto.disbursement.DisbursementResult.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.disbursement.DisbursementResult;
return proto.disbursement.DisbursementResult.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.disbursement.DisbursementResult} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.disbursement.DisbursementResult}
*/
proto.disbursement.DisbursementResult.deserializeBinaryFromReader = function(msg, reader) {
while (reader.nextField()) {
if (reader.isEndGroup()) {
break;
}
var field = reader.getFieldNumber();
switch (field) {
case 1:
var value = new proto.disbursement.Disbursement;
reader.readMessage(value,proto.disbursement.Disbursement.deserializeBinaryFromReader);
msg.setDisbursement(value);
break;
case 2:
var value = new proto.disbursement.Result;
reader.readMessage(value,proto.disbursement.Result.deserializeBinaryFromReader);
msg.setResult(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.disbursement.DisbursementResult.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.disbursement.DisbursementResult.serializeBinaryToWriter(this, writer);
return writer.getResultBuffer();
};
/**
* Serializes the given message to binary data (in protobuf wire
* format), writing to the given BinaryWriter.
* @param {!proto.disbursement.DisbursementResult} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.disbursement.DisbursementResult.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = message.getDisbursement();
if (f != null) {
writer.writeMessage(
1,
f,
proto.disbursement.Disbursement.serializeBinaryToWriter
);
}
f = message.getResult();
if (f != null) {
writer.writeMessage(
2,
f,
proto.disbursement.Result.serializeBinaryToWriter
);
}
};
/**
* optional Disbursement Disbursement = 1;
* @return {?proto.disbursement.Disbursement}
*/
proto.disbursement.DisbursementResult.prototype.getDisbursement = function() {
return /** @type{?proto.disbursement.Disbursement} */ (
jspb.Message.getWrapperField(this, proto.disbursement.Disbursement, 1));
};
/** @param {?proto.disbursement.Disbursement|undefined} value */
proto.disbursement.DisbursementResult.prototype.setDisbursement = function(value) {
jspb.Message.setWrapperField(this, 1, value);
};
/**
* Clears the message field making it undefined.
*/
proto.disbursement.DisbursementResult.prototype.clearDisbursement = function() {
this.setDisbursement(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.disbursement.DisbursementResult.prototype.hasDisbursement = function() {
return jspb.Message.getField(this, 1) != null;
};
/**
* optional Result Result = 2;
* @return {?proto.disbursement.Result}
*/
proto.disbursement.DisbursementResult.prototype.getResult = function() {
return /** @type{?proto.disbursement.Result} */ (
jspb.Message.getWrapperField(this, proto.disbursement.Result, 2));
};
/** @param {?proto.disbursement.Result|undefined} value */
proto.disbursement.DisbursementResult.prototype.setResult = function(value) {
jspb.Message.setWrapperField(this, 2, value);
};
/**
* Clears the message field making it undefined.
*/
proto.disbursement.DisbursementResult.prototype.clearResult = function() {
this.setResult(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.disbursement.DisbursementResult.prototype.hasResult = function() {
return jspb.Message.getField(this, 2) != null;
};
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.disbursement.BankCredential.prototype.toObject = function(opt_includeInstance) {
return proto.disbursement.BankCredential.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.disbursement.BankCredential} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.disbursement.BankCredential.toObject = function(includeInstance, msg) {
var f, obj = {
corporateid: jspb.Message.getFieldWithDefault(msg, 1, ""),
identifier: jspb.Message.getFieldWithDefault(msg, 2, ""),
secret: jspb.Message.getFieldWithDefault(msg, 3, ""),
type: jspb.Message.getFieldWithDefault(msg, 4, 0)
};
if (includeInstance) {
obj.$jspbMessageInstance = msg;
}
return obj;
};
}
/**
* Deserializes binary data (in protobuf wire format).
* @param {jspb.ByteSource} bytes The bytes to deserialize.
* @return {!proto.disbursement.BankCredential}
*/
proto.disbursement.BankCredential.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.disbursement.BankCredential;
return proto.disbursement.BankCredential.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.disbursement.BankCredential} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.disbursement.BankCredential}
*/
proto.disbursement.BankCredential.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.setCorporateid(value);
break;
case 2:
var value = /** @type {string} */ (reader.readString());
msg.setIdentifier(value);
break;
case 3:
var value = /** @type {string} */ (reader.readString());
msg.setSecret(value);
break;
case 4:
var value = /** @type {!proto.disbursement.BankCredentialType} */ (reader.readEnum());
msg.setType(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.disbursement.BankCredential.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.disbursement.BankCredential.serializeBinaryToWriter(this, writer);
return writer.getResultBuffer();
};
/**
* Serializes the given message to binary data (in protobuf wire
* format), writing to the given BinaryWriter.
* @param {!proto.disbursement.BankCredential} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.disbursement.BankCredential.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = message.getCorporateid();
if (f.length > 0) {
writer.writeString(
1,
f
);
}
f = message.getIdentifier();
if (f.length > 0) {
writer.writeString(
2,
f
);
}
f = message.getSecret();
if (f.length > 0) {
writer.writeString(
3,
f
);
}
f = message.getType();
if (f !== 0.0) {
writer.writeEnum(
4,
f
);
}
};
/**
* optional string CorporateID = 1;
* @return {string}
*/
proto.disbursement.BankCredential.prototype.getCorporateid = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
};
/** @param {string} value */
proto.disbursement.BankCredential.prototype.setCorporateid = function(value) {
jspb.Message.setProto3StringField(this, 1, value);
};
/**
* optional string Identifier = 2;
* @return {string}
*/
proto.disbursement.BankCredential.prototype.getIdentifier = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
};
/** @param {string} value */
proto.disbursement.BankCredential.prototype.setIdentifier = function(value) {
jspb.Message.setProto3StringField(this, 2, value);
};
/**
* optional string Secret = 3;
* @return {string}
*/
proto.disbursement.BankCredential.prototype.getSecret = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
};
/** @param {string} value */
proto.disbursement.BankCredential.prototype.setSecret = function(value) {
jspb.Message.setProto3StringField(this, 3, value);
};
/**
* optional BankCredentialType Type = 4;
* @return {!proto.disbursement.BankCredentialType}
*/
proto.disbursement.BankCredential.prototype.getType = function() {
return /** @type {!proto.disbursement.BankCredentialType} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
};
/** @param {!proto.disbursement.BankCredentialType} value */
proto.disbursement.BankCredential.prototype.setType = function(value) {
jspb.Message.setProto3EnumField(this, 4, value);
};
/**
* List of repeated fields within this message type.
* @private {!Array<number>}
* @const
*/
proto.disbursement.CreateDisbursementsRequest.repeatedFields_ = [2];
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.disbursement.CreateDisbursementsRequest.prototype.toObject = function(opt_includeInstance) {
return proto.disbursement.CreateDisbursementsRequest.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.disbursement.CreateDisbursementsRequest} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.disbursement.CreateDisbursementsRequest.toObject = function(includeInstance, msg) {
var f, obj = {
credentialsMap: (f = msg.getCredentialsMap()) ? f.toObject(includeInstance, proto.disbursement.BankCredential.toObject) : [],
disbursementsList: jspb.Message.toObjectList(msg.getDisbursementsList(),
proto.disbursement.Disbursement.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.disbursement.CreateDisbursementsRequest}
*/
proto.disbursement.CreateDisbursementsRequest.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.disbursement.CreateDisbursementsRequest;
return proto.disbursement.CreateDisbursementsRequest.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.disbursement.CreateDisbursementsRequest} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.disbursement.CreateDisbursementsRequest}
*/
proto.disbursement.CreateDisbursementsRequest.deserializeBinaryFromReader = function(msg, reader) {
while (reader.nextField()) {
if (reader.isEndGroup()) {
break;
}
var field = reader.getFieldNumber();
switch (field) {
case 1:
var value = msg.getCredentialsMap();
reader.readMessage(value, function(message, reader) {
jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readMessage, proto.disbursement.BankCredential.deserializeBinaryFromReader, "");
});
break;
case 2:
var value = new proto.disbursement.Disbursement;
reader.readMessage(value,proto.disbursement.Disbursement.deserializeBinaryFromReader);
msg.addDisbursements(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.disbursement.CreateDisbursementsRequest.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.disbursement.CreateDisbursementsRequest.serializeBinaryToWriter(this, writer);
return writer.getResultBuffer();
};
/**
* Serializes the given message to binary data (in protobuf wire
* format), writing to the given BinaryWriter.
* @param {!proto.disbursement.CreateDisbursementsRequest} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.disbursement.CreateDisbursementsRequest.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = message.getCredentialsMap(true);
if (f && f.getLength() > 0) {
f.serializeBinary(1, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeMessage, proto.disbursement.BankCredential.serializeBinaryToWriter);
}
f = message.getDisbursementsList();
if (f.length > 0) {
writer.writeRepeatedMessage(
2,
f,
proto.disbursement.Disbursement.serializeBinaryToWriter
);
}
};
/**
* map<string, BankCredential> Credentials = 1;
* @param {boolean=} opt_noLazyCreate Do not create the map if
* empty, instead returning `undefined`
* @return {!jspb.Map<string,!proto.disbursement.BankCredential>}
*/
proto.disbursement.CreateDisbursementsRequest.prototype.getCredentialsMap = function(opt_noLazyCreate) {
return /** @type {!jspb.Map<string,!proto.disbursement.BankCredential>} */ (
jspb.Message.getMapField(this, 1, opt_noLazyCreate,
proto.disbursement.BankCredential));
};
/**
* Clears values from the map. The map will be non-null.
*/
proto.disbursement.CreateDisbursementsRequest.prototype.clearCredentialsMap = function() {
this.getCredentialsMap().clear();
};
/**
* repeated Disbursement Disbursements = 2;
* @return {!Array<!proto.disbursement.Disbursement>}
*/
proto.disbursement.CreateDisbursementsRequest.prototype.getDisbursementsList = function() {
return /** @type{!Array<!proto.disbursement.Disbursement>} */ (
jspb.Message.getRepeatedWrapperField(this, proto.disbursement.Disbursement, 2));
};
/** @param {!Array<!proto.disbursement.Disbursement>} value */
proto.disbursement.CreateDisbursementsRequest.prototype.setDisbursementsList = function(value) {
jspb.Message.setRepeatedWrapperField(this, 2, value);
};
/**
* @param {!proto.disbursement.Disbursement=} opt_value
* @param {number=} opt_index
* @return {!proto.disbursement.Disbursement}
*/
proto.disbursement.CreateDisbursementsRequest.prototype.addDisbursements = function(opt_value, opt_index) {
return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.disbursement.Disbursement, opt_index);
};
/**
* Clears the list making it empty but non-null.
*/
proto.disbursement.CreateDisbursementsRequest.prototype.clearDisbursementsList = function() {
this.setDisbursementsList([]);
};
/**
* List of repeated fields within this message type.
* @private {!Array<number>}
* @const
*/
proto.disbursement.CreateDisbursementsResponse.repeatedFields_ = [1];
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.disbursement.CreateDisbursementsResponse.prototype.toObject = function(opt_includeInstance) {
return proto.disbursement.CreateDisbursementsResponse.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.disbursement.CreateDisbursementsResponse} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.disbursement.CreateDisbursementsResponse.toObject = function(includeInstance, msg) {
var f, obj = {
resultList: jspb.Message.toObjectList(msg.getResultList(),
proto.disbursement.DisbursementResult.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.disbursement.CreateDisbursementsResponse}
*/
proto.disbursement.CreateDisbursementsResponse.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.disbursement.CreateDisbursementsResponse;
return proto.disbursement.CreateDisbursementsResponse.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.disbursement.CreateDisbursementsResponse} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.disbursement.CreateDisbursementsResponse}
*/
proto.disbursement.CreateDisbursementsResponse.deserializeBinaryFromReader = function(msg, reader) {
while (reader.nextField()) {
if (reader.isEndGroup()) {
break;
}
var field = reader.getFieldNumber();
switch (field) {
case 1:
var value = new proto.disbursement.DisbursementResult;
reader.readMessage(value,proto.disbursement.DisbursementResult.deserializeBinaryFromReader);
msg.addResult(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.disbursement.CreateDisbursementsResponse.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.disbursement.CreateDisbursementsResponse.serializeBinaryToWriter(this, writer);
return writer.getResultBuffer();
};
/**
* Serializes the given message to binary data (in protobuf wire
* format), writing to the given BinaryWriter.
* @param {!proto.disbursement.CreateDisbursementsResponse} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.disbursement.CreateDisbursementsResponse.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = message.getResultList();
if (f.length > 0) {
writer.writeRepeatedMessage(
1,
f,
proto.disbursement.DisbursementResult.serializeBinaryToWriter
);
}
};
/**
* repeated DisbursementResult Result = 1;
* @return {!Array<!proto.disbursement.DisbursementResult>}
*/
proto.disbursement.CreateDisbursementsResponse.prototype.getResultList = function() {
return /** @type{!Array<!proto.disbursement.DisbursementResult>} */ (
jspb.Message.getRepeatedWrapperField(this, proto.disbursement.DisbursementResult, 1));
};
/** @param {!Array<!proto.disbursement.DisbursementResult>} value */
proto.disbursement.CreateDisbursementsResponse.prototype.setResultList = function(value) {
jspb.Message.setRepeatedWrapperField(this, 1, value);
};
/**
* @param {!proto.disbursement.DisbursementResult=} opt_value
* @param {number=} opt_index
* @return {!proto.disbursement.DisbursementResult}
*/
proto.disbursement.CreateDisbursementsResponse.prototype.addResult = function(opt_value, opt_index) {
return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.disbursement.DisbursementResult, opt_index);
};
/**
* Clears the list making it empty but non-null.
*/
proto.disbursement.CreateDisbursementsResponse.prototype.clearResultList = function() {
this.setResultList([]);
};
/**
* List of repeated fields within this message type.
* @private {!Array<number>}
* @const
*/
proto.disbursement.RetrieveDisbursementsRequest.repeatedFields_ = [1,8];
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.disbursement.RetrieveDisbursementsRequest.prototype.toObject = function(opt_includeInstance) {
return proto.disbursement.RetrieveDisbursementsRequest.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.disbursement.RetrieveDisbursementsRequest} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.disbursement.RetrieveDisbursementsRequest.toObject = function(includeInstance, msg) {
var f, obj = {
disbursementidsList: (f = jspb.Message.getRepeatedField(msg, 1)) == null ? undefined : f,
startdate: (f = msg.getStartdate()) && proto.disbursement.Date.toObject(includeInstance, f),
enddate: (f = msg.getEnddate()) && proto.disbursement.Date.toObject(includeInstance, f),
page: jspb.Message.getFieldWithDefault(msg, 4, 0),
pagesize: jspb.Message.getFieldWithDefault(msg, 5, 0),
bank: jspb.Message.getFieldWithDefault(msg, 6, 0),
status: jspb.Message.getFieldWithDefault(msg, 7, 0),
batchidsList: (f = jspb.Message.getRepeatedField(msg, 8)) == 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.disbursement.RetrieveDisbursementsRequest}
*/
proto.disbursement.RetrieveDisbursementsRequest.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.disbursement.RetrieveDisbursementsRequest;
return proto.disbursement.RetrieveDisbursementsRequest.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.disbursement.RetrieveDisbursementsRequest} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.disbursement.RetrieveDisbursementsRequest}
*/
proto.disbursement.RetrieveDisbursementsRequest.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.addDisbursementids(value);
break;
case 2:
var value = new proto.disbursement.Date;
reader.readMessage(value,proto.disbursement.Date.deserializeBinaryFromReader);
msg.setStartdate(value);
break;
case 3:
var value = new proto.disbursement.Date;
reader.readMessage(value,proto.disbursement.Date.deserializeBinaryFromReader);
msg.setEnddate(value);
break;
case 4:
var value = /** @type {number} */ (reader.readInt32());
msg.setPage(value);
break;
case 5:
var value = /** @type {number} */ (reader.readInt32());
msg.setPagesize(value);
break;
case 6:
var value = /** @type {!proto.disbursement.BankCode} */ (reader.readEnum());
msg.setBank(value);
break;
case 7:
var value = /** @type {!proto.disbursement.Status} */ (reader.readEnum());
msg.setStatus(value);
break;
case 8:
var value = /** @type {string} */ (reader.readString());
msg.addBatchids(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.disbursement.RetrieveDisbursementsRequest.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.disbursement.RetrieveDisbursementsRequest.serializeBinaryToWriter(this, writer);
return writer.getResultBuffer();
};
/**
* Serializes the given message to binary data (in protobuf wire
* format), writing to the given BinaryWriter.
* @param {!proto.disbursement.RetrieveDisbursementsRequest} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.disbursement.RetrieveDisbursementsRequest.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = message.getDisbursementidsList();
if (f.length > 0) {
writer.writeRepeatedString(
1,
f
);
}
f = message.getStartdate();
if (f != null) {
writer.writeMessage(
2,
f,
proto.disbursement.Date.serializeBinaryToWriter
);
}
f = message.getEnddate();
if (f != null) {
writer.writeMessage(
3,
f,
proto.disbursement.Date.serializeBinaryToWriter
);
}
f = message.getPage();
if (f !== 0) {
writer.writeInt32(
4,
f
);
}
f = message.getPagesize();
if (f !== 0) {
writer.writeInt32(
5,
f
);
}
f = message.getBank();
if (f !== 0.0) {
writer.writeEnum(
6,
f
);
}
f = message.getStatus();
if (f !== 0.0) {
writer.writeEnum(
7,
f
);
}
f = message.getBatchidsList();
if (f.length > 0) {
writer.writeRepeatedString(
8,
f
);
}
};
/**
* repeated string DisbursementIDs = 1;
* @return {!Array<string>}
*/
proto.disbursement.RetrieveDisbursementsRequest.prototype.getDisbursementidsList = function() {
return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 1));
};
/** @param {!Array<string>} value */
proto.disbursement.RetrieveDisbursementsRequest.prototype.setDisbursementidsList = function(value) {
jspb.Message.setField(this, 1, value || []);
};
/**
* @param {string} value
* @param {number=} opt_index
*/
proto.disbursement.RetrieveDisbursementsRequest.prototype.addDisbursementids = function(value, opt_index) {
jspb.Message.addToRepeatedField(this, 1, value, opt_index);
};
/**
* Clears the list making it empty but non-null.
*/
proto.disbursement.RetrieveDisbursementsRequest.prototype.clearDisbursementidsList = function() {
this.setDisbursementidsList([]);
};
/**
* optional Date StartDate = 2;
* @return {?proto.disbursement.Date}
*/
proto.disbursement.RetrieveDisbursementsRequest.prototype.getStartdate = function() {
return /** @type{?proto.disbursement.Date} */ (
jspb.Message.getWrapperField(this, proto.disbursement.Date, 2));
};
/** @param {?proto.disbursement.Date|undefined} value */
proto.disbursement.RetrieveDisbursementsRequest.prototype.setStartdate = function(value) {
jspb.Message.setWrapperField(this, 2, value);
};
/**
* Clears the message field making it undefined.
*/
proto.disbursement.RetrieveDisbursementsRequest.prototype.clearStartdate = function() {
this.setStartdate(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.disbursement.RetrieveDisbursementsRequest.prototype.hasStartdate = function() {
return jspb.Message.getField(this, 2) != null;
};
/**
* optional Date EndDate = 3;
* @return {?proto.disbursement.Date}
*/
proto.disbursement.RetrieveDisbursementsRequest.prototype.getEnddate = function() {
return /** @type{?proto.disbursement.Date} */ (
jspb.Message.getWrapperField(this, proto.disbursement.Date, 3));
};
/** @param {?proto.disbursement.Date|undefined} value */
proto.disbursement.RetrieveDisbursementsRequest.prototype.setEnddate = function(value) {
jspb.Message.setWrapperField(this, 3, value);
};
/**
* Clears the message field making it undefined.
*/
proto.disbursement.RetrieveDisbursementsRequest.prototype.clearEnddate = function() {
this.setEnddate(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.disbursement.RetrieveDisbursementsRequest.prototype.hasEnddate = function() {
return jspb.Message.getField(this, 3) != null;
};
/**
* optional int32 Page = 4;
* @return {number}
*/
proto.disbursement.RetrieveDisbursementsRequest.prototype.getPage = function() {
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
};
/** @param {number} value */
proto.disbursement.RetrieveDisbursementsRequest.prototype.setPage = function(value) {
jspb.Message.setProto3IntField(this, 4, value);
};
/**
* optional int32 PageSize = 5;
* @return {number}
*/
proto.disbursement.RetrieveDisbursementsRequest.prototype.getPagesize = function() {
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0));
};
/** @param {number} value */
proto.disbursement.RetrieveDisbursementsRequest.prototype.setPagesize = function(value) {
jspb.Message.setProto3IntField(this, 5, value);
};
/**
* optional BankCode Bank = 6;
* @return {!proto.disbursement.BankCode}
*/
proto.disbursement.RetrieveDisbursementsRequest.prototype.getBank = function() {
return /** @type {!proto.disbursement.BankCode} */ (jspb.Message.getFieldWithDefault(this, 6, 0));
};
/** @param {!proto.disbursement.BankCode} value */
proto.disbursement.RetrieveDisbursementsRequest.prototype.setBank = function(value) {
jspb.Message.setProto3EnumField(this, 6, value);
};
/**
* optional Status Status = 7;
* @return {!proto.disbursement.Status}
*/
proto.disbursement.RetrieveDisbursementsRequest.prototype.getStatus = function() {
return /** @type {!proto.disbursement.Status} */ (jspb.Message.getFieldWithDefault(this, 7, 0));
};
/** @param {!proto.disbursement.Status} value */
proto.disbursement.RetrieveDisbursementsRequest.prototype.setStatus = function(value) {
jspb.Message.setProto3EnumField(this, 7, value);
};
/**
* repeated string BatchIDs = 8;
* @return {!Array<string>}
*/
proto.disbursement.RetrieveDisbursementsRequest.prototype.getBatchidsList = function() {
return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 8));
};
/** @param {!Array<string>} value */
proto.disbursement.RetrieveDisbursementsRequest.prototype.setBatchidsList = function(value) {
jspb.Message.setField(this, 8, value || []);
};
/**
* @param {string} value
* @param {number=} opt_index
*/
proto.disbursement.RetrieveDisbursementsRequest.prototype.addBatchids = function(value, opt_index) {
jspb.Message.addToRepeatedField(this, 8, value, opt_index);
};
/**
* Clears the list making it empty but non-null.
*/
proto.disbursement.RetrieveDisbursementsRequest.prototype.clearBatchidsList = function() {
this.setBatchidsList([]);
};
/**
* List of repeated fields within this message type.
* @private {!Array<number>}
* @const
*/
proto.disbursement.RetrieveDisbursementsResponse.repeatedFields_ = [2];
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.disbursement.RetrieveDisbursementsResponse.prototype.toObject = function(opt_includeInstance) {
return proto.disbursement.RetrieveDisbursementsResponse.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.disbursement.RetrieveDisbursementsResponse} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.disbursement.RetrieveDisbursementsResponse.toObject = function(includeInstance, msg) {
var f, obj = {
result: (f = msg.getResult()) && proto.disbursement.Result.toObject(includeInstance, f),
disbursementsList: jspb.Message.toObjectList(msg.getDisbursementsList(),
proto.disbursement.Disbursement.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.disbursement.RetrieveDisbursementsResponse}
*/
proto.disbursement.RetrieveDisbursementsResponse.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.disbursement.RetrieveDisbursementsResponse;
return proto.disbursement.RetrieveDisbursementsResponse.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.disbursement.RetrieveDisbursementsResponse} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.disbursement.RetrieveDisbursementsResponse}
*/
proto.disbursement.RetrieveDisbursementsResponse.deserializeBinaryFromReader = function(msg, reader) {
while (reader.nextField()) {
if (reader.isEndGroup()) {
break;
}
var field = reader.getFieldNumber();
switch (field) {
case 1:
var value = new proto.disbursement.Result;
reader.readMessage(value,proto.disbursement.Result.deserializeBinaryFromReader);
msg.setResult(value);
break;
case 2:
var value = new proto.disbursement.Disbursement;
reader.readMessage(value,proto.disbursement.Disbursement.deserializeBinaryFromReader);
msg.addDisbursements(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.disbursement.RetrieveDisbursementsResponse.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.disbursement.RetrieveDisbursementsResponse.serializeBinaryToWriter(this, writer);
return writer.getResultBuffer();
};
/**
* Serializes the given message to binary data (in protobuf wire
* format), writing to the given BinaryWriter.
* @param {!proto.disbursement.RetrieveDisbursementsResponse} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.disbursement.RetrieveDisbursementsResponse.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = message.getResult();
if (f != null) {
writer.writeMessage(
1,
f,
proto.disbursement.Result.serializeBinaryToWriter
);
}
f = message.getDisbursementsList();
if (f.length > 0) {
writer.writeRepeatedMessage(
2,
f,
proto.disbursement.Disbursement.serializeBinaryToWriter
);
}
};
/**
* optional Result Result = 1;
* @return {?proto.disbursement.Result}
*/
proto.disbursement.RetrieveDisbursementsResponse.prototype.getResult = function() {
return /** @type{?proto.disbursement.Result} */ (
jspb.Message.getWrapperField(this, proto.disbursement.Result, 1));
};
/** @param {?proto.disbursement.Result|undefined} value */
proto.disbursement.RetrieveDisbursementsResponse.prototype.setResult = function(value) {
jspb.Message.setWrapperField(this, 1, value);
};
/**
* Clears the message field making it undefined.
*/
proto.disbursement.RetrieveDisbursementsResponse.prototype.clearResult = function() {
this.setResult(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.disbursement.RetrieveDisbursementsResponse.prototype.hasResult = function() {
return jspb.Message.getField(this, 1) != null;
};
/**
* repeated Disbursement Disbursements = 2;
* @return {!Array<!proto.disbursement.Disbursement>}
*/
proto.disbursement.RetrieveDisbursementsResponse.prototype.getDisbursementsList = function() {
return /** @type{!Array<!proto.disbursement.Disbursement>} */ (
jspb.Message.getRepeatedWrapperField(this, proto.disbursement.Disbursement, 2));
};
/** @param {!Array<!proto.disbursement.Disbursement>} value */
proto.disbursement.RetrieveDisbursementsResponse.prototype.setDisbursementsList = function(value) {
jspb.Message.setRepeatedWrapperField(this, 2, value);
};
/**
* @param {!proto.disbursement.Disbursement=} opt_value
* @param {number=} opt_index
* @return {!proto.disbursement.Disbursement}
*/
proto.disbursement.RetrieveDisbursementsResponse.prototype.addDisbursements = function(opt_value, opt_index) {
return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.disbursement.Disbursement, opt_index);
};
/**
* Clears the list making it empty but non-null.
*/
proto.disbursement.RetrieveDisbursementsResponse.prototype.clearDisbursementsList = function() {
this.setDisbursementsList([]);
};
/**
* List of repeated fields within this message type.
* @private {!Array<number>}
* @const
*/
proto.disbursement.ExternalStatusUpdatesRequest.repeatedFields_ = [2];
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.disbursement.ExternalStatusUpdatesRequest.prototype.toObject = function(opt_includeInstance) {
return proto.disbursement.ExternalStatusUpdatesRequest.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.disbursement.ExternalStatusUpdatesRequest} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.disbursement.ExternalStatusUpdatesRequest.toObject = function(includeInstance, msg) {
var f, obj = {
credentialsMap: (f = msg.getCredentialsMap()) ? f.toObject(includeInstance, proto.disbursement.BankCredential.toObject) : [],
disbursementidsList: (f = jspb.Message.getRepeatedField(msg, 2)) == 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.disbursement.ExternalStatusUpdatesRequest}
*/
proto.disbursement.ExternalStatusUpdatesRequest.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.disbursement.ExternalStatusUpdatesRequest;
return proto.disbursement.ExternalStatusUpdatesRequest.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.disbursement.ExternalStatusUpdatesRequest} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.disbursement.ExternalStatusUpdatesRequest}
*/
proto.disbursement.ExternalStatusUpdatesRequest.deserializeBinaryFromReader = function(msg, reader) {
while (reader.nextField()) {
if (reader.isEndGroup()) {
break;
}
var field = reader.getFieldNumber();
switch (field) {
case 1:
var value = msg.getCredentialsMap();
reader.readMessage(value, function(message, reader) {
jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readMessage, proto.disbursement.BankCredential.deserializeBinaryFromReader, "");
});
break;
case 2:
var value = /** @type {string} */ (reader.readString());
msg.addDisbursementids(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.disbursement.ExternalStatusUpdatesRequest.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.disbursement.ExternalStatusUpdatesRequest.serializeBinaryToWriter(this, writer);
return writer.getResultBuffer();
};
/**
* Serializes the given message to binary data (in protobuf wire
* format), writing to the given BinaryWriter.
* @param {!proto.disbursement.ExternalStatusUpdatesRequest} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.disbursement.ExternalStatusUpdatesRequest.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = message.getCredentialsMap(true);
if (f && f.getLength() > 0) {
f.serializeBinary(1, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeMessage, proto.disbursement.BankCredential.serializeBinaryToWriter);
}
f = message.getDisbursementidsList();
if (f.length > 0) {
writer.writeRepeatedString(
2,
f
);
}
};
/**
* map<string, BankCredential> Credentials = 1;
* @param {boolean=} opt_noLazyCreate Do not create the map if
* empty, instead returning `undefined`
* @return {!jspb.Map<string,!proto.disbursement.BankCredential>}
*/
proto.disbursement.ExternalStatusUpdatesRequest.prototype.getCredentialsMap = function(opt_noLazyCreate) {
return /** @type {!jspb.Map<string,!proto.disbursement.BankCredential>} */ (
jspb.Message.getMapField(this, 1, opt_noLazyCreate,
proto.disbursement.BankCredential));
};
/**
* Clears values from the map. The map will be non-null.
*/
proto.disbursement.ExternalStatusUpdatesRequest.prototype.clearCredentialsMap = function() {
this.getCredentialsMap().clear();
};
/**
* repeated string DisbursementIDs = 2;
* @return {!Array<string>}
*/
proto.disbursement.ExternalStatusUpdatesRequest.prototype.getDisbursementidsList = function() {
return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 2));
};
/** @param {!Array<string>} value */
proto.disbursement.ExternalStatusUpdatesRequest.prototype.setDisbursementidsList = function(value) {
jspb.Message.setField(this, 2, value || []);
};
/**
* @param {string} value
* @param {number=} opt_index
*/
proto.disbursement.ExternalStatusUpdatesRequest.prototype.addDisbursementids = function(value, opt_index) {
jspb.Message.addToRepeatedField(this, 2, value, opt_index);
};
/**
* Clears the list making it empty but non-null.
*/
proto.disbursement.ExternalStatusUpdatesRequest.prototype.clearDisbursementidsList = function() {
this.setDisbursementidsList([]);
};
/**
* List of repeated fields within this message type.
* @private {!Array<number>}
* @const
*/
proto.disbursement.ExternalStatusUpdatesResponse.repeatedFields_ = [1];
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.disbursement.ExternalStatusUpdatesResponse.prototype.toObject = function(opt_includeInstance) {
return proto.disbursement.ExternalStatusUpdatesResponse.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.disbursement.ExternalStatusUpdatesResponse} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.disbursement.ExternalStatusUpdatesResponse.toObject = function(includeInstance, msg) {
var f, obj = {
resultList: jspb.Message.toObjectList(msg.getResultList(),
proto.disbursement.DisbursementResult.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.disbursement.ExternalStatusUpdatesResponse}
*/
proto.disbursement.ExternalStatusUpdatesResponse.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.disbursement.ExternalStatusUpdatesResponse;
return proto.disbursement.ExternalStatusUpdatesResponse.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.disbursement.ExternalStatusUpdatesResponse} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.disbursement.ExternalStatusUpdatesResponse}
*/
proto.disbursement.ExternalStatusUpdatesResponse.deserializeBinaryFromReader = function(msg, reader) {
while (reader.nextField()) {
if (reader.isEndGroup()) {
break;
}
var field = reader.getFieldNumber();
switch (field) {
case 1:
var value = new proto.disbursement.DisbursementResult;
reader.readMessage(value,proto.disbursement.DisbursementResult.deserializeBinaryFromReader);
msg.addResult(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.disbursement.ExternalStatusUpdatesResponse.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.disbursement.ExternalStatusUpdatesResponse.serializeBinaryToWriter(this, writer);
return writer.getResultBuffer();
};
/**
* Serializes the given message to binary data (in protobuf wire
* format), writing to the given BinaryWriter.
* @param {!proto.disbursement.ExternalStatusUpdatesResponse} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.disbursement.ExternalStatusUpdatesResponse.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = message.getResultList();
if (f.length > 0) {
writer.writeRepeatedMessage(
1,
f,
proto.disbursement.DisbursementResult.serializeBinaryToWriter
);
}
};
/**
* repeated DisbursementResult Result = 1;
* @return {!Array<!proto.disbursement.DisbursementResult>}
*/
proto.disbursement.ExternalStatusUpdatesResponse.prototype.getResultList = function() {
return /** @type{!Array<!proto.disbursement.DisbursementResult>} */ (
jspb.Message.getRepeatedWrapperField(this, proto.disbursement.DisbursementResult, 1));
};
/** @param {!Array<!proto.disbursement.DisbursementResult>} value */
proto.disbursement.ExternalStatusUpdatesResponse.prototype.setResultList = function(value) {
jspb.Message.setRepeatedWrapperField(this, 1, value);
};
/**
* @param {!proto.disbursement.DisbursementResult=} opt_value
* @param {number=} opt_index
* @return {!proto.disbursement.DisbursementResult}
*/
proto.disbursement.ExternalStatusUpdatesResponse.prototype.addResult = function(opt_value, opt_index) {
return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.disbursement.DisbursementResult, opt_index);
};
/**
* Clears the list making it empty but non-null.
*/
proto.disbursement.ExternalStatusUpdatesResponse.prototype.clearResultList = function() {
this.setResultList([]);
};
/**
* List of repeated fields within this message type.
* @private {!Array<number>}
* @const
*/
proto.disbursement.ProcessFutureDisbursementsRequest.repeatedFields_ = [2];
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.disbursement.ProcessFutureDisbursementsRequest.prototype.toObject = function(opt_includeInstance) {
return proto.disbursement.ProcessFutureDisbursementsRequest.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.disbursement.ProcessFutureDisbursementsRequest} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.disbursement.ProcessFutureDisbursementsRequest.toObject = function(includeInstance, msg) {
var f, obj = {
credentialsMap: (f = msg.getCredentialsMap()) ? f.toObject(includeInstance, proto.disbursement.BankCredential.toObject) : [],
disbursementidsList: (f = jspb.Message.getRepeatedField(msg, 2)) == 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.disbursement.ProcessFutureDisbursementsRequest}
*/
proto.disbursement.ProcessFutureDisbursementsRequest.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.disbursement.ProcessFutureDisbursementsRequest;
return proto.disbursement.ProcessFutureDisbursementsRequest.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.disbursement.ProcessFutureDisbursementsRequest} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.disbursement.ProcessFutureDisbursementsRequest}
*/
proto.disbursement.ProcessFutureDisbursementsRequest.deserializeBinaryFromReader = function(msg, reader) {
while (reader.nextField()) {
if (reader.isEndGroup()) {
break;
}
var field = reader.getFieldNumber();
switch (field) {
case 1:
var value = msg.getCredentialsMap();
reader.readMessage(value, function(message, reader) {
jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readMessage, proto.disbursement.BankCredential.deserializeBinaryFromReader, "");
});
break;
case 2:
var value = /** @type {string} */ (reader.readString());
msg.addDisbursementids(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.disbursement.ProcessFutureDisbursementsRequest.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.disbursement.ProcessFutureDisbursementsRequest.serializeBinaryToWriter(this, writer);
return writer.getResultBuffer();
};
/**
* Serializes the given message to binary data (in protobuf wire
* format), writing to the given BinaryWriter.
* @param {!proto.disbursement.ProcessFutureDisbursementsRequest} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.disbursement.ProcessFutureDisbursementsRequest.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = message.getCredentialsMap(true);
if (f && f.getLength() > 0) {
f.serializeBinary(1, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeMessage, proto.disbursement.BankCredential.serializeBinaryToWriter);
}
f = message.getDisbursementidsList();
if (f.length > 0) {
writer.writeRepeatedString(
2,
f
);
}
};
/**
* map<string, BankCredential> Credentials = 1;
* @param {boolean=} opt_noLazyCreate Do not create the map if
* empty, instead returning `undefined`
* @return {!jspb.Map<string,!proto.disbursement.BankCredential>}
*/
proto.disbursement.ProcessFutureDisbursementsRequest.prototype.getCredentialsMap = function(opt_noLazyCreate) {
return /** @type {!jspb.Map<string,!proto.disbursement.BankCredential>} */ (
jspb.Message.getMapField(this, 1, opt_noLazyCreate,
proto.disbursement.BankCredential));
};
/**
* Clears values from the map. The map will be non-null.
*/
proto.disbursement.ProcessFutureDisbursementsRequest.prototype.clearCredentialsMap = function() {
this.getCredentialsMap().clear();
};
/**
* repeated string DisbursementIDs = 2;
* @return {!Array<string>}
*/
proto.disbursement.ProcessFutureDisbursementsRequest.prototype.getDisbursementidsList = function() {
return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 2));
};
/** @param {!Array<string>} value */
proto.disbursement.ProcessFutureDisbursementsRequest.prototype.setDisbursementidsList = function(value) {
jspb.Message.setField(this, 2, value || []);
};
/**
* @param {string} value
* @param {number=} opt_index
*/
proto.disbursement.ProcessFutureDisbursementsRequest.prototype.addDisbursementids = function(value, opt_index) {
jspb.Message.addToRepeatedField(this, 2, value, opt_index);
};
/**
* Clears the list making it empty but non-null.
*/
proto.disbursement.ProcessFutureDisbursementsRequest.prototype.clearDisbursementidsList = function() {
this.setDisbursementidsList([]);
};
/**
* List of repeated fields within this message type.
* @private {!Array<number>}
* @const
*/
proto.disbursement.ProcessFutureDisbursementsResponse.repeatedFields_ = [1];
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.disbursement.ProcessFutureDisbursementsResponse.prototype.toObject = function(opt_includeInstance) {
return proto.disbursement.ProcessFutureDisbursementsResponse.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.disbursement.ProcessFutureDisbursementsResponse} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.disbursement.ProcessFutureDisbursementsResponse.toObject = function(includeInstance, msg) {
var f, obj = {
resultList: jspb.Message.toObjectList(msg.getResultList(),
proto.disbursement.DisbursementResult.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.disbursement.ProcessFutureDisbursementsResponse}
*/
proto.disbursement.ProcessFutureDisbursementsResponse.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.disbursement.ProcessFutureDisbursementsResponse;
return proto.disbursement.ProcessFutureDisbursementsResponse.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.disbursement.ProcessFutureDisbursementsResponse} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.disbursement.ProcessFutureDisbursementsResponse}
*/
proto.disbursement.ProcessFutureDisbursementsResponse.deserializeBinaryFromReader = function(msg, reader) {
while (reader.nextField()) {
if (reader.isEndGroup()) {
break;
}
var field = reader.getFieldNumber();
switch (field) {
case 1:
var value = new proto.disbursement.DisbursementResult;
reader.readMessage(value,proto.disbursement.DisbursementResult.deserializeBinaryFromReader);
msg.addResult(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.disbursement.ProcessFutureDisbursementsResponse.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.disbursement.ProcessFutureDisbursementsResponse.serializeBinaryToWriter(this, writer);
return writer.getResultBuffer();
};
/**
* Serializes the given message to binary data (in protobuf wire
* format), writing to the given BinaryWriter.
* @param {!proto.disbursement.ProcessFutureDisbursementsResponse} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.disbursement.ProcessFutureDisbursementsResponse.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = message.getResultList();
if (f.length > 0) {
writer.writeRepeatedMessage(
1,
f,
proto.disbursement.DisbursementResult.serializeBinaryToWriter
);
}
};
/**
* repeated DisbursementResult Result = 1;
* @return {!Array<!proto.disbursement.DisbursementResult>}
*/
proto.disbursement.ProcessFutureDisbursementsResponse.prototype.getResultList = function() {
return /** @type{!Array<!proto.disbursement.DisbursementResult>} */ (
jspb.Message.getRepeatedWrapperField(this, proto.disbursement.DisbursementResult, 1));
};
/** @param {!Array<!proto.disbursement.DisbursementResult>} value */
proto.disbursement.ProcessFutureDisbursementsResponse.prototype.setResultList = function(value) {
jspb.Message.setRepeatedWrapperField(this, 1, value);
};
/**
* @param {!proto.disbursement.DisbursementResult=} opt_value
* @param {number=} opt_index
* @return {!proto.disbursement.DisbursementResult}
*/
proto.disbursement.ProcessFutureDisbursementsResponse.prototype.addResult = function(opt_value, opt_index) {
return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.disbursement.DisbursementResult, opt_index);
};
/**
* Clears the list making it empty but non-null.
*/
proto.disbursement.ProcessFutureDisbursementsResponse.prototype.clearResultList = function() {
this.setResultList([]);
};
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.disbursement.AccountInquiryRequest.prototype.toObject = function(opt_includeInstance) {
return proto.disbursement.AccountInquiryRequest.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.disbursement.AccountInquiryRequest} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.disbursement.AccountInquiryRequest.toObject = function(includeInstance, msg) {
var f, obj = {
bankaccount: (f = msg.getBankaccount()) && proto.disbursement.BankAccountInfo.toObject(includeInstance, f),
corporateid: jspb.Message.getFieldWithDefault(msg, 2, "")
};
if (includeInstance) {
obj.$jspbMessageInstance = msg;
}
return obj;
};
}
/**
* Deserializes binary data (in protobuf wire format).
* @param {jspb.ByteSource} bytes The bytes to deserialize.
* @return {!proto.disbursement.AccountInquiryRequest}
*/
proto.disbursement.AccountInquiryRequest.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.disbursement.AccountInquiryRequest;
return proto.disbursement.AccountInquiryRequest.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.disbursement.AccountInquiryRequest} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.disbursement.AccountInquiryRequest}
*/
proto.disbursement.AccountInquiryRequest.deserializeBinaryFromReader = function(msg, reader) {
while (reader.nextField()) {
if (reader.isEndGroup()) {
break;
}
var field = reader.getFieldNumber();
switch (field) {
case 1:
var value = new proto.disbursement.BankAccountInfo;
reader.readMessage(value,proto.disbursement.BankAccountInfo.deserializeBinaryFromReader);
msg.setBankaccount(value);
break;
case 2:
var value = /** @type {string} */ (reader.readString());
msg.setCorporateid(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.disbursement.AccountInquiryRequest.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.disbursement.AccountInquiryRequest.serializeBinaryToWriter(this, writer);
return writer.getResultBuffer();
};
/**
* Serializes the given message to binary data (in protobuf wire
* format), writing to the given BinaryWriter.
* @param {!proto.disbursement.AccountInquiryRequest} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.disbursement.AccountInquiryRequest.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = message.getBankaccount();
if (f != null) {
writer.writeMessage(
1,
f,
proto.disbursement.BankAccountInfo.serializeBinaryToWriter
);
}
f = message.getCorporateid();
if (f.length > 0) {
writer.writeString(
2,
f
);
}
};
/**
* optional BankAccountInfo BankAccount = 1;
* @return {?proto.disbursement.BankAccountInfo}
*/
proto.disbursement.AccountInquiryRequest.prototype.getBankaccount = function() {
return /** @type{?proto.disbursement.BankAccountInfo} */ (
jspb.Message.getWrapperField(this, proto.disbursement.BankAccountInfo, 1));
};
/** @param {?proto.disbursement.BankAccountInfo|undefined} value */
proto.disbursement.AccountInquiryRequest.prototype.setBankaccount = function(value) {
jspb.Message.setWrapperField(this, 1, value);
};
/**
* Clears the message field making it undefined.
*/
proto.disbursement.AccountInquiryRequest.prototype.clearBankaccount = function() {
this.setBankaccount(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.disbursement.AccountInquiryRequest.prototype.hasBankaccount = function() {
return jspb.Message.getField(this, 1) != null;
};
/**
* optional string CorporateID = 2;
* @return {string}
*/
proto.disbursement.AccountInquiryRequest.prototype.getCorporateid = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
};
/** @param {string} value */
proto.disbursement.AccountInquiryRequest.prototype.setCorporateid = function(value) {
jspb.Message.setProto3StringField(this, 2, 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.disbursement.AccountInquiryResponse.prototype.toObject = function(opt_includeInstance) {
return proto.disbursement.AccountInquiryResponse.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.disbursement.AccountInquiryResponse} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.disbursement.AccountInquiryResponse.toObject = function(includeInstance, msg) {
var f, obj = {
result: (f = msg.getResult()) && proto.disbursement.Result.toObject(includeInstance, f),
bankaccount: (f = msg.getBankaccount()) && proto.disbursement.BankAccountInfo.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.disbursement.AccountInquiryResponse}
*/
proto.disbursement.AccountInquiryResponse.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.disbursement.AccountInquiryResponse;
return proto.disbursement.AccountInquiryResponse.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.disbursement.AccountInquiryResponse} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.disbursement.AccountInquiryResponse}
*/
proto.disbursement.AccountInquiryResponse.deserializeBinaryFromReader = function(msg, reader) {
while (reader.nextField()) {
if (reader.isEndGroup()) {
break;
}
var field = reader.getFieldNumber();
switch (field) {
case 1:
var value = new proto.disbursement.Result;
reader.readMessage(value,proto.disbursement.Result.deserializeBinaryFromReader);
msg.setResult(value);
break;
case 2:
var value = new proto.disbursement.BankAccountInfo;
reader.readMessage(value,proto.disbursement.BankAccountInfo.deserializeBinaryFromReader);
msg.setBankaccount(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.disbursement.AccountInquiryResponse.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.disbursement.AccountInquiryResponse.serializeBinaryToWriter(this, writer);
return writer.getResultBuffer();
};
/**
* Serializes the given message to binary data (in protobuf wire
* format), writing to the given BinaryWriter.
* @param {!proto.disbursement.AccountInquiryResponse} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.disbursement.AccountInquiryResponse.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = message.getResult();
if (f != null) {
writer.writeMessage(
1,
f,
proto.disbursement.Result.serializeBinaryToWriter
);
}
f = message.getBankaccount();
if (f != null) {
writer.writeMessage(
2,
f,
proto.disbursement.BankAccountInfo.serializeBinaryToWriter
);
}
};
/**
* optional Result Result = 1;
* @return {?proto.disbursement.Result}
*/
proto.disbursement.AccountInquiryResponse.prototype.getResult = function() {
return /** @type{?proto.disbursement.Result} */ (
jspb.Message.getWrapperField(this, proto.disbursement.Result, 1));
};
/** @param {?proto.disbursement.Result|undefined} value */
proto.disbursement.AccountInquiryResponse.prototype.setResult = function(value) {
jspb.Message.setWrapperField(this, 1, value);
};
/**
* Clears the message field making it undefined.
*/
proto.disbursement.AccountInquiryResponse.prototype.clearResult = function() {
this.setResult(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.disbursement.AccountInquiryResponse.prototype.hasResult = function() {
return jspb.Message.getField(this, 1) != null;
};
/**
* optional BankAccountInfo BankAccount = 2;
* @return {?proto.disbursement.BankAccountInfo}
*/
proto.disbursement.AccountInquiryResponse.prototype.getBankaccount = function() {
return /** @type{?proto.disbursement.BankAccountInfo} */ (
jspb.Message.getWrapperField(this, proto.disbursement.BankAccountInfo, 2));
};
/** @param {?proto.disbursement.BankAccountInfo|undefined} value */
proto.disbursement.AccountInquiryResponse.prototype.setBankaccount = function(value) {
jspb.Message.setWrapperField(this, 2, value);
};
/**
* Clears the message field making it undefined.
*/
proto.disbursement.AccountInquiryResponse.prototype.clearBankaccount = function() {
this.setBankaccount(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.disbursement.AccountInquiryResponse.prototype.hasBankaccount = function() {
return jspb.Message.getField(this, 2) != null;
};
/**
* @enum {number}
*/
proto.disbursement.Status = {
UNKNOWN_STATUS: 0,
CREATED: 1,
PENDING: 2,
SUCCESS: 3,
FAILED: 4
};
/**
* @enum {number}
*/
proto.disbursement.BankAccountType = {
UNKNOWN_BANK_ACCOUNT: 0,
CHECKINGS: 1,
SAVINGS: 2
};
/**
* @enum {number}
*/
proto.disbursement.BankCode = {
UNKNOWN_BANK: 0,
MANDIRI: 1,
BCA: 2,
BNI: 3,
BRI: 4,
DUMMY_BANK: 5,
BDO: 6,
BPI: 7,
ACEH: 8,
AGRIS: 9,
AGRONIAGA: 10,
AMAR_INDONESIA: 11,
ANDARA: 12,
ANTARDAERAH: 13,
ANZ_INDONESIA: 14,
ARTHAGRAHA: 15,
ARTOS: 16,
BANGKOK_INDONESIA: 17,
BARCLAYS_INDONESIA: 18,
BCA_SYARIAH: 19,
BI: 20,
BISNIS_INTERNASIONAL: 21,
BNI_SYARIAH: 22,
BRI_SYARIAH: 23,
BTPN: 24,
BTPN_SYARIAH: 25,
BUKOPIN: 26,
BUKOPIN_SYARIAH: 27,
BUMI_ARTA: 28,
CAPITAL_INDONESIA: 29,
CENTRATAMA_NASIONAL: 30,
CTBC_INDONESIA: 31,
DANAMON: 32,
DANPAC: 33,
DINAR_INDONESIA: 34,
DKI: 35,
DKI_SYARIAH: 36,
EKONOMI_RAHARJA: 37,
FAMA: 38,
GANESHA: 39,
HARDA: 40,
ICBC_INDONESIA: 41,
INA_PERDANA: 42,
INDEX_SELINDO: 43,
JABAR: 44,
JABAR_SYARIAH: 45,
JASA_JAKARTA: 46,
JATIM: 47,
JATIM_SYARIAH: 48,
KEB_HANA: 49,
KESEJAHTERAAN_EKONOMI: 50,
MANDIRI_SYARIAH: 51,
MASPION_INDONESIA: 52,
MAYAPADA: 53,
MAYBANK: 54,
MAYBANK_SYARIAH_INDONESIA: 55,
MAYORA: 56,
MEGA: 57,
MEGA_SYARIAH: 58,
MESTIKA_DHARMA: 59,
METRO_EXPRESS: 60,
MITRANIAGA: 61,
MIZUHO_INDONESIA: 62,
MNC_INTERNATIONAL: 63,
MUAMALAT_INDONESIA: 64,
MULTI_ARTA: 65,
MUTIARA: 66,
NUSANTARA_PARAHYANGAN: 67,
OCBC_NISP: 68,
OCBC_NISP_SYARIAH: 69,
BANK_OF_AMERICA_INDONESIA: 70,
BANK_OF_CHINA_INDONESIA: 71,
BANK_OF_INDIA_INDONESIA: 72,
PIKKO: 73,
PRIMA_MASTER: 74,
PUNDI_INDONESIA: 75,
QNB_INDONESIA: 76,
ROYAL_INDONESIA: 77,
SAHABAT_SAMPOERNA: 78,
SBI_INDONESIA: 79,
SINAR_HARAPAN: 80,
SINARMAS: 81,
BTN: 82,
BTN_SYARIAH: 83,
UOB_INDONESIA: 84,
VICTORIA: 85,
VICTORIA_SYARIAH: 86,
WINDU_KENTJANA: 87,
WOORI_SAUDARA_INDONESIA: 88,
YUDHA_BAKTI: 89,
BNP_PARIBAS_INDONESIA: 90,
BPD_ACEH_SYARIAH: 91,
BPD_BALI: 92,
BPD_BENGKULU: 93,
BPD_JAMBI: 94,
BPD_JAWA_TENGAH: 95,
BPD_KALIMANTAN_BARAT: 96,
BPD_KALIMANTAN_BARAT_SYARIAH: 97,
BPD_KALIMANTAN_TENGAH: 98,
BPD_KALIMANTAN_TIMUR: 99,
BPD_KALIMANTAN_TIMUR_SYARIAH: 100,
BPD_KALIMANTAN_SELATAN: 101,
BPD_KALIMANTAN_SELATAN_SYARIAH: 102,
BPD_LAMPUNG: 103,
BPD_MALUKU: 104,
BPD_NTB: 105,
BPD_NTT: 106,
BPD_PAPUA: 107,
BPD_RIAU_KEPRI: 108,
BPD_SULAWESI_SELATAN_BARAT: 109,
BPD_SULAWESI_TENGAH: 110,
BPD_SULAWESI_TENGGARA: 111,
BPD_SULAWESI_UTARA: 112,
BPD_SUMATERA_BARAT: 113,
BPD_SUMATERA_BARAT_SYARIAH: 114,
BPD_SUMATERA_SELATAN: 115,
BPD_SUMATERA_SELATAN_BABEL: 116,
BPD_SUMATERA_SELATAN_SYARIAH: 117,
BPD_SUMATERA_SELATAN_UUS: 118,
BPD_SUMATERA_UTARA: 119,
BPD_SUMATERA_UTARA_SYARIAH: 120,
BPD_YOGYAKARTA: 121,
BPD_YOGYAKARTA_SYARIAH: 122,
CIMB_NIAGA: 123,
CIMB_NIAGA_SYARIAH: 124,
CITIBANK_INDONESIA: 125,
COMMONWEALTH_INDONESIA: 126,
DANAMON_SYARIAH: 127,
DBS_INDONESIA: 128,
DEUTSCHE_AG_INDONESIA: 129,
NOBU_INDONESIA: 130,
PANIN: 131,
PANIN_SYARIAH: 132,
RABO_INDONESIA: 133,
RESONA_PERDANIA: 134,
STANDARD_CHARTERED_INDONESIA: 135,
SUMITOMO_MITSUI_INDONESIA: 136,
BANK_OF_TOKYO_INDONESIA: 137,
ROYAL_BANK_OF_SCOTLAND_INDONESIA: 138,
PERMATA: 139,
PERMATA_SYARIAH: 140,
SINARMAS_SYARIAH: 141,
MANDIRI_TASPEN: 142,
BANTEN: 143,
BEI: 144,
CHASE_INDONESIA: 145,
CCB_INDONESIA: 146,
JTRUST_INDONESIA: 147,
TRANSFERWISE: 148
};
/**
* @enum {number}
*/
proto.disbursement.DisbursementType = {
UNKNOWN_TYPE: 0,
ON_DEMAND: 1,
FUTURE: 2
};
/**
* @enum {number}
*/
proto.disbursement.BankCredentialType = {
UNKNOWN_BANK_CREDENTIAL_TYPE: 0,
BRANKAS_TEST_CLIENT: 1,
BCA_CLIENT: 2,
BCA_API: 3,
BNI_CLIENT: 4,
TRANSFERWISE_API: 5,
PERMATA_API: 6,
PERMATA_CLIENT: 7,
BDO_CLIENT: 8,
BRI_CLIENT: 9
};
goog.object.extend(exports, proto.disbursement);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment