3172 lines
97 KiB
JavaScript
3172 lines
97 KiB
JavaScript
// source: c2se/common/bank.proto
|
|
/**
|
|
* @fileoverview
|
|
* @enhanceable
|
|
* @suppress {missingRequire} reports error on implicit type usages.
|
|
* @suppress {messageConventions} JS Compiler reports an error if a variable or
|
|
* field starts with 'MSG_' and isn't a translatable message.
|
|
* @public
|
|
*/
|
|
// GENERATED CODE -- DO NOT EDIT!
|
|
/* eslint-disable */
|
|
// @ts-nocheck
|
|
|
|
var jspb = require("google-protobuf");
|
|
var goog = jspb;
|
|
var global = function () {
|
|
return this || window || global || self || Function("return this")();
|
|
}.call(null);
|
|
|
|
var protobuf_rpc_error_pb = require("../../protobuf/rpc/error_pb.js");
|
|
goog.object.extend(proto, protobuf_rpc_error_pb);
|
|
var protobuf_pagination_pagination_pb = require("../../protobuf/pagination/pagination_pb.js");
|
|
goog.object.extend(proto, protobuf_pagination_pagination_pb);
|
|
var protobuf_pagination_search_pb = require("../../protobuf/pagination/search_pb.js");
|
|
goog.object.extend(proto, protobuf_pagination_search_pb);
|
|
var protobuf_pagination_sort_pb = require("../../protobuf/pagination/sort_pb.js");
|
|
goog.object.extend(proto, protobuf_pagination_sort_pb);
|
|
var models_account_bank_pb = require("../../models/account/bank_pb.js");
|
|
goog.object.extend(proto, models_account_bank_pb);
|
|
goog.exportSymbol(
|
|
"proto.bet.beteran.c2se.common.bank.CreateBankRequest",
|
|
null,
|
|
global
|
|
);
|
|
goog.exportSymbol(
|
|
"proto.bet.beteran.c2se.common.bank.CreateBankResponse",
|
|
null,
|
|
global
|
|
);
|
|
goog.exportSymbol(
|
|
"proto.bet.beteran.c2se.common.bank.CreateBankResponse.Result",
|
|
null,
|
|
global
|
|
);
|
|
goog.exportSymbol(
|
|
"proto.bet.beteran.c2se.common.bank.DeleteBankRequest",
|
|
null,
|
|
global
|
|
);
|
|
goog.exportSymbol(
|
|
"proto.bet.beteran.c2se.common.bank.DeleteBankResponse",
|
|
null,
|
|
global
|
|
);
|
|
goog.exportSymbol(
|
|
"proto.bet.beteran.c2se.common.bank.DeleteBankResponse.Result",
|
|
null,
|
|
global
|
|
);
|
|
goog.exportSymbol(
|
|
"proto.bet.beteran.c2se.common.bank.ListBanksRequest",
|
|
null,
|
|
global
|
|
);
|
|
goog.exportSymbol(
|
|
"proto.bet.beteran.c2se.common.bank.ListBanksResponse",
|
|
null,
|
|
global
|
|
);
|
|
goog.exportSymbol(
|
|
"proto.bet.beteran.c2se.common.bank.ListBanksResponse.Result",
|
|
null,
|
|
global
|
|
);
|
|
goog.exportSymbol(
|
|
"proto.bet.beteran.c2se.common.bank.UpdateBankRequest",
|
|
null,
|
|
global
|
|
);
|
|
goog.exportSymbol(
|
|
"proto.bet.beteran.c2se.common.bank.UpdateBankResponse",
|
|
null,
|
|
global
|
|
);
|
|
goog.exportSymbol(
|
|
"proto.bet.beteran.c2se.common.bank.UpdateBankResponse.Result",
|
|
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.bet.beteran.c2se.common.bank.ListBanksRequest = function (opt_data) {
|
|
jspb.Message.initialize(
|
|
this,
|
|
opt_data,
|
|
0,
|
|
-1,
|
|
proto.bet.beteran.c2se.common.bank.ListBanksRequest.repeatedFields_,
|
|
null
|
|
);
|
|
};
|
|
goog.inherits(
|
|
proto.bet.beteran.c2se.common.bank.ListBanksRequest,
|
|
jspb.Message
|
|
);
|
|
if (goog.DEBUG && !COMPILED) {
|
|
/**
|
|
* @public
|
|
* @override
|
|
*/
|
|
proto.bet.beteran.c2se.common.bank.ListBanksRequest.displayName =
|
|
"proto.bet.beteran.c2se.common.bank.ListBanksRequest";
|
|
}
|
|
/**
|
|
* 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.bet.beteran.c2se.common.bank.ListBanksResponse = function (opt_data) {
|
|
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
};
|
|
goog.inherits(
|
|
proto.bet.beteran.c2se.common.bank.ListBanksResponse,
|
|
jspb.Message
|
|
);
|
|
if (goog.DEBUG && !COMPILED) {
|
|
/**
|
|
* @public
|
|
* @override
|
|
*/
|
|
proto.bet.beteran.c2se.common.bank.ListBanksResponse.displayName =
|
|
"proto.bet.beteran.c2se.common.bank.ListBanksResponse";
|
|
}
|
|
/**
|
|
* 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.bet.beteran.c2se.common.bank.ListBanksResponse.Result = function (
|
|
opt_data
|
|
) {
|
|
jspb.Message.initialize(
|
|
this,
|
|
opt_data,
|
|
0,
|
|
-1,
|
|
proto.bet.beteran.c2se.common.bank.ListBanksResponse.Result.repeatedFields_,
|
|
null
|
|
);
|
|
};
|
|
goog.inherits(
|
|
proto.bet.beteran.c2se.common.bank.ListBanksResponse.Result,
|
|
jspb.Message
|
|
);
|
|
if (goog.DEBUG && !COMPILED) {
|
|
/**
|
|
* @public
|
|
* @override
|
|
*/
|
|
proto.bet.beteran.c2se.common.bank.ListBanksResponse.Result.displayName =
|
|
"proto.bet.beteran.c2se.common.bank.ListBanksResponse.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.bet.beteran.c2se.common.bank.CreateBankRequest = function (opt_data) {
|
|
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
};
|
|
goog.inherits(
|
|
proto.bet.beteran.c2se.common.bank.CreateBankRequest,
|
|
jspb.Message
|
|
);
|
|
if (goog.DEBUG && !COMPILED) {
|
|
/**
|
|
* @public
|
|
* @override
|
|
*/
|
|
proto.bet.beteran.c2se.common.bank.CreateBankRequest.displayName =
|
|
"proto.bet.beteran.c2se.common.bank.CreateBankRequest";
|
|
}
|
|
/**
|
|
* 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.bet.beteran.c2se.common.bank.CreateBankResponse = function (opt_data) {
|
|
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
};
|
|
goog.inherits(
|
|
proto.bet.beteran.c2se.common.bank.CreateBankResponse,
|
|
jspb.Message
|
|
);
|
|
if (goog.DEBUG && !COMPILED) {
|
|
/**
|
|
* @public
|
|
* @override
|
|
*/
|
|
proto.bet.beteran.c2se.common.bank.CreateBankResponse.displayName =
|
|
"proto.bet.beteran.c2se.common.bank.CreateBankResponse";
|
|
}
|
|
/**
|
|
* 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.bet.beteran.c2se.common.bank.CreateBankResponse.Result = function (
|
|
opt_data
|
|
) {
|
|
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
};
|
|
goog.inherits(
|
|
proto.bet.beteran.c2se.common.bank.CreateBankResponse.Result,
|
|
jspb.Message
|
|
);
|
|
if (goog.DEBUG && !COMPILED) {
|
|
/**
|
|
* @public
|
|
* @override
|
|
*/
|
|
proto.bet.beteran.c2se.common.bank.CreateBankResponse.Result.displayName =
|
|
"proto.bet.beteran.c2se.common.bank.CreateBankResponse.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.bet.beteran.c2se.common.bank.UpdateBankRequest = function (opt_data) {
|
|
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
};
|
|
goog.inherits(
|
|
proto.bet.beteran.c2se.common.bank.UpdateBankRequest,
|
|
jspb.Message
|
|
);
|
|
if (goog.DEBUG && !COMPILED) {
|
|
/**
|
|
* @public
|
|
* @override
|
|
*/
|
|
proto.bet.beteran.c2se.common.bank.UpdateBankRequest.displayName =
|
|
"proto.bet.beteran.c2se.common.bank.UpdateBankRequest";
|
|
}
|
|
/**
|
|
* 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.bet.beteran.c2se.common.bank.UpdateBankResponse = function (opt_data) {
|
|
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
};
|
|
goog.inherits(
|
|
proto.bet.beteran.c2se.common.bank.UpdateBankResponse,
|
|
jspb.Message
|
|
);
|
|
if (goog.DEBUG && !COMPILED) {
|
|
/**
|
|
* @public
|
|
* @override
|
|
*/
|
|
proto.bet.beteran.c2se.common.bank.UpdateBankResponse.displayName =
|
|
"proto.bet.beteran.c2se.common.bank.UpdateBankResponse";
|
|
}
|
|
/**
|
|
* 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.bet.beteran.c2se.common.bank.UpdateBankResponse.Result = function (
|
|
opt_data
|
|
) {
|
|
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
};
|
|
goog.inherits(
|
|
proto.bet.beteran.c2se.common.bank.UpdateBankResponse.Result,
|
|
jspb.Message
|
|
);
|
|
if (goog.DEBUG && !COMPILED) {
|
|
/**
|
|
* @public
|
|
* @override
|
|
*/
|
|
proto.bet.beteran.c2se.common.bank.UpdateBankResponse.Result.displayName =
|
|
"proto.bet.beteran.c2se.common.bank.UpdateBankResponse.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.bet.beteran.c2se.common.bank.DeleteBankRequest = function (opt_data) {
|
|
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
};
|
|
goog.inherits(
|
|
proto.bet.beteran.c2se.common.bank.DeleteBankRequest,
|
|
jspb.Message
|
|
);
|
|
if (goog.DEBUG && !COMPILED) {
|
|
/**
|
|
* @public
|
|
* @override
|
|
*/
|
|
proto.bet.beteran.c2se.common.bank.DeleteBankRequest.displayName =
|
|
"proto.bet.beteran.c2se.common.bank.DeleteBankRequest";
|
|
}
|
|
/**
|
|
* 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.bet.beteran.c2se.common.bank.DeleteBankResponse = function (opt_data) {
|
|
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
};
|
|
goog.inherits(
|
|
proto.bet.beteran.c2se.common.bank.DeleteBankResponse,
|
|
jspb.Message
|
|
);
|
|
if (goog.DEBUG && !COMPILED) {
|
|
/**
|
|
* @public
|
|
* @override
|
|
*/
|
|
proto.bet.beteran.c2se.common.bank.DeleteBankResponse.displayName =
|
|
"proto.bet.beteran.c2se.common.bank.DeleteBankResponse";
|
|
}
|
|
/**
|
|
* 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.bet.beteran.c2se.common.bank.DeleteBankResponse.Result = function (
|
|
opt_data
|
|
) {
|
|
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
};
|
|
goog.inherits(
|
|
proto.bet.beteran.c2se.common.bank.DeleteBankResponse.Result,
|
|
jspb.Message
|
|
);
|
|
if (goog.DEBUG && !COMPILED) {
|
|
/**
|
|
* @public
|
|
* @override
|
|
*/
|
|
proto.bet.beteran.c2se.common.bank.DeleteBankResponse.Result.displayName =
|
|
"proto.bet.beteran.c2se.common.bank.DeleteBankResponse.Result";
|
|
}
|
|
|
|
/**
|
|
* List of repeated fields within this message type.
|
|
* @private {!Array<number>}
|
|
* @const
|
|
*/
|
|
proto.bet.beteran.c2se.common.bank.ListBanksRequest.repeatedFields_ = [2, 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.bet.beteran.c2se.common.bank.ListBanksRequest.prototype.toObject =
|
|
function (opt_includeInstance) {
|
|
return proto.bet.beteran.c2se.common.bank.ListBanksRequest.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.bet.beteran.c2se.common.bank.ListBanksRequest} msg The msg instance to transform.
|
|
* @return {!Object}
|
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
*/
|
|
proto.bet.beteran.c2se.common.bank.ListBanksRequest.toObject = function (
|
|
includeInstance,
|
|
msg
|
|
) {
|
|
var f,
|
|
obj = {
|
|
pagination:
|
|
(f = msg.getPagination()) &&
|
|
protobuf_pagination_pagination_pb.Pagination.toObject(
|
|
includeInstance,
|
|
f
|
|
),
|
|
searchesList: jspb.Message.toObjectList(
|
|
msg.getSearchesList(),
|
|
protobuf_pagination_search_pb.Search.toObject,
|
|
includeInstance
|
|
),
|
|
sortsList: jspb.Message.toObjectList(
|
|
msg.getSortsList(),
|
|
protobuf_pagination_sort_pb.Sort.toObject,
|
|
includeInstance
|
|
),
|
|
nameLike: jspb.Message.getFieldWithDefault(msg, 4, ""),
|
|
show: jspb.Message.getBooleanFieldWithDefault(msg, 5, false),
|
|
canUse: jspb.Message.getBooleanFieldWithDefault(msg, 6, false),
|
|
memoLike: jspb.Message.getFieldWithDefault(msg, 7, ""),
|
|
};
|
|
|
|
if (includeInstance) {
|
|
obj.$jspbMessageInstance = msg;
|
|
}
|
|
return obj;
|
|
};
|
|
}
|
|
|
|
/**
|
|
* Deserializes binary data (in protobuf wire format).
|
|
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
* @return {!proto.bet.beteran.c2se.common.bank.ListBanksRequest}
|
|
*/
|
|
proto.bet.beteran.c2se.common.bank.ListBanksRequest.deserializeBinary =
|
|
function (bytes) {
|
|
var reader = new jspb.BinaryReader(bytes);
|
|
var msg = new proto.bet.beteran.c2se.common.bank.ListBanksRequest();
|
|
return proto.bet.beteran.c2se.common.bank.ListBanksRequest.deserializeBinaryFromReader(
|
|
msg,
|
|
reader
|
|
);
|
|
};
|
|
|
|
/**
|
|
* Deserializes binary data (in protobuf wire format) from the
|
|
* given reader into the given message object.
|
|
* @param {!proto.bet.beteran.c2se.common.bank.ListBanksRequest} msg The message object to deserialize into.
|
|
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
* @return {!proto.bet.beteran.c2se.common.bank.ListBanksRequest}
|
|
*/
|
|
proto.bet.beteran.c2se.common.bank.ListBanksRequest.deserializeBinaryFromReader =
|
|
function (msg, reader) {
|
|
while (reader.nextField()) {
|
|
if (reader.isEndGroup()) {
|
|
break;
|
|
}
|
|
var field = reader.getFieldNumber();
|
|
switch (field) {
|
|
case 1:
|
|
var value = new protobuf_pagination_pagination_pb.Pagination();
|
|
reader.readMessage(
|
|
value,
|
|
protobuf_pagination_pagination_pb.Pagination
|
|
.deserializeBinaryFromReader
|
|
);
|
|
msg.setPagination(value);
|
|
break;
|
|
case 2:
|
|
var value = new protobuf_pagination_search_pb.Search();
|
|
reader.readMessage(
|
|
value,
|
|
protobuf_pagination_search_pb.Search.deserializeBinaryFromReader
|
|
);
|
|
msg.addSearches(value);
|
|
break;
|
|
case 3:
|
|
var value = new protobuf_pagination_sort_pb.Sort();
|
|
reader.readMessage(
|
|
value,
|
|
protobuf_pagination_sort_pb.Sort.deserializeBinaryFromReader
|
|
);
|
|
msg.addSorts(value);
|
|
break;
|
|
case 4:
|
|
var value = /** @type {string} */ (reader.readString());
|
|
msg.setNameLike(value);
|
|
break;
|
|
case 5:
|
|
var value = /** @type {boolean} */ (reader.readBool());
|
|
msg.setShow(value);
|
|
break;
|
|
case 6:
|
|
var value = /** @type {boolean} */ (reader.readBool());
|
|
msg.setCanUse(value);
|
|
break;
|
|
case 7:
|
|
var value = /** @type {string} */ (reader.readString());
|
|
msg.setMemoLike(value);
|
|
break;
|
|
default:
|
|
reader.skipField();
|
|
break;
|
|
}
|
|
}
|
|
return msg;
|
|
};
|
|
|
|
/**
|
|
* Serializes the message to binary data (in protobuf wire format).
|
|
* @return {!Uint8Array}
|
|
*/
|
|
proto.bet.beteran.c2se.common.bank.ListBanksRequest.prototype.serializeBinary =
|
|
function () {
|
|
var writer = new jspb.BinaryWriter();
|
|
proto.bet.beteran.c2se.common.bank.ListBanksRequest.serializeBinaryToWriter(
|
|
this,
|
|
writer
|
|
);
|
|
return writer.getResultBuffer();
|
|
};
|
|
|
|
/**
|
|
* Serializes the given message to binary data (in protobuf wire
|
|
* format), writing to the given BinaryWriter.
|
|
* @param {!proto.bet.beteran.c2se.common.bank.ListBanksRequest} message
|
|
* @param {!jspb.BinaryWriter} writer
|
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
*/
|
|
proto.bet.beteran.c2se.common.bank.ListBanksRequest.serializeBinaryToWriter =
|
|
function (message, writer) {
|
|
var f = undefined;
|
|
f = message.getPagination();
|
|
if (f != null) {
|
|
writer.writeMessage(
|
|
1,
|
|
f,
|
|
protobuf_pagination_pagination_pb.Pagination.serializeBinaryToWriter
|
|
);
|
|
}
|
|
f = message.getSearchesList();
|
|
if (f.length > 0) {
|
|
writer.writeRepeatedMessage(
|
|
2,
|
|
f,
|
|
protobuf_pagination_search_pb.Search.serializeBinaryToWriter
|
|
);
|
|
}
|
|
f = message.getSortsList();
|
|
if (f.length > 0) {
|
|
writer.writeRepeatedMessage(
|
|
3,
|
|
f,
|
|
protobuf_pagination_sort_pb.Sort.serializeBinaryToWriter
|
|
);
|
|
}
|
|
f = /** @type {string} */ (jspb.Message.getField(message, 4));
|
|
if (f != null) {
|
|
writer.writeString(4, f);
|
|
}
|
|
f = /** @type {boolean} */ (jspb.Message.getField(message, 5));
|
|
if (f != null) {
|
|
writer.writeBool(5, f);
|
|
}
|
|
f = /** @type {boolean} */ (jspb.Message.getField(message, 6));
|
|
if (f != null) {
|
|
writer.writeBool(6, f);
|
|
}
|
|
f = /** @type {string} */ (jspb.Message.getField(message, 7));
|
|
if (f != null) {
|
|
writer.writeString(7, f);
|
|
}
|
|
};
|
|
|
|
/**
|
|
* optional bet.protobuf.pagination.Pagination pagination = 1;
|
|
* @return {?proto.bet.protobuf.pagination.Pagination}
|
|
*/
|
|
proto.bet.beteran.c2se.common.bank.ListBanksRequest.prototype.getPagination =
|
|
function () {
|
|
return /** @type{?proto.bet.protobuf.pagination.Pagination} */ (
|
|
jspb.Message.getWrapperField(
|
|
this,
|
|
protobuf_pagination_pagination_pb.Pagination,
|
|
1
|
|
)
|
|
);
|
|
};
|
|
|
|
/**
|
|
* @param {?proto.bet.protobuf.pagination.Pagination|undefined} value
|
|
* @return {!proto.bet.beteran.c2se.common.bank.ListBanksRequest} returns this
|
|
*/
|
|
proto.bet.beteran.c2se.common.bank.ListBanksRequest.prototype.setPagination =
|
|
function (value) {
|
|
return jspb.Message.setWrapperField(this, 1, value);
|
|
};
|
|
|
|
/**
|
|
* Clears the message field making it undefined.
|
|
* @return {!proto.bet.beteran.c2se.common.bank.ListBanksRequest} returns this
|
|
*/
|
|
proto.bet.beteran.c2se.common.bank.ListBanksRequest.prototype.clearPagination =
|
|
function () {
|
|
return this.setPagination(undefined);
|
|
};
|
|
|
|
/**
|
|
* Returns whether this field is set.
|
|
* @return {boolean}
|
|
*/
|
|
proto.bet.beteran.c2se.common.bank.ListBanksRequest.prototype.hasPagination =
|
|
function () {
|
|
return jspb.Message.getField(this, 1) != null;
|
|
};
|
|
|
|
/**
|
|
* repeated bet.protobuf.pagination.Search searches = 2;
|
|
* @return {!Array<!proto.bet.protobuf.pagination.Search>}
|
|
*/
|
|
proto.bet.beteran.c2se.common.bank.ListBanksRequest.prototype.getSearchesList =
|
|
function () {
|
|
return /** @type{!Array<!proto.bet.protobuf.pagination.Search>} */ (
|
|
jspb.Message.getRepeatedWrapperField(
|
|
this,
|
|
protobuf_pagination_search_pb.Search,
|
|
2
|
|
)
|
|
);
|
|
};
|
|
|
|
/**
|
|
* @param {!Array<!proto.bet.protobuf.pagination.Search>} value
|
|
* @return {!proto.bet.beteran.c2se.common.bank.ListBanksRequest} returns this
|
|
*/
|
|
proto.bet.beteran.c2se.common.bank.ListBanksRequest.prototype.setSearchesList =
|
|
function (value) {
|
|
return jspb.Message.setRepeatedWrapperField(this, 2, value);
|
|
};
|
|
|
|
/**
|
|
* @param {!proto.bet.protobuf.pagination.Search=} opt_value
|
|
* @param {number=} opt_index
|
|
* @return {!proto.bet.protobuf.pagination.Search}
|
|
*/
|
|
proto.bet.beteran.c2se.common.bank.ListBanksRequest.prototype.addSearches =
|
|
function (opt_value, opt_index) {
|
|
return jspb.Message.addToRepeatedWrapperField(
|
|
this,
|
|
2,
|
|
opt_value,
|
|
proto.bet.protobuf.pagination.Search,
|
|
opt_index
|
|
);
|
|
};
|
|
|
|
/**
|
|
* Clears the list making it empty but non-null.
|
|
* @return {!proto.bet.beteran.c2se.common.bank.ListBanksRequest} returns this
|
|
*/
|
|
proto.bet.beteran.c2se.common.bank.ListBanksRequest.prototype.clearSearchesList =
|
|
function () {
|
|
return this.setSearchesList([]);
|
|
};
|
|
|
|
/**
|
|
* repeated bet.protobuf.pagination.Sort sorts = 3;
|
|
* @return {!Array<!proto.bet.protobuf.pagination.Sort>}
|
|
*/
|
|
proto.bet.beteran.c2se.common.bank.ListBanksRequest.prototype.getSortsList =
|
|
function () {
|
|
return /** @type{!Array<!proto.bet.protobuf.pagination.Sort>} */ (
|
|
jspb.Message.getRepeatedWrapperField(
|
|
this,
|
|
protobuf_pagination_sort_pb.Sort,
|
|
3
|
|
)
|
|
);
|
|
};
|
|
|
|
/**
|
|
* @param {!Array<!proto.bet.protobuf.pagination.Sort>} value
|
|
* @return {!proto.bet.beteran.c2se.common.bank.ListBanksRequest} returns this
|
|
*/
|
|
proto.bet.beteran.c2se.common.bank.ListBanksRequest.prototype.setSortsList =
|
|
function (value) {
|
|
return jspb.Message.setRepeatedWrapperField(this, 3, value);
|
|
};
|
|
|
|
/**
|
|
* @param {!proto.bet.protobuf.pagination.Sort=} opt_value
|
|
* @param {number=} opt_index
|
|
* @return {!proto.bet.protobuf.pagination.Sort}
|
|
*/
|
|
proto.bet.beteran.c2se.common.bank.ListBanksRequest.prototype.addSorts =
|
|
function (opt_value, opt_index) {
|
|
return jspb.Message.addToRepeatedWrapperField(
|
|
this,
|
|
3,
|
|
opt_value,
|
|
proto.bet.protobuf.pagination.Sort,
|
|
opt_index
|
|
);
|
|
};
|
|
|
|
/**
|
|
* Clears the list making it empty but non-null.
|
|
* @return {!proto.bet.beteran.c2se.common.bank.ListBanksRequest} returns this
|
|
*/
|
|
proto.bet.beteran.c2se.common.bank.ListBanksRequest.prototype.clearSortsList =
|
|
function () {
|
|
return this.setSortsList([]);
|
|
};
|
|
|
|
/**
|
|
* optional string name_like = 4;
|
|
* @return {string}
|
|
*/
|
|
proto.bet.beteran.c2se.common.bank.ListBanksRequest.prototype.getNameLike =
|
|
function () {
|
|
return /** @type {string} */ (
|
|
jspb.Message.getFieldWithDefault(this, 4, "")
|
|
);
|
|
};
|
|
|
|
/**
|
|
* @param {string} value
|
|
* @return {!proto.bet.beteran.c2se.common.bank.ListBanksRequest} returns this
|
|
*/
|
|
proto.bet.beteran.c2se.common.bank.ListBanksRequest.prototype.setNameLike =
|
|
function (value) {
|
|
return jspb.Message.setField(this, 4, value);
|
|
};
|
|
|
|
/**
|
|
* Clears the field making it undefined.
|
|
* @return {!proto.bet.beteran.c2se.common.bank.ListBanksRequest} returns this
|
|
*/
|
|
proto.bet.beteran.c2se.common.bank.ListBanksRequest.prototype.clearNameLike =
|
|
function () {
|
|
return jspb.Message.setField(this, 4, undefined);
|
|
};
|
|
|
|
/**
|
|
* Returns whether this field is set.
|
|
* @return {boolean}
|
|
*/
|
|
proto.bet.beteran.c2se.common.bank.ListBanksRequest.prototype.hasNameLike =
|
|
function () {
|
|
return jspb.Message.getField(this, 4) != null;
|
|
};
|
|
|
|
/**
|
|
* optional bool show = 5;
|
|
* @return {boolean}
|
|
*/
|
|
proto.bet.beteran.c2se.common.bank.ListBanksRequest.prototype.getShow =
|
|
function () {
|
|
return /** @type {boolean} */ (
|
|
jspb.Message.getBooleanFieldWithDefault(this, 5, false)
|
|
);
|
|
};
|
|
|
|
/**
|
|
* @param {boolean} value
|
|
* @return {!proto.bet.beteran.c2se.common.bank.ListBanksRequest} returns this
|
|
*/
|
|
proto.bet.beteran.c2se.common.bank.ListBanksRequest.prototype.setShow =
|
|
function (value) {
|
|
return jspb.Message.setField(this, 5, value);
|
|
};
|
|
|
|
/**
|
|
* Clears the field making it undefined.
|
|
* @return {!proto.bet.beteran.c2se.common.bank.ListBanksRequest} returns this
|
|
*/
|
|
proto.bet.beteran.c2se.common.bank.ListBanksRequest.prototype.clearShow =
|
|
function () {
|
|
return jspb.Message.setField(this, 5, undefined);
|
|
};
|
|
|
|
/**
|
|
* Returns whether this field is set.
|
|
* @return {boolean}
|
|
*/
|
|
proto.bet.beteran.c2se.common.bank.ListBanksRequest.prototype.hasShow =
|
|
function () {
|
|
return jspb.Message.getField(this, 5) != null;
|
|
};
|
|
|
|
/**
|
|
* optional bool can_use = 6;
|
|
* @return {boolean}
|
|
*/
|
|
proto.bet.beteran.c2se.common.bank.ListBanksRequest.prototype.getCanUse =
|
|
function () {
|
|
return /** @type {boolean} */ (
|
|
jspb.Message.getBooleanFieldWithDefault(this, 6, false)
|
|
);
|
|
};
|
|
|
|
/**
|
|
* @param {boolean} value
|
|
* @return {!proto.bet.beteran.c2se.common.bank.ListBanksRequest} returns this
|
|
*/
|
|
proto.bet.beteran.c2se.common.bank.ListBanksRequest.prototype.setCanUse =
|
|
function (value) {
|
|
return jspb.Message.setField(this, 6, value);
|
|
};
|
|
|
|
/**
|
|
* Clears the field making it undefined.
|
|
* @return {!proto.bet.beteran.c2se.common.bank.ListBanksRequest} returns this
|
|
*/
|
|
proto.bet.beteran.c2se.common.bank.ListBanksRequest.prototype.clearCanUse =
|
|
function () {
|
|
return jspb.Message.setField(this, 6, undefined);
|
|
};
|
|
|
|
/**
|
|
* Returns whether this field is set.
|
|
* @return {boolean}
|
|
*/
|
|
proto.bet.beteran.c2se.common.bank.ListBanksRequest.prototype.hasCanUse =
|
|
function () {
|
|
return jspb.Message.getField(this, 6) != null;
|
|
};
|
|
|
|
/**
|
|
* optional string memo_like = 7;
|
|
* @return {string}
|
|
*/
|
|
proto.bet.beteran.c2se.common.bank.ListBanksRequest.prototype.getMemoLike =
|
|
function () {
|
|
return /** @type {string} */ (
|
|
jspb.Message.getFieldWithDefault(this, 7, "")
|
|
);
|
|
};
|
|
|
|
/**
|
|
* @param {string} value
|
|
* @return {!proto.bet.beteran.c2se.common.bank.ListBanksRequest} returns this
|
|
*/
|
|
proto.bet.beteran.c2se.common.bank.ListBanksRequest.prototype.setMemoLike =
|
|
function (value) {
|
|
return jspb.Message.setField(this, 7, value);
|
|
};
|
|
|
|
/**
|
|
* Clears the field making it undefined.
|
|
* @return {!proto.bet.beteran.c2se.common.bank.ListBanksRequest} returns this
|
|
*/
|
|
proto.bet.beteran.c2se.common.bank.ListBanksRequest.prototype.clearMemoLike =
|
|
function () {
|
|
return jspb.Message.setField(this, 7, undefined);
|
|
};
|
|
|
|
/**
|
|
* Returns whether this field is set.
|
|
* @return {boolean}
|
|
*/
|
|
proto.bet.beteran.c2se.common.bank.ListBanksRequest.prototype.hasMemoLike =
|
|
function () {
|
|
return jspb.Message.getField(this, 7) != 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.bet.beteran.c2se.common.bank.ListBanksResponse.prototype.toObject =
|
|
function (opt_includeInstance) {
|
|
return proto.bet.beteran.c2se.common.bank.ListBanksResponse.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.bet.beteran.c2se.common.bank.ListBanksResponse} msg The msg instance to transform.
|
|
* @return {!Object}
|
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
*/
|
|
proto.bet.beteran.c2se.common.bank.ListBanksResponse.toObject = function (
|
|
includeInstance,
|
|
msg
|
|
) {
|
|
var f,
|
|
obj = {
|
|
error:
|
|
(f = msg.getError()) &&
|
|
protobuf_rpc_error_pb.Error.toObject(includeInstance, f),
|
|
result:
|
|
(f = msg.getResult()) &&
|
|
proto.bet.beteran.c2se.common.bank.ListBanksResponse.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.bet.beteran.c2se.common.bank.ListBanksResponse}
|
|
*/
|
|
proto.bet.beteran.c2se.common.bank.ListBanksResponse.deserializeBinary =
|
|
function (bytes) {
|
|
var reader = new jspb.BinaryReader(bytes);
|
|
var msg = new proto.bet.beteran.c2se.common.bank.ListBanksResponse();
|
|
return proto.bet.beteran.c2se.common.bank.ListBanksResponse.deserializeBinaryFromReader(
|
|
msg,
|
|
reader
|
|
);
|
|
};
|
|
|
|
/**
|
|
* Deserializes binary data (in protobuf wire format) from the
|
|
* given reader into the given message object.
|
|
* @param {!proto.bet.beteran.c2se.common.bank.ListBanksResponse} msg The message object to deserialize into.
|
|
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
* @return {!proto.bet.beteran.c2se.common.bank.ListBanksResponse}
|
|
*/
|
|
proto.bet.beteran.c2se.common.bank.ListBanksResponse.deserializeBinaryFromReader =
|
|
function (msg, reader) {
|
|
while (reader.nextField()) {
|
|
if (reader.isEndGroup()) {
|
|
break;
|
|
}
|
|
var field = reader.getFieldNumber();
|
|
switch (field) {
|
|
case 1:
|
|
var value = new protobuf_rpc_error_pb.Error();
|
|
reader.readMessage(
|
|
value,
|
|
protobuf_rpc_error_pb.Error.deserializeBinaryFromReader
|
|
);
|
|
msg.setError(value);
|
|
break;
|
|
case 2:
|
|
var value =
|
|
new proto.bet.beteran.c2se.common.bank.ListBanksResponse.Result();
|
|
reader.readMessage(
|
|
value,
|
|
proto.bet.beteran.c2se.common.bank.ListBanksResponse.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.bet.beteran.c2se.common.bank.ListBanksResponse.prototype.serializeBinary =
|
|
function () {
|
|
var writer = new jspb.BinaryWriter();
|
|
proto.bet.beteran.c2se.common.bank.ListBanksResponse.serializeBinaryToWriter(
|
|
this,
|
|
writer
|
|
);
|
|
return writer.getResultBuffer();
|
|
};
|
|
|
|
/**
|
|
* Serializes the given message to binary data (in protobuf wire
|
|
* format), writing to the given BinaryWriter.
|
|
* @param {!proto.bet.beteran.c2se.common.bank.ListBanksResponse} message
|
|
* @param {!jspb.BinaryWriter} writer
|
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
*/
|
|
proto.bet.beteran.c2se.common.bank.ListBanksResponse.serializeBinaryToWriter =
|
|
function (message, writer) {
|
|
var f = undefined;
|
|
f = message.getError();
|
|
if (f != null) {
|
|
writer.writeMessage(
|
|
1,
|
|
f,
|
|
protobuf_rpc_error_pb.Error.serializeBinaryToWriter
|
|
);
|
|
}
|
|
f = message.getResult();
|
|
if (f != null) {
|
|
writer.writeMessage(
|
|
2,
|
|
f,
|
|
proto.bet.beteran.c2se.common.bank.ListBanksResponse.Result
|
|
.serializeBinaryToWriter
|
|
);
|
|
}
|
|
};
|
|
|
|
/**
|
|
* List of repeated fields within this message type.
|
|
* @private {!Array<number>}
|
|
* @const
|
|
*/
|
|
proto.bet.beteran.c2se.common.bank.ListBanksResponse.Result.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.bet.beteran.c2se.common.bank.ListBanksResponse.Result.prototype.toObject =
|
|
function (opt_includeInstance) {
|
|
return proto.bet.beteran.c2se.common.bank.ListBanksResponse.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.bet.beteran.c2se.common.bank.ListBanksResponse.Result} msg The msg instance to transform.
|
|
* @return {!Object}
|
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
*/
|
|
proto.bet.beteran.c2se.common.bank.ListBanksResponse.Result.toObject =
|
|
function (includeInstance, msg) {
|
|
var f,
|
|
obj = {
|
|
banksList: jspb.Message.toObjectList(
|
|
msg.getBanksList(),
|
|
models_account_bank_pb.Bank.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.bet.beteran.c2se.common.bank.ListBanksResponse.Result}
|
|
*/
|
|
proto.bet.beteran.c2se.common.bank.ListBanksResponse.Result.deserializeBinary =
|
|
function (bytes) {
|
|
var reader = new jspb.BinaryReader(bytes);
|
|
var msg = new proto.bet.beteran.c2se.common.bank.ListBanksResponse.Result();
|
|
return proto.bet.beteran.c2se.common.bank.ListBanksResponse.Result.deserializeBinaryFromReader(
|
|
msg,
|
|
reader
|
|
);
|
|
};
|
|
|
|
/**
|
|
* Deserializes binary data (in protobuf wire format) from the
|
|
* given reader into the given message object.
|
|
* @param {!proto.bet.beteran.c2se.common.bank.ListBanksResponse.Result} msg The message object to deserialize into.
|
|
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
* @return {!proto.bet.beteran.c2se.common.bank.ListBanksResponse.Result}
|
|
*/
|
|
proto.bet.beteran.c2se.common.bank.ListBanksResponse.Result.deserializeBinaryFromReader =
|
|
function (msg, reader) {
|
|
while (reader.nextField()) {
|
|
if (reader.isEndGroup()) {
|
|
break;
|
|
}
|
|
var field = reader.getFieldNumber();
|
|
switch (field) {
|
|
case 1:
|
|
var value = new models_account_bank_pb.Bank();
|
|
reader.readMessage(
|
|
value,
|
|
models_account_bank_pb.Bank.deserializeBinaryFromReader
|
|
);
|
|
msg.addBanks(value);
|
|
break;
|
|
default:
|
|
reader.skipField();
|
|
break;
|
|
}
|
|
}
|
|
return msg;
|
|
};
|
|
|
|
/**
|
|
* Serializes the message to binary data (in protobuf wire format).
|
|
* @return {!Uint8Array}
|
|
*/
|
|
proto.bet.beteran.c2se.common.bank.ListBanksResponse.Result.prototype.serializeBinary =
|
|
function () {
|
|
var writer = new jspb.BinaryWriter();
|
|
proto.bet.beteran.c2se.common.bank.ListBanksResponse.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.bet.beteran.c2se.common.bank.ListBanksResponse.Result} message
|
|
* @param {!jspb.BinaryWriter} writer
|
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
*/
|
|
proto.bet.beteran.c2se.common.bank.ListBanksResponse.Result.serializeBinaryToWriter =
|
|
function (message, writer) {
|
|
var f = undefined;
|
|
f = message.getBanksList();
|
|
if (f.length > 0) {
|
|
writer.writeRepeatedMessage(
|
|
1,
|
|
f,
|
|
models_account_bank_pb.Bank.serializeBinaryToWriter
|
|
);
|
|
}
|
|
};
|
|
|
|
/**
|
|
* repeated bet.beteran.account.Bank banks = 1;
|
|
* @return {!Array<!proto.bet.beteran.account.Bank>}
|
|
*/
|
|
proto.bet.beteran.c2se.common.bank.ListBanksResponse.Result.prototype.getBanksList =
|
|
function () {
|
|
return /** @type{!Array<!proto.bet.beteran.account.Bank>} */ (
|
|
jspb.Message.getRepeatedWrapperField(this, models_account_bank_pb.Bank, 1)
|
|
);
|
|
};
|
|
|
|
/**
|
|
* @param {!Array<!proto.bet.beteran.account.Bank>} value
|
|
* @return {!proto.bet.beteran.c2se.common.bank.ListBanksResponse.Result} returns this
|
|
*/
|
|
proto.bet.beteran.c2se.common.bank.ListBanksResponse.Result.prototype.setBanksList =
|
|
function (value) {
|
|
return jspb.Message.setRepeatedWrapperField(this, 1, value);
|
|
};
|
|
|
|
/**
|
|
* @param {!proto.bet.beteran.account.Bank=} opt_value
|
|
* @param {number=} opt_index
|
|
* @return {!proto.bet.beteran.account.Bank}
|
|
*/
|
|
proto.bet.beteran.c2se.common.bank.ListBanksResponse.Result.prototype.addBanks =
|
|
function (opt_value, opt_index) {
|
|
return jspb.Message.addToRepeatedWrapperField(
|
|
this,
|
|
1,
|
|
opt_value,
|
|
proto.bet.beteran.account.Bank,
|
|
opt_index
|
|
);
|
|
};
|
|
|
|
/**
|
|
* Clears the list making it empty but non-null.
|
|
* @return {!proto.bet.beteran.c2se.common.bank.ListBanksResponse.Result} returns this
|
|
*/
|
|
proto.bet.beteran.c2se.common.bank.ListBanksResponse.Result.prototype.clearBanksList =
|
|
function () {
|
|
return this.setBanksList([]);
|
|
};
|
|
|
|
/**
|
|
* optional bet.protobuf.rpc.Error error = 1;
|
|
* @return {?proto.bet.protobuf.rpc.Error}
|
|
*/
|
|
proto.bet.beteran.c2se.common.bank.ListBanksResponse.prototype.getError =
|
|
function () {
|
|
return /** @type{?proto.bet.protobuf.rpc.Error} */ (
|
|
jspb.Message.getWrapperField(this, protobuf_rpc_error_pb.Error, 1)
|
|
);
|
|
};
|
|
|
|
/**
|
|
* @param {?proto.bet.protobuf.rpc.Error|undefined} value
|
|
* @return {!proto.bet.beteran.c2se.common.bank.ListBanksResponse} returns this
|
|
*/
|
|
proto.bet.beteran.c2se.common.bank.ListBanksResponse.prototype.setError =
|
|
function (value) {
|
|
return jspb.Message.setWrapperField(this, 1, value);
|
|
};
|
|
|
|
/**
|
|
* Clears the message field making it undefined.
|
|
* @return {!proto.bet.beteran.c2se.common.bank.ListBanksResponse} returns this
|
|
*/
|
|
proto.bet.beteran.c2se.common.bank.ListBanksResponse.prototype.clearError =
|
|
function () {
|
|
return this.setError(undefined);
|
|
};
|
|
|
|
/**
|
|
* Returns whether this field is set.
|
|
* @return {boolean}
|
|
*/
|
|
proto.bet.beteran.c2se.common.bank.ListBanksResponse.prototype.hasError =
|
|
function () {
|
|
return jspb.Message.getField(this, 1) != null;
|
|
};
|
|
|
|
/**
|
|
* optional Result result = 2;
|
|
* @return {?proto.bet.beteran.c2se.common.bank.ListBanksResponse.Result}
|
|
*/
|
|
proto.bet.beteran.c2se.common.bank.ListBanksResponse.prototype.getResult =
|
|
function () {
|
|
return /** @type{?proto.bet.beteran.c2se.common.bank.ListBanksResponse.Result} */ (
|
|
jspb.Message.getWrapperField(
|
|
this,
|
|
proto.bet.beteran.c2se.common.bank.ListBanksResponse.Result,
|
|
2
|
|
)
|
|
);
|
|
};
|
|
|
|
/**
|
|
* @param {?proto.bet.beteran.c2se.common.bank.ListBanksResponse.Result|undefined} value
|
|
* @return {!proto.bet.beteran.c2se.common.bank.ListBanksResponse} returns this
|
|
*/
|
|
proto.bet.beteran.c2se.common.bank.ListBanksResponse.prototype.setResult =
|
|
function (value) {
|
|
return jspb.Message.setWrapperField(this, 2, value);
|
|
};
|
|
|
|
/**
|
|
* Clears the message field making it undefined.
|
|
* @return {!proto.bet.beteran.c2se.common.bank.ListBanksResponse} returns this
|
|
*/
|
|
proto.bet.beteran.c2se.common.bank.ListBanksResponse.prototype.clearResult =
|
|
function () {
|
|
return this.setResult(undefined);
|
|
};
|
|
|
|
/**
|
|
* Returns whether this field is set.
|
|
* @return {boolean}
|
|
*/
|
|
proto.bet.beteran.c2se.common.bank.ListBanksResponse.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.bet.beteran.c2se.common.bank.CreateBankRequest.prototype.toObject =
|
|
function (opt_includeInstance) {
|
|
return proto.bet.beteran.c2se.common.bank.CreateBankRequest.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.bet.beteran.c2se.common.bank.CreateBankRequest} msg The msg instance to transform.
|
|
* @return {!Object}
|
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
*/
|
|
proto.bet.beteran.c2se.common.bank.CreateBankRequest.toObject = function (
|
|
includeInstance,
|
|
msg
|
|
) {
|
|
var f,
|
|
obj = {
|
|
name: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
show: jspb.Message.getBooleanFieldWithDefault(msg, 2, false),
|
|
canUse: jspb.Message.getBooleanFieldWithDefault(msg, 3, false),
|
|
memo: jspb.Message.getFieldWithDefault(msg, 4, ""),
|
|
expiresAt: jspb.Message.getFieldWithDefault(msg, 5, 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.bet.beteran.c2se.common.bank.CreateBankRequest}
|
|
*/
|
|
proto.bet.beteran.c2se.common.bank.CreateBankRequest.deserializeBinary =
|
|
function (bytes) {
|
|
var reader = new jspb.BinaryReader(bytes);
|
|
var msg = new proto.bet.beteran.c2se.common.bank.CreateBankRequest();
|
|
return proto.bet.beteran.c2se.common.bank.CreateBankRequest.deserializeBinaryFromReader(
|
|
msg,
|
|
reader
|
|
);
|
|
};
|
|
|
|
/**
|
|
* Deserializes binary data (in protobuf wire format) from the
|
|
* given reader into the given message object.
|
|
* @param {!proto.bet.beteran.c2se.common.bank.CreateBankRequest} msg The message object to deserialize into.
|
|
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
* @return {!proto.bet.beteran.c2se.common.bank.CreateBankRequest}
|
|
*/
|
|
proto.bet.beteran.c2se.common.bank.CreateBankRequest.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 {boolean} */ (reader.readBool());
|
|
msg.setShow(value);
|
|
break;
|
|
case 3:
|
|
var value = /** @type {boolean} */ (reader.readBool());
|
|
msg.setCanUse(value);
|
|
break;
|
|
case 4:
|
|
var value = /** @type {string} */ (reader.readString());
|
|
msg.setMemo(value);
|
|
break;
|
|
case 5:
|
|
var value = /** @type {number} */ (reader.readUint64());
|
|
msg.setExpiresAt(value);
|
|
break;
|
|
default:
|
|
reader.skipField();
|
|
break;
|
|
}
|
|
}
|
|
return msg;
|
|
};
|
|
|
|
/**
|
|
* Serializes the message to binary data (in protobuf wire format).
|
|
* @return {!Uint8Array}
|
|
*/
|
|
proto.bet.beteran.c2se.common.bank.CreateBankRequest.prototype.serializeBinary =
|
|
function () {
|
|
var writer = new jspb.BinaryWriter();
|
|
proto.bet.beteran.c2se.common.bank.CreateBankRequest.serializeBinaryToWriter(
|
|
this,
|
|
writer
|
|
);
|
|
return writer.getResultBuffer();
|
|
};
|
|
|
|
/**
|
|
* Serializes the given message to binary data (in protobuf wire
|
|
* format), writing to the given BinaryWriter.
|
|
* @param {!proto.bet.beteran.c2se.common.bank.CreateBankRequest} message
|
|
* @param {!jspb.BinaryWriter} writer
|
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
*/
|
|
proto.bet.beteran.c2se.common.bank.CreateBankRequest.serializeBinaryToWriter =
|
|
function (message, writer) {
|
|
var f = undefined;
|
|
f = message.getName();
|
|
if (f.length > 0) {
|
|
writer.writeString(1, f);
|
|
}
|
|
f = message.getShow();
|
|
if (f) {
|
|
writer.writeBool(2, f);
|
|
}
|
|
f = message.getCanUse();
|
|
if (f) {
|
|
writer.writeBool(3, f);
|
|
}
|
|
f = /** @type {string} */ (jspb.Message.getField(message, 4));
|
|
if (f != null) {
|
|
writer.writeString(4, f);
|
|
}
|
|
f = /** @type {number} */ (jspb.Message.getField(message, 5));
|
|
if (f != null) {
|
|
writer.writeUint64(5, f);
|
|
}
|
|
};
|
|
|
|
/**
|
|
* optional string name = 1;
|
|
* @return {string}
|
|
*/
|
|
proto.bet.beteran.c2se.common.bank.CreateBankRequest.prototype.getName =
|
|
function () {
|
|
return /** @type {string} */ (
|
|
jspb.Message.getFieldWithDefault(this, 1, "")
|
|
);
|
|
};
|
|
|
|
/**
|
|
* @param {string} value
|
|
* @return {!proto.bet.beteran.c2se.common.bank.CreateBankRequest} returns this
|
|
*/
|
|
proto.bet.beteran.c2se.common.bank.CreateBankRequest.prototype.setName =
|
|
function (value) {
|
|
return jspb.Message.setProto3StringField(this, 1, value);
|
|
};
|
|
|
|
/**
|
|
* optional bool show = 2;
|
|
* @return {boolean}
|
|
*/
|
|
proto.bet.beteran.c2se.common.bank.CreateBankRequest.prototype.getShow =
|
|
function () {
|
|
return /** @type {boolean} */ (
|
|
jspb.Message.getBooleanFieldWithDefault(this, 2, false)
|
|
);
|
|
};
|
|
|
|
/**
|
|
* @param {boolean} value
|
|
* @return {!proto.bet.beteran.c2se.common.bank.CreateBankRequest} returns this
|
|
*/
|
|
proto.bet.beteran.c2se.common.bank.CreateBankRequest.prototype.setShow =
|
|
function (value) {
|
|
return jspb.Message.setProto3BooleanField(this, 2, value);
|
|
};
|
|
|
|
/**
|
|
* optional bool can_use = 3;
|
|
* @return {boolean}
|
|
*/
|
|
proto.bet.beteran.c2se.common.bank.CreateBankRequest.prototype.getCanUse =
|
|
function () {
|
|
return /** @type {boolean} */ (
|
|
jspb.Message.getBooleanFieldWithDefault(this, 3, false)
|
|
);
|
|
};
|
|
|
|
/**
|
|
* @param {boolean} value
|
|
* @return {!proto.bet.beteran.c2se.common.bank.CreateBankRequest} returns this
|
|
*/
|
|
proto.bet.beteran.c2se.common.bank.CreateBankRequest.prototype.setCanUse =
|
|
function (value) {
|
|
return jspb.Message.setProto3BooleanField(this, 3, value);
|
|
};
|
|
|
|
/**
|
|
* optional string memo = 4;
|
|
* @return {string}
|
|
*/
|
|
proto.bet.beteran.c2se.common.bank.CreateBankRequest.prototype.getMemo =
|
|
function () {
|
|
return /** @type {string} */ (
|
|
jspb.Message.getFieldWithDefault(this, 4, "")
|
|
);
|
|
};
|
|
|
|
/**
|
|
* @param {string} value
|
|
* @return {!proto.bet.beteran.c2se.common.bank.CreateBankRequest} returns this
|
|
*/
|
|
proto.bet.beteran.c2se.common.bank.CreateBankRequest.prototype.setMemo =
|
|
function (value) {
|
|
return jspb.Message.setField(this, 4, value);
|
|
};
|
|
|
|
/**
|
|
* Clears the field making it undefined.
|
|
* @return {!proto.bet.beteran.c2se.common.bank.CreateBankRequest} returns this
|
|
*/
|
|
proto.bet.beteran.c2se.common.bank.CreateBankRequest.prototype.clearMemo =
|
|
function () {
|
|
return jspb.Message.setField(this, 4, undefined);
|
|
};
|
|
|
|
/**
|
|
* Returns whether this field is set.
|
|
* @return {boolean}
|
|
*/
|
|
proto.bet.beteran.c2se.common.bank.CreateBankRequest.prototype.hasMemo =
|
|
function () {
|
|
return jspb.Message.getField(this, 4) != null;
|
|
};
|
|
|
|
/**
|
|
* optional uint64 expires_at = 5;
|
|
* @return {number}
|
|
*/
|
|
proto.bet.beteran.c2se.common.bank.CreateBankRequest.prototype.getExpiresAt =
|
|
function () {
|
|
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0));
|
|
};
|
|
|
|
/**
|
|
* @param {number} value
|
|
* @return {!proto.bet.beteran.c2se.common.bank.CreateBankRequest} returns this
|
|
*/
|
|
proto.bet.beteran.c2se.common.bank.CreateBankRequest.prototype.setExpiresAt =
|
|
function (value) {
|
|
return jspb.Message.setField(this, 5, value);
|
|
};
|
|
|
|
/**
|
|
* Clears the field making it undefined.
|
|
* @return {!proto.bet.beteran.c2se.common.bank.CreateBankRequest} returns this
|
|
*/
|
|
proto.bet.beteran.c2se.common.bank.CreateBankRequest.prototype.clearExpiresAt =
|
|
function () {
|
|
return jspb.Message.setField(this, 5, undefined);
|
|
};
|
|
|
|
/**
|
|
* Returns whether this field is set.
|
|
* @return {boolean}
|
|
*/
|
|
proto.bet.beteran.c2se.common.bank.CreateBankRequest.prototype.hasExpiresAt =
|
|
function () {
|
|
return jspb.Message.getField(this, 5) != 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.bet.beteran.c2se.common.bank.CreateBankResponse.prototype.toObject =
|
|
function (opt_includeInstance) {
|
|
return proto.bet.beteran.c2se.common.bank.CreateBankResponse.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.bet.beteran.c2se.common.bank.CreateBankResponse} msg The msg instance to transform.
|
|
* @return {!Object}
|
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
*/
|
|
proto.bet.beteran.c2se.common.bank.CreateBankResponse.toObject = function (
|
|
includeInstance,
|
|
msg
|
|
) {
|
|
var f,
|
|
obj = {
|
|
error:
|
|
(f = msg.getError()) &&
|
|
protobuf_rpc_error_pb.Error.toObject(includeInstance, f),
|
|
result:
|
|
(f = msg.getResult()) &&
|
|
proto.bet.beteran.c2se.common.bank.CreateBankResponse.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.bet.beteran.c2se.common.bank.CreateBankResponse}
|
|
*/
|
|
proto.bet.beteran.c2se.common.bank.CreateBankResponse.deserializeBinary =
|
|
function (bytes) {
|
|
var reader = new jspb.BinaryReader(bytes);
|
|
var msg = new proto.bet.beteran.c2se.common.bank.CreateBankResponse();
|
|
return proto.bet.beteran.c2se.common.bank.CreateBankResponse.deserializeBinaryFromReader(
|
|
msg,
|
|
reader
|
|
);
|
|
};
|
|
|
|
/**
|
|
* Deserializes binary data (in protobuf wire format) from the
|
|
* given reader into the given message object.
|
|
* @param {!proto.bet.beteran.c2se.common.bank.CreateBankResponse} msg The message object to deserialize into.
|
|
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
* @return {!proto.bet.beteran.c2se.common.bank.CreateBankResponse}
|
|
*/
|
|
proto.bet.beteran.c2se.common.bank.CreateBankResponse.deserializeBinaryFromReader =
|
|
function (msg, reader) {
|
|
while (reader.nextField()) {
|
|
if (reader.isEndGroup()) {
|
|
break;
|
|
}
|
|
var field = reader.getFieldNumber();
|
|
switch (field) {
|
|
case 1:
|
|
var value = new protobuf_rpc_error_pb.Error();
|
|
reader.readMessage(
|
|
value,
|
|
protobuf_rpc_error_pb.Error.deserializeBinaryFromReader
|
|
);
|
|
msg.setError(value);
|
|
break;
|
|
case 2:
|
|
var value =
|
|
new proto.bet.beteran.c2se.common.bank.CreateBankResponse.Result();
|
|
reader.readMessage(
|
|
value,
|
|
proto.bet.beteran.c2se.common.bank.CreateBankResponse.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.bet.beteran.c2se.common.bank.CreateBankResponse.prototype.serializeBinary =
|
|
function () {
|
|
var writer = new jspb.BinaryWriter();
|
|
proto.bet.beteran.c2se.common.bank.CreateBankResponse.serializeBinaryToWriter(
|
|
this,
|
|
writer
|
|
);
|
|
return writer.getResultBuffer();
|
|
};
|
|
|
|
/**
|
|
* Serializes the given message to binary data (in protobuf wire
|
|
* format), writing to the given BinaryWriter.
|
|
* @param {!proto.bet.beteran.c2se.common.bank.CreateBankResponse} message
|
|
* @param {!jspb.BinaryWriter} writer
|
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
*/
|
|
proto.bet.beteran.c2se.common.bank.CreateBankResponse.serializeBinaryToWriter =
|
|
function (message, writer) {
|
|
var f = undefined;
|
|
f = message.getError();
|
|
if (f != null) {
|
|
writer.writeMessage(
|
|
1,
|
|
f,
|
|
protobuf_rpc_error_pb.Error.serializeBinaryToWriter
|
|
);
|
|
}
|
|
f = message.getResult();
|
|
if (f != null) {
|
|
writer.writeMessage(
|
|
2,
|
|
f,
|
|
proto.bet.beteran.c2se.common.bank.CreateBankResponse.Result
|
|
.serializeBinaryToWriter
|
|
);
|
|
}
|
|
};
|
|
|
|
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.bet.beteran.c2se.common.bank.CreateBankResponse.Result.prototype.toObject =
|
|
function (opt_includeInstance) {
|
|
return proto.bet.beteran.c2se.common.bank.CreateBankResponse.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.bet.beteran.c2se.common.bank.CreateBankResponse.Result} msg The msg instance to transform.
|
|
* @return {!Object}
|
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
*/
|
|
proto.bet.beteran.c2se.common.bank.CreateBankResponse.Result.toObject =
|
|
function (includeInstance, msg) {
|
|
var f,
|
|
obj = {
|
|
bank:
|
|
(f = msg.getBank()) &&
|
|
models_account_bank_pb.Bank.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.bet.beteran.c2se.common.bank.CreateBankResponse.Result}
|
|
*/
|
|
proto.bet.beteran.c2se.common.bank.CreateBankResponse.Result.deserializeBinary =
|
|
function (bytes) {
|
|
var reader = new jspb.BinaryReader(bytes);
|
|
var msg =
|
|
new proto.bet.beteran.c2se.common.bank.CreateBankResponse.Result();
|
|
return proto.bet.beteran.c2se.common.bank.CreateBankResponse.Result.deserializeBinaryFromReader(
|
|
msg,
|
|
reader
|
|
);
|
|
};
|
|
|
|
/**
|
|
* Deserializes binary data (in protobuf wire format) from the
|
|
* given reader into the given message object.
|
|
* @param {!proto.bet.beteran.c2se.common.bank.CreateBankResponse.Result} msg The message object to deserialize into.
|
|
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
* @return {!proto.bet.beteran.c2se.common.bank.CreateBankResponse.Result}
|
|
*/
|
|
proto.bet.beteran.c2se.common.bank.CreateBankResponse.Result.deserializeBinaryFromReader =
|
|
function (msg, reader) {
|
|
while (reader.nextField()) {
|
|
if (reader.isEndGroup()) {
|
|
break;
|
|
}
|
|
var field = reader.getFieldNumber();
|
|
switch (field) {
|
|
case 1:
|
|
var value = new models_account_bank_pb.Bank();
|
|
reader.readMessage(
|
|
value,
|
|
models_account_bank_pb.Bank.deserializeBinaryFromReader
|
|
);
|
|
msg.setBank(value);
|
|
break;
|
|
default:
|
|
reader.skipField();
|
|
break;
|
|
}
|
|
}
|
|
return msg;
|
|
};
|
|
|
|
/**
|
|
* Serializes the message to binary data (in protobuf wire format).
|
|
* @return {!Uint8Array}
|
|
*/
|
|
proto.bet.beteran.c2se.common.bank.CreateBankResponse.Result.prototype.serializeBinary =
|
|
function () {
|
|
var writer = new jspb.BinaryWriter();
|
|
proto.bet.beteran.c2se.common.bank.CreateBankResponse.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.bet.beteran.c2se.common.bank.CreateBankResponse.Result} message
|
|
* @param {!jspb.BinaryWriter} writer
|
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
*/
|
|
proto.bet.beteran.c2se.common.bank.CreateBankResponse.Result.serializeBinaryToWriter =
|
|
function (message, writer) {
|
|
var f = undefined;
|
|
f = message.getBank();
|
|
if (f != null) {
|
|
writer.writeMessage(
|
|
1,
|
|
f,
|
|
models_account_bank_pb.Bank.serializeBinaryToWriter
|
|
);
|
|
}
|
|
};
|
|
|
|
/**
|
|
* optional bet.beteran.account.Bank bank = 1;
|
|
* @return {?proto.bet.beteran.account.Bank}
|
|
*/
|
|
proto.bet.beteran.c2se.common.bank.CreateBankResponse.Result.prototype.getBank =
|
|
function () {
|
|
return /** @type{?proto.bet.beteran.account.Bank} */ (
|
|
jspb.Message.getWrapperField(this, models_account_bank_pb.Bank, 1)
|
|
);
|
|
};
|
|
|
|
/**
|
|
* @param {?proto.bet.beteran.account.Bank|undefined} value
|
|
* @return {!proto.bet.beteran.c2se.common.bank.CreateBankResponse.Result} returns this
|
|
*/
|
|
proto.bet.beteran.c2se.common.bank.CreateBankResponse.Result.prototype.setBank =
|
|
function (value) {
|
|
return jspb.Message.setWrapperField(this, 1, value);
|
|
};
|
|
|
|
/**
|
|
* Clears the message field making it undefined.
|
|
* @return {!proto.bet.beteran.c2se.common.bank.CreateBankResponse.Result} returns this
|
|
*/
|
|
proto.bet.beteran.c2se.common.bank.CreateBankResponse.Result.prototype.clearBank =
|
|
function () {
|
|
return this.setBank(undefined);
|
|
};
|
|
|
|
/**
|
|
* Returns whether this field is set.
|
|
* @return {boolean}
|
|
*/
|
|
proto.bet.beteran.c2se.common.bank.CreateBankResponse.Result.prototype.hasBank =
|
|
function () {
|
|
return jspb.Message.getField(this, 1) != null;
|
|
};
|
|
|
|
/**
|
|
* optional bet.protobuf.rpc.Error error = 1;
|
|
* @return {?proto.bet.protobuf.rpc.Error}
|
|
*/
|
|
proto.bet.beteran.c2se.common.bank.CreateBankResponse.prototype.getError =
|
|
function () {
|
|
return /** @type{?proto.bet.protobuf.rpc.Error} */ (
|
|
jspb.Message.getWrapperField(this, protobuf_rpc_error_pb.Error, 1)
|
|
);
|
|
};
|
|
|
|
/**
|
|
* @param {?proto.bet.protobuf.rpc.Error|undefined} value
|
|
* @return {!proto.bet.beteran.c2se.common.bank.CreateBankResponse} returns this
|
|
*/
|
|
proto.bet.beteran.c2se.common.bank.CreateBankResponse.prototype.setError =
|
|
function (value) {
|
|
return jspb.Message.setWrapperField(this, 1, value);
|
|
};
|
|
|
|
/**
|
|
* Clears the message field making it undefined.
|
|
* @return {!proto.bet.beteran.c2se.common.bank.CreateBankResponse} returns this
|
|
*/
|
|
proto.bet.beteran.c2se.common.bank.CreateBankResponse.prototype.clearError =
|
|
function () {
|
|
return this.setError(undefined);
|
|
};
|
|
|
|
/**
|
|
* Returns whether this field is set.
|
|
* @return {boolean}
|
|
*/
|
|
proto.bet.beteran.c2se.common.bank.CreateBankResponse.prototype.hasError =
|
|
function () {
|
|
return jspb.Message.getField(this, 1) != null;
|
|
};
|
|
|
|
/**
|
|
* optional Result result = 2;
|
|
* @return {?proto.bet.beteran.c2se.common.bank.CreateBankResponse.Result}
|
|
*/
|
|
proto.bet.beteran.c2se.common.bank.CreateBankResponse.prototype.getResult =
|
|
function () {
|
|
return /** @type{?proto.bet.beteran.c2se.common.bank.CreateBankResponse.Result} */ (
|
|
jspb.Message.getWrapperField(
|
|
this,
|
|
proto.bet.beteran.c2se.common.bank.CreateBankResponse.Result,
|
|
2
|
|
)
|
|
);
|
|
};
|
|
|
|
/**
|
|
* @param {?proto.bet.beteran.c2se.common.bank.CreateBankResponse.Result|undefined} value
|
|
* @return {!proto.bet.beteran.c2se.common.bank.CreateBankResponse} returns this
|
|
*/
|
|
proto.bet.beteran.c2se.common.bank.CreateBankResponse.prototype.setResult =
|
|
function (value) {
|
|
return jspb.Message.setWrapperField(this, 2, value);
|
|
};
|
|
|
|
/**
|
|
* Clears the message field making it undefined.
|
|
* @return {!proto.bet.beteran.c2se.common.bank.CreateBankResponse} returns this
|
|
*/
|
|
proto.bet.beteran.c2se.common.bank.CreateBankResponse.prototype.clearResult =
|
|
function () {
|
|
return this.setResult(undefined);
|
|
};
|
|
|
|
/**
|
|
* Returns whether this field is set.
|
|
* @return {boolean}
|
|
*/
|
|
proto.bet.beteran.c2se.common.bank.CreateBankResponse.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.bet.beteran.c2se.common.bank.UpdateBankRequest.prototype.toObject =
|
|
function (opt_includeInstance) {
|
|
return proto.bet.beteran.c2se.common.bank.UpdateBankRequest.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.bet.beteran.c2se.common.bank.UpdateBankRequest} msg The msg instance to transform.
|
|
* @return {!Object}
|
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
*/
|
|
proto.bet.beteran.c2se.common.bank.UpdateBankRequest.toObject = function (
|
|
includeInstance,
|
|
msg
|
|
) {
|
|
var f,
|
|
obj = {
|
|
id: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
name: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
show: jspb.Message.getBooleanFieldWithDefault(msg, 3, false),
|
|
canUse: jspb.Message.getBooleanFieldWithDefault(msg, 4, false),
|
|
memo: jspb.Message.getFieldWithDefault(msg, 5, ""),
|
|
};
|
|
|
|
if (includeInstance) {
|
|
obj.$jspbMessageInstance = msg;
|
|
}
|
|
return obj;
|
|
};
|
|
}
|
|
|
|
/**
|
|
* Deserializes binary data (in protobuf wire format).
|
|
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
* @return {!proto.bet.beteran.c2se.common.bank.UpdateBankRequest}
|
|
*/
|
|
proto.bet.beteran.c2se.common.bank.UpdateBankRequest.deserializeBinary =
|
|
function (bytes) {
|
|
var reader = new jspb.BinaryReader(bytes);
|
|
var msg = new proto.bet.beteran.c2se.common.bank.UpdateBankRequest();
|
|
return proto.bet.beteran.c2se.common.bank.UpdateBankRequest.deserializeBinaryFromReader(
|
|
msg,
|
|
reader
|
|
);
|
|
};
|
|
|
|
/**
|
|
* Deserializes binary data (in protobuf wire format) from the
|
|
* given reader into the given message object.
|
|
* @param {!proto.bet.beteran.c2se.common.bank.UpdateBankRequest} msg The message object to deserialize into.
|
|
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
* @return {!proto.bet.beteran.c2se.common.bank.UpdateBankRequest}
|
|
*/
|
|
proto.bet.beteran.c2se.common.bank.UpdateBankRequest.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.setId(value);
|
|
break;
|
|
case 2:
|
|
var value = /** @type {string} */ (reader.readString());
|
|
msg.setName(value);
|
|
break;
|
|
case 3:
|
|
var value = /** @type {boolean} */ (reader.readBool());
|
|
msg.setShow(value);
|
|
break;
|
|
case 4:
|
|
var value = /** @type {boolean} */ (reader.readBool());
|
|
msg.setCanUse(value);
|
|
break;
|
|
case 5:
|
|
var value = /** @type {string} */ (reader.readString());
|
|
msg.setMemo(value);
|
|
break;
|
|
default:
|
|
reader.skipField();
|
|
break;
|
|
}
|
|
}
|
|
return msg;
|
|
};
|
|
|
|
/**
|
|
* Serializes the message to binary data (in protobuf wire format).
|
|
* @return {!Uint8Array}
|
|
*/
|
|
proto.bet.beteran.c2se.common.bank.UpdateBankRequest.prototype.serializeBinary =
|
|
function () {
|
|
var writer = new jspb.BinaryWriter();
|
|
proto.bet.beteran.c2se.common.bank.UpdateBankRequest.serializeBinaryToWriter(
|
|
this,
|
|
writer
|
|
);
|
|
return writer.getResultBuffer();
|
|
};
|
|
|
|
/**
|
|
* Serializes the given message to binary data (in protobuf wire
|
|
* format), writing to the given BinaryWriter.
|
|
* @param {!proto.bet.beteran.c2se.common.bank.UpdateBankRequest} message
|
|
* @param {!jspb.BinaryWriter} writer
|
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
*/
|
|
proto.bet.beteran.c2se.common.bank.UpdateBankRequest.serializeBinaryToWriter =
|
|
function (message, writer) {
|
|
var f = undefined;
|
|
f = message.getId();
|
|
if (f.length > 0) {
|
|
writer.writeString(1, f);
|
|
}
|
|
f = message.getName();
|
|
if (f.length > 0) {
|
|
writer.writeString(2, f);
|
|
}
|
|
f = message.getShow();
|
|
if (f) {
|
|
writer.writeBool(3, f);
|
|
}
|
|
f = message.getCanUse();
|
|
if (f) {
|
|
writer.writeBool(4, f);
|
|
}
|
|
f = /** @type {string} */ (jspb.Message.getField(message, 5));
|
|
if (f != null) {
|
|
writer.writeString(5, f);
|
|
}
|
|
};
|
|
|
|
/**
|
|
* optional string id = 1;
|
|
* @return {string}
|
|
*/
|
|
proto.bet.beteran.c2se.common.bank.UpdateBankRequest.prototype.getId =
|
|
function () {
|
|
return /** @type {string} */ (
|
|
jspb.Message.getFieldWithDefault(this, 1, "")
|
|
);
|
|
};
|
|
|
|
/**
|
|
* @param {string} value
|
|
* @return {!proto.bet.beteran.c2se.common.bank.UpdateBankRequest} returns this
|
|
*/
|
|
proto.bet.beteran.c2se.common.bank.UpdateBankRequest.prototype.setId =
|
|
function (value) {
|
|
return jspb.Message.setProto3StringField(this, 1, value);
|
|
};
|
|
|
|
/**
|
|
* optional string name = 2;
|
|
* @return {string}
|
|
*/
|
|
proto.bet.beteran.c2se.common.bank.UpdateBankRequest.prototype.getName =
|
|
function () {
|
|
return /** @type {string} */ (
|
|
jspb.Message.getFieldWithDefault(this, 2, "")
|
|
);
|
|
};
|
|
|
|
/**
|
|
* @param {string} value
|
|
* @return {!proto.bet.beteran.c2se.common.bank.UpdateBankRequest} returns this
|
|
*/
|
|
proto.bet.beteran.c2se.common.bank.UpdateBankRequest.prototype.setName =
|
|
function (value) {
|
|
return jspb.Message.setProto3StringField(this, 2, value);
|
|
};
|
|
|
|
/**
|
|
* optional bool show = 3;
|
|
* @return {boolean}
|
|
*/
|
|
proto.bet.beteran.c2se.common.bank.UpdateBankRequest.prototype.getShow =
|
|
function () {
|
|
return /** @type {boolean} */ (
|
|
jspb.Message.getBooleanFieldWithDefault(this, 3, false)
|
|
);
|
|
};
|
|
|
|
/**
|
|
* @param {boolean} value
|
|
* @return {!proto.bet.beteran.c2se.common.bank.UpdateBankRequest} returns this
|
|
*/
|
|
proto.bet.beteran.c2se.common.bank.UpdateBankRequest.prototype.setShow =
|
|
function (value) {
|
|
return jspb.Message.setProto3BooleanField(this, 3, value);
|
|
};
|
|
|
|
/**
|
|
* optional bool can_use = 4;
|
|
* @return {boolean}
|
|
*/
|
|
proto.bet.beteran.c2se.common.bank.UpdateBankRequest.prototype.getCanUse =
|
|
function () {
|
|
return /** @type {boolean} */ (
|
|
jspb.Message.getBooleanFieldWithDefault(this, 4, false)
|
|
);
|
|
};
|
|
|
|
/**
|
|
* @param {boolean} value
|
|
* @return {!proto.bet.beteran.c2se.common.bank.UpdateBankRequest} returns this
|
|
*/
|
|
proto.bet.beteran.c2se.common.bank.UpdateBankRequest.prototype.setCanUse =
|
|
function (value) {
|
|
return jspb.Message.setProto3BooleanField(this, 4, value);
|
|
};
|
|
|
|
/**
|
|
* optional string memo = 5;
|
|
* @return {string}
|
|
*/
|
|
proto.bet.beteran.c2se.common.bank.UpdateBankRequest.prototype.getMemo =
|
|
function () {
|
|
return /** @type {string} */ (
|
|
jspb.Message.getFieldWithDefault(this, 5, "")
|
|
);
|
|
};
|
|
|
|
/**
|
|
* @param {string} value
|
|
* @return {!proto.bet.beteran.c2se.common.bank.UpdateBankRequest} returns this
|
|
*/
|
|
proto.bet.beteran.c2se.common.bank.UpdateBankRequest.prototype.setMemo =
|
|
function (value) {
|
|
return jspb.Message.setField(this, 5, value);
|
|
};
|
|
|
|
/**
|
|
* Clears the field making it undefined.
|
|
* @return {!proto.bet.beteran.c2se.common.bank.UpdateBankRequest} returns this
|
|
*/
|
|
proto.bet.beteran.c2se.common.bank.UpdateBankRequest.prototype.clearMemo =
|
|
function () {
|
|
return jspb.Message.setField(this, 5, undefined);
|
|
};
|
|
|
|
/**
|
|
* Returns whether this field is set.
|
|
* @return {boolean}
|
|
*/
|
|
proto.bet.beteran.c2se.common.bank.UpdateBankRequest.prototype.hasMemo =
|
|
function () {
|
|
return jspb.Message.getField(this, 5) != 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.bet.beteran.c2se.common.bank.UpdateBankResponse.prototype.toObject =
|
|
function (opt_includeInstance) {
|
|
return proto.bet.beteran.c2se.common.bank.UpdateBankResponse.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.bet.beteran.c2se.common.bank.UpdateBankResponse} msg The msg instance to transform.
|
|
* @return {!Object}
|
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
*/
|
|
proto.bet.beteran.c2se.common.bank.UpdateBankResponse.toObject = function (
|
|
includeInstance,
|
|
msg
|
|
) {
|
|
var f,
|
|
obj = {
|
|
error:
|
|
(f = msg.getError()) &&
|
|
protobuf_rpc_error_pb.Error.toObject(includeInstance, f),
|
|
result:
|
|
(f = msg.getResult()) &&
|
|
proto.bet.beteran.c2se.common.bank.UpdateBankResponse.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.bet.beteran.c2se.common.bank.UpdateBankResponse}
|
|
*/
|
|
proto.bet.beteran.c2se.common.bank.UpdateBankResponse.deserializeBinary =
|
|
function (bytes) {
|
|
var reader = new jspb.BinaryReader(bytes);
|
|
var msg = new proto.bet.beteran.c2se.common.bank.UpdateBankResponse();
|
|
return proto.bet.beteran.c2se.common.bank.UpdateBankResponse.deserializeBinaryFromReader(
|
|
msg,
|
|
reader
|
|
);
|
|
};
|
|
|
|
/**
|
|
* Deserializes binary data (in protobuf wire format) from the
|
|
* given reader into the given message object.
|
|
* @param {!proto.bet.beteran.c2se.common.bank.UpdateBankResponse} msg The message object to deserialize into.
|
|
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
* @return {!proto.bet.beteran.c2se.common.bank.UpdateBankResponse}
|
|
*/
|
|
proto.bet.beteran.c2se.common.bank.UpdateBankResponse.deserializeBinaryFromReader =
|
|
function (msg, reader) {
|
|
while (reader.nextField()) {
|
|
if (reader.isEndGroup()) {
|
|
break;
|
|
}
|
|
var field = reader.getFieldNumber();
|
|
switch (field) {
|
|
case 1:
|
|
var value = new protobuf_rpc_error_pb.Error();
|
|
reader.readMessage(
|
|
value,
|
|
protobuf_rpc_error_pb.Error.deserializeBinaryFromReader
|
|
);
|
|
msg.setError(value);
|
|
break;
|
|
case 2:
|
|
var value =
|
|
new proto.bet.beteran.c2se.common.bank.UpdateBankResponse.Result();
|
|
reader.readMessage(
|
|
value,
|
|
proto.bet.beteran.c2se.common.bank.UpdateBankResponse.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.bet.beteran.c2se.common.bank.UpdateBankResponse.prototype.serializeBinary =
|
|
function () {
|
|
var writer = new jspb.BinaryWriter();
|
|
proto.bet.beteran.c2se.common.bank.UpdateBankResponse.serializeBinaryToWriter(
|
|
this,
|
|
writer
|
|
);
|
|
return writer.getResultBuffer();
|
|
};
|
|
|
|
/**
|
|
* Serializes the given message to binary data (in protobuf wire
|
|
* format), writing to the given BinaryWriter.
|
|
* @param {!proto.bet.beteran.c2se.common.bank.UpdateBankResponse} message
|
|
* @param {!jspb.BinaryWriter} writer
|
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
*/
|
|
proto.bet.beteran.c2se.common.bank.UpdateBankResponse.serializeBinaryToWriter =
|
|
function (message, writer) {
|
|
var f = undefined;
|
|
f = message.getError();
|
|
if (f != null) {
|
|
writer.writeMessage(
|
|
1,
|
|
f,
|
|
protobuf_rpc_error_pb.Error.serializeBinaryToWriter
|
|
);
|
|
}
|
|
f = message.getResult();
|
|
if (f != null) {
|
|
writer.writeMessage(
|
|
2,
|
|
f,
|
|
proto.bet.beteran.c2se.common.bank.UpdateBankResponse.Result
|
|
.serializeBinaryToWriter
|
|
);
|
|
}
|
|
};
|
|
|
|
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.bet.beteran.c2se.common.bank.UpdateBankResponse.Result.prototype.toObject =
|
|
function (opt_includeInstance) {
|
|
return proto.bet.beteran.c2se.common.bank.UpdateBankResponse.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.bet.beteran.c2se.common.bank.UpdateBankResponse.Result} msg The msg instance to transform.
|
|
* @return {!Object}
|
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
*/
|
|
proto.bet.beteran.c2se.common.bank.UpdateBankResponse.Result.toObject =
|
|
function (includeInstance, msg) {
|
|
var f,
|
|
obj = {
|
|
bank:
|
|
(f = msg.getBank()) &&
|
|
models_account_bank_pb.Bank.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.bet.beteran.c2se.common.bank.UpdateBankResponse.Result}
|
|
*/
|
|
proto.bet.beteran.c2se.common.bank.UpdateBankResponse.Result.deserializeBinary =
|
|
function (bytes) {
|
|
var reader = new jspb.BinaryReader(bytes);
|
|
var msg =
|
|
new proto.bet.beteran.c2se.common.bank.UpdateBankResponse.Result();
|
|
return proto.bet.beteran.c2se.common.bank.UpdateBankResponse.Result.deserializeBinaryFromReader(
|
|
msg,
|
|
reader
|
|
);
|
|
};
|
|
|
|
/**
|
|
* Deserializes binary data (in protobuf wire format) from the
|
|
* given reader into the given message object.
|
|
* @param {!proto.bet.beteran.c2se.common.bank.UpdateBankResponse.Result} msg The message object to deserialize into.
|
|
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
* @return {!proto.bet.beteran.c2se.common.bank.UpdateBankResponse.Result}
|
|
*/
|
|
proto.bet.beteran.c2se.common.bank.UpdateBankResponse.Result.deserializeBinaryFromReader =
|
|
function (msg, reader) {
|
|
while (reader.nextField()) {
|
|
if (reader.isEndGroup()) {
|
|
break;
|
|
}
|
|
var field = reader.getFieldNumber();
|
|
switch (field) {
|
|
case 1:
|
|
var value = new models_account_bank_pb.Bank();
|
|
reader.readMessage(
|
|
value,
|
|
models_account_bank_pb.Bank.deserializeBinaryFromReader
|
|
);
|
|
msg.setBank(value);
|
|
break;
|
|
default:
|
|
reader.skipField();
|
|
break;
|
|
}
|
|
}
|
|
return msg;
|
|
};
|
|
|
|
/**
|
|
* Serializes the message to binary data (in protobuf wire format).
|
|
* @return {!Uint8Array}
|
|
*/
|
|
proto.bet.beteran.c2se.common.bank.UpdateBankResponse.Result.prototype.serializeBinary =
|
|
function () {
|
|
var writer = new jspb.BinaryWriter();
|
|
proto.bet.beteran.c2se.common.bank.UpdateBankResponse.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.bet.beteran.c2se.common.bank.UpdateBankResponse.Result} message
|
|
* @param {!jspb.BinaryWriter} writer
|
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
*/
|
|
proto.bet.beteran.c2se.common.bank.UpdateBankResponse.Result.serializeBinaryToWriter =
|
|
function (message, writer) {
|
|
var f = undefined;
|
|
f = message.getBank();
|
|
if (f != null) {
|
|
writer.writeMessage(
|
|
1,
|
|
f,
|
|
models_account_bank_pb.Bank.serializeBinaryToWriter
|
|
);
|
|
}
|
|
};
|
|
|
|
/**
|
|
* optional bet.beteran.account.Bank bank = 1;
|
|
* @return {?proto.bet.beteran.account.Bank}
|
|
*/
|
|
proto.bet.beteran.c2se.common.bank.UpdateBankResponse.Result.prototype.getBank =
|
|
function () {
|
|
return /** @type{?proto.bet.beteran.account.Bank} */ (
|
|
jspb.Message.getWrapperField(this, models_account_bank_pb.Bank, 1)
|
|
);
|
|
};
|
|
|
|
/**
|
|
* @param {?proto.bet.beteran.account.Bank|undefined} value
|
|
* @return {!proto.bet.beteran.c2se.common.bank.UpdateBankResponse.Result} returns this
|
|
*/
|
|
proto.bet.beteran.c2se.common.bank.UpdateBankResponse.Result.prototype.setBank =
|
|
function (value) {
|
|
return jspb.Message.setWrapperField(this, 1, value);
|
|
};
|
|
|
|
/**
|
|
* Clears the message field making it undefined.
|
|
* @return {!proto.bet.beteran.c2se.common.bank.UpdateBankResponse.Result} returns this
|
|
*/
|
|
proto.bet.beteran.c2se.common.bank.UpdateBankResponse.Result.prototype.clearBank =
|
|
function () {
|
|
return this.setBank(undefined);
|
|
};
|
|
|
|
/**
|
|
* Returns whether this field is set.
|
|
* @return {boolean}
|
|
*/
|
|
proto.bet.beteran.c2se.common.bank.UpdateBankResponse.Result.prototype.hasBank =
|
|
function () {
|
|
return jspb.Message.getField(this, 1) != null;
|
|
};
|
|
|
|
/**
|
|
* optional bet.protobuf.rpc.Error error = 1;
|
|
* @return {?proto.bet.protobuf.rpc.Error}
|
|
*/
|
|
proto.bet.beteran.c2se.common.bank.UpdateBankResponse.prototype.getError =
|
|
function () {
|
|
return /** @type{?proto.bet.protobuf.rpc.Error} */ (
|
|
jspb.Message.getWrapperField(this, protobuf_rpc_error_pb.Error, 1)
|
|
);
|
|
};
|
|
|
|
/**
|
|
* @param {?proto.bet.protobuf.rpc.Error|undefined} value
|
|
* @return {!proto.bet.beteran.c2se.common.bank.UpdateBankResponse} returns this
|
|
*/
|
|
proto.bet.beteran.c2se.common.bank.UpdateBankResponse.prototype.setError =
|
|
function (value) {
|
|
return jspb.Message.setWrapperField(this, 1, value);
|
|
};
|
|
|
|
/**
|
|
* Clears the message field making it undefined.
|
|
* @return {!proto.bet.beteran.c2se.common.bank.UpdateBankResponse} returns this
|
|
*/
|
|
proto.bet.beteran.c2se.common.bank.UpdateBankResponse.prototype.clearError =
|
|
function () {
|
|
return this.setError(undefined);
|
|
};
|
|
|
|
/**
|
|
* Returns whether this field is set.
|
|
* @return {boolean}
|
|
*/
|
|
proto.bet.beteran.c2se.common.bank.UpdateBankResponse.prototype.hasError =
|
|
function () {
|
|
return jspb.Message.getField(this, 1) != null;
|
|
};
|
|
|
|
/**
|
|
* optional Result result = 2;
|
|
* @return {?proto.bet.beteran.c2se.common.bank.UpdateBankResponse.Result}
|
|
*/
|
|
proto.bet.beteran.c2se.common.bank.UpdateBankResponse.prototype.getResult =
|
|
function () {
|
|
return /** @type{?proto.bet.beteran.c2se.common.bank.UpdateBankResponse.Result} */ (
|
|
jspb.Message.getWrapperField(
|
|
this,
|
|
proto.bet.beteran.c2se.common.bank.UpdateBankResponse.Result,
|
|
2
|
|
)
|
|
);
|
|
};
|
|
|
|
/**
|
|
* @param {?proto.bet.beteran.c2se.common.bank.UpdateBankResponse.Result|undefined} value
|
|
* @return {!proto.bet.beteran.c2se.common.bank.UpdateBankResponse} returns this
|
|
*/
|
|
proto.bet.beteran.c2se.common.bank.UpdateBankResponse.prototype.setResult =
|
|
function (value) {
|
|
return jspb.Message.setWrapperField(this, 2, value);
|
|
};
|
|
|
|
/**
|
|
* Clears the message field making it undefined.
|
|
* @return {!proto.bet.beteran.c2se.common.bank.UpdateBankResponse} returns this
|
|
*/
|
|
proto.bet.beteran.c2se.common.bank.UpdateBankResponse.prototype.clearResult =
|
|
function () {
|
|
return this.setResult(undefined);
|
|
};
|
|
|
|
/**
|
|
* Returns whether this field is set.
|
|
* @return {boolean}
|
|
*/
|
|
proto.bet.beteran.c2se.common.bank.UpdateBankResponse.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.bet.beteran.c2se.common.bank.DeleteBankRequest.prototype.toObject =
|
|
function (opt_includeInstance) {
|
|
return proto.bet.beteran.c2se.common.bank.DeleteBankRequest.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.bet.beteran.c2se.common.bank.DeleteBankRequest} msg The msg instance to transform.
|
|
* @return {!Object}
|
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
*/
|
|
proto.bet.beteran.c2se.common.bank.DeleteBankRequest.toObject = function (
|
|
includeInstance,
|
|
msg
|
|
) {
|
|
var f,
|
|
obj = {
|
|
id: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
};
|
|
|
|
if (includeInstance) {
|
|
obj.$jspbMessageInstance = msg;
|
|
}
|
|
return obj;
|
|
};
|
|
}
|
|
|
|
/**
|
|
* Deserializes binary data (in protobuf wire format).
|
|
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
* @return {!proto.bet.beteran.c2se.common.bank.DeleteBankRequest}
|
|
*/
|
|
proto.bet.beteran.c2se.common.bank.DeleteBankRequest.deserializeBinary =
|
|
function (bytes) {
|
|
var reader = new jspb.BinaryReader(bytes);
|
|
var msg = new proto.bet.beteran.c2se.common.bank.DeleteBankRequest();
|
|
return proto.bet.beteran.c2se.common.bank.DeleteBankRequest.deserializeBinaryFromReader(
|
|
msg,
|
|
reader
|
|
);
|
|
};
|
|
|
|
/**
|
|
* Deserializes binary data (in protobuf wire format) from the
|
|
* given reader into the given message object.
|
|
* @param {!proto.bet.beteran.c2se.common.bank.DeleteBankRequest} msg The message object to deserialize into.
|
|
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
* @return {!proto.bet.beteran.c2se.common.bank.DeleteBankRequest}
|
|
*/
|
|
proto.bet.beteran.c2se.common.bank.DeleteBankRequest.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.setId(value);
|
|
break;
|
|
default:
|
|
reader.skipField();
|
|
break;
|
|
}
|
|
}
|
|
return msg;
|
|
};
|
|
|
|
/**
|
|
* Serializes the message to binary data (in protobuf wire format).
|
|
* @return {!Uint8Array}
|
|
*/
|
|
proto.bet.beteran.c2se.common.bank.DeleteBankRequest.prototype.serializeBinary =
|
|
function () {
|
|
var writer = new jspb.BinaryWriter();
|
|
proto.bet.beteran.c2se.common.bank.DeleteBankRequest.serializeBinaryToWriter(
|
|
this,
|
|
writer
|
|
);
|
|
return writer.getResultBuffer();
|
|
};
|
|
|
|
/**
|
|
* Serializes the given message to binary data (in protobuf wire
|
|
* format), writing to the given BinaryWriter.
|
|
* @param {!proto.bet.beteran.c2se.common.bank.DeleteBankRequest} message
|
|
* @param {!jspb.BinaryWriter} writer
|
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
*/
|
|
proto.bet.beteran.c2se.common.bank.DeleteBankRequest.serializeBinaryToWriter =
|
|
function (message, writer) {
|
|
var f = undefined;
|
|
f = message.getId();
|
|
if (f.length > 0) {
|
|
writer.writeString(1, f);
|
|
}
|
|
};
|
|
|
|
/**
|
|
* optional string id = 1;
|
|
* @return {string}
|
|
*/
|
|
proto.bet.beteran.c2se.common.bank.DeleteBankRequest.prototype.getId =
|
|
function () {
|
|
return /** @type {string} */ (
|
|
jspb.Message.getFieldWithDefault(this, 1, "")
|
|
);
|
|
};
|
|
|
|
/**
|
|
* @param {string} value
|
|
* @return {!proto.bet.beteran.c2se.common.bank.DeleteBankRequest} returns this
|
|
*/
|
|
proto.bet.beteran.c2se.common.bank.DeleteBankRequest.prototype.setId =
|
|
function (value) {
|
|
return jspb.Message.setProto3StringField(this, 1, 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.bet.beteran.c2se.common.bank.DeleteBankResponse.prototype.toObject =
|
|
function (opt_includeInstance) {
|
|
return proto.bet.beteran.c2se.common.bank.DeleteBankResponse.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.bet.beteran.c2se.common.bank.DeleteBankResponse} msg The msg instance to transform.
|
|
* @return {!Object}
|
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
*/
|
|
proto.bet.beteran.c2se.common.bank.DeleteBankResponse.toObject = function (
|
|
includeInstance,
|
|
msg
|
|
) {
|
|
var f,
|
|
obj = {
|
|
error:
|
|
(f = msg.getError()) &&
|
|
protobuf_rpc_error_pb.Error.toObject(includeInstance, f),
|
|
result:
|
|
(f = msg.getResult()) &&
|
|
proto.bet.beteran.c2se.common.bank.DeleteBankResponse.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.bet.beteran.c2se.common.bank.DeleteBankResponse}
|
|
*/
|
|
proto.bet.beteran.c2se.common.bank.DeleteBankResponse.deserializeBinary =
|
|
function (bytes) {
|
|
var reader = new jspb.BinaryReader(bytes);
|
|
var msg = new proto.bet.beteran.c2se.common.bank.DeleteBankResponse();
|
|
return proto.bet.beteran.c2se.common.bank.DeleteBankResponse.deserializeBinaryFromReader(
|
|
msg,
|
|
reader
|
|
);
|
|
};
|
|
|
|
/**
|
|
* Deserializes binary data (in protobuf wire format) from the
|
|
* given reader into the given message object.
|
|
* @param {!proto.bet.beteran.c2se.common.bank.DeleteBankResponse} msg The message object to deserialize into.
|
|
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
* @return {!proto.bet.beteran.c2se.common.bank.DeleteBankResponse}
|
|
*/
|
|
proto.bet.beteran.c2se.common.bank.DeleteBankResponse.deserializeBinaryFromReader =
|
|
function (msg, reader) {
|
|
while (reader.nextField()) {
|
|
if (reader.isEndGroup()) {
|
|
break;
|
|
}
|
|
var field = reader.getFieldNumber();
|
|
switch (field) {
|
|
case 1:
|
|
var value = new protobuf_rpc_error_pb.Error();
|
|
reader.readMessage(
|
|
value,
|
|
protobuf_rpc_error_pb.Error.deserializeBinaryFromReader
|
|
);
|
|
msg.setError(value);
|
|
break;
|
|
case 2:
|
|
var value =
|
|
new proto.bet.beteran.c2se.common.bank.DeleteBankResponse.Result();
|
|
reader.readMessage(
|
|
value,
|
|
proto.bet.beteran.c2se.common.bank.DeleteBankResponse.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.bet.beteran.c2se.common.bank.DeleteBankResponse.prototype.serializeBinary =
|
|
function () {
|
|
var writer = new jspb.BinaryWriter();
|
|
proto.bet.beteran.c2se.common.bank.DeleteBankResponse.serializeBinaryToWriter(
|
|
this,
|
|
writer
|
|
);
|
|
return writer.getResultBuffer();
|
|
};
|
|
|
|
/**
|
|
* Serializes the given message to binary data (in protobuf wire
|
|
* format), writing to the given BinaryWriter.
|
|
* @param {!proto.bet.beteran.c2se.common.bank.DeleteBankResponse} message
|
|
* @param {!jspb.BinaryWriter} writer
|
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
*/
|
|
proto.bet.beteran.c2se.common.bank.DeleteBankResponse.serializeBinaryToWriter =
|
|
function (message, writer) {
|
|
var f = undefined;
|
|
f = message.getError();
|
|
if (f != null) {
|
|
writer.writeMessage(
|
|
1,
|
|
f,
|
|
protobuf_rpc_error_pb.Error.serializeBinaryToWriter
|
|
);
|
|
}
|
|
f = message.getResult();
|
|
if (f != null) {
|
|
writer.writeMessage(
|
|
2,
|
|
f,
|
|
proto.bet.beteran.c2se.common.bank.DeleteBankResponse.Result
|
|
.serializeBinaryToWriter
|
|
);
|
|
}
|
|
};
|
|
|
|
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.bet.beteran.c2se.common.bank.DeleteBankResponse.Result.prototype.toObject =
|
|
function (opt_includeInstance) {
|
|
return proto.bet.beteran.c2se.common.bank.DeleteBankResponse.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.bet.beteran.c2se.common.bank.DeleteBankResponse.Result} msg The msg instance to transform.
|
|
* @return {!Object}
|
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
*/
|
|
proto.bet.beteran.c2se.common.bank.DeleteBankResponse.Result.toObject =
|
|
function (includeInstance, msg) {
|
|
var f,
|
|
obj = {};
|
|
|
|
if (includeInstance) {
|
|
obj.$jspbMessageInstance = msg;
|
|
}
|
|
return obj;
|
|
};
|
|
}
|
|
|
|
/**
|
|
* Deserializes binary data (in protobuf wire format).
|
|
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
* @return {!proto.bet.beteran.c2se.common.bank.DeleteBankResponse.Result}
|
|
*/
|
|
proto.bet.beteran.c2se.common.bank.DeleteBankResponse.Result.deserializeBinary =
|
|
function (bytes) {
|
|
var reader = new jspb.BinaryReader(bytes);
|
|
var msg =
|
|
new proto.bet.beteran.c2se.common.bank.DeleteBankResponse.Result();
|
|
return proto.bet.beteran.c2se.common.bank.DeleteBankResponse.Result.deserializeBinaryFromReader(
|
|
msg,
|
|
reader
|
|
);
|
|
};
|
|
|
|
/**
|
|
* Deserializes binary data (in protobuf wire format) from the
|
|
* given reader into the given message object.
|
|
* @param {!proto.bet.beteran.c2se.common.bank.DeleteBankResponse.Result} msg The message object to deserialize into.
|
|
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
* @return {!proto.bet.beteran.c2se.common.bank.DeleteBankResponse.Result}
|
|
*/
|
|
proto.bet.beteran.c2se.common.bank.DeleteBankResponse.Result.deserializeBinaryFromReader =
|
|
function (msg, reader) {
|
|
while (reader.nextField()) {
|
|
if (reader.isEndGroup()) {
|
|
break;
|
|
}
|
|
var field = reader.getFieldNumber();
|
|
switch (field) {
|
|
default:
|
|
reader.skipField();
|
|
break;
|
|
}
|
|
}
|
|
return msg;
|
|
};
|
|
|
|
/**
|
|
* Serializes the message to binary data (in protobuf wire format).
|
|
* @return {!Uint8Array}
|
|
*/
|
|
proto.bet.beteran.c2se.common.bank.DeleteBankResponse.Result.prototype.serializeBinary =
|
|
function () {
|
|
var writer = new jspb.BinaryWriter();
|
|
proto.bet.beteran.c2se.common.bank.DeleteBankResponse.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.bet.beteran.c2se.common.bank.DeleteBankResponse.Result} message
|
|
* @param {!jspb.BinaryWriter} writer
|
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
*/
|
|
proto.bet.beteran.c2se.common.bank.DeleteBankResponse.Result.serializeBinaryToWriter =
|
|
function (message, writer) {
|
|
var f = undefined;
|
|
};
|
|
|
|
/**
|
|
* optional bet.protobuf.rpc.Error error = 1;
|
|
* @return {?proto.bet.protobuf.rpc.Error}
|
|
*/
|
|
proto.bet.beteran.c2se.common.bank.DeleteBankResponse.prototype.getError =
|
|
function () {
|
|
return /** @type{?proto.bet.protobuf.rpc.Error} */ (
|
|
jspb.Message.getWrapperField(this, protobuf_rpc_error_pb.Error, 1)
|
|
);
|
|
};
|
|
|
|
/**
|
|
* @param {?proto.bet.protobuf.rpc.Error|undefined} value
|
|
* @return {!proto.bet.beteran.c2se.common.bank.DeleteBankResponse} returns this
|
|
*/
|
|
proto.bet.beteran.c2se.common.bank.DeleteBankResponse.prototype.setError =
|
|
function (value) {
|
|
return jspb.Message.setWrapperField(this, 1, value);
|
|
};
|
|
|
|
/**
|
|
* Clears the message field making it undefined.
|
|
* @return {!proto.bet.beteran.c2se.common.bank.DeleteBankResponse} returns this
|
|
*/
|
|
proto.bet.beteran.c2se.common.bank.DeleteBankResponse.prototype.clearError =
|
|
function () {
|
|
return this.setError(undefined);
|
|
};
|
|
|
|
/**
|
|
* Returns whether this field is set.
|
|
* @return {boolean}
|
|
*/
|
|
proto.bet.beteran.c2se.common.bank.DeleteBankResponse.prototype.hasError =
|
|
function () {
|
|
return jspb.Message.getField(this, 1) != null;
|
|
};
|
|
|
|
/**
|
|
* optional Result result = 2;
|
|
* @return {?proto.bet.beteran.c2se.common.bank.DeleteBankResponse.Result}
|
|
*/
|
|
proto.bet.beteran.c2se.common.bank.DeleteBankResponse.prototype.getResult =
|
|
function () {
|
|
return /** @type{?proto.bet.beteran.c2se.common.bank.DeleteBankResponse.Result} */ (
|
|
jspb.Message.getWrapperField(
|
|
this,
|
|
proto.bet.beteran.c2se.common.bank.DeleteBankResponse.Result,
|
|
2
|
|
)
|
|
);
|
|
};
|
|
|
|
/**
|
|
* @param {?proto.bet.beteran.c2se.common.bank.DeleteBankResponse.Result|undefined} value
|
|
* @return {!proto.bet.beteran.c2se.common.bank.DeleteBankResponse} returns this
|
|
*/
|
|
proto.bet.beteran.c2se.common.bank.DeleteBankResponse.prototype.setResult =
|
|
function (value) {
|
|
return jspb.Message.setWrapperField(this, 2, value);
|
|
};
|
|
|
|
/**
|
|
* Clears the message field making it undefined.
|
|
* @return {!proto.bet.beteran.c2se.common.bank.DeleteBankResponse} returns this
|
|
*/
|
|
proto.bet.beteran.c2se.common.bank.DeleteBankResponse.prototype.clearResult =
|
|
function () {
|
|
return this.setResult(undefined);
|
|
};
|
|
|
|
/**
|
|
* Returns whether this field is set.
|
|
* @return {boolean}
|
|
*/
|
|
proto.bet.beteran.c2se.common.bank.DeleteBankResponse.prototype.hasResult =
|
|
function () {
|
|
return jspb.Message.getField(this, 2) != null;
|
|
};
|
|
|
|
goog.object.extend(exports, proto.bet.beteran.c2se.common.bank);
|