totopia-proto/pkg/api/v1/web/user/user-service_pb.js
2019-07-03 00:28:46 +09:00

2198 lines
68 KiB
JavaScript

/**
* @fileoverview
* @enhanceable
* @suppress {messageConventions} JS Compiler reports an error if a variable or
* field starts with 'MSG_' and isn't a translatable message.
* @public
*/
// GENERATED CODE -- DO NOT EDIT!
var jspb = require('google-protobuf');
var goog = jspb;
var global = Function('return this')();
var common_search$criteria_pb = require('../common/search-criteria_pb.js');
goog.object.extend(proto, common_search$criteria_pb);
var common_search$pagination_pb = require('../common/search-pagination_pb.js');
goog.object.extend(proto, common_search$pagination_pb);
var common_search$sort_pb = require('../common/search-sort_pb.js');
goog.object.extend(proto, common_search$sort_pb);
var user_user_pb = require('../user/user_pb.js');
goog.object.extend(proto, user_user_pb);
goog.exportSymbol('proto.loafle.cms.proto.user.CreateUserRequest', null, global);
goog.exportSymbol('proto.loafle.cms.proto.user.CreateUserResponse', null, global);
goog.exportSymbol('proto.loafle.cms.proto.user.DeleteUserRequest', null, global);
goog.exportSymbol('proto.loafle.cms.proto.user.DeleteUserResponse', null, global);
goog.exportSymbol('proto.loafle.cms.proto.user.ReadAllUsersRequest', null, global);
goog.exportSymbol('proto.loafle.cms.proto.user.ReadAllUsersResponse', null, global);
goog.exportSymbol('proto.loafle.cms.proto.user.ReadUserByIdRequest', null, global);
goog.exportSymbol('proto.loafle.cms.proto.user.ReadUserByUsernameRequest', null, global);
goog.exportSymbol('proto.loafle.cms.proto.user.ReadUserResponse', null, global);
goog.exportSymbol('proto.loafle.cms.proto.user.UpdateUserRequest', null, global);
goog.exportSymbol('proto.loafle.cms.proto.user.UpdateUserResponse', 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.loafle.cms.proto.user.CreateUserRequest = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.loafle.cms.proto.user.CreateUserRequest, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.loafle.cms.proto.user.CreateUserRequest.displayName = 'proto.loafle.cms.proto.user.CreateUserRequest';
}
/**
* 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.loafle.cms.proto.user.CreateUserResponse = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.loafle.cms.proto.user.CreateUserResponse, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.loafle.cms.proto.user.CreateUserResponse.displayName = 'proto.loafle.cms.proto.user.CreateUserResponse';
}
/**
* 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.loafle.cms.proto.user.ReadUserByIdRequest = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.loafle.cms.proto.user.ReadUserByIdRequest, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.loafle.cms.proto.user.ReadUserByIdRequest.displayName = 'proto.loafle.cms.proto.user.ReadUserByIdRequest';
}
/**
* 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.loafle.cms.proto.user.ReadUserByUsernameRequest = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.loafle.cms.proto.user.ReadUserByUsernameRequest, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.loafle.cms.proto.user.ReadUserByUsernameRequest.displayName = 'proto.loafle.cms.proto.user.ReadUserByUsernameRequest';
}
/**
* 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.loafle.cms.proto.user.ReadUserResponse = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.loafle.cms.proto.user.ReadUserResponse, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.loafle.cms.proto.user.ReadUserResponse.displayName = 'proto.loafle.cms.proto.user.ReadUserResponse';
}
/**
* 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.loafle.cms.proto.user.UpdateUserRequest = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.loafle.cms.proto.user.UpdateUserRequest, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.loafle.cms.proto.user.UpdateUserRequest.displayName = 'proto.loafle.cms.proto.user.UpdateUserRequest';
}
/**
* 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.loafle.cms.proto.user.UpdateUserResponse = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.loafle.cms.proto.user.UpdateUserResponse, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.loafle.cms.proto.user.UpdateUserResponse.displayName = 'proto.loafle.cms.proto.user.UpdateUserResponse';
}
/**
* 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.loafle.cms.proto.user.DeleteUserRequest = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.loafle.cms.proto.user.DeleteUserRequest, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.loafle.cms.proto.user.DeleteUserRequest.displayName = 'proto.loafle.cms.proto.user.DeleteUserRequest';
}
/**
* 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.loafle.cms.proto.user.DeleteUserResponse = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.loafle.cms.proto.user.DeleteUserResponse, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.loafle.cms.proto.user.DeleteUserResponse.displayName = 'proto.loafle.cms.proto.user.DeleteUserResponse';
}
/**
* 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.loafle.cms.proto.user.ReadAllUsersRequest = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, proto.loafle.cms.proto.user.ReadAllUsersRequest.repeatedFields_, null);
};
goog.inherits(proto.loafle.cms.proto.user.ReadAllUsersRequest, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.loafle.cms.proto.user.ReadAllUsersRequest.displayName = 'proto.loafle.cms.proto.user.ReadAllUsersRequest';
}
/**
* 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.loafle.cms.proto.user.ReadAllUsersResponse = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, proto.loafle.cms.proto.user.ReadAllUsersResponse.repeatedFields_, null);
};
goog.inherits(proto.loafle.cms.proto.user.ReadAllUsersResponse, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.loafle.cms.proto.user.ReadAllUsersResponse.displayName = 'proto.loafle.cms.proto.user.ReadAllUsersResponse';
}
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.loafle.cms.proto.user.CreateUserRequest.prototype.toObject = function(opt_includeInstance) {
return proto.loafle.cms.proto.user.CreateUserRequest.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.loafle.cms.proto.user.CreateUserRequest} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.loafle.cms.proto.user.CreateUserRequest.toObject = function(includeInstance, msg) {
var f, obj = {
api: jspb.Message.getFieldWithDefault(msg, 1, ""),
user: (f = msg.getUser()) && user_user_pb.User.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.loafle.cms.proto.user.CreateUserRequest}
*/
proto.loafle.cms.proto.user.CreateUserRequest.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.loafle.cms.proto.user.CreateUserRequest;
return proto.loafle.cms.proto.user.CreateUserRequest.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.loafle.cms.proto.user.CreateUserRequest} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.loafle.cms.proto.user.CreateUserRequest}
*/
proto.loafle.cms.proto.user.CreateUserRequest.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.setApi(value);
break;
case 2:
var value = new user_user_pb.User;
reader.readMessage(value,user_user_pb.User.deserializeBinaryFromReader);
msg.setUser(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.loafle.cms.proto.user.CreateUserRequest.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.loafle.cms.proto.user.CreateUserRequest.serializeBinaryToWriter(this, writer);
return writer.getResultBuffer();
};
/**
* Serializes the given message to binary data (in protobuf wire
* format), writing to the given BinaryWriter.
* @param {!proto.loafle.cms.proto.user.CreateUserRequest} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.loafle.cms.proto.user.CreateUserRequest.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = message.getApi();
if (f.length > 0) {
writer.writeString(
1,
f
);
}
f = message.getUser();
if (f != null) {
writer.writeMessage(
2,
f,
user_user_pb.User.serializeBinaryToWriter
);
}
};
/**
* optional string api = 1;
* @return {string}
*/
proto.loafle.cms.proto.user.CreateUserRequest.prototype.getApi = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
};
/** @param {string} value */
proto.loafle.cms.proto.user.CreateUserRequest.prototype.setApi = function(value) {
jspb.Message.setProto3StringField(this, 1, value);
};
/**
* optional User user = 2;
* @return {?proto.loafle.cms.proto.user.User}
*/
proto.loafle.cms.proto.user.CreateUserRequest.prototype.getUser = function() {
return /** @type{?proto.loafle.cms.proto.user.User} */ (
jspb.Message.getWrapperField(this, user_user_pb.User, 2));
};
/** @param {?proto.loafle.cms.proto.user.User|undefined} value */
proto.loafle.cms.proto.user.CreateUserRequest.prototype.setUser = function(value) {
jspb.Message.setWrapperField(this, 2, value);
};
/**
* Clears the message field making it undefined.
*/
proto.loafle.cms.proto.user.CreateUserRequest.prototype.clearUser = function() {
this.setUser(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.loafle.cms.proto.user.CreateUserRequest.prototype.hasUser = function() {
return jspb.Message.getField(this, 2) != null;
};
if (jspb.Message.GENERATE_TO_OBJECT) {
/**
* Creates an object representation of this proto.
* Field names that are reserved in JavaScript and will be renamed to pb_name.
* Optional fields that are not set will be set to undefined.
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
* For the list of reserved names please see:
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
* JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration
* @return {!Object}
*/
proto.loafle.cms.proto.user.CreateUserResponse.prototype.toObject = function(opt_includeInstance) {
return proto.loafle.cms.proto.user.CreateUserResponse.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.loafle.cms.proto.user.CreateUserResponse} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.loafle.cms.proto.user.CreateUserResponse.toObject = function(includeInstance, msg) {
var f, obj = {
api: jspb.Message.getFieldWithDefault(msg, 1, ""),
id: jspb.Message.getFieldWithDefault(msg, 2, 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.loafle.cms.proto.user.CreateUserResponse}
*/
proto.loafle.cms.proto.user.CreateUserResponse.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.loafle.cms.proto.user.CreateUserResponse;
return proto.loafle.cms.proto.user.CreateUserResponse.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.loafle.cms.proto.user.CreateUserResponse} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.loafle.cms.proto.user.CreateUserResponse}
*/
proto.loafle.cms.proto.user.CreateUserResponse.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.setApi(value);
break;
case 2:
var value = /** @type {number} */ (reader.readInt64());
msg.setId(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.loafle.cms.proto.user.CreateUserResponse.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.loafle.cms.proto.user.CreateUserResponse.serializeBinaryToWriter(this, writer);
return writer.getResultBuffer();
};
/**
* Serializes the given message to binary data (in protobuf wire
* format), writing to the given BinaryWriter.
* @param {!proto.loafle.cms.proto.user.CreateUserResponse} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.loafle.cms.proto.user.CreateUserResponse.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = message.getApi();
if (f.length > 0) {
writer.writeString(
1,
f
);
}
f = message.getId();
if (f !== 0) {
writer.writeInt64(
2,
f
);
}
};
/**
* optional string api = 1;
* @return {string}
*/
proto.loafle.cms.proto.user.CreateUserResponse.prototype.getApi = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
};
/** @param {string} value */
proto.loafle.cms.proto.user.CreateUserResponse.prototype.setApi = function(value) {
jspb.Message.setProto3StringField(this, 1, value);
};
/**
* optional int64 id = 2;
* @return {number}
*/
proto.loafle.cms.proto.user.CreateUserResponse.prototype.getId = function() {
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
};
/** @param {number} value */
proto.loafle.cms.proto.user.CreateUserResponse.prototype.setId = function(value) {
jspb.Message.setProto3IntField(this, 2, value);
};
if (jspb.Message.GENERATE_TO_OBJECT) {
/**
* Creates an object representation of this proto.
* Field names that are reserved in JavaScript and will be renamed to pb_name.
* Optional fields that are not set will be set to undefined.
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
* For the list of reserved names please see:
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
* JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration
* @return {!Object}
*/
proto.loafle.cms.proto.user.ReadUserByIdRequest.prototype.toObject = function(opt_includeInstance) {
return proto.loafle.cms.proto.user.ReadUserByIdRequest.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.loafle.cms.proto.user.ReadUserByIdRequest} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.loafle.cms.proto.user.ReadUserByIdRequest.toObject = function(includeInstance, msg) {
var f, obj = {
api: jspb.Message.getFieldWithDefault(msg, 1, ""),
id: jspb.Message.getFieldWithDefault(msg, 2, 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.loafle.cms.proto.user.ReadUserByIdRequest}
*/
proto.loafle.cms.proto.user.ReadUserByIdRequest.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.loafle.cms.proto.user.ReadUserByIdRequest;
return proto.loafle.cms.proto.user.ReadUserByIdRequest.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.loafle.cms.proto.user.ReadUserByIdRequest} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.loafle.cms.proto.user.ReadUserByIdRequest}
*/
proto.loafle.cms.proto.user.ReadUserByIdRequest.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.setApi(value);
break;
case 2:
var value = /** @type {number} */ (reader.readInt64());
msg.setId(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.loafle.cms.proto.user.ReadUserByIdRequest.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.loafle.cms.proto.user.ReadUserByIdRequest.serializeBinaryToWriter(this, writer);
return writer.getResultBuffer();
};
/**
* Serializes the given message to binary data (in protobuf wire
* format), writing to the given BinaryWriter.
* @param {!proto.loafle.cms.proto.user.ReadUserByIdRequest} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.loafle.cms.proto.user.ReadUserByIdRequest.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = message.getApi();
if (f.length > 0) {
writer.writeString(
1,
f
);
}
f = message.getId();
if (f !== 0) {
writer.writeInt64(
2,
f
);
}
};
/**
* optional string api = 1;
* @return {string}
*/
proto.loafle.cms.proto.user.ReadUserByIdRequest.prototype.getApi = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
};
/** @param {string} value */
proto.loafle.cms.proto.user.ReadUserByIdRequest.prototype.setApi = function(value) {
jspb.Message.setProto3StringField(this, 1, value);
};
/**
* optional int64 id = 2;
* @return {number}
*/
proto.loafle.cms.proto.user.ReadUserByIdRequest.prototype.getId = function() {
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
};
/** @param {number} value */
proto.loafle.cms.proto.user.ReadUserByIdRequest.prototype.setId = function(value) {
jspb.Message.setProto3IntField(this, 2, value);
};
if (jspb.Message.GENERATE_TO_OBJECT) {
/**
* Creates an object representation of this proto.
* Field names that are reserved in JavaScript and will be renamed to pb_name.
* Optional fields that are not set will be set to undefined.
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
* For the list of reserved names please see:
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
* JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration
* @return {!Object}
*/
proto.loafle.cms.proto.user.ReadUserByUsernameRequest.prototype.toObject = function(opt_includeInstance) {
return proto.loafle.cms.proto.user.ReadUserByUsernameRequest.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.loafle.cms.proto.user.ReadUserByUsernameRequest} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.loafle.cms.proto.user.ReadUserByUsernameRequest.toObject = function(includeInstance, msg) {
var f, obj = {
api: jspb.Message.getFieldWithDefault(msg, 1, ""),
username: jspb.Message.getFieldWithDefault(msg, 2, "")
};
if (includeInstance) {
obj.$jspbMessageInstance = msg;
}
return obj;
};
}
/**
* Deserializes binary data (in protobuf wire format).
* @param {jspb.ByteSource} bytes The bytes to deserialize.
* @return {!proto.loafle.cms.proto.user.ReadUserByUsernameRequest}
*/
proto.loafle.cms.proto.user.ReadUserByUsernameRequest.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.loafle.cms.proto.user.ReadUserByUsernameRequest;
return proto.loafle.cms.proto.user.ReadUserByUsernameRequest.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.loafle.cms.proto.user.ReadUserByUsernameRequest} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.loafle.cms.proto.user.ReadUserByUsernameRequest}
*/
proto.loafle.cms.proto.user.ReadUserByUsernameRequest.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.setApi(value);
break;
case 2:
var value = /** @type {string} */ (reader.readString());
msg.setUsername(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.loafle.cms.proto.user.ReadUserByUsernameRequest.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.loafle.cms.proto.user.ReadUserByUsernameRequest.serializeBinaryToWriter(this, writer);
return writer.getResultBuffer();
};
/**
* Serializes the given message to binary data (in protobuf wire
* format), writing to the given BinaryWriter.
* @param {!proto.loafle.cms.proto.user.ReadUserByUsernameRequest} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.loafle.cms.proto.user.ReadUserByUsernameRequest.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = message.getApi();
if (f.length > 0) {
writer.writeString(
1,
f
);
}
f = message.getUsername();
if (f.length > 0) {
writer.writeString(
2,
f
);
}
};
/**
* optional string api = 1;
* @return {string}
*/
proto.loafle.cms.proto.user.ReadUserByUsernameRequest.prototype.getApi = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
};
/** @param {string} value */
proto.loafle.cms.proto.user.ReadUserByUsernameRequest.prototype.setApi = function(value) {
jspb.Message.setProto3StringField(this, 1, value);
};
/**
* optional string username = 2;
* @return {string}
*/
proto.loafle.cms.proto.user.ReadUserByUsernameRequest.prototype.getUsername = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
};
/** @param {string} value */
proto.loafle.cms.proto.user.ReadUserByUsernameRequest.prototype.setUsername = function(value) {
jspb.Message.setProto3StringField(this, 2, value);
};
if (jspb.Message.GENERATE_TO_OBJECT) {
/**
* Creates an object representation of this proto.
* Field names that are reserved in JavaScript and will be renamed to pb_name.
* Optional fields that are not set will be set to undefined.
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
* For the list of reserved names please see:
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
* JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration
* @return {!Object}
*/
proto.loafle.cms.proto.user.ReadUserResponse.prototype.toObject = function(opt_includeInstance) {
return proto.loafle.cms.proto.user.ReadUserResponse.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.loafle.cms.proto.user.ReadUserResponse} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.loafle.cms.proto.user.ReadUserResponse.toObject = function(includeInstance, msg) {
var f, obj = {
api: jspb.Message.getFieldWithDefault(msg, 1, ""),
user: (f = msg.getUser()) && user_user_pb.User.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.loafle.cms.proto.user.ReadUserResponse}
*/
proto.loafle.cms.proto.user.ReadUserResponse.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.loafle.cms.proto.user.ReadUserResponse;
return proto.loafle.cms.proto.user.ReadUserResponse.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.loafle.cms.proto.user.ReadUserResponse} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.loafle.cms.proto.user.ReadUserResponse}
*/
proto.loafle.cms.proto.user.ReadUserResponse.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.setApi(value);
break;
case 2:
var value = new user_user_pb.User;
reader.readMessage(value,user_user_pb.User.deserializeBinaryFromReader);
msg.setUser(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.loafle.cms.proto.user.ReadUserResponse.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.loafle.cms.proto.user.ReadUserResponse.serializeBinaryToWriter(this, writer);
return writer.getResultBuffer();
};
/**
* Serializes the given message to binary data (in protobuf wire
* format), writing to the given BinaryWriter.
* @param {!proto.loafle.cms.proto.user.ReadUserResponse} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.loafle.cms.proto.user.ReadUserResponse.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = message.getApi();
if (f.length > 0) {
writer.writeString(
1,
f
);
}
f = message.getUser();
if (f != null) {
writer.writeMessage(
2,
f,
user_user_pb.User.serializeBinaryToWriter
);
}
};
/**
* optional string api = 1;
* @return {string}
*/
proto.loafle.cms.proto.user.ReadUserResponse.prototype.getApi = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
};
/** @param {string} value */
proto.loafle.cms.proto.user.ReadUserResponse.prototype.setApi = function(value) {
jspb.Message.setProto3StringField(this, 1, value);
};
/**
* optional User user = 2;
* @return {?proto.loafle.cms.proto.user.User}
*/
proto.loafle.cms.proto.user.ReadUserResponse.prototype.getUser = function() {
return /** @type{?proto.loafle.cms.proto.user.User} */ (
jspb.Message.getWrapperField(this, user_user_pb.User, 2));
};
/** @param {?proto.loafle.cms.proto.user.User|undefined} value */
proto.loafle.cms.proto.user.ReadUserResponse.prototype.setUser = function(value) {
jspb.Message.setWrapperField(this, 2, value);
};
/**
* Clears the message field making it undefined.
*/
proto.loafle.cms.proto.user.ReadUserResponse.prototype.clearUser = function() {
this.setUser(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.loafle.cms.proto.user.ReadUserResponse.prototype.hasUser = function() {
return jspb.Message.getField(this, 2) != null;
};
if (jspb.Message.GENERATE_TO_OBJECT) {
/**
* Creates an object representation of this proto.
* Field names that are reserved in JavaScript and will be renamed to pb_name.
* Optional fields that are not set will be set to undefined.
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
* For the list of reserved names please see:
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
* JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration
* @return {!Object}
*/
proto.loafle.cms.proto.user.UpdateUserRequest.prototype.toObject = function(opt_includeInstance) {
return proto.loafle.cms.proto.user.UpdateUserRequest.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.loafle.cms.proto.user.UpdateUserRequest} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.loafle.cms.proto.user.UpdateUserRequest.toObject = function(includeInstance, msg) {
var f, obj = {
api: jspb.Message.getFieldWithDefault(msg, 1, ""),
user: (f = msg.getUser()) && user_user_pb.User.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.loafle.cms.proto.user.UpdateUserRequest}
*/
proto.loafle.cms.proto.user.UpdateUserRequest.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.loafle.cms.proto.user.UpdateUserRequest;
return proto.loafle.cms.proto.user.UpdateUserRequest.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.loafle.cms.proto.user.UpdateUserRequest} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.loafle.cms.proto.user.UpdateUserRequest}
*/
proto.loafle.cms.proto.user.UpdateUserRequest.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.setApi(value);
break;
case 2:
var value = new user_user_pb.User;
reader.readMessage(value,user_user_pb.User.deserializeBinaryFromReader);
msg.setUser(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.loafle.cms.proto.user.UpdateUserRequest.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.loafle.cms.proto.user.UpdateUserRequest.serializeBinaryToWriter(this, writer);
return writer.getResultBuffer();
};
/**
* Serializes the given message to binary data (in protobuf wire
* format), writing to the given BinaryWriter.
* @param {!proto.loafle.cms.proto.user.UpdateUserRequest} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.loafle.cms.proto.user.UpdateUserRequest.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = message.getApi();
if (f.length > 0) {
writer.writeString(
1,
f
);
}
f = message.getUser();
if (f != null) {
writer.writeMessage(
2,
f,
user_user_pb.User.serializeBinaryToWriter
);
}
};
/**
* optional string api = 1;
* @return {string}
*/
proto.loafle.cms.proto.user.UpdateUserRequest.prototype.getApi = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
};
/** @param {string} value */
proto.loafle.cms.proto.user.UpdateUserRequest.prototype.setApi = function(value) {
jspb.Message.setProto3StringField(this, 1, value);
};
/**
* optional User user = 2;
* @return {?proto.loafle.cms.proto.user.User}
*/
proto.loafle.cms.proto.user.UpdateUserRequest.prototype.getUser = function() {
return /** @type{?proto.loafle.cms.proto.user.User} */ (
jspb.Message.getWrapperField(this, user_user_pb.User, 2));
};
/** @param {?proto.loafle.cms.proto.user.User|undefined} value */
proto.loafle.cms.proto.user.UpdateUserRequest.prototype.setUser = function(value) {
jspb.Message.setWrapperField(this, 2, value);
};
/**
* Clears the message field making it undefined.
*/
proto.loafle.cms.proto.user.UpdateUserRequest.prototype.clearUser = function() {
this.setUser(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.loafle.cms.proto.user.UpdateUserRequest.prototype.hasUser = function() {
return jspb.Message.getField(this, 2) != null;
};
if (jspb.Message.GENERATE_TO_OBJECT) {
/**
* Creates an object representation of this proto.
* Field names that are reserved in JavaScript and will be renamed to pb_name.
* Optional fields that are not set will be set to undefined.
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
* For the list of reserved names please see:
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
* JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration
* @return {!Object}
*/
proto.loafle.cms.proto.user.UpdateUserResponse.prototype.toObject = function(opt_includeInstance) {
return proto.loafle.cms.proto.user.UpdateUserResponse.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.loafle.cms.proto.user.UpdateUserResponse} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.loafle.cms.proto.user.UpdateUserResponse.toObject = function(includeInstance, msg) {
var f, obj = {
api: jspb.Message.getFieldWithDefault(msg, 1, ""),
updated: jspb.Message.getFieldWithDefault(msg, 2, 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.loafle.cms.proto.user.UpdateUserResponse}
*/
proto.loafle.cms.proto.user.UpdateUserResponse.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.loafle.cms.proto.user.UpdateUserResponse;
return proto.loafle.cms.proto.user.UpdateUserResponse.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.loafle.cms.proto.user.UpdateUserResponse} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.loafle.cms.proto.user.UpdateUserResponse}
*/
proto.loafle.cms.proto.user.UpdateUserResponse.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.setApi(value);
break;
case 2:
var value = /** @type {number} */ (reader.readInt64());
msg.setUpdated(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.loafle.cms.proto.user.UpdateUserResponse.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.loafle.cms.proto.user.UpdateUserResponse.serializeBinaryToWriter(this, writer);
return writer.getResultBuffer();
};
/**
* Serializes the given message to binary data (in protobuf wire
* format), writing to the given BinaryWriter.
* @param {!proto.loafle.cms.proto.user.UpdateUserResponse} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.loafle.cms.proto.user.UpdateUserResponse.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = message.getApi();
if (f.length > 0) {
writer.writeString(
1,
f
);
}
f = message.getUpdated();
if (f !== 0) {
writer.writeInt64(
2,
f
);
}
};
/**
* optional string api = 1;
* @return {string}
*/
proto.loafle.cms.proto.user.UpdateUserResponse.prototype.getApi = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
};
/** @param {string} value */
proto.loafle.cms.proto.user.UpdateUserResponse.prototype.setApi = function(value) {
jspb.Message.setProto3StringField(this, 1, value);
};
/**
* optional int64 updated = 2;
* @return {number}
*/
proto.loafle.cms.proto.user.UpdateUserResponse.prototype.getUpdated = function() {
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
};
/** @param {number} value */
proto.loafle.cms.proto.user.UpdateUserResponse.prototype.setUpdated = function(value) {
jspb.Message.setProto3IntField(this, 2, value);
};
if (jspb.Message.GENERATE_TO_OBJECT) {
/**
* Creates an object representation of this proto.
* Field names that are reserved in JavaScript and will be renamed to pb_name.
* Optional fields that are not set will be set to undefined.
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
* For the list of reserved names please see:
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
* JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration
* @return {!Object}
*/
proto.loafle.cms.proto.user.DeleteUserRequest.prototype.toObject = function(opt_includeInstance) {
return proto.loafle.cms.proto.user.DeleteUserRequest.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.loafle.cms.proto.user.DeleteUserRequest} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.loafle.cms.proto.user.DeleteUserRequest.toObject = function(includeInstance, msg) {
var f, obj = {
api: jspb.Message.getFieldWithDefault(msg, 1, ""),
id: jspb.Message.getFieldWithDefault(msg, 2, 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.loafle.cms.proto.user.DeleteUserRequest}
*/
proto.loafle.cms.proto.user.DeleteUserRequest.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.loafle.cms.proto.user.DeleteUserRequest;
return proto.loafle.cms.proto.user.DeleteUserRequest.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.loafle.cms.proto.user.DeleteUserRequest} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.loafle.cms.proto.user.DeleteUserRequest}
*/
proto.loafle.cms.proto.user.DeleteUserRequest.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.setApi(value);
break;
case 2:
var value = /** @type {number} */ (reader.readInt64());
msg.setId(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.loafle.cms.proto.user.DeleteUserRequest.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.loafle.cms.proto.user.DeleteUserRequest.serializeBinaryToWriter(this, writer);
return writer.getResultBuffer();
};
/**
* Serializes the given message to binary data (in protobuf wire
* format), writing to the given BinaryWriter.
* @param {!proto.loafle.cms.proto.user.DeleteUserRequest} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.loafle.cms.proto.user.DeleteUserRequest.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = message.getApi();
if (f.length > 0) {
writer.writeString(
1,
f
);
}
f = message.getId();
if (f !== 0) {
writer.writeInt64(
2,
f
);
}
};
/**
* optional string api = 1;
* @return {string}
*/
proto.loafle.cms.proto.user.DeleteUserRequest.prototype.getApi = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
};
/** @param {string} value */
proto.loafle.cms.proto.user.DeleteUserRequest.prototype.setApi = function(value) {
jspb.Message.setProto3StringField(this, 1, value);
};
/**
* optional int64 id = 2;
* @return {number}
*/
proto.loafle.cms.proto.user.DeleteUserRequest.prototype.getId = function() {
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
};
/** @param {number} value */
proto.loafle.cms.proto.user.DeleteUserRequest.prototype.setId = function(value) {
jspb.Message.setProto3IntField(this, 2, value);
};
if (jspb.Message.GENERATE_TO_OBJECT) {
/**
* Creates an object representation of this proto.
* Field names that are reserved in JavaScript and will be renamed to pb_name.
* Optional fields that are not set will be set to undefined.
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
* For the list of reserved names please see:
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
* JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration
* @return {!Object}
*/
proto.loafle.cms.proto.user.DeleteUserResponse.prototype.toObject = function(opt_includeInstance) {
return proto.loafle.cms.proto.user.DeleteUserResponse.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.loafle.cms.proto.user.DeleteUserResponse} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.loafle.cms.proto.user.DeleteUserResponse.toObject = function(includeInstance, msg) {
var f, obj = {
api: jspb.Message.getFieldWithDefault(msg, 1, ""),
deleted: jspb.Message.getFieldWithDefault(msg, 2, 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.loafle.cms.proto.user.DeleteUserResponse}
*/
proto.loafle.cms.proto.user.DeleteUserResponse.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.loafle.cms.proto.user.DeleteUserResponse;
return proto.loafle.cms.proto.user.DeleteUserResponse.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.loafle.cms.proto.user.DeleteUserResponse} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.loafle.cms.proto.user.DeleteUserResponse}
*/
proto.loafle.cms.proto.user.DeleteUserResponse.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.setApi(value);
break;
case 2:
var value = /** @type {number} */ (reader.readInt64());
msg.setDeleted(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.loafle.cms.proto.user.DeleteUserResponse.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.loafle.cms.proto.user.DeleteUserResponse.serializeBinaryToWriter(this, writer);
return writer.getResultBuffer();
};
/**
* Serializes the given message to binary data (in protobuf wire
* format), writing to the given BinaryWriter.
* @param {!proto.loafle.cms.proto.user.DeleteUserResponse} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.loafle.cms.proto.user.DeleteUserResponse.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = message.getApi();
if (f.length > 0) {
writer.writeString(
1,
f
);
}
f = message.getDeleted();
if (f !== 0) {
writer.writeInt64(
2,
f
);
}
};
/**
* optional string api = 1;
* @return {string}
*/
proto.loafle.cms.proto.user.DeleteUserResponse.prototype.getApi = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
};
/** @param {string} value */
proto.loafle.cms.proto.user.DeleteUserResponse.prototype.setApi = function(value) {
jspb.Message.setProto3StringField(this, 1, value);
};
/**
* optional int64 deleted = 2;
* @return {number}
*/
proto.loafle.cms.proto.user.DeleteUserResponse.prototype.getDeleted = function() {
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
};
/** @param {number} value */
proto.loafle.cms.proto.user.DeleteUserResponse.prototype.setDeleted = function(value) {
jspb.Message.setProto3IntField(this, 2, value);
};
/**
* List of repeated fields within this message type.
* @private {!Array<number>}
* @const
*/
proto.loafle.cms.proto.user.ReadAllUsersRequest.repeatedFields_ = [4];
if (jspb.Message.GENERATE_TO_OBJECT) {
/**
* Creates an object representation of this proto.
* Field names that are reserved in JavaScript and will be renamed to pb_name.
* Optional fields that are not set will be set to undefined.
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
* For the list of reserved names please see:
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
* JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration
* @return {!Object}
*/
proto.loafle.cms.proto.user.ReadAllUsersRequest.prototype.toObject = function(opt_includeInstance) {
return proto.loafle.cms.proto.user.ReadAllUsersRequest.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.loafle.cms.proto.user.ReadAllUsersRequest} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.loafle.cms.proto.user.ReadAllUsersRequest.toObject = function(includeInstance, msg) {
var f, obj = {
api: jspb.Message.getFieldWithDefault(msg, 1, ""),
pagination: (f = msg.getPagination()) && common_search$pagination_pb.SearchPagination.toObject(includeInstance, f),
sort: (f = msg.getSort()) && common_search$sort_pb.SearchSort.toObject(includeInstance, f),
criteriaList: jspb.Message.toObjectList(msg.getCriteriaList(),
common_search$criteria_pb.SearchCriteria.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.loafle.cms.proto.user.ReadAllUsersRequest}
*/
proto.loafle.cms.proto.user.ReadAllUsersRequest.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.loafle.cms.proto.user.ReadAllUsersRequest;
return proto.loafle.cms.proto.user.ReadAllUsersRequest.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.loafle.cms.proto.user.ReadAllUsersRequest} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.loafle.cms.proto.user.ReadAllUsersRequest}
*/
proto.loafle.cms.proto.user.ReadAllUsersRequest.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.setApi(value);
break;
case 2:
var value = new common_search$pagination_pb.SearchPagination;
reader.readMessage(value,common_search$pagination_pb.SearchPagination.deserializeBinaryFromReader);
msg.setPagination(value);
break;
case 3:
var value = new common_search$sort_pb.SearchSort;
reader.readMessage(value,common_search$sort_pb.SearchSort.deserializeBinaryFromReader);
msg.setSort(value);
break;
case 4:
var value = new common_search$criteria_pb.SearchCriteria;
reader.readMessage(value,common_search$criteria_pb.SearchCriteria.deserializeBinaryFromReader);
msg.addCriteria(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.loafle.cms.proto.user.ReadAllUsersRequest.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.loafle.cms.proto.user.ReadAllUsersRequest.serializeBinaryToWriter(this, writer);
return writer.getResultBuffer();
};
/**
* Serializes the given message to binary data (in protobuf wire
* format), writing to the given BinaryWriter.
* @param {!proto.loafle.cms.proto.user.ReadAllUsersRequest} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.loafle.cms.proto.user.ReadAllUsersRequest.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = message.getApi();
if (f.length > 0) {
writer.writeString(
1,
f
);
}
f = message.getPagination();
if (f != null) {
writer.writeMessage(
2,
f,
common_search$pagination_pb.SearchPagination.serializeBinaryToWriter
);
}
f = message.getSort();
if (f != null) {
writer.writeMessage(
3,
f,
common_search$sort_pb.SearchSort.serializeBinaryToWriter
);
}
f = message.getCriteriaList();
if (f.length > 0) {
writer.writeRepeatedMessage(
4,
f,
common_search$criteria_pb.SearchCriteria.serializeBinaryToWriter
);
}
};
/**
* optional string api = 1;
* @return {string}
*/
proto.loafle.cms.proto.user.ReadAllUsersRequest.prototype.getApi = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
};
/** @param {string} value */
proto.loafle.cms.proto.user.ReadAllUsersRequest.prototype.setApi = function(value) {
jspb.Message.setProto3StringField(this, 1, value);
};
/**
* optional loafle.cms.proto.common.SearchPagination pagination = 2;
* @return {?proto.loafle.cms.proto.common.SearchPagination}
*/
proto.loafle.cms.proto.user.ReadAllUsersRequest.prototype.getPagination = function() {
return /** @type{?proto.loafle.cms.proto.common.SearchPagination} */ (
jspb.Message.getWrapperField(this, common_search$pagination_pb.SearchPagination, 2));
};
/** @param {?proto.loafle.cms.proto.common.SearchPagination|undefined} value */
proto.loafle.cms.proto.user.ReadAllUsersRequest.prototype.setPagination = function(value) {
jspb.Message.setWrapperField(this, 2, value);
};
/**
* Clears the message field making it undefined.
*/
proto.loafle.cms.proto.user.ReadAllUsersRequest.prototype.clearPagination = function() {
this.setPagination(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.loafle.cms.proto.user.ReadAllUsersRequest.prototype.hasPagination = function() {
return jspb.Message.getField(this, 2) != null;
};
/**
* optional loafle.cms.proto.common.SearchSort sort = 3;
* @return {?proto.loafle.cms.proto.common.SearchSort}
*/
proto.loafle.cms.proto.user.ReadAllUsersRequest.prototype.getSort = function() {
return /** @type{?proto.loafle.cms.proto.common.SearchSort} */ (
jspb.Message.getWrapperField(this, common_search$sort_pb.SearchSort, 3));
};
/** @param {?proto.loafle.cms.proto.common.SearchSort|undefined} value */
proto.loafle.cms.proto.user.ReadAllUsersRequest.prototype.setSort = function(value) {
jspb.Message.setWrapperField(this, 3, value);
};
/**
* Clears the message field making it undefined.
*/
proto.loafle.cms.proto.user.ReadAllUsersRequest.prototype.clearSort = function() {
this.setSort(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.loafle.cms.proto.user.ReadAllUsersRequest.prototype.hasSort = function() {
return jspb.Message.getField(this, 3) != null;
};
/**
* repeated loafle.cms.proto.common.SearchCriteria criteria = 4;
* @return {!Array<!proto.loafle.cms.proto.common.SearchCriteria>}
*/
proto.loafle.cms.proto.user.ReadAllUsersRequest.prototype.getCriteriaList = function() {
return /** @type{!Array<!proto.loafle.cms.proto.common.SearchCriteria>} */ (
jspb.Message.getRepeatedWrapperField(this, common_search$criteria_pb.SearchCriteria, 4));
};
/** @param {!Array<!proto.loafle.cms.proto.common.SearchCriteria>} value */
proto.loafle.cms.proto.user.ReadAllUsersRequest.prototype.setCriteriaList = function(value) {
jspb.Message.setRepeatedWrapperField(this, 4, value);
};
/**
* @param {!proto.loafle.cms.proto.common.SearchCriteria=} opt_value
* @param {number=} opt_index
* @return {!proto.loafle.cms.proto.common.SearchCriteria}
*/
proto.loafle.cms.proto.user.ReadAllUsersRequest.prototype.addCriteria = function(opt_value, opt_index) {
return jspb.Message.addToRepeatedWrapperField(this, 4, opt_value, proto.loafle.cms.proto.common.SearchCriteria, opt_index);
};
/**
* Clears the list making it empty but non-null.
*/
proto.loafle.cms.proto.user.ReadAllUsersRequest.prototype.clearCriteriaList = function() {
this.setCriteriaList([]);
};
/**
* List of repeated fields within this message type.
* @private {!Array<number>}
* @const
*/
proto.loafle.cms.proto.user.ReadAllUsersResponse.repeatedFields_ = [3];
if (jspb.Message.GENERATE_TO_OBJECT) {
/**
* Creates an object representation of this proto.
* Field names that are reserved in JavaScript and will be renamed to pb_name.
* Optional fields that are not set will be set to undefined.
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
* For the list of reserved names please see:
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
* JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration
* @return {!Object}
*/
proto.loafle.cms.proto.user.ReadAllUsersResponse.prototype.toObject = function(opt_includeInstance) {
return proto.loafle.cms.proto.user.ReadAllUsersResponse.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.loafle.cms.proto.user.ReadAllUsersResponse} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.loafle.cms.proto.user.ReadAllUsersResponse.toObject = function(includeInstance, msg) {
var f, obj = {
api: jspb.Message.getFieldWithDefault(msg, 1, ""),
totalcount: jspb.Message.getFieldWithDefault(msg, 2, 0),
usersList: jspb.Message.toObjectList(msg.getUsersList(),
user_user_pb.User.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.loafle.cms.proto.user.ReadAllUsersResponse}
*/
proto.loafle.cms.proto.user.ReadAllUsersResponse.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.loafle.cms.proto.user.ReadAllUsersResponse;
return proto.loafle.cms.proto.user.ReadAllUsersResponse.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.loafle.cms.proto.user.ReadAllUsersResponse} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.loafle.cms.proto.user.ReadAllUsersResponse}
*/
proto.loafle.cms.proto.user.ReadAllUsersResponse.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.setApi(value);
break;
case 2:
var value = /** @type {number} */ (reader.readInt32());
msg.setTotalcount(value);
break;
case 3:
var value = new user_user_pb.User;
reader.readMessage(value,user_user_pb.User.deserializeBinaryFromReader);
msg.addUsers(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.loafle.cms.proto.user.ReadAllUsersResponse.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.loafle.cms.proto.user.ReadAllUsersResponse.serializeBinaryToWriter(this, writer);
return writer.getResultBuffer();
};
/**
* Serializes the given message to binary data (in protobuf wire
* format), writing to the given BinaryWriter.
* @param {!proto.loafle.cms.proto.user.ReadAllUsersResponse} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.loafle.cms.proto.user.ReadAllUsersResponse.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = message.getApi();
if (f.length > 0) {
writer.writeString(
1,
f
);
}
f = message.getTotalcount();
if (f !== 0) {
writer.writeInt32(
2,
f
);
}
f = message.getUsersList();
if (f.length > 0) {
writer.writeRepeatedMessage(
3,
f,
user_user_pb.User.serializeBinaryToWriter
);
}
};
/**
* optional string api = 1;
* @return {string}
*/
proto.loafle.cms.proto.user.ReadAllUsersResponse.prototype.getApi = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
};
/** @param {string} value */
proto.loafle.cms.proto.user.ReadAllUsersResponse.prototype.setApi = function(value) {
jspb.Message.setProto3StringField(this, 1, value);
};
/**
* optional int32 totalCount = 2;
* @return {number}
*/
proto.loafle.cms.proto.user.ReadAllUsersResponse.prototype.getTotalcount = function() {
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
};
/** @param {number} value */
proto.loafle.cms.proto.user.ReadAllUsersResponse.prototype.setTotalcount = function(value) {
jspb.Message.setProto3IntField(this, 2, value);
};
/**
* repeated User users = 3;
* @return {!Array<!proto.loafle.cms.proto.user.User>}
*/
proto.loafle.cms.proto.user.ReadAllUsersResponse.prototype.getUsersList = function() {
return /** @type{!Array<!proto.loafle.cms.proto.user.User>} */ (
jspb.Message.getRepeatedWrapperField(this, user_user_pb.User, 3));
};
/** @param {!Array<!proto.loafle.cms.proto.user.User>} value */
proto.loafle.cms.proto.user.ReadAllUsersResponse.prototype.setUsersList = function(value) {
jspb.Message.setRepeatedWrapperField(this, 3, value);
};
/**
* @param {!proto.loafle.cms.proto.user.User=} opt_value
* @param {number=} opt_index
* @return {!proto.loafle.cms.proto.user.User}
*/
proto.loafle.cms.proto.user.ReadAllUsersResponse.prototype.addUsers = function(opt_value, opt_index) {
return jspb.Message.addToRepeatedWrapperField(this, 3, opt_value, proto.loafle.cms.proto.user.User, opt_index);
};
/**
* Clears the list making it empty but non-null.
*/
proto.loafle.cms.proto.user.ReadAllUsersResponse.prototype.clearUsersList = function() {
this.setUsersList([]);
};
goog.object.extend(exports, proto.loafle.cms.proto.user);