2224 lines
75 KiB
JavaScript
2224 lines
75 KiB
JavaScript
// source: c2se/identity.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_pb = require('../protobuf/rpc_pb.js');
|
|
goog.object.extend(proto, protobuf_rpc_pb);
|
|
goog.exportSymbol('proto.bet.beteran.c2se.identity.CaptchaRequest', null, global);
|
|
goog.exportSymbol('proto.bet.beteran.c2se.identity.CaptchaResponse', null, global);
|
|
goog.exportSymbol('proto.bet.beteran.c2se.identity.CaptchaResponse.Result', null, global);
|
|
goog.exportSymbol('proto.bet.beteran.c2se.identity.CheckNicknameForDuplicationRequest', null, global);
|
|
goog.exportSymbol('proto.bet.beteran.c2se.identity.CheckNicknameForDuplicationResponse', null, global);
|
|
goog.exportSymbol('proto.bet.beteran.c2se.identity.CheckNicknameForDuplicationResponse.Result', null, global);
|
|
goog.exportSymbol('proto.bet.beteran.c2se.identity.CheckUsernameForDuplicationRequest', null, global);
|
|
goog.exportSymbol('proto.bet.beteran.c2se.identity.CheckUsernameForDuplicationResponse', null, global);
|
|
goog.exportSymbol('proto.bet.beteran.c2se.identity.CheckUsernameForDuplicationResponse.Result', null, global);
|
|
goog.exportSymbol('proto.bet.beteran.c2se.identity.SigninRequest', null, global);
|
|
goog.exportSymbol('proto.bet.beteran.c2se.identity.SigninResponse', null, global);
|
|
goog.exportSymbol('proto.bet.beteran.c2se.identity.SigninResponse.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.identity.CheckUsernameForDuplicationRequest = function(opt_data) {
|
|
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
};
|
|
goog.inherits(proto.bet.beteran.c2se.identity.CheckUsernameForDuplicationRequest, jspb.Message);
|
|
if (goog.DEBUG && !COMPILED) {
|
|
/**
|
|
* @public
|
|
* @override
|
|
*/
|
|
proto.bet.beteran.c2se.identity.CheckUsernameForDuplicationRequest.displayName = 'proto.bet.beteran.c2se.identity.CheckUsernameForDuplicationRequest';
|
|
}
|
|
/**
|
|
* 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.identity.CheckUsernameForDuplicationResponse = function(opt_data) {
|
|
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
};
|
|
goog.inherits(proto.bet.beteran.c2se.identity.CheckUsernameForDuplicationResponse, jspb.Message);
|
|
if (goog.DEBUG && !COMPILED) {
|
|
/**
|
|
* @public
|
|
* @override
|
|
*/
|
|
proto.bet.beteran.c2se.identity.CheckUsernameForDuplicationResponse.displayName = 'proto.bet.beteran.c2se.identity.CheckUsernameForDuplicationResponse';
|
|
}
|
|
/**
|
|
* 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.identity.CheckUsernameForDuplicationResponse.Result = function(opt_data) {
|
|
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
};
|
|
goog.inherits(proto.bet.beteran.c2se.identity.CheckUsernameForDuplicationResponse.Result, jspb.Message);
|
|
if (goog.DEBUG && !COMPILED) {
|
|
/**
|
|
* @public
|
|
* @override
|
|
*/
|
|
proto.bet.beteran.c2se.identity.CheckUsernameForDuplicationResponse.Result.displayName = 'proto.bet.beteran.c2se.identity.CheckUsernameForDuplicationResponse.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.identity.CheckNicknameForDuplicationRequest = function(opt_data) {
|
|
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
};
|
|
goog.inherits(proto.bet.beteran.c2se.identity.CheckNicknameForDuplicationRequest, jspb.Message);
|
|
if (goog.DEBUG && !COMPILED) {
|
|
/**
|
|
* @public
|
|
* @override
|
|
*/
|
|
proto.bet.beteran.c2se.identity.CheckNicknameForDuplicationRequest.displayName = 'proto.bet.beteran.c2se.identity.CheckNicknameForDuplicationRequest';
|
|
}
|
|
/**
|
|
* 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.identity.CheckNicknameForDuplicationResponse = function(opt_data) {
|
|
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
};
|
|
goog.inherits(proto.bet.beteran.c2se.identity.CheckNicknameForDuplicationResponse, jspb.Message);
|
|
if (goog.DEBUG && !COMPILED) {
|
|
/**
|
|
* @public
|
|
* @override
|
|
*/
|
|
proto.bet.beteran.c2se.identity.CheckNicknameForDuplicationResponse.displayName = 'proto.bet.beteran.c2se.identity.CheckNicknameForDuplicationResponse';
|
|
}
|
|
/**
|
|
* 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.identity.CheckNicknameForDuplicationResponse.Result = function(opt_data) {
|
|
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
};
|
|
goog.inherits(proto.bet.beteran.c2se.identity.CheckNicknameForDuplicationResponse.Result, jspb.Message);
|
|
if (goog.DEBUG && !COMPILED) {
|
|
/**
|
|
* @public
|
|
* @override
|
|
*/
|
|
proto.bet.beteran.c2se.identity.CheckNicknameForDuplicationResponse.Result.displayName = 'proto.bet.beteran.c2se.identity.CheckNicknameForDuplicationResponse.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.identity.CaptchaRequest = function(opt_data) {
|
|
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
};
|
|
goog.inherits(proto.bet.beteran.c2se.identity.CaptchaRequest, jspb.Message);
|
|
if (goog.DEBUG && !COMPILED) {
|
|
/**
|
|
* @public
|
|
* @override
|
|
*/
|
|
proto.bet.beteran.c2se.identity.CaptchaRequest.displayName = 'proto.bet.beteran.c2se.identity.CaptchaRequest';
|
|
}
|
|
/**
|
|
* 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.identity.CaptchaResponse = function(opt_data) {
|
|
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
};
|
|
goog.inherits(proto.bet.beteran.c2se.identity.CaptchaResponse, jspb.Message);
|
|
if (goog.DEBUG && !COMPILED) {
|
|
/**
|
|
* @public
|
|
* @override
|
|
*/
|
|
proto.bet.beteran.c2se.identity.CaptchaResponse.displayName = 'proto.bet.beteran.c2se.identity.CaptchaResponse';
|
|
}
|
|
/**
|
|
* 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.identity.CaptchaResponse.Result = function(opt_data) {
|
|
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
};
|
|
goog.inherits(proto.bet.beteran.c2se.identity.CaptchaResponse.Result, jspb.Message);
|
|
if (goog.DEBUG && !COMPILED) {
|
|
/**
|
|
* @public
|
|
* @override
|
|
*/
|
|
proto.bet.beteran.c2se.identity.CaptchaResponse.Result.displayName = 'proto.bet.beteran.c2se.identity.CaptchaResponse.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.identity.SigninRequest = function(opt_data) {
|
|
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
};
|
|
goog.inherits(proto.bet.beteran.c2se.identity.SigninRequest, jspb.Message);
|
|
if (goog.DEBUG && !COMPILED) {
|
|
/**
|
|
* @public
|
|
* @override
|
|
*/
|
|
proto.bet.beteran.c2se.identity.SigninRequest.displayName = 'proto.bet.beteran.c2se.identity.SigninRequest';
|
|
}
|
|
/**
|
|
* 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.identity.SigninResponse = function(opt_data) {
|
|
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
};
|
|
goog.inherits(proto.bet.beteran.c2se.identity.SigninResponse, jspb.Message);
|
|
if (goog.DEBUG && !COMPILED) {
|
|
/**
|
|
* @public
|
|
* @override
|
|
*/
|
|
proto.bet.beteran.c2se.identity.SigninResponse.displayName = 'proto.bet.beteran.c2se.identity.SigninResponse';
|
|
}
|
|
/**
|
|
* 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.identity.SigninResponse.Result = function(opt_data) {
|
|
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
};
|
|
goog.inherits(proto.bet.beteran.c2se.identity.SigninResponse.Result, jspb.Message);
|
|
if (goog.DEBUG && !COMPILED) {
|
|
/**
|
|
* @public
|
|
* @override
|
|
*/
|
|
proto.bet.beteran.c2se.identity.SigninResponse.Result.displayName = 'proto.bet.beteran.c2se.identity.SigninResponse.Result';
|
|
}
|
|
|
|
|
|
|
|
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.identity.CheckUsernameForDuplicationRequest.prototype.toObject = function(opt_includeInstance) {
|
|
return proto.bet.beteran.c2se.identity.CheckUsernameForDuplicationRequest.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.identity.CheckUsernameForDuplicationRequest} msg The msg instance to transform.
|
|
* @return {!Object}
|
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
*/
|
|
proto.bet.beteran.c2se.identity.CheckUsernameForDuplicationRequest.toObject = function(includeInstance, msg) {
|
|
var f, obj = {
|
|
username: 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.identity.CheckUsernameForDuplicationRequest}
|
|
*/
|
|
proto.bet.beteran.c2se.identity.CheckUsernameForDuplicationRequest.deserializeBinary = function(bytes) {
|
|
var reader = new jspb.BinaryReader(bytes);
|
|
var msg = new proto.bet.beteran.c2se.identity.CheckUsernameForDuplicationRequest;
|
|
return proto.bet.beteran.c2se.identity.CheckUsernameForDuplicationRequest.deserializeBinaryFromReader(msg, reader);
|
|
};
|
|
|
|
|
|
/**
|
|
* Deserializes binary data (in protobuf wire format) from the
|
|
* given reader into the given message object.
|
|
* @param {!proto.bet.beteran.c2se.identity.CheckUsernameForDuplicationRequest} msg The message object to deserialize into.
|
|
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
* @return {!proto.bet.beteran.c2se.identity.CheckUsernameForDuplicationRequest}
|
|
*/
|
|
proto.bet.beteran.c2se.identity.CheckUsernameForDuplicationRequest.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.setUsername(value);
|
|
break;
|
|
default:
|
|
reader.skipField();
|
|
break;
|
|
}
|
|
}
|
|
return msg;
|
|
};
|
|
|
|
|
|
/**
|
|
* Serializes the message to binary data (in protobuf wire format).
|
|
* @return {!Uint8Array}
|
|
*/
|
|
proto.bet.beteran.c2se.identity.CheckUsernameForDuplicationRequest.prototype.serializeBinary = function() {
|
|
var writer = new jspb.BinaryWriter();
|
|
proto.bet.beteran.c2se.identity.CheckUsernameForDuplicationRequest.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.identity.CheckUsernameForDuplicationRequest} message
|
|
* @param {!jspb.BinaryWriter} writer
|
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
*/
|
|
proto.bet.beteran.c2se.identity.CheckUsernameForDuplicationRequest.serializeBinaryToWriter = function(message, writer) {
|
|
var f = undefined;
|
|
f = message.getUsername();
|
|
if (f.length > 0) {
|
|
writer.writeString(
|
|
1,
|
|
f
|
|
);
|
|
}
|
|
};
|
|
|
|
|
|
/**
|
|
* optional string username = 1;
|
|
* @return {string}
|
|
*/
|
|
proto.bet.beteran.c2se.identity.CheckUsernameForDuplicationRequest.prototype.getUsername = function() {
|
|
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
};
|
|
|
|
|
|
/**
|
|
* @param {string} value
|
|
* @return {!proto.bet.beteran.c2se.identity.CheckUsernameForDuplicationRequest} returns this
|
|
*/
|
|
proto.bet.beteran.c2se.identity.CheckUsernameForDuplicationRequest.prototype.setUsername = 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.identity.CheckUsernameForDuplicationResponse.prototype.toObject = function(opt_includeInstance) {
|
|
return proto.bet.beteran.c2se.identity.CheckUsernameForDuplicationResponse.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.identity.CheckUsernameForDuplicationResponse} msg The msg instance to transform.
|
|
* @return {!Object}
|
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
*/
|
|
proto.bet.beteran.c2se.identity.CheckUsernameForDuplicationResponse.toObject = function(includeInstance, msg) {
|
|
var f, obj = {
|
|
error: (f = msg.getError()) && protobuf_rpc_pb.Error.toObject(includeInstance, f),
|
|
result: (f = msg.getResult()) && proto.bet.beteran.c2se.identity.CheckUsernameForDuplicationResponse.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.identity.CheckUsernameForDuplicationResponse}
|
|
*/
|
|
proto.bet.beteran.c2se.identity.CheckUsernameForDuplicationResponse.deserializeBinary = function(bytes) {
|
|
var reader = new jspb.BinaryReader(bytes);
|
|
var msg = new proto.bet.beteran.c2se.identity.CheckUsernameForDuplicationResponse;
|
|
return proto.bet.beteran.c2se.identity.CheckUsernameForDuplicationResponse.deserializeBinaryFromReader(msg, reader);
|
|
};
|
|
|
|
|
|
/**
|
|
* Deserializes binary data (in protobuf wire format) from the
|
|
* given reader into the given message object.
|
|
* @param {!proto.bet.beteran.c2se.identity.CheckUsernameForDuplicationResponse} msg The message object to deserialize into.
|
|
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
* @return {!proto.bet.beteran.c2se.identity.CheckUsernameForDuplicationResponse}
|
|
*/
|
|
proto.bet.beteran.c2se.identity.CheckUsernameForDuplicationResponse.deserializeBinaryFromReader = function(msg, reader) {
|
|
while (reader.nextField()) {
|
|
if (reader.isEndGroup()) {
|
|
break;
|
|
}
|
|
var field = reader.getFieldNumber();
|
|
switch (field) {
|
|
case 1:
|
|
var value = new protobuf_rpc_pb.Error;
|
|
reader.readMessage(value,protobuf_rpc_pb.Error.deserializeBinaryFromReader);
|
|
msg.setError(value);
|
|
break;
|
|
case 2:
|
|
var value = new proto.bet.beteran.c2se.identity.CheckUsernameForDuplicationResponse.Result;
|
|
reader.readMessage(value,proto.bet.beteran.c2se.identity.CheckUsernameForDuplicationResponse.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.identity.CheckUsernameForDuplicationResponse.prototype.serializeBinary = function() {
|
|
var writer = new jspb.BinaryWriter();
|
|
proto.bet.beteran.c2se.identity.CheckUsernameForDuplicationResponse.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.identity.CheckUsernameForDuplicationResponse} message
|
|
* @param {!jspb.BinaryWriter} writer
|
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
*/
|
|
proto.bet.beteran.c2se.identity.CheckUsernameForDuplicationResponse.serializeBinaryToWriter = function(message, writer) {
|
|
var f = undefined;
|
|
f = message.getError();
|
|
if (f != null) {
|
|
writer.writeMessage(
|
|
1,
|
|
f,
|
|
protobuf_rpc_pb.Error.serializeBinaryToWriter
|
|
);
|
|
}
|
|
f = message.getResult();
|
|
if (f != null) {
|
|
writer.writeMessage(
|
|
2,
|
|
f,
|
|
proto.bet.beteran.c2se.identity.CheckUsernameForDuplicationResponse.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.identity.CheckUsernameForDuplicationResponse.Result.prototype.toObject = function(opt_includeInstance) {
|
|
return proto.bet.beteran.c2se.identity.CheckUsernameForDuplicationResponse.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.identity.CheckUsernameForDuplicationResponse.Result} msg The msg instance to transform.
|
|
* @return {!Object}
|
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
*/
|
|
proto.bet.beteran.c2se.identity.CheckUsernameForDuplicationResponse.Result.toObject = function(includeInstance, msg) {
|
|
var f, obj = {
|
|
duplicated: jspb.Message.getBooleanFieldWithDefault(msg, 1, false)
|
|
};
|
|
|
|
if (includeInstance) {
|
|
obj.$jspbMessageInstance = msg;
|
|
}
|
|
return obj;
|
|
};
|
|
}
|
|
|
|
|
|
/**
|
|
* Deserializes binary data (in protobuf wire format).
|
|
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
* @return {!proto.bet.beteran.c2se.identity.CheckUsernameForDuplicationResponse.Result}
|
|
*/
|
|
proto.bet.beteran.c2se.identity.CheckUsernameForDuplicationResponse.Result.deserializeBinary = function(bytes) {
|
|
var reader = new jspb.BinaryReader(bytes);
|
|
var msg = new proto.bet.beteran.c2se.identity.CheckUsernameForDuplicationResponse.Result;
|
|
return proto.bet.beteran.c2se.identity.CheckUsernameForDuplicationResponse.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.identity.CheckUsernameForDuplicationResponse.Result} msg The message object to deserialize into.
|
|
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
* @return {!proto.bet.beteran.c2se.identity.CheckUsernameForDuplicationResponse.Result}
|
|
*/
|
|
proto.bet.beteran.c2se.identity.CheckUsernameForDuplicationResponse.Result.deserializeBinaryFromReader = function(msg, reader) {
|
|
while (reader.nextField()) {
|
|
if (reader.isEndGroup()) {
|
|
break;
|
|
}
|
|
var field = reader.getFieldNumber();
|
|
switch (field) {
|
|
case 1:
|
|
var value = /** @type {boolean} */ (reader.readBool());
|
|
msg.setDuplicated(value);
|
|
break;
|
|
default:
|
|
reader.skipField();
|
|
break;
|
|
}
|
|
}
|
|
return msg;
|
|
};
|
|
|
|
|
|
/**
|
|
* Serializes the message to binary data (in protobuf wire format).
|
|
* @return {!Uint8Array}
|
|
*/
|
|
proto.bet.beteran.c2se.identity.CheckUsernameForDuplicationResponse.Result.prototype.serializeBinary = function() {
|
|
var writer = new jspb.BinaryWriter();
|
|
proto.bet.beteran.c2se.identity.CheckUsernameForDuplicationResponse.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.identity.CheckUsernameForDuplicationResponse.Result} message
|
|
* @param {!jspb.BinaryWriter} writer
|
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
*/
|
|
proto.bet.beteran.c2se.identity.CheckUsernameForDuplicationResponse.Result.serializeBinaryToWriter = function(message, writer) {
|
|
var f = undefined;
|
|
f = message.getDuplicated();
|
|
if (f) {
|
|
writer.writeBool(
|
|
1,
|
|
f
|
|
);
|
|
}
|
|
};
|
|
|
|
|
|
/**
|
|
* optional bool duplicated = 1;
|
|
* @return {boolean}
|
|
*/
|
|
proto.bet.beteran.c2se.identity.CheckUsernameForDuplicationResponse.Result.prototype.getDuplicated = function() {
|
|
return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 1, false));
|
|
};
|
|
|
|
|
|
/**
|
|
* @param {boolean} value
|
|
* @return {!proto.bet.beteran.c2se.identity.CheckUsernameForDuplicationResponse.Result} returns this
|
|
*/
|
|
proto.bet.beteran.c2se.identity.CheckUsernameForDuplicationResponse.Result.prototype.setDuplicated = function(value) {
|
|
return jspb.Message.setProto3BooleanField(this, 1, value);
|
|
};
|
|
|
|
|
|
/**
|
|
* optional bet.protobuf.rpc.Error error = 1;
|
|
* @return {?proto.bet.protobuf.rpc.Error}
|
|
*/
|
|
proto.bet.beteran.c2se.identity.CheckUsernameForDuplicationResponse.prototype.getError = function() {
|
|
return /** @type{?proto.bet.protobuf.rpc.Error} */ (
|
|
jspb.Message.getWrapperField(this, protobuf_rpc_pb.Error, 1));
|
|
};
|
|
|
|
|
|
/**
|
|
* @param {?proto.bet.protobuf.rpc.Error|undefined} value
|
|
* @return {!proto.bet.beteran.c2se.identity.CheckUsernameForDuplicationResponse} returns this
|
|
*/
|
|
proto.bet.beteran.c2se.identity.CheckUsernameForDuplicationResponse.prototype.setError = function(value) {
|
|
return jspb.Message.setWrapperField(this, 1, value);
|
|
};
|
|
|
|
|
|
/**
|
|
* Clears the message field making it undefined.
|
|
* @return {!proto.bet.beteran.c2se.identity.CheckUsernameForDuplicationResponse} returns this
|
|
*/
|
|
proto.bet.beteran.c2se.identity.CheckUsernameForDuplicationResponse.prototype.clearError = function() {
|
|
return this.setError(undefined);
|
|
};
|
|
|
|
|
|
/**
|
|
* Returns whether this field is set.
|
|
* @return {boolean}
|
|
*/
|
|
proto.bet.beteran.c2se.identity.CheckUsernameForDuplicationResponse.prototype.hasError = function() {
|
|
return jspb.Message.getField(this, 1) != null;
|
|
};
|
|
|
|
|
|
/**
|
|
* optional Result result = 2;
|
|
* @return {?proto.bet.beteran.c2se.identity.CheckUsernameForDuplicationResponse.Result}
|
|
*/
|
|
proto.bet.beteran.c2se.identity.CheckUsernameForDuplicationResponse.prototype.getResult = function() {
|
|
return /** @type{?proto.bet.beteran.c2se.identity.CheckUsernameForDuplicationResponse.Result} */ (
|
|
jspb.Message.getWrapperField(this, proto.bet.beteran.c2se.identity.CheckUsernameForDuplicationResponse.Result, 2));
|
|
};
|
|
|
|
|
|
/**
|
|
* @param {?proto.bet.beteran.c2se.identity.CheckUsernameForDuplicationResponse.Result|undefined} value
|
|
* @return {!proto.bet.beteran.c2se.identity.CheckUsernameForDuplicationResponse} returns this
|
|
*/
|
|
proto.bet.beteran.c2se.identity.CheckUsernameForDuplicationResponse.prototype.setResult = function(value) {
|
|
return jspb.Message.setWrapperField(this, 2, value);
|
|
};
|
|
|
|
|
|
/**
|
|
* Clears the message field making it undefined.
|
|
* @return {!proto.bet.beteran.c2se.identity.CheckUsernameForDuplicationResponse} returns this
|
|
*/
|
|
proto.bet.beteran.c2se.identity.CheckUsernameForDuplicationResponse.prototype.clearResult = function() {
|
|
return this.setResult(undefined);
|
|
};
|
|
|
|
|
|
/**
|
|
* Returns whether this field is set.
|
|
* @return {boolean}
|
|
*/
|
|
proto.bet.beteran.c2se.identity.CheckUsernameForDuplicationResponse.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.identity.CheckNicknameForDuplicationRequest.prototype.toObject = function(opt_includeInstance) {
|
|
return proto.bet.beteran.c2se.identity.CheckNicknameForDuplicationRequest.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.identity.CheckNicknameForDuplicationRequest} msg The msg instance to transform.
|
|
* @return {!Object}
|
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
*/
|
|
proto.bet.beteran.c2se.identity.CheckNicknameForDuplicationRequest.toObject = function(includeInstance, msg) {
|
|
var f, obj = {
|
|
nickname: 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.identity.CheckNicknameForDuplicationRequest}
|
|
*/
|
|
proto.bet.beteran.c2se.identity.CheckNicknameForDuplicationRequest.deserializeBinary = function(bytes) {
|
|
var reader = new jspb.BinaryReader(bytes);
|
|
var msg = new proto.bet.beteran.c2se.identity.CheckNicknameForDuplicationRequest;
|
|
return proto.bet.beteran.c2se.identity.CheckNicknameForDuplicationRequest.deserializeBinaryFromReader(msg, reader);
|
|
};
|
|
|
|
|
|
/**
|
|
* Deserializes binary data (in protobuf wire format) from the
|
|
* given reader into the given message object.
|
|
* @param {!proto.bet.beteran.c2se.identity.CheckNicknameForDuplicationRequest} msg The message object to deserialize into.
|
|
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
* @return {!proto.bet.beteran.c2se.identity.CheckNicknameForDuplicationRequest}
|
|
*/
|
|
proto.bet.beteran.c2se.identity.CheckNicknameForDuplicationRequest.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.setNickname(value);
|
|
break;
|
|
default:
|
|
reader.skipField();
|
|
break;
|
|
}
|
|
}
|
|
return msg;
|
|
};
|
|
|
|
|
|
/**
|
|
* Serializes the message to binary data (in protobuf wire format).
|
|
* @return {!Uint8Array}
|
|
*/
|
|
proto.bet.beteran.c2se.identity.CheckNicknameForDuplicationRequest.prototype.serializeBinary = function() {
|
|
var writer = new jspb.BinaryWriter();
|
|
proto.bet.beteran.c2se.identity.CheckNicknameForDuplicationRequest.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.identity.CheckNicknameForDuplicationRequest} message
|
|
* @param {!jspb.BinaryWriter} writer
|
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
*/
|
|
proto.bet.beteran.c2se.identity.CheckNicknameForDuplicationRequest.serializeBinaryToWriter = function(message, writer) {
|
|
var f = undefined;
|
|
f = message.getNickname();
|
|
if (f.length > 0) {
|
|
writer.writeString(
|
|
1,
|
|
f
|
|
);
|
|
}
|
|
};
|
|
|
|
|
|
/**
|
|
* optional string nickname = 1;
|
|
* @return {string}
|
|
*/
|
|
proto.bet.beteran.c2se.identity.CheckNicknameForDuplicationRequest.prototype.getNickname = function() {
|
|
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
};
|
|
|
|
|
|
/**
|
|
* @param {string} value
|
|
* @return {!proto.bet.beteran.c2se.identity.CheckNicknameForDuplicationRequest} returns this
|
|
*/
|
|
proto.bet.beteran.c2se.identity.CheckNicknameForDuplicationRequest.prototype.setNickname = 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.identity.CheckNicknameForDuplicationResponse.prototype.toObject = function(opt_includeInstance) {
|
|
return proto.bet.beteran.c2se.identity.CheckNicknameForDuplicationResponse.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.identity.CheckNicknameForDuplicationResponse} msg The msg instance to transform.
|
|
* @return {!Object}
|
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
*/
|
|
proto.bet.beteran.c2se.identity.CheckNicknameForDuplicationResponse.toObject = function(includeInstance, msg) {
|
|
var f, obj = {
|
|
error: (f = msg.getError()) && protobuf_rpc_pb.Error.toObject(includeInstance, f),
|
|
result: (f = msg.getResult()) && proto.bet.beteran.c2se.identity.CheckNicknameForDuplicationResponse.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.identity.CheckNicknameForDuplicationResponse}
|
|
*/
|
|
proto.bet.beteran.c2se.identity.CheckNicknameForDuplicationResponse.deserializeBinary = function(bytes) {
|
|
var reader = new jspb.BinaryReader(bytes);
|
|
var msg = new proto.bet.beteran.c2se.identity.CheckNicknameForDuplicationResponse;
|
|
return proto.bet.beteran.c2se.identity.CheckNicknameForDuplicationResponse.deserializeBinaryFromReader(msg, reader);
|
|
};
|
|
|
|
|
|
/**
|
|
* Deserializes binary data (in protobuf wire format) from the
|
|
* given reader into the given message object.
|
|
* @param {!proto.bet.beteran.c2se.identity.CheckNicknameForDuplicationResponse} msg The message object to deserialize into.
|
|
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
* @return {!proto.bet.beteran.c2se.identity.CheckNicknameForDuplicationResponse}
|
|
*/
|
|
proto.bet.beteran.c2se.identity.CheckNicknameForDuplicationResponse.deserializeBinaryFromReader = function(msg, reader) {
|
|
while (reader.nextField()) {
|
|
if (reader.isEndGroup()) {
|
|
break;
|
|
}
|
|
var field = reader.getFieldNumber();
|
|
switch (field) {
|
|
case 1:
|
|
var value = new protobuf_rpc_pb.Error;
|
|
reader.readMessage(value,protobuf_rpc_pb.Error.deserializeBinaryFromReader);
|
|
msg.setError(value);
|
|
break;
|
|
case 2:
|
|
var value = new proto.bet.beteran.c2se.identity.CheckNicknameForDuplicationResponse.Result;
|
|
reader.readMessage(value,proto.bet.beteran.c2se.identity.CheckNicknameForDuplicationResponse.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.identity.CheckNicknameForDuplicationResponse.prototype.serializeBinary = function() {
|
|
var writer = new jspb.BinaryWriter();
|
|
proto.bet.beteran.c2se.identity.CheckNicknameForDuplicationResponse.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.identity.CheckNicknameForDuplicationResponse} message
|
|
* @param {!jspb.BinaryWriter} writer
|
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
*/
|
|
proto.bet.beteran.c2se.identity.CheckNicknameForDuplicationResponse.serializeBinaryToWriter = function(message, writer) {
|
|
var f = undefined;
|
|
f = message.getError();
|
|
if (f != null) {
|
|
writer.writeMessage(
|
|
1,
|
|
f,
|
|
protobuf_rpc_pb.Error.serializeBinaryToWriter
|
|
);
|
|
}
|
|
f = message.getResult();
|
|
if (f != null) {
|
|
writer.writeMessage(
|
|
2,
|
|
f,
|
|
proto.bet.beteran.c2se.identity.CheckNicknameForDuplicationResponse.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.identity.CheckNicknameForDuplicationResponse.Result.prototype.toObject = function(opt_includeInstance) {
|
|
return proto.bet.beteran.c2se.identity.CheckNicknameForDuplicationResponse.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.identity.CheckNicknameForDuplicationResponse.Result} msg The msg instance to transform.
|
|
* @return {!Object}
|
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
*/
|
|
proto.bet.beteran.c2se.identity.CheckNicknameForDuplicationResponse.Result.toObject = function(includeInstance, msg) {
|
|
var f, obj = {
|
|
duplicated: jspb.Message.getBooleanFieldWithDefault(msg, 1, false)
|
|
};
|
|
|
|
if (includeInstance) {
|
|
obj.$jspbMessageInstance = msg;
|
|
}
|
|
return obj;
|
|
};
|
|
}
|
|
|
|
|
|
/**
|
|
* Deserializes binary data (in protobuf wire format).
|
|
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
* @return {!proto.bet.beteran.c2se.identity.CheckNicknameForDuplicationResponse.Result}
|
|
*/
|
|
proto.bet.beteran.c2se.identity.CheckNicknameForDuplicationResponse.Result.deserializeBinary = function(bytes) {
|
|
var reader = new jspb.BinaryReader(bytes);
|
|
var msg = new proto.bet.beteran.c2se.identity.CheckNicknameForDuplicationResponse.Result;
|
|
return proto.bet.beteran.c2se.identity.CheckNicknameForDuplicationResponse.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.identity.CheckNicknameForDuplicationResponse.Result} msg The message object to deserialize into.
|
|
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
* @return {!proto.bet.beteran.c2se.identity.CheckNicknameForDuplicationResponse.Result}
|
|
*/
|
|
proto.bet.beteran.c2se.identity.CheckNicknameForDuplicationResponse.Result.deserializeBinaryFromReader = function(msg, reader) {
|
|
while (reader.nextField()) {
|
|
if (reader.isEndGroup()) {
|
|
break;
|
|
}
|
|
var field = reader.getFieldNumber();
|
|
switch (field) {
|
|
case 1:
|
|
var value = /** @type {boolean} */ (reader.readBool());
|
|
msg.setDuplicated(value);
|
|
break;
|
|
default:
|
|
reader.skipField();
|
|
break;
|
|
}
|
|
}
|
|
return msg;
|
|
};
|
|
|
|
|
|
/**
|
|
* Serializes the message to binary data (in protobuf wire format).
|
|
* @return {!Uint8Array}
|
|
*/
|
|
proto.bet.beteran.c2se.identity.CheckNicknameForDuplicationResponse.Result.prototype.serializeBinary = function() {
|
|
var writer = new jspb.BinaryWriter();
|
|
proto.bet.beteran.c2se.identity.CheckNicknameForDuplicationResponse.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.identity.CheckNicknameForDuplicationResponse.Result} message
|
|
* @param {!jspb.BinaryWriter} writer
|
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
*/
|
|
proto.bet.beteran.c2se.identity.CheckNicknameForDuplicationResponse.Result.serializeBinaryToWriter = function(message, writer) {
|
|
var f = undefined;
|
|
f = message.getDuplicated();
|
|
if (f) {
|
|
writer.writeBool(
|
|
1,
|
|
f
|
|
);
|
|
}
|
|
};
|
|
|
|
|
|
/**
|
|
* optional bool duplicated = 1;
|
|
* @return {boolean}
|
|
*/
|
|
proto.bet.beteran.c2se.identity.CheckNicknameForDuplicationResponse.Result.prototype.getDuplicated = function() {
|
|
return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 1, false));
|
|
};
|
|
|
|
|
|
/**
|
|
* @param {boolean} value
|
|
* @return {!proto.bet.beteran.c2se.identity.CheckNicknameForDuplicationResponse.Result} returns this
|
|
*/
|
|
proto.bet.beteran.c2se.identity.CheckNicknameForDuplicationResponse.Result.prototype.setDuplicated = function(value) {
|
|
return jspb.Message.setProto3BooleanField(this, 1, value);
|
|
};
|
|
|
|
|
|
/**
|
|
* optional bet.protobuf.rpc.Error error = 1;
|
|
* @return {?proto.bet.protobuf.rpc.Error}
|
|
*/
|
|
proto.bet.beteran.c2se.identity.CheckNicknameForDuplicationResponse.prototype.getError = function() {
|
|
return /** @type{?proto.bet.protobuf.rpc.Error} */ (
|
|
jspb.Message.getWrapperField(this, protobuf_rpc_pb.Error, 1));
|
|
};
|
|
|
|
|
|
/**
|
|
* @param {?proto.bet.protobuf.rpc.Error|undefined} value
|
|
* @return {!proto.bet.beteran.c2se.identity.CheckNicknameForDuplicationResponse} returns this
|
|
*/
|
|
proto.bet.beteran.c2se.identity.CheckNicknameForDuplicationResponse.prototype.setError = function(value) {
|
|
return jspb.Message.setWrapperField(this, 1, value);
|
|
};
|
|
|
|
|
|
/**
|
|
* Clears the message field making it undefined.
|
|
* @return {!proto.bet.beteran.c2se.identity.CheckNicknameForDuplicationResponse} returns this
|
|
*/
|
|
proto.bet.beteran.c2se.identity.CheckNicknameForDuplicationResponse.prototype.clearError = function() {
|
|
return this.setError(undefined);
|
|
};
|
|
|
|
|
|
/**
|
|
* Returns whether this field is set.
|
|
* @return {boolean}
|
|
*/
|
|
proto.bet.beteran.c2se.identity.CheckNicknameForDuplicationResponse.prototype.hasError = function() {
|
|
return jspb.Message.getField(this, 1) != null;
|
|
};
|
|
|
|
|
|
/**
|
|
* optional Result result = 2;
|
|
* @return {?proto.bet.beteran.c2se.identity.CheckNicknameForDuplicationResponse.Result}
|
|
*/
|
|
proto.bet.beteran.c2se.identity.CheckNicknameForDuplicationResponse.prototype.getResult = function() {
|
|
return /** @type{?proto.bet.beteran.c2se.identity.CheckNicknameForDuplicationResponse.Result} */ (
|
|
jspb.Message.getWrapperField(this, proto.bet.beteran.c2se.identity.CheckNicknameForDuplicationResponse.Result, 2));
|
|
};
|
|
|
|
|
|
/**
|
|
* @param {?proto.bet.beteran.c2se.identity.CheckNicknameForDuplicationResponse.Result|undefined} value
|
|
* @return {!proto.bet.beteran.c2se.identity.CheckNicknameForDuplicationResponse} returns this
|
|
*/
|
|
proto.bet.beteran.c2se.identity.CheckNicknameForDuplicationResponse.prototype.setResult = function(value) {
|
|
return jspb.Message.setWrapperField(this, 2, value);
|
|
};
|
|
|
|
|
|
/**
|
|
* Clears the message field making it undefined.
|
|
* @return {!proto.bet.beteran.c2se.identity.CheckNicknameForDuplicationResponse} returns this
|
|
*/
|
|
proto.bet.beteran.c2se.identity.CheckNicknameForDuplicationResponse.prototype.clearResult = function() {
|
|
return this.setResult(undefined);
|
|
};
|
|
|
|
|
|
/**
|
|
* Returns whether this field is set.
|
|
* @return {boolean}
|
|
*/
|
|
proto.bet.beteran.c2se.identity.CheckNicknameForDuplicationResponse.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.identity.CaptchaRequest.prototype.toObject = function(opt_includeInstance) {
|
|
return proto.bet.beteran.c2se.identity.CaptchaRequest.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.identity.CaptchaRequest} msg The msg instance to transform.
|
|
* @return {!Object}
|
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
*/
|
|
proto.bet.beteran.c2se.identity.CaptchaRequest.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.identity.CaptchaRequest}
|
|
*/
|
|
proto.bet.beteran.c2se.identity.CaptchaRequest.deserializeBinary = function(bytes) {
|
|
var reader = new jspb.BinaryReader(bytes);
|
|
var msg = new proto.bet.beteran.c2se.identity.CaptchaRequest;
|
|
return proto.bet.beteran.c2se.identity.CaptchaRequest.deserializeBinaryFromReader(msg, reader);
|
|
};
|
|
|
|
|
|
/**
|
|
* Deserializes binary data (in protobuf wire format) from the
|
|
* given reader into the given message object.
|
|
* @param {!proto.bet.beteran.c2se.identity.CaptchaRequest} msg The message object to deserialize into.
|
|
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
* @return {!proto.bet.beteran.c2se.identity.CaptchaRequest}
|
|
*/
|
|
proto.bet.beteran.c2se.identity.CaptchaRequest.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.identity.CaptchaRequest.prototype.serializeBinary = function() {
|
|
var writer = new jspb.BinaryWriter();
|
|
proto.bet.beteran.c2se.identity.CaptchaRequest.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.identity.CaptchaRequest} message
|
|
* @param {!jspb.BinaryWriter} writer
|
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
*/
|
|
proto.bet.beteran.c2se.identity.CaptchaRequest.serializeBinaryToWriter = function(message, writer) {
|
|
var f = undefined;
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
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.identity.CaptchaResponse.prototype.toObject = function(opt_includeInstance) {
|
|
return proto.bet.beteran.c2se.identity.CaptchaResponse.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.identity.CaptchaResponse} msg The msg instance to transform.
|
|
* @return {!Object}
|
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
*/
|
|
proto.bet.beteran.c2se.identity.CaptchaResponse.toObject = function(includeInstance, msg) {
|
|
var f, obj = {
|
|
error: (f = msg.getError()) && protobuf_rpc_pb.Error.toObject(includeInstance, f),
|
|
result: (f = msg.getResult()) && proto.bet.beteran.c2se.identity.CaptchaResponse.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.identity.CaptchaResponse}
|
|
*/
|
|
proto.bet.beteran.c2se.identity.CaptchaResponse.deserializeBinary = function(bytes) {
|
|
var reader = new jspb.BinaryReader(bytes);
|
|
var msg = new proto.bet.beteran.c2se.identity.CaptchaResponse;
|
|
return proto.bet.beteran.c2se.identity.CaptchaResponse.deserializeBinaryFromReader(msg, reader);
|
|
};
|
|
|
|
|
|
/**
|
|
* Deserializes binary data (in protobuf wire format) from the
|
|
* given reader into the given message object.
|
|
* @param {!proto.bet.beteran.c2se.identity.CaptchaResponse} msg The message object to deserialize into.
|
|
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
* @return {!proto.bet.beteran.c2se.identity.CaptchaResponse}
|
|
*/
|
|
proto.bet.beteran.c2se.identity.CaptchaResponse.deserializeBinaryFromReader = function(msg, reader) {
|
|
while (reader.nextField()) {
|
|
if (reader.isEndGroup()) {
|
|
break;
|
|
}
|
|
var field = reader.getFieldNumber();
|
|
switch (field) {
|
|
case 1:
|
|
var value = new protobuf_rpc_pb.Error;
|
|
reader.readMessage(value,protobuf_rpc_pb.Error.deserializeBinaryFromReader);
|
|
msg.setError(value);
|
|
break;
|
|
case 2:
|
|
var value = new proto.bet.beteran.c2se.identity.CaptchaResponse.Result;
|
|
reader.readMessage(value,proto.bet.beteran.c2se.identity.CaptchaResponse.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.identity.CaptchaResponse.prototype.serializeBinary = function() {
|
|
var writer = new jspb.BinaryWriter();
|
|
proto.bet.beteran.c2se.identity.CaptchaResponse.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.identity.CaptchaResponse} message
|
|
* @param {!jspb.BinaryWriter} writer
|
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
*/
|
|
proto.bet.beteran.c2se.identity.CaptchaResponse.serializeBinaryToWriter = function(message, writer) {
|
|
var f = undefined;
|
|
f = message.getError();
|
|
if (f != null) {
|
|
writer.writeMessage(
|
|
1,
|
|
f,
|
|
protobuf_rpc_pb.Error.serializeBinaryToWriter
|
|
);
|
|
}
|
|
f = message.getResult();
|
|
if (f != null) {
|
|
writer.writeMessage(
|
|
2,
|
|
f,
|
|
proto.bet.beteran.c2se.identity.CaptchaResponse.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.identity.CaptchaResponse.Result.prototype.toObject = function(opt_includeInstance) {
|
|
return proto.bet.beteran.c2se.identity.CaptchaResponse.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.identity.CaptchaResponse.Result} msg The msg instance to transform.
|
|
* @return {!Object}
|
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
*/
|
|
proto.bet.beteran.c2se.identity.CaptchaResponse.Result.toObject = function(includeInstance, msg) {
|
|
var f, obj = {
|
|
securityCodeHash: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
image: jspb.Message.getFieldWithDefault(msg, 2, "")
|
|
};
|
|
|
|
if (includeInstance) {
|
|
obj.$jspbMessageInstance = msg;
|
|
}
|
|
return obj;
|
|
};
|
|
}
|
|
|
|
|
|
/**
|
|
* Deserializes binary data (in protobuf wire format).
|
|
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
* @return {!proto.bet.beteran.c2se.identity.CaptchaResponse.Result}
|
|
*/
|
|
proto.bet.beteran.c2se.identity.CaptchaResponse.Result.deserializeBinary = function(bytes) {
|
|
var reader = new jspb.BinaryReader(bytes);
|
|
var msg = new proto.bet.beteran.c2se.identity.CaptchaResponse.Result;
|
|
return proto.bet.beteran.c2se.identity.CaptchaResponse.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.identity.CaptchaResponse.Result} msg The message object to deserialize into.
|
|
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
* @return {!proto.bet.beteran.c2se.identity.CaptchaResponse.Result}
|
|
*/
|
|
proto.bet.beteran.c2se.identity.CaptchaResponse.Result.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.setSecurityCodeHash(value);
|
|
break;
|
|
case 2:
|
|
var value = /** @type {string} */ (reader.readString());
|
|
msg.setImage(value);
|
|
break;
|
|
default:
|
|
reader.skipField();
|
|
break;
|
|
}
|
|
}
|
|
return msg;
|
|
};
|
|
|
|
|
|
/**
|
|
* Serializes the message to binary data (in protobuf wire format).
|
|
* @return {!Uint8Array}
|
|
*/
|
|
proto.bet.beteran.c2se.identity.CaptchaResponse.Result.prototype.serializeBinary = function() {
|
|
var writer = new jspb.BinaryWriter();
|
|
proto.bet.beteran.c2se.identity.CaptchaResponse.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.identity.CaptchaResponse.Result} message
|
|
* @param {!jspb.BinaryWriter} writer
|
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
*/
|
|
proto.bet.beteran.c2se.identity.CaptchaResponse.Result.serializeBinaryToWriter = function(message, writer) {
|
|
var f = undefined;
|
|
f = message.getSecurityCodeHash();
|
|
if (f.length > 0) {
|
|
writer.writeString(
|
|
1,
|
|
f
|
|
);
|
|
}
|
|
f = message.getImage();
|
|
if (f.length > 0) {
|
|
writer.writeString(
|
|
2,
|
|
f
|
|
);
|
|
}
|
|
};
|
|
|
|
|
|
/**
|
|
* optional string security_code_hash = 1;
|
|
* @return {string}
|
|
*/
|
|
proto.bet.beteran.c2se.identity.CaptchaResponse.Result.prototype.getSecurityCodeHash = function() {
|
|
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
};
|
|
|
|
|
|
/**
|
|
* @param {string} value
|
|
* @return {!proto.bet.beteran.c2se.identity.CaptchaResponse.Result} returns this
|
|
*/
|
|
proto.bet.beteran.c2se.identity.CaptchaResponse.Result.prototype.setSecurityCodeHash = function(value) {
|
|
return jspb.Message.setProto3StringField(this, 1, value);
|
|
};
|
|
|
|
|
|
/**
|
|
* optional string image = 2;
|
|
* @return {string}
|
|
*/
|
|
proto.bet.beteran.c2se.identity.CaptchaResponse.Result.prototype.getImage = function() {
|
|
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
};
|
|
|
|
|
|
/**
|
|
* @param {string} value
|
|
* @return {!proto.bet.beteran.c2se.identity.CaptchaResponse.Result} returns this
|
|
*/
|
|
proto.bet.beteran.c2se.identity.CaptchaResponse.Result.prototype.setImage = function(value) {
|
|
return jspb.Message.setProto3StringField(this, 2, value);
|
|
};
|
|
|
|
|
|
/**
|
|
* optional bet.protobuf.rpc.Error error = 1;
|
|
* @return {?proto.bet.protobuf.rpc.Error}
|
|
*/
|
|
proto.bet.beteran.c2se.identity.CaptchaResponse.prototype.getError = function() {
|
|
return /** @type{?proto.bet.protobuf.rpc.Error} */ (
|
|
jspb.Message.getWrapperField(this, protobuf_rpc_pb.Error, 1));
|
|
};
|
|
|
|
|
|
/**
|
|
* @param {?proto.bet.protobuf.rpc.Error|undefined} value
|
|
* @return {!proto.bet.beteran.c2se.identity.CaptchaResponse} returns this
|
|
*/
|
|
proto.bet.beteran.c2se.identity.CaptchaResponse.prototype.setError = function(value) {
|
|
return jspb.Message.setWrapperField(this, 1, value);
|
|
};
|
|
|
|
|
|
/**
|
|
* Clears the message field making it undefined.
|
|
* @return {!proto.bet.beteran.c2se.identity.CaptchaResponse} returns this
|
|
*/
|
|
proto.bet.beteran.c2se.identity.CaptchaResponse.prototype.clearError = function() {
|
|
return this.setError(undefined);
|
|
};
|
|
|
|
|
|
/**
|
|
* Returns whether this field is set.
|
|
* @return {boolean}
|
|
*/
|
|
proto.bet.beteran.c2se.identity.CaptchaResponse.prototype.hasError = function() {
|
|
return jspb.Message.getField(this, 1) != null;
|
|
};
|
|
|
|
|
|
/**
|
|
* optional Result result = 2;
|
|
* @return {?proto.bet.beteran.c2se.identity.CaptchaResponse.Result}
|
|
*/
|
|
proto.bet.beteran.c2se.identity.CaptchaResponse.prototype.getResult = function() {
|
|
return /** @type{?proto.bet.beteran.c2se.identity.CaptchaResponse.Result} */ (
|
|
jspb.Message.getWrapperField(this, proto.bet.beteran.c2se.identity.CaptchaResponse.Result, 2));
|
|
};
|
|
|
|
|
|
/**
|
|
* @param {?proto.bet.beteran.c2se.identity.CaptchaResponse.Result|undefined} value
|
|
* @return {!proto.bet.beteran.c2se.identity.CaptchaResponse} returns this
|
|
*/
|
|
proto.bet.beteran.c2se.identity.CaptchaResponse.prototype.setResult = function(value) {
|
|
return jspb.Message.setWrapperField(this, 2, value);
|
|
};
|
|
|
|
|
|
/**
|
|
* Clears the message field making it undefined.
|
|
* @return {!proto.bet.beteran.c2se.identity.CaptchaResponse} returns this
|
|
*/
|
|
proto.bet.beteran.c2se.identity.CaptchaResponse.prototype.clearResult = function() {
|
|
return this.setResult(undefined);
|
|
};
|
|
|
|
|
|
/**
|
|
* Returns whether this field is set.
|
|
* @return {boolean}
|
|
*/
|
|
proto.bet.beteran.c2se.identity.CaptchaResponse.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.identity.SigninRequest.prototype.toObject = function(opt_includeInstance) {
|
|
return proto.bet.beteran.c2se.identity.SigninRequest.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.identity.SigninRequest} msg The msg instance to transform.
|
|
* @return {!Object}
|
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
*/
|
|
proto.bet.beteran.c2se.identity.SigninRequest.toObject = function(includeInstance, msg) {
|
|
var f, obj = {
|
|
securityCodeHash: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
securityCode: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
username: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
|
password: jspb.Message.getFieldWithDefault(msg, 4, "")
|
|
};
|
|
|
|
if (includeInstance) {
|
|
obj.$jspbMessageInstance = msg;
|
|
}
|
|
return obj;
|
|
};
|
|
}
|
|
|
|
|
|
/**
|
|
* Deserializes binary data (in protobuf wire format).
|
|
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
* @return {!proto.bet.beteran.c2se.identity.SigninRequest}
|
|
*/
|
|
proto.bet.beteran.c2se.identity.SigninRequest.deserializeBinary = function(bytes) {
|
|
var reader = new jspb.BinaryReader(bytes);
|
|
var msg = new proto.bet.beteran.c2se.identity.SigninRequest;
|
|
return proto.bet.beteran.c2se.identity.SigninRequest.deserializeBinaryFromReader(msg, reader);
|
|
};
|
|
|
|
|
|
/**
|
|
* Deserializes binary data (in protobuf wire format) from the
|
|
* given reader into the given message object.
|
|
* @param {!proto.bet.beteran.c2se.identity.SigninRequest} msg The message object to deserialize into.
|
|
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
* @return {!proto.bet.beteran.c2se.identity.SigninRequest}
|
|
*/
|
|
proto.bet.beteran.c2se.identity.SigninRequest.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.setSecurityCodeHash(value);
|
|
break;
|
|
case 2:
|
|
var value = /** @type {string} */ (reader.readString());
|
|
msg.setSecurityCode(value);
|
|
break;
|
|
case 3:
|
|
var value = /** @type {string} */ (reader.readString());
|
|
msg.setUsername(value);
|
|
break;
|
|
case 4:
|
|
var value = /** @type {string} */ (reader.readString());
|
|
msg.setPassword(value);
|
|
break;
|
|
default:
|
|
reader.skipField();
|
|
break;
|
|
}
|
|
}
|
|
return msg;
|
|
};
|
|
|
|
|
|
/**
|
|
* Serializes the message to binary data (in protobuf wire format).
|
|
* @return {!Uint8Array}
|
|
*/
|
|
proto.bet.beteran.c2se.identity.SigninRequest.prototype.serializeBinary = function() {
|
|
var writer = new jspb.BinaryWriter();
|
|
proto.bet.beteran.c2se.identity.SigninRequest.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.identity.SigninRequest} message
|
|
* @param {!jspb.BinaryWriter} writer
|
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
*/
|
|
proto.bet.beteran.c2se.identity.SigninRequest.serializeBinaryToWriter = function(message, writer) {
|
|
var f = undefined;
|
|
f = message.getSecurityCodeHash();
|
|
if (f.length > 0) {
|
|
writer.writeString(
|
|
1,
|
|
f
|
|
);
|
|
}
|
|
f = message.getSecurityCode();
|
|
if (f.length > 0) {
|
|
writer.writeString(
|
|
2,
|
|
f
|
|
);
|
|
}
|
|
f = message.getUsername();
|
|
if (f.length > 0) {
|
|
writer.writeString(
|
|
3,
|
|
f
|
|
);
|
|
}
|
|
f = message.getPassword();
|
|
if (f.length > 0) {
|
|
writer.writeString(
|
|
4,
|
|
f
|
|
);
|
|
}
|
|
};
|
|
|
|
|
|
/**
|
|
* optional string security_code_hash = 1;
|
|
* @return {string}
|
|
*/
|
|
proto.bet.beteran.c2se.identity.SigninRequest.prototype.getSecurityCodeHash = function() {
|
|
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
};
|
|
|
|
|
|
/**
|
|
* @param {string} value
|
|
* @return {!proto.bet.beteran.c2se.identity.SigninRequest} returns this
|
|
*/
|
|
proto.bet.beteran.c2se.identity.SigninRequest.prototype.setSecurityCodeHash = function(value) {
|
|
return jspb.Message.setProto3StringField(this, 1, value);
|
|
};
|
|
|
|
|
|
/**
|
|
* optional string security_code = 2;
|
|
* @return {string}
|
|
*/
|
|
proto.bet.beteran.c2se.identity.SigninRequest.prototype.getSecurityCode = function() {
|
|
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
};
|
|
|
|
|
|
/**
|
|
* @param {string} value
|
|
* @return {!proto.bet.beteran.c2se.identity.SigninRequest} returns this
|
|
*/
|
|
proto.bet.beteran.c2se.identity.SigninRequest.prototype.setSecurityCode = function(value) {
|
|
return jspb.Message.setProto3StringField(this, 2, value);
|
|
};
|
|
|
|
|
|
/**
|
|
* optional string username = 3;
|
|
* @return {string}
|
|
*/
|
|
proto.bet.beteran.c2se.identity.SigninRequest.prototype.getUsername = function() {
|
|
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
|
};
|
|
|
|
|
|
/**
|
|
* @param {string} value
|
|
* @return {!proto.bet.beteran.c2se.identity.SigninRequest} returns this
|
|
*/
|
|
proto.bet.beteran.c2se.identity.SigninRequest.prototype.setUsername = function(value) {
|
|
return jspb.Message.setProto3StringField(this, 3, value);
|
|
};
|
|
|
|
|
|
/**
|
|
* optional string password = 4;
|
|
* @return {string}
|
|
*/
|
|
proto.bet.beteran.c2se.identity.SigninRequest.prototype.getPassword = function() {
|
|
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
|
|
};
|
|
|
|
|
|
/**
|
|
* @param {string} value
|
|
* @return {!proto.bet.beteran.c2se.identity.SigninRequest} returns this
|
|
*/
|
|
proto.bet.beteran.c2se.identity.SigninRequest.prototype.setPassword = function(value) {
|
|
return jspb.Message.setProto3StringField(this, 4, value);
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
/**
|
|
* Creates an object representation of this proto.
|
|
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
* Optional fields that are not set will be set to undefined.
|
|
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
* For the list of reserved names please see:
|
|
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
* JSPB instance for transitional soy proto support:
|
|
* http://goto/soy-param-migration
|
|
* @return {!Object}
|
|
*/
|
|
proto.bet.beteran.c2se.identity.SigninResponse.prototype.toObject = function(opt_includeInstance) {
|
|
return proto.bet.beteran.c2se.identity.SigninResponse.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.identity.SigninResponse} msg The msg instance to transform.
|
|
* @return {!Object}
|
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
*/
|
|
proto.bet.beteran.c2se.identity.SigninResponse.toObject = function(includeInstance, msg) {
|
|
var f, obj = {
|
|
error: (f = msg.getError()) && protobuf_rpc_pb.Error.toObject(includeInstance, f),
|
|
result: (f = msg.getResult()) && proto.bet.beteran.c2se.identity.SigninResponse.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.identity.SigninResponse}
|
|
*/
|
|
proto.bet.beteran.c2se.identity.SigninResponse.deserializeBinary = function(bytes) {
|
|
var reader = new jspb.BinaryReader(bytes);
|
|
var msg = new proto.bet.beteran.c2se.identity.SigninResponse;
|
|
return proto.bet.beteran.c2se.identity.SigninResponse.deserializeBinaryFromReader(msg, reader);
|
|
};
|
|
|
|
|
|
/**
|
|
* Deserializes binary data (in protobuf wire format) from the
|
|
* given reader into the given message object.
|
|
* @param {!proto.bet.beteran.c2se.identity.SigninResponse} msg The message object to deserialize into.
|
|
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
* @return {!proto.bet.beteran.c2se.identity.SigninResponse}
|
|
*/
|
|
proto.bet.beteran.c2se.identity.SigninResponse.deserializeBinaryFromReader = function(msg, reader) {
|
|
while (reader.nextField()) {
|
|
if (reader.isEndGroup()) {
|
|
break;
|
|
}
|
|
var field = reader.getFieldNumber();
|
|
switch (field) {
|
|
case 1:
|
|
var value = new protobuf_rpc_pb.Error;
|
|
reader.readMessage(value,protobuf_rpc_pb.Error.deserializeBinaryFromReader);
|
|
msg.setError(value);
|
|
break;
|
|
case 2:
|
|
var value = new proto.bet.beteran.c2se.identity.SigninResponse.Result;
|
|
reader.readMessage(value,proto.bet.beteran.c2se.identity.SigninResponse.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.identity.SigninResponse.prototype.serializeBinary = function() {
|
|
var writer = new jspb.BinaryWriter();
|
|
proto.bet.beteran.c2se.identity.SigninResponse.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.identity.SigninResponse} message
|
|
* @param {!jspb.BinaryWriter} writer
|
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
*/
|
|
proto.bet.beteran.c2se.identity.SigninResponse.serializeBinaryToWriter = function(message, writer) {
|
|
var f = undefined;
|
|
f = message.getError();
|
|
if (f != null) {
|
|
writer.writeMessage(
|
|
1,
|
|
f,
|
|
protobuf_rpc_pb.Error.serializeBinaryToWriter
|
|
);
|
|
}
|
|
f = message.getResult();
|
|
if (f != null) {
|
|
writer.writeMessage(
|
|
2,
|
|
f,
|
|
proto.bet.beteran.c2se.identity.SigninResponse.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.identity.SigninResponse.Result.prototype.toObject = function(opt_includeInstance) {
|
|
return proto.bet.beteran.c2se.identity.SigninResponse.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.identity.SigninResponse.Result} msg The msg instance to transform.
|
|
* @return {!Object}
|
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
*/
|
|
proto.bet.beteran.c2se.identity.SigninResponse.Result.toObject = function(includeInstance, msg) {
|
|
var f, obj = {
|
|
accessToken: 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.identity.SigninResponse.Result}
|
|
*/
|
|
proto.bet.beteran.c2se.identity.SigninResponse.Result.deserializeBinary = function(bytes) {
|
|
var reader = new jspb.BinaryReader(bytes);
|
|
var msg = new proto.bet.beteran.c2se.identity.SigninResponse.Result;
|
|
return proto.bet.beteran.c2se.identity.SigninResponse.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.identity.SigninResponse.Result} msg The message object to deserialize into.
|
|
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
* @return {!proto.bet.beteran.c2se.identity.SigninResponse.Result}
|
|
*/
|
|
proto.bet.beteran.c2se.identity.SigninResponse.Result.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.setAccessToken(value);
|
|
break;
|
|
default:
|
|
reader.skipField();
|
|
break;
|
|
}
|
|
}
|
|
return msg;
|
|
};
|
|
|
|
|
|
/**
|
|
* Serializes the message to binary data (in protobuf wire format).
|
|
* @return {!Uint8Array}
|
|
*/
|
|
proto.bet.beteran.c2se.identity.SigninResponse.Result.prototype.serializeBinary = function() {
|
|
var writer = new jspb.BinaryWriter();
|
|
proto.bet.beteran.c2se.identity.SigninResponse.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.identity.SigninResponse.Result} message
|
|
* @param {!jspb.BinaryWriter} writer
|
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
*/
|
|
proto.bet.beteran.c2se.identity.SigninResponse.Result.serializeBinaryToWriter = function(message, writer) {
|
|
var f = undefined;
|
|
f = message.getAccessToken();
|
|
if (f.length > 0) {
|
|
writer.writeString(
|
|
1,
|
|
f
|
|
);
|
|
}
|
|
};
|
|
|
|
|
|
/**
|
|
* optional string access_token = 1;
|
|
* @return {string}
|
|
*/
|
|
proto.bet.beteran.c2se.identity.SigninResponse.Result.prototype.getAccessToken = function() {
|
|
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
};
|
|
|
|
|
|
/**
|
|
* @param {string} value
|
|
* @return {!proto.bet.beteran.c2se.identity.SigninResponse.Result} returns this
|
|
*/
|
|
proto.bet.beteran.c2se.identity.SigninResponse.Result.prototype.setAccessToken = function(value) {
|
|
return jspb.Message.setProto3StringField(this, 1, value);
|
|
};
|
|
|
|
|
|
/**
|
|
* optional bet.protobuf.rpc.Error error = 1;
|
|
* @return {?proto.bet.protobuf.rpc.Error}
|
|
*/
|
|
proto.bet.beteran.c2se.identity.SigninResponse.prototype.getError = function() {
|
|
return /** @type{?proto.bet.protobuf.rpc.Error} */ (
|
|
jspb.Message.getWrapperField(this, protobuf_rpc_pb.Error, 1));
|
|
};
|
|
|
|
|
|
/**
|
|
* @param {?proto.bet.protobuf.rpc.Error|undefined} value
|
|
* @return {!proto.bet.beteran.c2se.identity.SigninResponse} returns this
|
|
*/
|
|
proto.bet.beteran.c2se.identity.SigninResponse.prototype.setError = function(value) {
|
|
return jspb.Message.setWrapperField(this, 1, value);
|
|
};
|
|
|
|
|
|
/**
|
|
* Clears the message field making it undefined.
|
|
* @return {!proto.bet.beteran.c2se.identity.SigninResponse} returns this
|
|
*/
|
|
proto.bet.beteran.c2se.identity.SigninResponse.prototype.clearError = function() {
|
|
return this.setError(undefined);
|
|
};
|
|
|
|
|
|
/**
|
|
* Returns whether this field is set.
|
|
* @return {boolean}
|
|
*/
|
|
proto.bet.beteran.c2se.identity.SigninResponse.prototype.hasError = function() {
|
|
return jspb.Message.getField(this, 1) != null;
|
|
};
|
|
|
|
|
|
/**
|
|
* optional Result result = 2;
|
|
* @return {?proto.bet.beteran.c2se.identity.SigninResponse.Result}
|
|
*/
|
|
proto.bet.beteran.c2se.identity.SigninResponse.prototype.getResult = function() {
|
|
return /** @type{?proto.bet.beteran.c2se.identity.SigninResponse.Result} */ (
|
|
jspb.Message.getWrapperField(this, proto.bet.beteran.c2se.identity.SigninResponse.Result, 2));
|
|
};
|
|
|
|
|
|
/**
|
|
* @param {?proto.bet.beteran.c2se.identity.SigninResponse.Result|undefined} value
|
|
* @return {!proto.bet.beteran.c2se.identity.SigninResponse} returns this
|
|
*/
|
|
proto.bet.beteran.c2se.identity.SigninResponse.prototype.setResult = function(value) {
|
|
return jspb.Message.setWrapperField(this, 2, value);
|
|
};
|
|
|
|
|
|
/**
|
|
* Clears the message field making it undefined.
|
|
* @return {!proto.bet.beteran.c2se.identity.SigninResponse} returns this
|
|
*/
|
|
proto.bet.beteran.c2se.identity.SigninResponse.prototype.clearResult = function() {
|
|
return this.setResult(undefined);
|
|
};
|
|
|
|
|
|
/**
|
|
* Returns whether this field is set.
|
|
* @return {boolean}
|
|
*/
|
|
proto.bet.beteran.c2se.identity.SigninResponse.prototype.hasResult = function() {
|
|
return jspb.Message.getField(this, 2) != null;
|
|
};
|
|
|
|
|
|
goog.object.extend(exports, proto.bet.beteran.c2se.identity);
|