3495 lines
91 KiB
JavaScript
3495 lines
91 KiB
JavaScript
// source: Define_Common.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() {
|
|
if (this) { return this; }
|
|
if (typeof window !== 'undefined') { return window; }
|
|
if (typeof global !== 'undefined') { return global; }
|
|
if (typeof self !== 'undefined') { return self; }
|
|
return Function('return this')();
|
|
}.call(null));
|
|
|
|
var google_protobuf_timestamp_pb = require('google-protobuf/google/protobuf/timestamp_pb.js');
|
|
goog.object.extend(proto, google_protobuf_timestamp_pb);
|
|
goog.exportSymbol('proto.AccountSactionType', null, global);
|
|
goog.exportSymbol('proto.AccountType', null, global);
|
|
goog.exportSymbol('proto.AmountDeltaType', null, global);
|
|
goog.exportSymbol('proto.AuthAdminLevelType', null, global);
|
|
goog.exportSymbol('proto.AutoScaleServerType', null, global);
|
|
goog.exportSymbol('proto.BoolType', null, global);
|
|
goog.exportSymbol('proto.ChannelInfo', null, global);
|
|
goog.exportSymbol('proto.CharRace', null, global);
|
|
goog.exportSymbol('proto.ContentsType', null, global);
|
|
goog.exportSymbol('proto.Coordinate', null, global);
|
|
goog.exportSymbol('proto.CountDeltaType', null, global);
|
|
goog.exportSymbol('proto.CurrencyType', null, global);
|
|
goog.exportSymbol('proto.DeviceType', null, global);
|
|
goog.exportSymbol('proto.GameServerType', null, global);
|
|
goog.exportSymbol('proto.LanguageType', null, global);
|
|
goog.exportSymbol('proto.LoginFailureReasonType', null, global);
|
|
goog.exportSymbol('proto.LoginMethodType', null, global);
|
|
goog.exportSymbol('proto.LogoutReasonType', null, global);
|
|
goog.exportSymbol('proto.Money', null, global);
|
|
goog.exportSymbol('proto.MoneyDeltaAmount', null, global);
|
|
goog.exportSymbol('proto.MyHomeInfo', null, global);
|
|
goog.exportSymbol('proto.MyhomeUgcInfo', null, global);
|
|
goog.exportSymbol('proto.OsType', null, global);
|
|
goog.exportSymbol('proto.PlatformType', null, global);
|
|
goog.exportSymbol('proto.PlayerStateType', null, global);
|
|
goog.exportSymbol('proto.Pos', null, global);
|
|
goog.exportSymbol('proto.ProductType', null, global);
|
|
goog.exportSymbol('proto.Rotation', null, global);
|
|
goog.exportSymbol('proto.ServerConnectInfo', null, global);
|
|
goog.exportSymbol('proto.ServerConnectInfo.InstancetypeCase', null, global);
|
|
goog.exportSymbol('proto.ServerMoveType', null, global);
|
|
goog.exportSymbol('proto.ServerType', null, global);
|
|
goog.exportSymbol('proto.ServiceType', null, global);
|
|
goog.exportSymbol('proto.StringProfile', null, global);
|
|
goog.exportSymbol('proto.UgcAnchorInfo', null, global);
|
|
goog.exportSymbol('proto.UgcFrameworkInfo', null, global);
|
|
goog.exportSymbol('proto.UserLocationInfo', 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.ChannelInfo = function(opt_data) {
|
|
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
};
|
|
goog.inherits(proto.ChannelInfo, jspb.Message);
|
|
if (goog.DEBUG && !COMPILED) {
|
|
/**
|
|
* @public
|
|
* @override
|
|
*/
|
|
proto.ChannelInfo.displayName = 'proto.ChannelInfo';
|
|
}
|
|
/**
|
|
* 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.ServerConnectInfo = function(opt_data) {
|
|
jspb.Message.initialize(this, opt_data, 0, -1, null, proto.ServerConnectInfo.oneofGroups_);
|
|
};
|
|
goog.inherits(proto.ServerConnectInfo, jspb.Message);
|
|
if (goog.DEBUG && !COMPILED) {
|
|
/**
|
|
* @public
|
|
* @override
|
|
*/
|
|
proto.ServerConnectInfo.displayName = 'proto.ServerConnectInfo';
|
|
}
|
|
/**
|
|
* 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.MyHomeInfo = function(opt_data) {
|
|
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
};
|
|
goog.inherits(proto.MyHomeInfo, jspb.Message);
|
|
if (goog.DEBUG && !COMPILED) {
|
|
/**
|
|
* @public
|
|
* @override
|
|
*/
|
|
proto.MyHomeInfo.displayName = 'proto.MyHomeInfo';
|
|
}
|
|
/**
|
|
* 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.MyhomeUgcInfo = function(opt_data) {
|
|
jspb.Message.initialize(this, opt_data, 0, -1, proto.MyhomeUgcInfo.repeatedFields_, null);
|
|
};
|
|
goog.inherits(proto.MyhomeUgcInfo, jspb.Message);
|
|
if (goog.DEBUG && !COMPILED) {
|
|
/**
|
|
* @public
|
|
* @override
|
|
*/
|
|
proto.MyhomeUgcInfo.displayName = 'proto.MyhomeUgcInfo';
|
|
}
|
|
/**
|
|
* 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.UgcFrameworkInfo = function(opt_data) {
|
|
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
};
|
|
goog.inherits(proto.UgcFrameworkInfo, jspb.Message);
|
|
if (goog.DEBUG && !COMPILED) {
|
|
/**
|
|
* @public
|
|
* @override
|
|
*/
|
|
proto.UgcFrameworkInfo.displayName = 'proto.UgcFrameworkInfo';
|
|
}
|
|
/**
|
|
* 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.UgcAnchorInfo = function(opt_data) {
|
|
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
};
|
|
goog.inherits(proto.UgcAnchorInfo, jspb.Message);
|
|
if (goog.DEBUG && !COMPILED) {
|
|
/**
|
|
* @public
|
|
* @override
|
|
*/
|
|
proto.UgcAnchorInfo.displayName = 'proto.UgcAnchorInfo';
|
|
}
|
|
/**
|
|
* 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.Coordinate = function(opt_data) {
|
|
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
};
|
|
goog.inherits(proto.Coordinate, jspb.Message);
|
|
if (goog.DEBUG && !COMPILED) {
|
|
/**
|
|
* @public
|
|
* @override
|
|
*/
|
|
proto.Coordinate.displayName = 'proto.Coordinate';
|
|
}
|
|
/**
|
|
* 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.Rotation = function(opt_data) {
|
|
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
};
|
|
goog.inherits(proto.Rotation, jspb.Message);
|
|
if (goog.DEBUG && !COMPILED) {
|
|
/**
|
|
* @public
|
|
* @override
|
|
*/
|
|
proto.Rotation.displayName = 'proto.Rotation';
|
|
}
|
|
/**
|
|
* 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.StringProfile = function(opt_data) {
|
|
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
};
|
|
goog.inherits(proto.StringProfile, jspb.Message);
|
|
if (goog.DEBUG && !COMPILED) {
|
|
/**
|
|
* @public
|
|
* @override
|
|
*/
|
|
proto.StringProfile.displayName = 'proto.StringProfile';
|
|
}
|
|
/**
|
|
* 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.UserLocationInfo = function(opt_data) {
|
|
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
};
|
|
goog.inherits(proto.UserLocationInfo, jspb.Message);
|
|
if (goog.DEBUG && !COMPILED) {
|
|
/**
|
|
* @public
|
|
* @override
|
|
*/
|
|
proto.UserLocationInfo.displayName = 'proto.UserLocationInfo';
|
|
}
|
|
/**
|
|
* 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.Pos = function(opt_data) {
|
|
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
};
|
|
goog.inherits(proto.Pos, jspb.Message);
|
|
if (goog.DEBUG && !COMPILED) {
|
|
/**
|
|
* @public
|
|
* @override
|
|
*/
|
|
proto.Pos.displayName = 'proto.Pos';
|
|
}
|
|
/**
|
|
* 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.Money = function(opt_data) {
|
|
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
};
|
|
goog.inherits(proto.Money, jspb.Message);
|
|
if (goog.DEBUG && !COMPILED) {
|
|
/**
|
|
* @public
|
|
* @override
|
|
*/
|
|
proto.Money.displayName = 'proto.Money';
|
|
}
|
|
/**
|
|
* 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.MoneyDeltaAmount = function(opt_data) {
|
|
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
};
|
|
goog.inherits(proto.MoneyDeltaAmount, jspb.Message);
|
|
if (goog.DEBUG && !COMPILED) {
|
|
/**
|
|
* @public
|
|
* @override
|
|
*/
|
|
proto.MoneyDeltaAmount.displayName = 'proto.MoneyDeltaAmount';
|
|
}
|
|
|
|
|
|
|
|
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.ChannelInfo.prototype.toObject = function(opt_includeInstance) {
|
|
return proto.ChannelInfo.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.ChannelInfo} msg The msg instance to transform.
|
|
* @return {!Object}
|
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
*/
|
|
proto.ChannelInfo.toObject = function(includeInstance, msg) {
|
|
var f, obj = {
|
|
channel: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
|
language: jspb.Message.getFieldWithDefault(msg, 2, 0),
|
|
trafficlevel: jspb.Message.getFieldWithDefault(msg, 3, 0)
|
|
};
|
|
|
|
if (includeInstance) {
|
|
obj.$jspbMessageInstance = msg;
|
|
}
|
|
return obj;
|
|
};
|
|
}
|
|
|
|
|
|
/**
|
|
* Deserializes binary data (in protobuf wire format).
|
|
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
* @return {!proto.ChannelInfo}
|
|
*/
|
|
proto.ChannelInfo.deserializeBinary = function(bytes) {
|
|
var reader = new jspb.BinaryReader(bytes);
|
|
var msg = new proto.ChannelInfo;
|
|
return proto.ChannelInfo.deserializeBinaryFromReader(msg, reader);
|
|
};
|
|
|
|
|
|
/**
|
|
* Deserializes binary data (in protobuf wire format) from the
|
|
* given reader into the given message object.
|
|
* @param {!proto.ChannelInfo} msg The message object to deserialize into.
|
|
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
* @return {!proto.ChannelInfo}
|
|
*/
|
|
proto.ChannelInfo.deserializeBinaryFromReader = function(msg, reader) {
|
|
while (reader.nextField()) {
|
|
if (reader.isEndGroup()) {
|
|
break;
|
|
}
|
|
var field = reader.getFieldNumber();
|
|
switch (field) {
|
|
case 1:
|
|
var value = /** @type {number} */ (reader.readInt32());
|
|
msg.setChannel(value);
|
|
break;
|
|
case 2:
|
|
var value = /** @type {number} */ (reader.readInt32());
|
|
msg.setLanguage(value);
|
|
break;
|
|
case 3:
|
|
var value = /** @type {number} */ (reader.readInt32());
|
|
msg.setTrafficlevel(value);
|
|
break;
|
|
default:
|
|
reader.skipField();
|
|
break;
|
|
}
|
|
}
|
|
return msg;
|
|
};
|
|
|
|
|
|
/**
|
|
* Serializes the message to binary data (in protobuf wire format).
|
|
* @return {!Uint8Array}
|
|
*/
|
|
proto.ChannelInfo.prototype.serializeBinary = function() {
|
|
var writer = new jspb.BinaryWriter();
|
|
proto.ChannelInfo.serializeBinaryToWriter(this, writer);
|
|
return writer.getResultBuffer();
|
|
};
|
|
|
|
|
|
/**
|
|
* Serializes the given message to binary data (in protobuf wire
|
|
* format), writing to the given BinaryWriter.
|
|
* @param {!proto.ChannelInfo} message
|
|
* @param {!jspb.BinaryWriter} writer
|
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
*/
|
|
proto.ChannelInfo.serializeBinaryToWriter = function(message, writer) {
|
|
var f = undefined;
|
|
f = message.getChannel();
|
|
if (f !== 0) {
|
|
writer.writeInt32(
|
|
1,
|
|
f
|
|
);
|
|
}
|
|
f = message.getLanguage();
|
|
if (f !== 0) {
|
|
writer.writeInt32(
|
|
2,
|
|
f
|
|
);
|
|
}
|
|
f = message.getTrafficlevel();
|
|
if (f !== 0) {
|
|
writer.writeInt32(
|
|
3,
|
|
f
|
|
);
|
|
}
|
|
};
|
|
|
|
|
|
/**
|
|
* optional int32 channel = 1;
|
|
* @return {number}
|
|
*/
|
|
proto.ChannelInfo.prototype.getChannel = function() {
|
|
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
|
};
|
|
|
|
|
|
/**
|
|
* @param {number} value
|
|
* @return {!proto.ChannelInfo} returns this
|
|
*/
|
|
proto.ChannelInfo.prototype.setChannel = function(value) {
|
|
return jspb.Message.setProto3IntField(this, 1, value);
|
|
};
|
|
|
|
|
|
/**
|
|
* optional int32 language = 2;
|
|
* @return {number}
|
|
*/
|
|
proto.ChannelInfo.prototype.getLanguage = function() {
|
|
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
|
|
};
|
|
|
|
|
|
/**
|
|
* @param {number} value
|
|
* @return {!proto.ChannelInfo} returns this
|
|
*/
|
|
proto.ChannelInfo.prototype.setLanguage = function(value) {
|
|
return jspb.Message.setProto3IntField(this, 2, value);
|
|
};
|
|
|
|
|
|
/**
|
|
* optional int32 trafficlevel = 3;
|
|
* @return {number}
|
|
*/
|
|
proto.ChannelInfo.prototype.getTrafficlevel = function() {
|
|
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
|
|
};
|
|
|
|
|
|
/**
|
|
* @param {number} value
|
|
* @return {!proto.ChannelInfo} returns this
|
|
*/
|
|
proto.ChannelInfo.prototype.setTrafficlevel = function(value) {
|
|
return jspb.Message.setProto3IntField(this, 3, value);
|
|
};
|
|
|
|
|
|
|
|
/**
|
|
* Oneof group definitions for this message. Each group defines the field
|
|
* numbers belonging to that group. When of these fields' value is set, all
|
|
* other fields in the group are cleared. During deserialization, if multiple
|
|
* fields are encountered for a group, only the last value seen will be kept.
|
|
* @private {!Array<!Array<number>>}
|
|
* @const
|
|
*/
|
|
proto.ServerConnectInfo.oneofGroups_ = [[6,7]];
|
|
|
|
/**
|
|
* @enum {number}
|
|
*/
|
|
proto.ServerConnectInfo.InstancetypeCase = {
|
|
INSTANCETYPE_NOT_SET: 0,
|
|
INSTANCEID: 6,
|
|
MYHOMEINFO: 7
|
|
};
|
|
|
|
/**
|
|
* @return {proto.ServerConnectInfo.InstancetypeCase}
|
|
*/
|
|
proto.ServerConnectInfo.prototype.getInstancetypeCase = function() {
|
|
return /** @type {proto.ServerConnectInfo.InstancetypeCase} */(jspb.Message.computeOneofCase(this, proto.ServerConnectInfo.oneofGroups_[0]));
|
|
};
|
|
|
|
|
|
|
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
/**
|
|
* Creates an object representation of this proto.
|
|
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
* Optional fields that are not set will be set to undefined.
|
|
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
* For the list of reserved names please see:
|
|
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
* JSPB instance for transitional soy proto support:
|
|
* http://goto/soy-param-migration
|
|
* @return {!Object}
|
|
*/
|
|
proto.ServerConnectInfo.prototype.toObject = function(opt_includeInstance) {
|
|
return proto.ServerConnectInfo.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.ServerConnectInfo} msg The msg instance to transform.
|
|
* @return {!Object}
|
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
*/
|
|
proto.ServerConnectInfo.toObject = function(includeInstance, msg) {
|
|
var f, obj = {
|
|
serveraddr: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
serverport: jspb.Message.getFieldWithDefault(msg, 2, 0),
|
|
otp: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
|
roomid: jspb.Message.getFieldWithDefault(msg, 4, ""),
|
|
pos: (f = msg.getPos()) && proto.Pos.toObject(includeInstance, f),
|
|
instanceid: jspb.Message.getFieldWithDefault(msg, 6, 0),
|
|
myhomeinfo: (f = msg.getMyhomeinfo()) && proto.MyHomeInfo.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.ServerConnectInfo}
|
|
*/
|
|
proto.ServerConnectInfo.deserializeBinary = function(bytes) {
|
|
var reader = new jspb.BinaryReader(bytes);
|
|
var msg = new proto.ServerConnectInfo;
|
|
return proto.ServerConnectInfo.deserializeBinaryFromReader(msg, reader);
|
|
};
|
|
|
|
|
|
/**
|
|
* Deserializes binary data (in protobuf wire format) from the
|
|
* given reader into the given message object.
|
|
* @param {!proto.ServerConnectInfo} msg The message object to deserialize into.
|
|
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
* @return {!proto.ServerConnectInfo}
|
|
*/
|
|
proto.ServerConnectInfo.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.setServeraddr(value);
|
|
break;
|
|
case 2:
|
|
var value = /** @type {number} */ (reader.readInt32());
|
|
msg.setServerport(value);
|
|
break;
|
|
case 3:
|
|
var value = /** @type {string} */ (reader.readString());
|
|
msg.setOtp(value);
|
|
break;
|
|
case 4:
|
|
var value = /** @type {string} */ (reader.readString());
|
|
msg.setRoomid(value);
|
|
break;
|
|
case 5:
|
|
var value = new proto.Pos;
|
|
reader.readMessage(value,proto.Pos.deserializeBinaryFromReader);
|
|
msg.setPos(value);
|
|
break;
|
|
case 6:
|
|
var value = /** @type {number} */ (reader.readInt32());
|
|
msg.setInstanceid(value);
|
|
break;
|
|
case 7:
|
|
var value = new proto.MyHomeInfo;
|
|
reader.readMessage(value,proto.MyHomeInfo.deserializeBinaryFromReader);
|
|
msg.setMyhomeinfo(value);
|
|
break;
|
|
default:
|
|
reader.skipField();
|
|
break;
|
|
}
|
|
}
|
|
return msg;
|
|
};
|
|
|
|
|
|
/**
|
|
* Serializes the message to binary data (in protobuf wire format).
|
|
* @return {!Uint8Array}
|
|
*/
|
|
proto.ServerConnectInfo.prototype.serializeBinary = function() {
|
|
var writer = new jspb.BinaryWriter();
|
|
proto.ServerConnectInfo.serializeBinaryToWriter(this, writer);
|
|
return writer.getResultBuffer();
|
|
};
|
|
|
|
|
|
/**
|
|
* Serializes the given message to binary data (in protobuf wire
|
|
* format), writing to the given BinaryWriter.
|
|
* @param {!proto.ServerConnectInfo} message
|
|
* @param {!jspb.BinaryWriter} writer
|
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
*/
|
|
proto.ServerConnectInfo.serializeBinaryToWriter = function(message, writer) {
|
|
var f = undefined;
|
|
f = message.getServeraddr();
|
|
if (f.length > 0) {
|
|
writer.writeString(
|
|
1,
|
|
f
|
|
);
|
|
}
|
|
f = message.getServerport();
|
|
if (f !== 0) {
|
|
writer.writeInt32(
|
|
2,
|
|
f
|
|
);
|
|
}
|
|
f = message.getOtp();
|
|
if (f.length > 0) {
|
|
writer.writeString(
|
|
3,
|
|
f
|
|
);
|
|
}
|
|
f = message.getRoomid();
|
|
if (f.length > 0) {
|
|
writer.writeString(
|
|
4,
|
|
f
|
|
);
|
|
}
|
|
f = message.getPos();
|
|
if (f != null) {
|
|
writer.writeMessage(
|
|
5,
|
|
f,
|
|
proto.Pos.serializeBinaryToWriter
|
|
);
|
|
}
|
|
f = /** @type {number} */ (jspb.Message.getField(message, 6));
|
|
if (f != null) {
|
|
writer.writeInt32(
|
|
6,
|
|
f
|
|
);
|
|
}
|
|
f = message.getMyhomeinfo();
|
|
if (f != null) {
|
|
writer.writeMessage(
|
|
7,
|
|
f,
|
|
proto.MyHomeInfo.serializeBinaryToWriter
|
|
);
|
|
}
|
|
};
|
|
|
|
|
|
/**
|
|
* optional string serverAddr = 1;
|
|
* @return {string}
|
|
*/
|
|
proto.ServerConnectInfo.prototype.getServeraddr = function() {
|
|
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
};
|
|
|
|
|
|
/**
|
|
* @param {string} value
|
|
* @return {!proto.ServerConnectInfo} returns this
|
|
*/
|
|
proto.ServerConnectInfo.prototype.setServeraddr = function(value) {
|
|
return jspb.Message.setProto3StringField(this, 1, value);
|
|
};
|
|
|
|
|
|
/**
|
|
* optional int32 serverPort = 2;
|
|
* @return {number}
|
|
*/
|
|
proto.ServerConnectInfo.prototype.getServerport = function() {
|
|
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
|
|
};
|
|
|
|
|
|
/**
|
|
* @param {number} value
|
|
* @return {!proto.ServerConnectInfo} returns this
|
|
*/
|
|
proto.ServerConnectInfo.prototype.setServerport = function(value) {
|
|
return jspb.Message.setProto3IntField(this, 2, value);
|
|
};
|
|
|
|
|
|
/**
|
|
* optional string otp = 3;
|
|
* @return {string}
|
|
*/
|
|
proto.ServerConnectInfo.prototype.getOtp = function() {
|
|
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
|
};
|
|
|
|
|
|
/**
|
|
* @param {string} value
|
|
* @return {!proto.ServerConnectInfo} returns this
|
|
*/
|
|
proto.ServerConnectInfo.prototype.setOtp = function(value) {
|
|
return jspb.Message.setProto3StringField(this, 3, value);
|
|
};
|
|
|
|
|
|
/**
|
|
* optional string roomId = 4;
|
|
* @return {string}
|
|
*/
|
|
proto.ServerConnectInfo.prototype.getRoomid = function() {
|
|
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
|
|
};
|
|
|
|
|
|
/**
|
|
* @param {string} value
|
|
* @return {!proto.ServerConnectInfo} returns this
|
|
*/
|
|
proto.ServerConnectInfo.prototype.setRoomid = function(value) {
|
|
return jspb.Message.setProto3StringField(this, 4, value);
|
|
};
|
|
|
|
|
|
/**
|
|
* optional Pos pos = 5;
|
|
* @return {?proto.Pos}
|
|
*/
|
|
proto.ServerConnectInfo.prototype.getPos = function() {
|
|
return /** @type{?proto.Pos} */ (
|
|
jspb.Message.getWrapperField(this, proto.Pos, 5));
|
|
};
|
|
|
|
|
|
/**
|
|
* @param {?proto.Pos|undefined} value
|
|
* @return {!proto.ServerConnectInfo} returns this
|
|
*/
|
|
proto.ServerConnectInfo.prototype.setPos = function(value) {
|
|
return jspb.Message.setWrapperField(this, 5, value);
|
|
};
|
|
|
|
|
|
/**
|
|
* Clears the message field making it undefined.
|
|
* @return {!proto.ServerConnectInfo} returns this
|
|
*/
|
|
proto.ServerConnectInfo.prototype.clearPos = function() {
|
|
return this.setPos(undefined);
|
|
};
|
|
|
|
|
|
/**
|
|
* Returns whether this field is set.
|
|
* @return {boolean}
|
|
*/
|
|
proto.ServerConnectInfo.prototype.hasPos = function() {
|
|
return jspb.Message.getField(this, 5) != null;
|
|
};
|
|
|
|
|
|
/**
|
|
* optional int32 instanceId = 6;
|
|
* @return {number}
|
|
*/
|
|
proto.ServerConnectInfo.prototype.getInstanceid = function() {
|
|
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 6, 0));
|
|
};
|
|
|
|
|
|
/**
|
|
* @param {number} value
|
|
* @return {!proto.ServerConnectInfo} returns this
|
|
*/
|
|
proto.ServerConnectInfo.prototype.setInstanceid = function(value) {
|
|
return jspb.Message.setOneofField(this, 6, proto.ServerConnectInfo.oneofGroups_[0], value);
|
|
};
|
|
|
|
|
|
/**
|
|
* Clears the field making it undefined.
|
|
* @return {!proto.ServerConnectInfo} returns this
|
|
*/
|
|
proto.ServerConnectInfo.prototype.clearInstanceid = function() {
|
|
return jspb.Message.setOneofField(this, 6, proto.ServerConnectInfo.oneofGroups_[0], undefined);
|
|
};
|
|
|
|
|
|
/**
|
|
* Returns whether this field is set.
|
|
* @return {boolean}
|
|
*/
|
|
proto.ServerConnectInfo.prototype.hasInstanceid = function() {
|
|
return jspb.Message.getField(this, 6) != null;
|
|
};
|
|
|
|
|
|
/**
|
|
* optional MyHomeInfo myhomeInfo = 7;
|
|
* @return {?proto.MyHomeInfo}
|
|
*/
|
|
proto.ServerConnectInfo.prototype.getMyhomeinfo = function() {
|
|
return /** @type{?proto.MyHomeInfo} */ (
|
|
jspb.Message.getWrapperField(this, proto.MyHomeInfo, 7));
|
|
};
|
|
|
|
|
|
/**
|
|
* @param {?proto.MyHomeInfo|undefined} value
|
|
* @return {!proto.ServerConnectInfo} returns this
|
|
*/
|
|
proto.ServerConnectInfo.prototype.setMyhomeinfo = function(value) {
|
|
return jspb.Message.setOneofWrapperField(this, 7, proto.ServerConnectInfo.oneofGroups_[0], value);
|
|
};
|
|
|
|
|
|
/**
|
|
* Clears the message field making it undefined.
|
|
* @return {!proto.ServerConnectInfo} returns this
|
|
*/
|
|
proto.ServerConnectInfo.prototype.clearMyhomeinfo = function() {
|
|
return this.setMyhomeinfo(undefined);
|
|
};
|
|
|
|
|
|
/**
|
|
* Returns whether this field is set.
|
|
* @return {boolean}
|
|
*/
|
|
proto.ServerConnectInfo.prototype.hasMyhomeinfo = 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.MyHomeInfo.prototype.toObject = function(opt_includeInstance) {
|
|
return proto.MyHomeInfo.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.MyHomeInfo} msg The msg instance to transform.
|
|
* @return {!Object}
|
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
*/
|
|
proto.MyHomeInfo.toObject = function(includeInstance, msg) {
|
|
var f, obj = {
|
|
myhomeguid: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
myhomename: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
myhomeugcinfo: (f = msg.getMyhomeugcinfo()) && proto.MyhomeUgcInfo.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.MyHomeInfo}
|
|
*/
|
|
proto.MyHomeInfo.deserializeBinary = function(bytes) {
|
|
var reader = new jspb.BinaryReader(bytes);
|
|
var msg = new proto.MyHomeInfo;
|
|
return proto.MyHomeInfo.deserializeBinaryFromReader(msg, reader);
|
|
};
|
|
|
|
|
|
/**
|
|
* Deserializes binary data (in protobuf wire format) from the
|
|
* given reader into the given message object.
|
|
* @param {!proto.MyHomeInfo} msg The message object to deserialize into.
|
|
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
* @return {!proto.MyHomeInfo}
|
|
*/
|
|
proto.MyHomeInfo.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.setMyhomeguid(value);
|
|
break;
|
|
case 2:
|
|
var value = /** @type {string} */ (reader.readString());
|
|
msg.setMyhomename(value);
|
|
break;
|
|
case 3:
|
|
var value = new proto.MyhomeUgcInfo;
|
|
reader.readMessage(value,proto.MyhomeUgcInfo.deserializeBinaryFromReader);
|
|
msg.setMyhomeugcinfo(value);
|
|
break;
|
|
default:
|
|
reader.skipField();
|
|
break;
|
|
}
|
|
}
|
|
return msg;
|
|
};
|
|
|
|
|
|
/**
|
|
* Serializes the message to binary data (in protobuf wire format).
|
|
* @return {!Uint8Array}
|
|
*/
|
|
proto.MyHomeInfo.prototype.serializeBinary = function() {
|
|
var writer = new jspb.BinaryWriter();
|
|
proto.MyHomeInfo.serializeBinaryToWriter(this, writer);
|
|
return writer.getResultBuffer();
|
|
};
|
|
|
|
|
|
/**
|
|
* Serializes the given message to binary data (in protobuf wire
|
|
* format), writing to the given BinaryWriter.
|
|
* @param {!proto.MyHomeInfo} message
|
|
* @param {!jspb.BinaryWriter} writer
|
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
*/
|
|
proto.MyHomeInfo.serializeBinaryToWriter = function(message, writer) {
|
|
var f = undefined;
|
|
f = message.getMyhomeguid();
|
|
if (f.length > 0) {
|
|
writer.writeString(
|
|
1,
|
|
f
|
|
);
|
|
}
|
|
f = message.getMyhomename();
|
|
if (f.length > 0) {
|
|
writer.writeString(
|
|
2,
|
|
f
|
|
);
|
|
}
|
|
f = message.getMyhomeugcinfo();
|
|
if (f != null) {
|
|
writer.writeMessage(
|
|
3,
|
|
f,
|
|
proto.MyhomeUgcInfo.serializeBinaryToWriter
|
|
);
|
|
}
|
|
};
|
|
|
|
|
|
/**
|
|
* optional string myhomeGuid = 1;
|
|
* @return {string}
|
|
*/
|
|
proto.MyHomeInfo.prototype.getMyhomeguid = function() {
|
|
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
};
|
|
|
|
|
|
/**
|
|
* @param {string} value
|
|
* @return {!proto.MyHomeInfo} returns this
|
|
*/
|
|
proto.MyHomeInfo.prototype.setMyhomeguid = function(value) {
|
|
return jspb.Message.setProto3StringField(this, 1, value);
|
|
};
|
|
|
|
|
|
/**
|
|
* optional string myhomeName = 2;
|
|
* @return {string}
|
|
*/
|
|
proto.MyHomeInfo.prototype.getMyhomename = function() {
|
|
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
};
|
|
|
|
|
|
/**
|
|
* @param {string} value
|
|
* @return {!proto.MyHomeInfo} returns this
|
|
*/
|
|
proto.MyHomeInfo.prototype.setMyhomename = function(value) {
|
|
return jspb.Message.setProto3StringField(this, 2, value);
|
|
};
|
|
|
|
|
|
/**
|
|
* optional MyhomeUgcInfo myhomeUgcInfo = 3;
|
|
* @return {?proto.MyhomeUgcInfo}
|
|
*/
|
|
proto.MyHomeInfo.prototype.getMyhomeugcinfo = function() {
|
|
return /** @type{?proto.MyhomeUgcInfo} */ (
|
|
jspb.Message.getWrapperField(this, proto.MyhomeUgcInfo, 3));
|
|
};
|
|
|
|
|
|
/**
|
|
* @param {?proto.MyhomeUgcInfo|undefined} value
|
|
* @return {!proto.MyHomeInfo} returns this
|
|
*/
|
|
proto.MyHomeInfo.prototype.setMyhomeugcinfo = function(value) {
|
|
return jspb.Message.setWrapperField(this, 3, value);
|
|
};
|
|
|
|
|
|
/**
|
|
* Clears the message field making it undefined.
|
|
* @return {!proto.MyHomeInfo} returns this
|
|
*/
|
|
proto.MyHomeInfo.prototype.clearMyhomeugcinfo = function() {
|
|
return this.setMyhomeugcinfo(undefined);
|
|
};
|
|
|
|
|
|
/**
|
|
* Returns whether this field is set.
|
|
* @return {boolean}
|
|
*/
|
|
proto.MyHomeInfo.prototype.hasMyhomeugcinfo = function() {
|
|
return jspb.Message.getField(this, 3) != null;
|
|
};
|
|
|
|
|
|
|
|
/**
|
|
* List of repeated fields within this message type.
|
|
* @private {!Array<number>}
|
|
* @const
|
|
*/
|
|
proto.MyhomeUgcInfo.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.MyhomeUgcInfo.prototype.toObject = function(opt_includeInstance) {
|
|
return proto.MyhomeUgcInfo.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.MyhomeUgcInfo} msg The msg instance to transform.
|
|
* @return {!Object}
|
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
*/
|
|
proto.MyhomeUgcInfo.toObject = function(includeInstance, msg) {
|
|
var f, obj = {
|
|
roomtype: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
|
frameworkinfosList: jspb.Message.toObjectList(msg.getFrameworkinfosList(),
|
|
proto.UgcFrameworkInfo.toObject, includeInstance),
|
|
anchorinfosList: jspb.Message.toObjectList(msg.getAnchorinfosList(),
|
|
proto.UgcAnchorInfo.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.MyhomeUgcInfo}
|
|
*/
|
|
proto.MyhomeUgcInfo.deserializeBinary = function(bytes) {
|
|
var reader = new jspb.BinaryReader(bytes);
|
|
var msg = new proto.MyhomeUgcInfo;
|
|
return proto.MyhomeUgcInfo.deserializeBinaryFromReader(msg, reader);
|
|
};
|
|
|
|
|
|
/**
|
|
* Deserializes binary data (in protobuf wire format) from the
|
|
* given reader into the given message object.
|
|
* @param {!proto.MyhomeUgcInfo} msg The message object to deserialize into.
|
|
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
* @return {!proto.MyhomeUgcInfo}
|
|
*/
|
|
proto.MyhomeUgcInfo.deserializeBinaryFromReader = function(msg, reader) {
|
|
while (reader.nextField()) {
|
|
if (reader.isEndGroup()) {
|
|
break;
|
|
}
|
|
var field = reader.getFieldNumber();
|
|
switch (field) {
|
|
case 1:
|
|
var value = /** @type {number} */ (reader.readInt32());
|
|
msg.setRoomtype(value);
|
|
break;
|
|
case 2:
|
|
var value = new proto.UgcFrameworkInfo;
|
|
reader.readMessage(value,proto.UgcFrameworkInfo.deserializeBinaryFromReader);
|
|
msg.addFrameworkinfos(value);
|
|
break;
|
|
case 3:
|
|
var value = new proto.UgcAnchorInfo;
|
|
reader.readMessage(value,proto.UgcAnchorInfo.deserializeBinaryFromReader);
|
|
msg.addAnchorinfos(value);
|
|
break;
|
|
default:
|
|
reader.skipField();
|
|
break;
|
|
}
|
|
}
|
|
return msg;
|
|
};
|
|
|
|
|
|
/**
|
|
* Serializes the message to binary data (in protobuf wire format).
|
|
* @return {!Uint8Array}
|
|
*/
|
|
proto.MyhomeUgcInfo.prototype.serializeBinary = function() {
|
|
var writer = new jspb.BinaryWriter();
|
|
proto.MyhomeUgcInfo.serializeBinaryToWriter(this, writer);
|
|
return writer.getResultBuffer();
|
|
};
|
|
|
|
|
|
/**
|
|
* Serializes the given message to binary data (in protobuf wire
|
|
* format), writing to the given BinaryWriter.
|
|
* @param {!proto.MyhomeUgcInfo} message
|
|
* @param {!jspb.BinaryWriter} writer
|
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
*/
|
|
proto.MyhomeUgcInfo.serializeBinaryToWriter = function(message, writer) {
|
|
var f = undefined;
|
|
f = message.getRoomtype();
|
|
if (f !== 0) {
|
|
writer.writeInt32(
|
|
1,
|
|
f
|
|
);
|
|
}
|
|
f = message.getFrameworkinfosList();
|
|
if (f.length > 0) {
|
|
writer.writeRepeatedMessage(
|
|
2,
|
|
f,
|
|
proto.UgcFrameworkInfo.serializeBinaryToWriter
|
|
);
|
|
}
|
|
f = message.getAnchorinfosList();
|
|
if (f.length > 0) {
|
|
writer.writeRepeatedMessage(
|
|
3,
|
|
f,
|
|
proto.UgcAnchorInfo.serializeBinaryToWriter
|
|
);
|
|
}
|
|
};
|
|
|
|
|
|
/**
|
|
* optional int32 roomType = 1;
|
|
* @return {number}
|
|
*/
|
|
proto.MyhomeUgcInfo.prototype.getRoomtype = function() {
|
|
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
|
};
|
|
|
|
|
|
/**
|
|
* @param {number} value
|
|
* @return {!proto.MyhomeUgcInfo} returns this
|
|
*/
|
|
proto.MyhomeUgcInfo.prototype.setRoomtype = function(value) {
|
|
return jspb.Message.setProto3IntField(this, 1, value);
|
|
};
|
|
|
|
|
|
/**
|
|
* repeated UgcFrameworkInfo frameworkInfos = 2;
|
|
* @return {!Array<!proto.UgcFrameworkInfo>}
|
|
*/
|
|
proto.MyhomeUgcInfo.prototype.getFrameworkinfosList = function() {
|
|
return /** @type{!Array<!proto.UgcFrameworkInfo>} */ (
|
|
jspb.Message.getRepeatedWrapperField(this, proto.UgcFrameworkInfo, 2));
|
|
};
|
|
|
|
|
|
/**
|
|
* @param {!Array<!proto.UgcFrameworkInfo>} value
|
|
* @return {!proto.MyhomeUgcInfo} returns this
|
|
*/
|
|
proto.MyhomeUgcInfo.prototype.setFrameworkinfosList = function(value) {
|
|
return jspb.Message.setRepeatedWrapperField(this, 2, value);
|
|
};
|
|
|
|
|
|
/**
|
|
* @param {!proto.UgcFrameworkInfo=} opt_value
|
|
* @param {number=} opt_index
|
|
* @return {!proto.UgcFrameworkInfo}
|
|
*/
|
|
proto.MyhomeUgcInfo.prototype.addFrameworkinfos = function(opt_value, opt_index) {
|
|
return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.UgcFrameworkInfo, opt_index);
|
|
};
|
|
|
|
|
|
/**
|
|
* Clears the list making it empty but non-null.
|
|
* @return {!proto.MyhomeUgcInfo} returns this
|
|
*/
|
|
proto.MyhomeUgcInfo.prototype.clearFrameworkinfosList = function() {
|
|
return this.setFrameworkinfosList([]);
|
|
};
|
|
|
|
|
|
/**
|
|
* repeated UgcAnchorInfo anchorInfos = 3;
|
|
* @return {!Array<!proto.UgcAnchorInfo>}
|
|
*/
|
|
proto.MyhomeUgcInfo.prototype.getAnchorinfosList = function() {
|
|
return /** @type{!Array<!proto.UgcAnchorInfo>} */ (
|
|
jspb.Message.getRepeatedWrapperField(this, proto.UgcAnchorInfo, 3));
|
|
};
|
|
|
|
|
|
/**
|
|
* @param {!Array<!proto.UgcAnchorInfo>} value
|
|
* @return {!proto.MyhomeUgcInfo} returns this
|
|
*/
|
|
proto.MyhomeUgcInfo.prototype.setAnchorinfosList = function(value) {
|
|
return jspb.Message.setRepeatedWrapperField(this, 3, value);
|
|
};
|
|
|
|
|
|
/**
|
|
* @param {!proto.UgcAnchorInfo=} opt_value
|
|
* @param {number=} opt_index
|
|
* @return {!proto.UgcAnchorInfo}
|
|
*/
|
|
proto.MyhomeUgcInfo.prototype.addAnchorinfos = function(opt_value, opt_index) {
|
|
return jspb.Message.addToRepeatedWrapperField(this, 3, opt_value, proto.UgcAnchorInfo, opt_index);
|
|
};
|
|
|
|
|
|
/**
|
|
* Clears the list making it empty but non-null.
|
|
* @return {!proto.MyhomeUgcInfo} returns this
|
|
*/
|
|
proto.MyhomeUgcInfo.prototype.clearAnchorinfosList = function() {
|
|
return this.setAnchorinfosList([]);
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
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.UgcFrameworkInfo.prototype.toObject = function(opt_includeInstance) {
|
|
return proto.UgcFrameworkInfo.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.UgcFrameworkInfo} msg The msg instance to transform.
|
|
* @return {!Object}
|
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
*/
|
|
proto.UgcFrameworkInfo.toObject = function(includeInstance, msg) {
|
|
var f, obj = {
|
|
interioritemid: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
|
floor: jspb.Message.getFieldWithDefault(msg, 2, 0),
|
|
coordinate: (f = msg.getCoordinate()) && proto.Coordinate.toObject(includeInstance, f),
|
|
rotation: (f = msg.getRotation()) && proto.Rotation.toObject(includeInstance, f),
|
|
materialid: 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.UgcFrameworkInfo}
|
|
*/
|
|
proto.UgcFrameworkInfo.deserializeBinary = function(bytes) {
|
|
var reader = new jspb.BinaryReader(bytes);
|
|
var msg = new proto.UgcFrameworkInfo;
|
|
return proto.UgcFrameworkInfo.deserializeBinaryFromReader(msg, reader);
|
|
};
|
|
|
|
|
|
/**
|
|
* Deserializes binary data (in protobuf wire format) from the
|
|
* given reader into the given message object.
|
|
* @param {!proto.UgcFrameworkInfo} msg The message object to deserialize into.
|
|
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
* @return {!proto.UgcFrameworkInfo}
|
|
*/
|
|
proto.UgcFrameworkInfo.deserializeBinaryFromReader = function(msg, reader) {
|
|
while (reader.nextField()) {
|
|
if (reader.isEndGroup()) {
|
|
break;
|
|
}
|
|
var field = reader.getFieldNumber();
|
|
switch (field) {
|
|
case 1:
|
|
var value = /** @type {number} */ (reader.readInt32());
|
|
msg.setInterioritemid(value);
|
|
break;
|
|
case 2:
|
|
var value = /** @type {number} */ (reader.readInt32());
|
|
msg.setFloor(value);
|
|
break;
|
|
case 3:
|
|
var value = new proto.Coordinate;
|
|
reader.readMessage(value,proto.Coordinate.deserializeBinaryFromReader);
|
|
msg.setCoordinate(value);
|
|
break;
|
|
case 4:
|
|
var value = new proto.Rotation;
|
|
reader.readMessage(value,proto.Rotation.deserializeBinaryFromReader);
|
|
msg.setRotation(value);
|
|
break;
|
|
case 5:
|
|
var value = /** @type {number} */ (reader.readInt32());
|
|
msg.setMaterialid(value);
|
|
break;
|
|
default:
|
|
reader.skipField();
|
|
break;
|
|
}
|
|
}
|
|
return msg;
|
|
};
|
|
|
|
|
|
/**
|
|
* Serializes the message to binary data (in protobuf wire format).
|
|
* @return {!Uint8Array}
|
|
*/
|
|
proto.UgcFrameworkInfo.prototype.serializeBinary = function() {
|
|
var writer = new jspb.BinaryWriter();
|
|
proto.UgcFrameworkInfo.serializeBinaryToWriter(this, writer);
|
|
return writer.getResultBuffer();
|
|
};
|
|
|
|
|
|
/**
|
|
* Serializes the given message to binary data (in protobuf wire
|
|
* format), writing to the given BinaryWriter.
|
|
* @param {!proto.UgcFrameworkInfo} message
|
|
* @param {!jspb.BinaryWriter} writer
|
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
*/
|
|
proto.UgcFrameworkInfo.serializeBinaryToWriter = function(message, writer) {
|
|
var f = undefined;
|
|
f = message.getInterioritemid();
|
|
if (f !== 0) {
|
|
writer.writeInt32(
|
|
1,
|
|
f
|
|
);
|
|
}
|
|
f = message.getFloor();
|
|
if (f !== 0) {
|
|
writer.writeInt32(
|
|
2,
|
|
f
|
|
);
|
|
}
|
|
f = message.getCoordinate();
|
|
if (f != null) {
|
|
writer.writeMessage(
|
|
3,
|
|
f,
|
|
proto.Coordinate.serializeBinaryToWriter
|
|
);
|
|
}
|
|
f = message.getRotation();
|
|
if (f != null) {
|
|
writer.writeMessage(
|
|
4,
|
|
f,
|
|
proto.Rotation.serializeBinaryToWriter
|
|
);
|
|
}
|
|
f = message.getMaterialid();
|
|
if (f !== 0) {
|
|
writer.writeInt32(
|
|
5,
|
|
f
|
|
);
|
|
}
|
|
};
|
|
|
|
|
|
/**
|
|
* optional int32 interiorItemId = 1;
|
|
* @return {number}
|
|
*/
|
|
proto.UgcFrameworkInfo.prototype.getInterioritemid = function() {
|
|
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
|
};
|
|
|
|
|
|
/**
|
|
* @param {number} value
|
|
* @return {!proto.UgcFrameworkInfo} returns this
|
|
*/
|
|
proto.UgcFrameworkInfo.prototype.setInterioritemid = function(value) {
|
|
return jspb.Message.setProto3IntField(this, 1, value);
|
|
};
|
|
|
|
|
|
/**
|
|
* optional int32 floor = 2;
|
|
* @return {number}
|
|
*/
|
|
proto.UgcFrameworkInfo.prototype.getFloor = function() {
|
|
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
|
|
};
|
|
|
|
|
|
/**
|
|
* @param {number} value
|
|
* @return {!proto.UgcFrameworkInfo} returns this
|
|
*/
|
|
proto.UgcFrameworkInfo.prototype.setFloor = function(value) {
|
|
return jspb.Message.setProto3IntField(this, 2, value);
|
|
};
|
|
|
|
|
|
/**
|
|
* optional Coordinate coordinate = 3;
|
|
* @return {?proto.Coordinate}
|
|
*/
|
|
proto.UgcFrameworkInfo.prototype.getCoordinate = function() {
|
|
return /** @type{?proto.Coordinate} */ (
|
|
jspb.Message.getWrapperField(this, proto.Coordinate, 3));
|
|
};
|
|
|
|
|
|
/**
|
|
* @param {?proto.Coordinate|undefined} value
|
|
* @return {!proto.UgcFrameworkInfo} returns this
|
|
*/
|
|
proto.UgcFrameworkInfo.prototype.setCoordinate = function(value) {
|
|
return jspb.Message.setWrapperField(this, 3, value);
|
|
};
|
|
|
|
|
|
/**
|
|
* Clears the message field making it undefined.
|
|
* @return {!proto.UgcFrameworkInfo} returns this
|
|
*/
|
|
proto.UgcFrameworkInfo.prototype.clearCoordinate = function() {
|
|
return this.setCoordinate(undefined);
|
|
};
|
|
|
|
|
|
/**
|
|
* Returns whether this field is set.
|
|
* @return {boolean}
|
|
*/
|
|
proto.UgcFrameworkInfo.prototype.hasCoordinate = function() {
|
|
return jspb.Message.getField(this, 3) != null;
|
|
};
|
|
|
|
|
|
/**
|
|
* optional Rotation rotation = 4;
|
|
* @return {?proto.Rotation}
|
|
*/
|
|
proto.UgcFrameworkInfo.prototype.getRotation = function() {
|
|
return /** @type{?proto.Rotation} */ (
|
|
jspb.Message.getWrapperField(this, proto.Rotation, 4));
|
|
};
|
|
|
|
|
|
/**
|
|
* @param {?proto.Rotation|undefined} value
|
|
* @return {!proto.UgcFrameworkInfo} returns this
|
|
*/
|
|
proto.UgcFrameworkInfo.prototype.setRotation = function(value) {
|
|
return jspb.Message.setWrapperField(this, 4, value);
|
|
};
|
|
|
|
|
|
/**
|
|
* Clears the message field making it undefined.
|
|
* @return {!proto.UgcFrameworkInfo} returns this
|
|
*/
|
|
proto.UgcFrameworkInfo.prototype.clearRotation = function() {
|
|
return this.setRotation(undefined);
|
|
};
|
|
|
|
|
|
/**
|
|
* Returns whether this field is set.
|
|
* @return {boolean}
|
|
*/
|
|
proto.UgcFrameworkInfo.prototype.hasRotation = function() {
|
|
return jspb.Message.getField(this, 4) != null;
|
|
};
|
|
|
|
|
|
/**
|
|
* optional int32 materialId = 5;
|
|
* @return {number}
|
|
*/
|
|
proto.UgcFrameworkInfo.prototype.getMaterialid = function() {
|
|
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0));
|
|
};
|
|
|
|
|
|
/**
|
|
* @param {number} value
|
|
* @return {!proto.UgcFrameworkInfo} returns this
|
|
*/
|
|
proto.UgcFrameworkInfo.prototype.setMaterialid = function(value) {
|
|
return jspb.Message.setProto3IntField(this, 5, 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.UgcAnchorInfo.prototype.toObject = function(opt_includeInstance) {
|
|
return proto.UgcAnchorInfo.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.UgcAnchorInfo} msg The msg instance to transform.
|
|
* @return {!Object}
|
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
*/
|
|
proto.UgcAnchorInfo.toObject = function(includeInstance, msg) {
|
|
var f, obj = {
|
|
anchorguid: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
anchortype: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
tableid: jspb.Message.getFieldWithDefault(msg, 3, 0),
|
|
entityguid: jspb.Message.getFieldWithDefault(msg, 4, ""),
|
|
coordinate: (f = msg.getCoordinate()) && proto.Coordinate.toObject(includeInstance, f),
|
|
rotation: (f = msg.getRotation()) && proto.Rotation.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.UgcAnchorInfo}
|
|
*/
|
|
proto.UgcAnchorInfo.deserializeBinary = function(bytes) {
|
|
var reader = new jspb.BinaryReader(bytes);
|
|
var msg = new proto.UgcAnchorInfo;
|
|
return proto.UgcAnchorInfo.deserializeBinaryFromReader(msg, reader);
|
|
};
|
|
|
|
|
|
/**
|
|
* Deserializes binary data (in protobuf wire format) from the
|
|
* given reader into the given message object.
|
|
* @param {!proto.UgcAnchorInfo} msg The message object to deserialize into.
|
|
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
* @return {!proto.UgcAnchorInfo}
|
|
*/
|
|
proto.UgcAnchorInfo.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.setAnchorguid(value);
|
|
break;
|
|
case 2:
|
|
var value = /** @type {string} */ (reader.readString());
|
|
msg.setAnchortype(value);
|
|
break;
|
|
case 3:
|
|
var value = /** @type {number} */ (reader.readInt32());
|
|
msg.setTableid(value);
|
|
break;
|
|
case 4:
|
|
var value = /** @type {string} */ (reader.readString());
|
|
msg.setEntityguid(value);
|
|
break;
|
|
case 5:
|
|
var value = new proto.Coordinate;
|
|
reader.readMessage(value,proto.Coordinate.deserializeBinaryFromReader);
|
|
msg.setCoordinate(value);
|
|
break;
|
|
case 6:
|
|
var value = new proto.Rotation;
|
|
reader.readMessage(value,proto.Rotation.deserializeBinaryFromReader);
|
|
msg.setRotation(value);
|
|
break;
|
|
default:
|
|
reader.skipField();
|
|
break;
|
|
}
|
|
}
|
|
return msg;
|
|
};
|
|
|
|
|
|
/**
|
|
* Serializes the message to binary data (in protobuf wire format).
|
|
* @return {!Uint8Array}
|
|
*/
|
|
proto.UgcAnchorInfo.prototype.serializeBinary = function() {
|
|
var writer = new jspb.BinaryWriter();
|
|
proto.UgcAnchorInfo.serializeBinaryToWriter(this, writer);
|
|
return writer.getResultBuffer();
|
|
};
|
|
|
|
|
|
/**
|
|
* Serializes the given message to binary data (in protobuf wire
|
|
* format), writing to the given BinaryWriter.
|
|
* @param {!proto.UgcAnchorInfo} message
|
|
* @param {!jspb.BinaryWriter} writer
|
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
*/
|
|
proto.UgcAnchorInfo.serializeBinaryToWriter = function(message, writer) {
|
|
var f = undefined;
|
|
f = message.getAnchorguid();
|
|
if (f.length > 0) {
|
|
writer.writeString(
|
|
1,
|
|
f
|
|
);
|
|
}
|
|
f = message.getAnchortype();
|
|
if (f.length > 0) {
|
|
writer.writeString(
|
|
2,
|
|
f
|
|
);
|
|
}
|
|
f = message.getTableid();
|
|
if (f !== 0) {
|
|
writer.writeInt32(
|
|
3,
|
|
f
|
|
);
|
|
}
|
|
f = message.getEntityguid();
|
|
if (f.length > 0) {
|
|
writer.writeString(
|
|
4,
|
|
f
|
|
);
|
|
}
|
|
f = message.getCoordinate();
|
|
if (f != null) {
|
|
writer.writeMessage(
|
|
5,
|
|
f,
|
|
proto.Coordinate.serializeBinaryToWriter
|
|
);
|
|
}
|
|
f = message.getRotation();
|
|
if (f != null) {
|
|
writer.writeMessage(
|
|
6,
|
|
f,
|
|
proto.Rotation.serializeBinaryToWriter
|
|
);
|
|
}
|
|
};
|
|
|
|
|
|
/**
|
|
* optional string anchorGuid = 1;
|
|
* @return {string}
|
|
*/
|
|
proto.UgcAnchorInfo.prototype.getAnchorguid = function() {
|
|
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
};
|
|
|
|
|
|
/**
|
|
* @param {string} value
|
|
* @return {!proto.UgcAnchorInfo} returns this
|
|
*/
|
|
proto.UgcAnchorInfo.prototype.setAnchorguid = function(value) {
|
|
return jspb.Message.setProto3StringField(this, 1, value);
|
|
};
|
|
|
|
|
|
/**
|
|
* optional string anchorType = 2;
|
|
* @return {string}
|
|
*/
|
|
proto.UgcAnchorInfo.prototype.getAnchortype = function() {
|
|
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
};
|
|
|
|
|
|
/**
|
|
* @param {string} value
|
|
* @return {!proto.UgcAnchorInfo} returns this
|
|
*/
|
|
proto.UgcAnchorInfo.prototype.setAnchortype = function(value) {
|
|
return jspb.Message.setProto3StringField(this, 2, value);
|
|
};
|
|
|
|
|
|
/**
|
|
* optional int32 tableId = 3;
|
|
* @return {number}
|
|
*/
|
|
proto.UgcAnchorInfo.prototype.getTableid = function() {
|
|
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
|
|
};
|
|
|
|
|
|
/**
|
|
* @param {number} value
|
|
* @return {!proto.UgcAnchorInfo} returns this
|
|
*/
|
|
proto.UgcAnchorInfo.prototype.setTableid = function(value) {
|
|
return jspb.Message.setProto3IntField(this, 3, value);
|
|
};
|
|
|
|
|
|
/**
|
|
* optional string entityGuid = 4;
|
|
* @return {string}
|
|
*/
|
|
proto.UgcAnchorInfo.prototype.getEntityguid = function() {
|
|
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
|
|
};
|
|
|
|
|
|
/**
|
|
* @param {string} value
|
|
* @return {!proto.UgcAnchorInfo} returns this
|
|
*/
|
|
proto.UgcAnchorInfo.prototype.setEntityguid = function(value) {
|
|
return jspb.Message.setProto3StringField(this, 4, value);
|
|
};
|
|
|
|
|
|
/**
|
|
* optional Coordinate coordinate = 5;
|
|
* @return {?proto.Coordinate}
|
|
*/
|
|
proto.UgcAnchorInfo.prototype.getCoordinate = function() {
|
|
return /** @type{?proto.Coordinate} */ (
|
|
jspb.Message.getWrapperField(this, proto.Coordinate, 5));
|
|
};
|
|
|
|
|
|
/**
|
|
* @param {?proto.Coordinate|undefined} value
|
|
* @return {!proto.UgcAnchorInfo} returns this
|
|
*/
|
|
proto.UgcAnchorInfo.prototype.setCoordinate = function(value) {
|
|
return jspb.Message.setWrapperField(this, 5, value);
|
|
};
|
|
|
|
|
|
/**
|
|
* Clears the message field making it undefined.
|
|
* @return {!proto.UgcAnchorInfo} returns this
|
|
*/
|
|
proto.UgcAnchorInfo.prototype.clearCoordinate = function() {
|
|
return this.setCoordinate(undefined);
|
|
};
|
|
|
|
|
|
/**
|
|
* Returns whether this field is set.
|
|
* @return {boolean}
|
|
*/
|
|
proto.UgcAnchorInfo.prototype.hasCoordinate = function() {
|
|
return jspb.Message.getField(this, 5) != null;
|
|
};
|
|
|
|
|
|
/**
|
|
* optional Rotation rotation = 6;
|
|
* @return {?proto.Rotation}
|
|
*/
|
|
proto.UgcAnchorInfo.prototype.getRotation = function() {
|
|
return /** @type{?proto.Rotation} */ (
|
|
jspb.Message.getWrapperField(this, proto.Rotation, 6));
|
|
};
|
|
|
|
|
|
/**
|
|
* @param {?proto.Rotation|undefined} value
|
|
* @return {!proto.UgcAnchorInfo} returns this
|
|
*/
|
|
proto.UgcAnchorInfo.prototype.setRotation = function(value) {
|
|
return jspb.Message.setWrapperField(this, 6, value);
|
|
};
|
|
|
|
|
|
/**
|
|
* Clears the message field making it undefined.
|
|
* @return {!proto.UgcAnchorInfo} returns this
|
|
*/
|
|
proto.UgcAnchorInfo.prototype.clearRotation = function() {
|
|
return this.setRotation(undefined);
|
|
};
|
|
|
|
|
|
/**
|
|
* Returns whether this field is set.
|
|
* @return {boolean}
|
|
*/
|
|
proto.UgcAnchorInfo.prototype.hasRotation = function() {
|
|
return jspb.Message.getField(this, 6) != 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.Coordinate.prototype.toObject = function(opt_includeInstance) {
|
|
return proto.Coordinate.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.Coordinate} msg The msg instance to transform.
|
|
* @return {!Object}
|
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
*/
|
|
proto.Coordinate.toObject = function(includeInstance, msg) {
|
|
var f, obj = {
|
|
x: jspb.Message.getFloatingPointFieldWithDefault(msg, 1, 0.0),
|
|
y: jspb.Message.getFloatingPointFieldWithDefault(msg, 2, 0.0),
|
|
z: jspb.Message.getFloatingPointFieldWithDefault(msg, 3, 0.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.Coordinate}
|
|
*/
|
|
proto.Coordinate.deserializeBinary = function(bytes) {
|
|
var reader = new jspb.BinaryReader(bytes);
|
|
var msg = new proto.Coordinate;
|
|
return proto.Coordinate.deserializeBinaryFromReader(msg, reader);
|
|
};
|
|
|
|
|
|
/**
|
|
* Deserializes binary data (in protobuf wire format) from the
|
|
* given reader into the given message object.
|
|
* @param {!proto.Coordinate} msg The message object to deserialize into.
|
|
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
* @return {!proto.Coordinate}
|
|
*/
|
|
proto.Coordinate.deserializeBinaryFromReader = function(msg, reader) {
|
|
while (reader.nextField()) {
|
|
if (reader.isEndGroup()) {
|
|
break;
|
|
}
|
|
var field = reader.getFieldNumber();
|
|
switch (field) {
|
|
case 1:
|
|
var value = /** @type {number} */ (reader.readFloat());
|
|
msg.setX(value);
|
|
break;
|
|
case 2:
|
|
var value = /** @type {number} */ (reader.readFloat());
|
|
msg.setY(value);
|
|
break;
|
|
case 3:
|
|
var value = /** @type {number} */ (reader.readFloat());
|
|
msg.setZ(value);
|
|
break;
|
|
default:
|
|
reader.skipField();
|
|
break;
|
|
}
|
|
}
|
|
return msg;
|
|
};
|
|
|
|
|
|
/**
|
|
* Serializes the message to binary data (in protobuf wire format).
|
|
* @return {!Uint8Array}
|
|
*/
|
|
proto.Coordinate.prototype.serializeBinary = function() {
|
|
var writer = new jspb.BinaryWriter();
|
|
proto.Coordinate.serializeBinaryToWriter(this, writer);
|
|
return writer.getResultBuffer();
|
|
};
|
|
|
|
|
|
/**
|
|
* Serializes the given message to binary data (in protobuf wire
|
|
* format), writing to the given BinaryWriter.
|
|
* @param {!proto.Coordinate} message
|
|
* @param {!jspb.BinaryWriter} writer
|
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
*/
|
|
proto.Coordinate.serializeBinaryToWriter = function(message, writer) {
|
|
var f = undefined;
|
|
f = message.getX();
|
|
if (f !== 0.0) {
|
|
writer.writeFloat(
|
|
1,
|
|
f
|
|
);
|
|
}
|
|
f = message.getY();
|
|
if (f !== 0.0) {
|
|
writer.writeFloat(
|
|
2,
|
|
f
|
|
);
|
|
}
|
|
f = message.getZ();
|
|
if (f !== 0.0) {
|
|
writer.writeFloat(
|
|
3,
|
|
f
|
|
);
|
|
}
|
|
};
|
|
|
|
|
|
/**
|
|
* optional float x = 1;
|
|
* @return {number}
|
|
*/
|
|
proto.Coordinate.prototype.getX = function() {
|
|
return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 1, 0.0));
|
|
};
|
|
|
|
|
|
/**
|
|
* @param {number} value
|
|
* @return {!proto.Coordinate} returns this
|
|
*/
|
|
proto.Coordinate.prototype.setX = function(value) {
|
|
return jspb.Message.setProto3FloatField(this, 1, value);
|
|
};
|
|
|
|
|
|
/**
|
|
* optional float y = 2;
|
|
* @return {number}
|
|
*/
|
|
proto.Coordinate.prototype.getY = function() {
|
|
return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 2, 0.0));
|
|
};
|
|
|
|
|
|
/**
|
|
* @param {number} value
|
|
* @return {!proto.Coordinate} returns this
|
|
*/
|
|
proto.Coordinate.prototype.setY = function(value) {
|
|
return jspb.Message.setProto3FloatField(this, 2, value);
|
|
};
|
|
|
|
|
|
/**
|
|
* optional float z = 3;
|
|
* @return {number}
|
|
*/
|
|
proto.Coordinate.prototype.getZ = function() {
|
|
return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 3, 0.0));
|
|
};
|
|
|
|
|
|
/**
|
|
* @param {number} value
|
|
* @return {!proto.Coordinate} returns this
|
|
*/
|
|
proto.Coordinate.prototype.setZ = function(value) {
|
|
return jspb.Message.setProto3FloatField(this, 3, value);
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
/**
|
|
* Creates an object representation of this proto.
|
|
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
* Optional fields that are not set will be set to undefined.
|
|
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
* For the list of reserved names please see:
|
|
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
* JSPB instance for transitional soy proto support:
|
|
* http://goto/soy-param-migration
|
|
* @return {!Object}
|
|
*/
|
|
proto.Rotation.prototype.toObject = function(opt_includeInstance) {
|
|
return proto.Rotation.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.Rotation} msg The msg instance to transform.
|
|
* @return {!Object}
|
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
*/
|
|
proto.Rotation.toObject = function(includeInstance, msg) {
|
|
var f, obj = {
|
|
pitch: jspb.Message.getFloatingPointFieldWithDefault(msg, 1, 0.0),
|
|
yaw: jspb.Message.getFloatingPointFieldWithDefault(msg, 2, 0.0),
|
|
roll: jspb.Message.getFloatingPointFieldWithDefault(msg, 3, 0.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.Rotation}
|
|
*/
|
|
proto.Rotation.deserializeBinary = function(bytes) {
|
|
var reader = new jspb.BinaryReader(bytes);
|
|
var msg = new proto.Rotation;
|
|
return proto.Rotation.deserializeBinaryFromReader(msg, reader);
|
|
};
|
|
|
|
|
|
/**
|
|
* Deserializes binary data (in protobuf wire format) from the
|
|
* given reader into the given message object.
|
|
* @param {!proto.Rotation} msg The message object to deserialize into.
|
|
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
* @return {!proto.Rotation}
|
|
*/
|
|
proto.Rotation.deserializeBinaryFromReader = function(msg, reader) {
|
|
while (reader.nextField()) {
|
|
if (reader.isEndGroup()) {
|
|
break;
|
|
}
|
|
var field = reader.getFieldNumber();
|
|
switch (field) {
|
|
case 1:
|
|
var value = /** @type {number} */ (reader.readFloat());
|
|
msg.setPitch(value);
|
|
break;
|
|
case 2:
|
|
var value = /** @type {number} */ (reader.readFloat());
|
|
msg.setYaw(value);
|
|
break;
|
|
case 3:
|
|
var value = /** @type {number} */ (reader.readFloat());
|
|
msg.setRoll(value);
|
|
break;
|
|
default:
|
|
reader.skipField();
|
|
break;
|
|
}
|
|
}
|
|
return msg;
|
|
};
|
|
|
|
|
|
/**
|
|
* Serializes the message to binary data (in protobuf wire format).
|
|
* @return {!Uint8Array}
|
|
*/
|
|
proto.Rotation.prototype.serializeBinary = function() {
|
|
var writer = new jspb.BinaryWriter();
|
|
proto.Rotation.serializeBinaryToWriter(this, writer);
|
|
return writer.getResultBuffer();
|
|
};
|
|
|
|
|
|
/**
|
|
* Serializes the given message to binary data (in protobuf wire
|
|
* format), writing to the given BinaryWriter.
|
|
* @param {!proto.Rotation} message
|
|
* @param {!jspb.BinaryWriter} writer
|
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
*/
|
|
proto.Rotation.serializeBinaryToWriter = function(message, writer) {
|
|
var f = undefined;
|
|
f = message.getPitch();
|
|
if (f !== 0.0) {
|
|
writer.writeFloat(
|
|
1,
|
|
f
|
|
);
|
|
}
|
|
f = message.getYaw();
|
|
if (f !== 0.0) {
|
|
writer.writeFloat(
|
|
2,
|
|
f
|
|
);
|
|
}
|
|
f = message.getRoll();
|
|
if (f !== 0.0) {
|
|
writer.writeFloat(
|
|
3,
|
|
f
|
|
);
|
|
}
|
|
};
|
|
|
|
|
|
/**
|
|
* optional float Pitch = 1;
|
|
* @return {number}
|
|
*/
|
|
proto.Rotation.prototype.getPitch = function() {
|
|
return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 1, 0.0));
|
|
};
|
|
|
|
|
|
/**
|
|
* @param {number} value
|
|
* @return {!proto.Rotation} returns this
|
|
*/
|
|
proto.Rotation.prototype.setPitch = function(value) {
|
|
return jspb.Message.setProto3FloatField(this, 1, value);
|
|
};
|
|
|
|
|
|
/**
|
|
* optional float Yaw = 2;
|
|
* @return {number}
|
|
*/
|
|
proto.Rotation.prototype.getYaw = function() {
|
|
return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 2, 0.0));
|
|
};
|
|
|
|
|
|
/**
|
|
* @param {number} value
|
|
* @return {!proto.Rotation} returns this
|
|
*/
|
|
proto.Rotation.prototype.setYaw = function(value) {
|
|
return jspb.Message.setProto3FloatField(this, 2, value);
|
|
};
|
|
|
|
|
|
/**
|
|
* optional float Roll = 3;
|
|
* @return {number}
|
|
*/
|
|
proto.Rotation.prototype.getRoll = function() {
|
|
return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 3, 0.0));
|
|
};
|
|
|
|
|
|
/**
|
|
* @param {number} value
|
|
* @return {!proto.Rotation} returns this
|
|
*/
|
|
proto.Rotation.prototype.setRoll = function(value) {
|
|
return jspb.Message.setProto3FloatField(this, 3, value);
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
/**
|
|
* Creates an object representation of this proto.
|
|
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
* Optional fields that are not set will be set to undefined.
|
|
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
* For the list of reserved names please see:
|
|
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
* JSPB instance for transitional soy proto support:
|
|
* http://goto/soy-param-migration
|
|
* @return {!Object}
|
|
*/
|
|
proto.StringProfile.prototype.toObject = function(opt_includeInstance) {
|
|
return proto.StringProfile.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.StringProfile} msg The msg instance to transform.
|
|
* @return {!Object}
|
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
*/
|
|
proto.StringProfile.toObject = function(includeInstance, msg) {
|
|
var f, obj = {
|
|
stringprofileMap: (f = msg.getStringprofileMap()) ? f.toObject(includeInstance, undefined) : []
|
|
};
|
|
|
|
if (includeInstance) {
|
|
obj.$jspbMessageInstance = msg;
|
|
}
|
|
return obj;
|
|
};
|
|
}
|
|
|
|
|
|
/**
|
|
* Deserializes binary data (in protobuf wire format).
|
|
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
* @return {!proto.StringProfile}
|
|
*/
|
|
proto.StringProfile.deserializeBinary = function(bytes) {
|
|
var reader = new jspb.BinaryReader(bytes);
|
|
var msg = new proto.StringProfile;
|
|
return proto.StringProfile.deserializeBinaryFromReader(msg, reader);
|
|
};
|
|
|
|
|
|
/**
|
|
* Deserializes binary data (in protobuf wire format) from the
|
|
* given reader into the given message object.
|
|
* @param {!proto.StringProfile} msg The message object to deserialize into.
|
|
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
* @return {!proto.StringProfile}
|
|
*/
|
|
proto.StringProfile.deserializeBinaryFromReader = function(msg, reader) {
|
|
while (reader.nextField()) {
|
|
if (reader.isEndGroup()) {
|
|
break;
|
|
}
|
|
var field = reader.getFieldNumber();
|
|
switch (field) {
|
|
case 1:
|
|
var value = msg.getStringprofileMap();
|
|
reader.readMessage(value, function(message, reader) {
|
|
jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readString, null, "", "");
|
|
});
|
|
break;
|
|
default:
|
|
reader.skipField();
|
|
break;
|
|
}
|
|
}
|
|
return msg;
|
|
};
|
|
|
|
|
|
/**
|
|
* Serializes the message to binary data (in protobuf wire format).
|
|
* @return {!Uint8Array}
|
|
*/
|
|
proto.StringProfile.prototype.serializeBinary = function() {
|
|
var writer = new jspb.BinaryWriter();
|
|
proto.StringProfile.serializeBinaryToWriter(this, writer);
|
|
return writer.getResultBuffer();
|
|
};
|
|
|
|
|
|
/**
|
|
* Serializes the given message to binary data (in protobuf wire
|
|
* format), writing to the given BinaryWriter.
|
|
* @param {!proto.StringProfile} message
|
|
* @param {!jspb.BinaryWriter} writer
|
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
*/
|
|
proto.StringProfile.serializeBinaryToWriter = function(message, writer) {
|
|
var f = undefined;
|
|
f = message.getStringprofileMap(true);
|
|
if (f && f.getLength() > 0) {
|
|
f.serializeBinary(1, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeString);
|
|
}
|
|
};
|
|
|
|
|
|
/**
|
|
* map<string, string> stringProfile = 1;
|
|
* @param {boolean=} opt_noLazyCreate Do not create the map if
|
|
* empty, instead returning `undefined`
|
|
* @return {!jspb.Map<string,string>}
|
|
*/
|
|
proto.StringProfile.prototype.getStringprofileMap = function(opt_noLazyCreate) {
|
|
return /** @type {!jspb.Map<string,string>} */ (
|
|
jspb.Message.getMapField(this, 1, opt_noLazyCreate,
|
|
null));
|
|
};
|
|
|
|
|
|
/**
|
|
* Clears values from the map. The map will be non-null.
|
|
* @return {!proto.StringProfile} returns this
|
|
*/
|
|
proto.StringProfile.prototype.clearStringprofileMap = function() {
|
|
this.getStringprofileMap().clear();
|
|
return this;};
|
|
|
|
|
|
|
|
|
|
|
|
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.UserLocationInfo.prototype.toObject = function(opt_includeInstance) {
|
|
return proto.UserLocationInfo.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.UserLocationInfo} msg The msg instance to transform.
|
|
* @return {!Object}
|
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
*/
|
|
proto.UserLocationInfo.toObject = function(includeInstance, msg) {
|
|
var f, obj = {
|
|
ischannel: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
|
id: jspb.Message.getFieldWithDefault(msg, 2, 0),
|
|
channelnumber: jspb.Message.getFieldWithDefault(msg, 3, 0),
|
|
language: jspb.Message.getFieldWithDefault(msg, 4, 0)
|
|
};
|
|
|
|
if (includeInstance) {
|
|
obj.$jspbMessageInstance = msg;
|
|
}
|
|
return obj;
|
|
};
|
|
}
|
|
|
|
|
|
/**
|
|
* Deserializes binary data (in protobuf wire format).
|
|
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
* @return {!proto.UserLocationInfo}
|
|
*/
|
|
proto.UserLocationInfo.deserializeBinary = function(bytes) {
|
|
var reader = new jspb.BinaryReader(bytes);
|
|
var msg = new proto.UserLocationInfo;
|
|
return proto.UserLocationInfo.deserializeBinaryFromReader(msg, reader);
|
|
};
|
|
|
|
|
|
/**
|
|
* Deserializes binary data (in protobuf wire format) from the
|
|
* given reader into the given message object.
|
|
* @param {!proto.UserLocationInfo} msg The message object to deserialize into.
|
|
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
* @return {!proto.UserLocationInfo}
|
|
*/
|
|
proto.UserLocationInfo.deserializeBinaryFromReader = function(msg, reader) {
|
|
while (reader.nextField()) {
|
|
if (reader.isEndGroup()) {
|
|
break;
|
|
}
|
|
var field = reader.getFieldNumber();
|
|
switch (field) {
|
|
case 1:
|
|
var value = /** @type {number} */ (reader.readInt32());
|
|
msg.setIschannel(value);
|
|
break;
|
|
case 2:
|
|
var value = /** @type {number} */ (reader.readInt32());
|
|
msg.setId(value);
|
|
break;
|
|
case 3:
|
|
var value = /** @type {number} */ (reader.readInt32());
|
|
msg.setChannelnumber(value);
|
|
break;
|
|
case 4:
|
|
var value = /** @type {number} */ (reader.readInt32());
|
|
msg.setLanguage(value);
|
|
break;
|
|
default:
|
|
reader.skipField();
|
|
break;
|
|
}
|
|
}
|
|
return msg;
|
|
};
|
|
|
|
|
|
/**
|
|
* Serializes the message to binary data (in protobuf wire format).
|
|
* @return {!Uint8Array}
|
|
*/
|
|
proto.UserLocationInfo.prototype.serializeBinary = function() {
|
|
var writer = new jspb.BinaryWriter();
|
|
proto.UserLocationInfo.serializeBinaryToWriter(this, writer);
|
|
return writer.getResultBuffer();
|
|
};
|
|
|
|
|
|
/**
|
|
* Serializes the given message to binary data (in protobuf wire
|
|
* format), writing to the given BinaryWriter.
|
|
* @param {!proto.UserLocationInfo} message
|
|
* @param {!jspb.BinaryWriter} writer
|
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
*/
|
|
proto.UserLocationInfo.serializeBinaryToWriter = function(message, writer) {
|
|
var f = undefined;
|
|
f = message.getIschannel();
|
|
if (f !== 0) {
|
|
writer.writeInt32(
|
|
1,
|
|
f
|
|
);
|
|
}
|
|
f = message.getId();
|
|
if (f !== 0) {
|
|
writer.writeInt32(
|
|
2,
|
|
f
|
|
);
|
|
}
|
|
f = message.getChannelnumber();
|
|
if (f !== 0) {
|
|
writer.writeInt32(
|
|
3,
|
|
f
|
|
);
|
|
}
|
|
f = message.getLanguage();
|
|
if (f !== 0) {
|
|
writer.writeInt32(
|
|
4,
|
|
f
|
|
);
|
|
}
|
|
};
|
|
|
|
|
|
/**
|
|
* optional int32 isChannel = 1;
|
|
* @return {number}
|
|
*/
|
|
proto.UserLocationInfo.prototype.getIschannel = function() {
|
|
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
|
};
|
|
|
|
|
|
/**
|
|
* @param {number} value
|
|
* @return {!proto.UserLocationInfo} returns this
|
|
*/
|
|
proto.UserLocationInfo.prototype.setIschannel = function(value) {
|
|
return jspb.Message.setProto3IntField(this, 1, value);
|
|
};
|
|
|
|
|
|
/**
|
|
* optional int32 id = 2;
|
|
* @return {number}
|
|
*/
|
|
proto.UserLocationInfo.prototype.getId = function() {
|
|
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
|
|
};
|
|
|
|
|
|
/**
|
|
* @param {number} value
|
|
* @return {!proto.UserLocationInfo} returns this
|
|
*/
|
|
proto.UserLocationInfo.prototype.setId = function(value) {
|
|
return jspb.Message.setProto3IntField(this, 2, value);
|
|
};
|
|
|
|
|
|
/**
|
|
* optional int32 channelNumber = 3;
|
|
* @return {number}
|
|
*/
|
|
proto.UserLocationInfo.prototype.getChannelnumber = function() {
|
|
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
|
|
};
|
|
|
|
|
|
/**
|
|
* @param {number} value
|
|
* @return {!proto.UserLocationInfo} returns this
|
|
*/
|
|
proto.UserLocationInfo.prototype.setChannelnumber = function(value) {
|
|
return jspb.Message.setProto3IntField(this, 3, value);
|
|
};
|
|
|
|
|
|
/**
|
|
* optional int32 language = 4;
|
|
* @return {number}
|
|
*/
|
|
proto.UserLocationInfo.prototype.getLanguage = function() {
|
|
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
|
|
};
|
|
|
|
|
|
/**
|
|
* @param {number} value
|
|
* @return {!proto.UserLocationInfo} returns this
|
|
*/
|
|
proto.UserLocationInfo.prototype.setLanguage = function(value) {
|
|
return jspb.Message.setProto3IntField(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.Pos.prototype.toObject = function(opt_includeInstance) {
|
|
return proto.Pos.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.Pos} msg The msg instance to transform.
|
|
* @return {!Object}
|
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
*/
|
|
proto.Pos.toObject = function(includeInstance, msg) {
|
|
var f, obj = {
|
|
x: jspb.Message.getFloatingPointFieldWithDefault(msg, 1, 0.0),
|
|
y: jspb.Message.getFloatingPointFieldWithDefault(msg, 2, 0.0),
|
|
z: jspb.Message.getFloatingPointFieldWithDefault(msg, 3, 0.0),
|
|
angle: jspb.Message.getFieldWithDefault(msg, 4, 0)
|
|
};
|
|
|
|
if (includeInstance) {
|
|
obj.$jspbMessageInstance = msg;
|
|
}
|
|
return obj;
|
|
};
|
|
}
|
|
|
|
|
|
/**
|
|
* Deserializes binary data (in protobuf wire format).
|
|
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
* @return {!proto.Pos}
|
|
*/
|
|
proto.Pos.deserializeBinary = function(bytes) {
|
|
var reader = new jspb.BinaryReader(bytes);
|
|
var msg = new proto.Pos;
|
|
return proto.Pos.deserializeBinaryFromReader(msg, reader);
|
|
};
|
|
|
|
|
|
/**
|
|
* Deserializes binary data (in protobuf wire format) from the
|
|
* given reader into the given message object.
|
|
* @param {!proto.Pos} msg The message object to deserialize into.
|
|
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
* @return {!proto.Pos}
|
|
*/
|
|
proto.Pos.deserializeBinaryFromReader = function(msg, reader) {
|
|
while (reader.nextField()) {
|
|
if (reader.isEndGroup()) {
|
|
break;
|
|
}
|
|
var field = reader.getFieldNumber();
|
|
switch (field) {
|
|
case 1:
|
|
var value = /** @type {number} */ (reader.readFloat());
|
|
msg.setX(value);
|
|
break;
|
|
case 2:
|
|
var value = /** @type {number} */ (reader.readFloat());
|
|
msg.setY(value);
|
|
break;
|
|
case 3:
|
|
var value = /** @type {number} */ (reader.readFloat());
|
|
msg.setZ(value);
|
|
break;
|
|
case 4:
|
|
var value = /** @type {number} */ (reader.readInt32());
|
|
msg.setAngle(value);
|
|
break;
|
|
default:
|
|
reader.skipField();
|
|
break;
|
|
}
|
|
}
|
|
return msg;
|
|
};
|
|
|
|
|
|
/**
|
|
* Serializes the message to binary data (in protobuf wire format).
|
|
* @return {!Uint8Array}
|
|
*/
|
|
proto.Pos.prototype.serializeBinary = function() {
|
|
var writer = new jspb.BinaryWriter();
|
|
proto.Pos.serializeBinaryToWriter(this, writer);
|
|
return writer.getResultBuffer();
|
|
};
|
|
|
|
|
|
/**
|
|
* Serializes the given message to binary data (in protobuf wire
|
|
* format), writing to the given BinaryWriter.
|
|
* @param {!proto.Pos} message
|
|
* @param {!jspb.BinaryWriter} writer
|
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
*/
|
|
proto.Pos.serializeBinaryToWriter = function(message, writer) {
|
|
var f = undefined;
|
|
f = message.getX();
|
|
if (f !== 0.0) {
|
|
writer.writeFloat(
|
|
1,
|
|
f
|
|
);
|
|
}
|
|
f = message.getY();
|
|
if (f !== 0.0) {
|
|
writer.writeFloat(
|
|
2,
|
|
f
|
|
);
|
|
}
|
|
f = message.getZ();
|
|
if (f !== 0.0) {
|
|
writer.writeFloat(
|
|
3,
|
|
f
|
|
);
|
|
}
|
|
f = message.getAngle();
|
|
if (f !== 0) {
|
|
writer.writeInt32(
|
|
4,
|
|
f
|
|
);
|
|
}
|
|
};
|
|
|
|
|
|
/**
|
|
* optional float x = 1;
|
|
* @return {number}
|
|
*/
|
|
proto.Pos.prototype.getX = function() {
|
|
return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 1, 0.0));
|
|
};
|
|
|
|
|
|
/**
|
|
* @param {number} value
|
|
* @return {!proto.Pos} returns this
|
|
*/
|
|
proto.Pos.prototype.setX = function(value) {
|
|
return jspb.Message.setProto3FloatField(this, 1, value);
|
|
};
|
|
|
|
|
|
/**
|
|
* optional float y = 2;
|
|
* @return {number}
|
|
*/
|
|
proto.Pos.prototype.getY = function() {
|
|
return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 2, 0.0));
|
|
};
|
|
|
|
|
|
/**
|
|
* @param {number} value
|
|
* @return {!proto.Pos} returns this
|
|
*/
|
|
proto.Pos.prototype.setY = function(value) {
|
|
return jspb.Message.setProto3FloatField(this, 2, value);
|
|
};
|
|
|
|
|
|
/**
|
|
* optional float z = 3;
|
|
* @return {number}
|
|
*/
|
|
proto.Pos.prototype.getZ = function() {
|
|
return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 3, 0.0));
|
|
};
|
|
|
|
|
|
/**
|
|
* @param {number} value
|
|
* @return {!proto.Pos} returns this
|
|
*/
|
|
proto.Pos.prototype.setZ = function(value) {
|
|
return jspb.Message.setProto3FloatField(this, 3, value);
|
|
};
|
|
|
|
|
|
/**
|
|
* optional int32 angle = 4;
|
|
* @return {number}
|
|
*/
|
|
proto.Pos.prototype.getAngle = function() {
|
|
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
|
|
};
|
|
|
|
|
|
/**
|
|
* @param {number} value
|
|
* @return {!proto.Pos} returns this
|
|
*/
|
|
proto.Pos.prototype.setAngle = function(value) {
|
|
return jspb.Message.setProto3IntField(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.Money.prototype.toObject = function(opt_includeInstance) {
|
|
return proto.Money.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.Money} msg The msg instance to transform.
|
|
* @return {!Object}
|
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
*/
|
|
proto.Money.toObject = function(includeInstance, msg) {
|
|
var f, obj = {
|
|
amount: jspb.Message.getFloatingPointFieldWithDefault(msg, 1, 0.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.Money}
|
|
*/
|
|
proto.Money.deserializeBinary = function(bytes) {
|
|
var reader = new jspb.BinaryReader(bytes);
|
|
var msg = new proto.Money;
|
|
return proto.Money.deserializeBinaryFromReader(msg, reader);
|
|
};
|
|
|
|
|
|
/**
|
|
* Deserializes binary data (in protobuf wire format) from the
|
|
* given reader into the given message object.
|
|
* @param {!proto.Money} msg The message object to deserialize into.
|
|
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
* @return {!proto.Money}
|
|
*/
|
|
proto.Money.deserializeBinaryFromReader = function(msg, reader) {
|
|
while (reader.nextField()) {
|
|
if (reader.isEndGroup()) {
|
|
break;
|
|
}
|
|
var field = reader.getFieldNumber();
|
|
switch (field) {
|
|
case 1:
|
|
var value = /** @type {number} */ (reader.readDouble());
|
|
msg.setAmount(value);
|
|
break;
|
|
default:
|
|
reader.skipField();
|
|
break;
|
|
}
|
|
}
|
|
return msg;
|
|
};
|
|
|
|
|
|
/**
|
|
* Serializes the message to binary data (in protobuf wire format).
|
|
* @return {!Uint8Array}
|
|
*/
|
|
proto.Money.prototype.serializeBinary = function() {
|
|
var writer = new jspb.BinaryWriter();
|
|
proto.Money.serializeBinaryToWriter(this, writer);
|
|
return writer.getResultBuffer();
|
|
};
|
|
|
|
|
|
/**
|
|
* Serializes the given message to binary data (in protobuf wire
|
|
* format), writing to the given BinaryWriter.
|
|
* @param {!proto.Money} message
|
|
* @param {!jspb.BinaryWriter} writer
|
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
*/
|
|
proto.Money.serializeBinaryToWriter = function(message, writer) {
|
|
var f = undefined;
|
|
f = message.getAmount();
|
|
if (f !== 0.0) {
|
|
writer.writeDouble(
|
|
1,
|
|
f
|
|
);
|
|
}
|
|
};
|
|
|
|
|
|
/**
|
|
* optional double amount = 1;
|
|
* @return {number}
|
|
*/
|
|
proto.Money.prototype.getAmount = function() {
|
|
return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 1, 0.0));
|
|
};
|
|
|
|
|
|
/**
|
|
* @param {number} value
|
|
* @return {!proto.Money} returns this
|
|
*/
|
|
proto.Money.prototype.setAmount = function(value) {
|
|
return jspb.Message.setProto3FloatField(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.MoneyDeltaAmount.prototype.toObject = function(opt_includeInstance) {
|
|
return proto.MoneyDeltaAmount.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.MoneyDeltaAmount} msg The msg instance to transform.
|
|
* @return {!Object}
|
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
*/
|
|
proto.MoneyDeltaAmount.toObject = function(includeInstance, msg) {
|
|
var f, obj = {
|
|
deltatype: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
|
amount: jspb.Message.getFloatingPointFieldWithDefault(msg, 2, 0.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.MoneyDeltaAmount}
|
|
*/
|
|
proto.MoneyDeltaAmount.deserializeBinary = function(bytes) {
|
|
var reader = new jspb.BinaryReader(bytes);
|
|
var msg = new proto.MoneyDeltaAmount;
|
|
return proto.MoneyDeltaAmount.deserializeBinaryFromReader(msg, reader);
|
|
};
|
|
|
|
|
|
/**
|
|
* Deserializes binary data (in protobuf wire format) from the
|
|
* given reader into the given message object.
|
|
* @param {!proto.MoneyDeltaAmount} msg The message object to deserialize into.
|
|
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
* @return {!proto.MoneyDeltaAmount}
|
|
*/
|
|
proto.MoneyDeltaAmount.deserializeBinaryFromReader = function(msg, reader) {
|
|
while (reader.nextField()) {
|
|
if (reader.isEndGroup()) {
|
|
break;
|
|
}
|
|
var field = reader.getFieldNumber();
|
|
switch (field) {
|
|
case 1:
|
|
var value = /** @type {!proto.AmountDeltaType} */ (reader.readEnum());
|
|
msg.setDeltatype(value);
|
|
break;
|
|
case 2:
|
|
var value = /** @type {number} */ (reader.readDouble());
|
|
msg.setAmount(value);
|
|
break;
|
|
default:
|
|
reader.skipField();
|
|
break;
|
|
}
|
|
}
|
|
return msg;
|
|
};
|
|
|
|
|
|
/**
|
|
* Serializes the message to binary data (in protobuf wire format).
|
|
* @return {!Uint8Array}
|
|
*/
|
|
proto.MoneyDeltaAmount.prototype.serializeBinary = function() {
|
|
var writer = new jspb.BinaryWriter();
|
|
proto.MoneyDeltaAmount.serializeBinaryToWriter(this, writer);
|
|
return writer.getResultBuffer();
|
|
};
|
|
|
|
|
|
/**
|
|
* Serializes the given message to binary data (in protobuf wire
|
|
* format), writing to the given BinaryWriter.
|
|
* @param {!proto.MoneyDeltaAmount} message
|
|
* @param {!jspb.BinaryWriter} writer
|
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
*/
|
|
proto.MoneyDeltaAmount.serializeBinaryToWriter = function(message, writer) {
|
|
var f = undefined;
|
|
f = message.getDeltatype();
|
|
if (f !== 0.0) {
|
|
writer.writeEnum(
|
|
1,
|
|
f
|
|
);
|
|
}
|
|
f = message.getAmount();
|
|
if (f !== 0.0) {
|
|
writer.writeDouble(
|
|
2,
|
|
f
|
|
);
|
|
}
|
|
};
|
|
|
|
|
|
/**
|
|
* optional AmountDeltaType deltaType = 1;
|
|
* @return {!proto.AmountDeltaType}
|
|
*/
|
|
proto.MoneyDeltaAmount.prototype.getDeltatype = function() {
|
|
return /** @type {!proto.AmountDeltaType} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
|
};
|
|
|
|
|
|
/**
|
|
* @param {!proto.AmountDeltaType} value
|
|
* @return {!proto.MoneyDeltaAmount} returns this
|
|
*/
|
|
proto.MoneyDeltaAmount.prototype.setDeltatype = function(value) {
|
|
return jspb.Message.setProto3EnumField(this, 1, value);
|
|
};
|
|
|
|
|
|
/**
|
|
* optional double amount = 2;
|
|
* @return {number}
|
|
*/
|
|
proto.MoneyDeltaAmount.prototype.getAmount = function() {
|
|
return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 2, 0.0));
|
|
};
|
|
|
|
|
|
/**
|
|
* @param {number} value
|
|
* @return {!proto.MoneyDeltaAmount} returns this
|
|
*/
|
|
proto.MoneyDeltaAmount.prototype.setAmount = function(value) {
|
|
return jspb.Message.setProto3FloatField(this, 2, value);
|
|
};
|
|
|
|
|
|
/**
|
|
* @enum {number}
|
|
*/
|
|
proto.BoolType = {
|
|
BOOLTYPE_NONE: 0,
|
|
BOOLTYPE_TRUE: 1,
|
|
BOOLTYPE_FALSE: 2
|
|
};
|
|
|
|
/**
|
|
* @enum {number}
|
|
*/
|
|
proto.AccountType = {
|
|
ACCOUNTTYPE_NONE: 0,
|
|
ACCOUNTTYPE_GOOGLE: 1,
|
|
ACCOUNTTYPE_APPLE: 2
|
|
};
|
|
|
|
/**
|
|
* @enum {number}
|
|
*/
|
|
proto.ServiceType = {
|
|
SERVICETYPE_NONE: 0,
|
|
SERVICETYPE_DEV: 1,
|
|
SERVICETYPE_QA: 2,
|
|
SERVICETYPE_STAGE: 3,
|
|
SERVICETYPE_LIVE: 4
|
|
};
|
|
|
|
/**
|
|
* @enum {number}
|
|
*/
|
|
proto.ServerType = {
|
|
SERVERTYPE_NONE: 0,
|
|
SERVERTYPE_LOGIN: 1,
|
|
SERVERTYPE_CHANNEL: 2,
|
|
SERVERTYPE_INDUN: 3,
|
|
SERVERTYPE_CHAT: 4,
|
|
SERVERTYPE_GMTOOL: 5,
|
|
SERVERTYPE_AUTH: 6,
|
|
SERVERTYPE_MANAGER: 7,
|
|
SERVERTYPE_UGQAPI: 8,
|
|
SERVERTYPE_UGQADMIN: 9,
|
|
SERVERTYPE_UGQINGAME: 10
|
|
};
|
|
|
|
/**
|
|
* @enum {number}
|
|
*/
|
|
proto.AutoScaleServerType = {
|
|
AUTOSCALESERVERTYPE_NONE: 0,
|
|
AUTOSCALESERVERTYPE_LOGIN: 1,
|
|
AUTOSCALESERVERTYPE_GAME: 2,
|
|
AUTOSCALESERVERTYPE_INDUN: 3,
|
|
AUTOSCALESERVERTYPE_CHAT: 4
|
|
};
|
|
|
|
/**
|
|
* @enum {number}
|
|
*/
|
|
proto.GameServerType = {
|
|
GAMESERVERTYPE_NONE: 0,
|
|
GAMESERVERTYPE_CHANNEL: 1,
|
|
GAMESERVERTYPE_INDUN: 2
|
|
};
|
|
|
|
/**
|
|
* @enum {number}
|
|
*/
|
|
proto.DeviceType = {
|
|
DEVICETYPE_NONE: 0,
|
|
DEVICETYPE_WINDOWSPC: 1,
|
|
DEVICETYPE_IPHONE: 5,
|
|
DEVICETYPE_MAC: 6,
|
|
DEVICETYPE_GALAXY: 11,
|
|
DEVICETYPE_OCULUS: 15
|
|
};
|
|
|
|
/**
|
|
* @enum {number}
|
|
*/
|
|
proto.OsType = {
|
|
OSTYPE_NONE: 0,
|
|
OSTYPE_MSWINDOWS: 1,
|
|
OSTYPE_ANDROID: 2,
|
|
OSTYPE_IOS: 3
|
|
};
|
|
|
|
/**
|
|
* @enum {number}
|
|
*/
|
|
proto.PlatformType = {
|
|
PLATFORMTYPE_NONE: 0,
|
|
PLATFORMTYPE_WINDOWSPC: 1,
|
|
PLATFORMTYPE_GOOGLE: 2,
|
|
PLATFORMTYPE_FACEBOOK: 3,
|
|
PLATFORMTYPE_APPLE: 4
|
|
};
|
|
|
|
/**
|
|
* @enum {number}
|
|
*/
|
|
proto.ContentsType = {
|
|
CONTENTSTYPE_NONE: 0,
|
|
CONTENTSTYPE_MYHOME: 1,
|
|
CONTENTSTYPE_DRESSROOM: 2,
|
|
CONTENTSTYPE_CONCERT: 3,
|
|
CONTENTSTYPE_MOVIE: 4,
|
|
CONTENTSTYPE_INSTANCE: 5,
|
|
CONTENTSTYPE_MEETING: 6,
|
|
CONTENTSTYPE_BEACONCREATEROOM: 7,
|
|
CONTENTSTYPE_BEACONEDITROOM: 8,
|
|
CONTENTSTYPE_BEACONDRAFTROOM: 9,
|
|
CONTENTSTYPE_EDITROOM: 10
|
|
};
|
|
|
|
/**
|
|
* @enum {number}
|
|
*/
|
|
proto.CharRace = {
|
|
CHARRACE_NONE: 0,
|
|
CHARRACE_LATINO: 1,
|
|
CHARRACE_CAUCASIAN: 2,
|
|
CHARRACE_AFRICAN: 3,
|
|
CHARRACE_NORTHEASTASIAN: 4,
|
|
CHARRACE_SOUTHASIAN: 5,
|
|
CHARRACE_PACIFICISLANDER: 6
|
|
};
|
|
|
|
/**
|
|
* @enum {number}
|
|
*/
|
|
proto.AuthAdminLevelType = {
|
|
AUTHADMINLEVELTYPE_NONE: 0,
|
|
AUTHADMINLEVELTYPE_GMNORMAL: 1,
|
|
AUTHADMINLEVELTYPE_GMSUPER: 2,
|
|
AUTHADMINLEVELTYPE_DEVELOPER: 3
|
|
};
|
|
|
|
/**
|
|
* @enum {number}
|
|
*/
|
|
proto.LanguageType = {
|
|
LANGUAGETYPE_NONE: 0,
|
|
LANGUAGETYPE_KO: 1,
|
|
LANGUAGETYPE_EN: 2,
|
|
LANGUAGETYPE_JA: 5
|
|
};
|
|
|
|
/**
|
|
* @enum {number}
|
|
*/
|
|
proto.ProductType = {
|
|
PRODUCTTYPE_NONE: 0,
|
|
PRODUCTTYPE_CURRENCY: 1,
|
|
PRODUCTTYPE_ITEM: 2
|
|
};
|
|
|
|
/**
|
|
* @enum {number}
|
|
*/
|
|
proto.LoginMethodType = {
|
|
LOGINMETHODTYPE_NONE: 0,
|
|
LOGINMETHODTYPE_CLIENTSTANDALONE: 1,
|
|
LOGINMETHODTYPE_SSOACCOUNTAUTHWITHLAUNCHER: 2
|
|
};
|
|
|
|
/**
|
|
* @enum {number}
|
|
*/
|
|
proto.LoginFailureReasonType = {
|
|
LOGINFAILUREREASONTYPE_NONE: 0,
|
|
LOGINFAILUREREASONTYPE_PROCESSINGEXCEPTION: 1,
|
|
LOGINFAILUREREASONTYPE_AUTHENTICATIONFAILED: 2
|
|
};
|
|
|
|
/**
|
|
* @enum {number}
|
|
*/
|
|
proto.LogoutReasonType = {
|
|
LOGOUTREASONTYPE_NONE: 0,
|
|
LOGOUTREASONTYPE_EXITTOSERVICE: 1,
|
|
LOGOUTREASONTYPE_ENTERTOGAME: 2,
|
|
LOGOUTREASONTYPE_GOTOGAME: 3,
|
|
LOGOUTREASONTYPE_DUPLICATEDLOGIN: 4
|
|
};
|
|
|
|
/**
|
|
* @enum {number}
|
|
*/
|
|
proto.AccountSactionType = {
|
|
ACCOUNTSACTIONTYPE_NONE: 0,
|
|
ACCOUNTSACTIONTYPE_BADBHAVIOR: 1,
|
|
ACCOUNTSACTIONTYPE_INVAPPROPRIVATENAME: 2,
|
|
ACCOUNTSACTIONTYPE_CASHTRANSACTION: 3,
|
|
ACCOUNTSACTIONTYPE_GAMEINTERFERENCE: 4,
|
|
ACCOUNTSACTIONTYPE_SERVICEINTERFERENCE: 5,
|
|
ACCOUNTSACTIONTYPE_ACCOUNTIMPERSONATION: 6,
|
|
ACCOUNTSACTIONTYPE_BUGABUSE: 7,
|
|
ACCOUNTSACTIONTYPE_ILLEGALPROGRAM: 8,
|
|
ACCOUNTSACTIONTYPE_PERSONALINFO_LEAK: 9,
|
|
ACCOUNTSACTIONTYPE_ADMINIMPERSONATION: 10
|
|
};
|
|
|
|
/**
|
|
* @enum {number}
|
|
*/
|
|
proto.ServerMoveType = {
|
|
SERVERMOVETYPE_NONE: 0,
|
|
SERVERMOVETYPE_FORCE: 1,
|
|
SERVERMOVETYPE_AUTO: 2,
|
|
SERVERMOVETYPE_RETURN: 3
|
|
};
|
|
|
|
/**
|
|
* @enum {number}
|
|
*/
|
|
proto.PlayerStateType = {
|
|
PLAYERSTATETYPE_NONE: 0,
|
|
PLAYERSTATETYPE_ONLINE: 1,
|
|
PLAYERSTATETYPE_SLEEP: 2,
|
|
PLAYERSTATETYPE_DONTDISTRUB: 3,
|
|
PLAYERSTATETYPE_OFFLINE: 4,
|
|
PLAYERSTATETYPE_DORMANT: 5,
|
|
PLAYERSTATETYPE_LEAVEMEMBER: 6
|
|
};
|
|
|
|
/**
|
|
* @enum {number}
|
|
*/
|
|
proto.AmountDeltaType = {
|
|
AMOUNTDELTATYPE_NONE: 0,
|
|
AMOUNTDELTATYPE_ACQUIRE: 1,
|
|
AMOUNTDELTATYPE_CONSUME: 2,
|
|
AMOUNTDELTATYPE_MERGE: 3
|
|
};
|
|
|
|
/**
|
|
* @enum {number}
|
|
*/
|
|
proto.CountDeltaType = {
|
|
COUNTDELTATYPE_NONE: 0,
|
|
COUNTDELTATYPE_NEW: 1,
|
|
COUNTDELTATYPE_UPDATE: 2,
|
|
COUNTDELTATYPE_ACQUIRE: 3,
|
|
COUNTDELTATYPE_CONSUME: 4,
|
|
COUNTDELTATYPE_DELETE: 5
|
|
};
|
|
|
|
/**
|
|
* @enum {number}
|
|
*/
|
|
proto.CurrencyType = {
|
|
CURRENCYTYPE_NONE: 0,
|
|
CURRENCYTYPE_GOLD: 1,
|
|
CURRENCYTYPE_SAPPHIRE: 2,
|
|
CURRENCYTYPE_CALIUM: 3,
|
|
CURRENCYTYPE_BEAM: 4,
|
|
CURRENCYTYPE_RUBY: 5
|
|
};
|
|
|
|
goog.object.extend(exports, proto);
|