@ondewo/csi-client-nodejs
Version:
ONDEWO Communication System Integration (CSI) Client library for Nodejs
1,490 lines (1,365 loc) • 199 kB
JavaScript
// source: ondewo/nlu/user.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_api_annotations_pb = require('../../google/api/annotations_pb.js');
goog.object.extend(proto, google_api_annotations_pb);
var google_protobuf_empty_pb = require('google-protobuf/google/protobuf/empty_pb.js');
goog.object.extend(proto, google_protobuf_empty_pb);
var google_protobuf_field_mask_pb = require('google-protobuf/google/protobuf/field_mask_pb.js');
goog.object.extend(proto, google_protobuf_field_mask_pb);
var google_protobuf_timestamp_pb = require('google-protobuf/google/protobuf/timestamp_pb.js');
goog.object.extend(proto, google_protobuf_timestamp_pb);
var ondewo_nlu_project_role_pb = require('../../ondewo/nlu/project_role_pb.js');
goog.object.extend(proto, ondewo_nlu_project_role_pb);
var ondewo_nlu_common_pb = require('../../ondewo/nlu/common_pb.js');
goog.object.extend(proto, ondewo_nlu_common_pb);
goog.exportSymbol('proto.ondewo.nlu.CreateServerRoleRequest', null, global);
goog.exportSymbol('proto.ondewo.nlu.CreateUserRequest', null, global);
goog.exportSymbol('proto.ondewo.nlu.DefaultServerRole', null, global);
goog.exportSymbol('proto.ondewo.nlu.DeleteAllUserPreferencesRequest', null, global);
goog.exportSymbol('proto.ondewo.nlu.DeleteServerRoleRequest', null, global);
goog.exportSymbol('proto.ondewo.nlu.DeleteUserPreferencesRequest', null, global);
goog.exportSymbol('proto.ondewo.nlu.DeleteUserPreferencesResponse', null, global);
goog.exportSymbol('proto.ondewo.nlu.DeleteUserRequest', null, global);
goog.exportSymbol('proto.ondewo.nlu.GetServerRoleRequest', null, global);
goog.exportSymbol('proto.ondewo.nlu.GetServerRoleRequest.ServerRoleIdentifierCase', null, global);
goog.exportSymbol('proto.ondewo.nlu.GetUserPreferencesRequest', null, global);
goog.exportSymbol('proto.ondewo.nlu.GetUserPreferencesResponse', null, global);
goog.exportSymbol('proto.ondewo.nlu.GetUserRequest', null, global);
goog.exportSymbol('proto.ondewo.nlu.GetUserRequest.UserIdentifierCase', null, global);
goog.exportSymbol('proto.ondewo.nlu.ListServerPermissionsRequest', null, global);
goog.exportSymbol('proto.ondewo.nlu.ListServerPermissionsResponse', null, global);
goog.exportSymbol('proto.ondewo.nlu.ListServerRolesRequest', null, global);
goog.exportSymbol('proto.ondewo.nlu.ListServerRolesResponse', null, global);
goog.exportSymbol('proto.ondewo.nlu.ListUserInfosResponse', null, global);
goog.exportSymbol('proto.ondewo.nlu.ListUserPreferencesRequest', null, global);
goog.exportSymbol('proto.ondewo.nlu.ListUserPreferencesResponse', null, global);
goog.exportSymbol('proto.ondewo.nlu.ListUsersRequest', null, global);
goog.exportSymbol('proto.ondewo.nlu.ListUsersResponse', null, global);
goog.exportSymbol('proto.ondewo.nlu.LoginRequest', null, global);
goog.exportSymbol('proto.ondewo.nlu.LoginResponse', null, global);
goog.exportSymbol('proto.ondewo.nlu.ServerRole', null, global);
goog.exportSymbol('proto.ondewo.nlu.SetUserPreferencesRequest', null, global);
goog.exportSymbol('proto.ondewo.nlu.SetUserPreferencesResponse', null, global);
goog.exportSymbol('proto.ondewo.nlu.UpdateServerRoleRequest', null, global);
goog.exportSymbol('proto.ondewo.nlu.UpdateUserRequest', null, global);
goog.exportSymbol('proto.ondewo.nlu.User', null, global);
goog.exportSymbol('proto.ondewo.nlu.UserInfo', 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.ondewo.nlu.User = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.ondewo.nlu.User, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.ondewo.nlu.User.displayName = 'proto.ondewo.nlu.User';
}
/**
* 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.ondewo.nlu.UserInfo = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.ondewo.nlu.UserInfo, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.ondewo.nlu.UserInfo.displayName = 'proto.ondewo.nlu.UserInfo';
}
/**
* 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.ondewo.nlu.CreateUserRequest = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.ondewo.nlu.CreateUserRequest, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.ondewo.nlu.CreateUserRequest.displayName = 'proto.ondewo.nlu.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.ondewo.nlu.UpdateUserRequest = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.ondewo.nlu.UpdateUserRequest, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.ondewo.nlu.UpdateUserRequest.displayName = 'proto.ondewo.nlu.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.ondewo.nlu.GetUserRequest = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, proto.ondewo.nlu.GetUserRequest.oneofGroups_);
};
goog.inherits(proto.ondewo.nlu.GetUserRequest, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.ondewo.nlu.GetUserRequest.displayName = 'proto.ondewo.nlu.GetUserRequest';
}
/**
* 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.ondewo.nlu.DeleteUserRequest = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.ondewo.nlu.DeleteUserRequest, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.ondewo.nlu.DeleteUserRequest.displayName = 'proto.ondewo.nlu.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.ondewo.nlu.ListUsersRequest = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.ondewo.nlu.ListUsersRequest, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.ondewo.nlu.ListUsersRequest.displayName = 'proto.ondewo.nlu.ListUsersRequest';
}
/**
* 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.ondewo.nlu.ListUsersResponse = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, proto.ondewo.nlu.ListUsersResponse.repeatedFields_, null);
};
goog.inherits(proto.ondewo.nlu.ListUsersResponse, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.ondewo.nlu.ListUsersResponse.displayName = 'proto.ondewo.nlu.ListUsersResponse';
}
/**
* 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.ondewo.nlu.ListUserInfosResponse = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, proto.ondewo.nlu.ListUserInfosResponse.repeatedFields_, null);
};
goog.inherits(proto.ondewo.nlu.ListUserInfosResponse, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.ondewo.nlu.ListUserInfosResponse.displayName = 'proto.ondewo.nlu.ListUserInfosResponse';
}
/**
* 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.ondewo.nlu.ServerRole = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, proto.ondewo.nlu.ServerRole.repeatedFields_, null);
};
goog.inherits(proto.ondewo.nlu.ServerRole, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.ondewo.nlu.ServerRole.displayName = 'proto.ondewo.nlu.ServerRole';
}
/**
* 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.ondewo.nlu.CreateServerRoleRequest = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.ondewo.nlu.CreateServerRoleRequest, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.ondewo.nlu.CreateServerRoleRequest.displayName = 'proto.ondewo.nlu.CreateServerRoleRequest';
}
/**
* 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.ondewo.nlu.UpdateServerRoleRequest = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.ondewo.nlu.UpdateServerRoleRequest, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.ondewo.nlu.UpdateServerRoleRequest.displayName = 'proto.ondewo.nlu.UpdateServerRoleRequest';
}
/**
* 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.ondewo.nlu.DeleteServerRoleRequest = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.ondewo.nlu.DeleteServerRoleRequest, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.ondewo.nlu.DeleteServerRoleRequest.displayName = 'proto.ondewo.nlu.DeleteServerRoleRequest';
}
/**
* 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.ondewo.nlu.GetServerRoleRequest = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, proto.ondewo.nlu.GetServerRoleRequest.oneofGroups_);
};
goog.inherits(proto.ondewo.nlu.GetServerRoleRequest, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.ondewo.nlu.GetServerRoleRequest.displayName = 'proto.ondewo.nlu.GetServerRoleRequest';
}
/**
* 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.ondewo.nlu.ListServerRolesRequest = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.ondewo.nlu.ListServerRolesRequest, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.ondewo.nlu.ListServerRolesRequest.displayName = 'proto.ondewo.nlu.ListServerRolesRequest';
}
/**
* 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.ondewo.nlu.ListServerRolesResponse = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, proto.ondewo.nlu.ListServerRolesResponse.repeatedFields_, null);
};
goog.inherits(proto.ondewo.nlu.ListServerRolesResponse, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.ondewo.nlu.ListServerRolesResponse.displayName = 'proto.ondewo.nlu.ListServerRolesResponse';
}
/**
* 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.ondewo.nlu.ListServerPermissionsRequest = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.ondewo.nlu.ListServerPermissionsRequest, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.ondewo.nlu.ListServerPermissionsRequest.displayName = 'proto.ondewo.nlu.ListServerPermissionsRequest';
}
/**
* 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.ondewo.nlu.ListServerPermissionsResponse = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, proto.ondewo.nlu.ListServerPermissionsResponse.repeatedFields_, null);
};
goog.inherits(proto.ondewo.nlu.ListServerPermissionsResponse, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.ondewo.nlu.ListServerPermissionsResponse.displayName = 'proto.ondewo.nlu.ListServerPermissionsResponse';
}
/**
* 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.ondewo.nlu.LoginRequest = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.ondewo.nlu.LoginRequest, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.ondewo.nlu.LoginRequest.displayName = 'proto.ondewo.nlu.LoginRequest';
}
/**
* 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.ondewo.nlu.LoginResponse = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.ondewo.nlu.LoginResponse, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.ondewo.nlu.LoginResponse.displayName = 'proto.ondewo.nlu.LoginResponse';
}
/**
* 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.ondewo.nlu.GetUserPreferencesRequest = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, proto.ondewo.nlu.GetUserPreferencesRequest.repeatedFields_, null);
};
goog.inherits(proto.ondewo.nlu.GetUserPreferencesRequest, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.ondewo.nlu.GetUserPreferencesRequest.displayName = 'proto.ondewo.nlu.GetUserPreferencesRequest';
}
/**
* 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.ondewo.nlu.GetUserPreferencesResponse = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, proto.ondewo.nlu.GetUserPreferencesResponse.repeatedFields_, null);
};
goog.inherits(proto.ondewo.nlu.GetUserPreferencesResponse, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.ondewo.nlu.GetUserPreferencesResponse.displayName = 'proto.ondewo.nlu.GetUserPreferencesResponse';
}
/**
* 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.ondewo.nlu.SetUserPreferencesRequest = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, proto.ondewo.nlu.SetUserPreferencesRequest.repeatedFields_, null);
};
goog.inherits(proto.ondewo.nlu.SetUserPreferencesRequest, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.ondewo.nlu.SetUserPreferencesRequest.displayName = 'proto.ondewo.nlu.SetUserPreferencesRequest';
}
/**
* 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.ondewo.nlu.SetUserPreferencesResponse = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, proto.ondewo.nlu.SetUserPreferencesResponse.repeatedFields_, null);
};
goog.inherits(proto.ondewo.nlu.SetUserPreferencesResponse, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.ondewo.nlu.SetUserPreferencesResponse.displayName = 'proto.ondewo.nlu.SetUserPreferencesResponse';
}
/**
* 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.ondewo.nlu.DeleteUserPreferencesRequest = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, proto.ondewo.nlu.DeleteUserPreferencesRequest.repeatedFields_, null);
};
goog.inherits(proto.ondewo.nlu.DeleteUserPreferencesRequest, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.ondewo.nlu.DeleteUserPreferencesRequest.displayName = 'proto.ondewo.nlu.DeleteUserPreferencesRequest';
}
/**
* 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.ondewo.nlu.DeleteUserPreferencesResponse = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, proto.ondewo.nlu.DeleteUserPreferencesResponse.repeatedFields_, null);
};
goog.inherits(proto.ondewo.nlu.DeleteUserPreferencesResponse, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.ondewo.nlu.DeleteUserPreferencesResponse.displayName = 'proto.ondewo.nlu.DeleteUserPreferencesResponse';
}
/**
* 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.ondewo.nlu.DeleteAllUserPreferencesRequest = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.ondewo.nlu.DeleteAllUserPreferencesRequest, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.ondewo.nlu.DeleteAllUserPreferencesRequest.displayName = 'proto.ondewo.nlu.DeleteAllUserPreferencesRequest';
}
/**
* 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.ondewo.nlu.ListUserPreferencesRequest = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.ondewo.nlu.ListUserPreferencesRequest, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.ondewo.nlu.ListUserPreferencesRequest.displayName = 'proto.ondewo.nlu.ListUserPreferencesRequest';
}
/**
* 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.ondewo.nlu.ListUserPreferencesResponse = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, proto.ondewo.nlu.ListUserPreferencesResponse.repeatedFields_, null);
};
goog.inherits(proto.ondewo.nlu.ListUserPreferencesResponse, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.ondewo.nlu.ListUserPreferencesResponse.displayName = 'proto.ondewo.nlu.ListUserPreferencesResponse';
}
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.ondewo.nlu.User.prototype.toObject = function(opt_includeInstance) {
return proto.ondewo.nlu.User.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.ondewo.nlu.User} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.ondewo.nlu.User.toObject = function(includeInstance, msg) {
var f, obj = {
userId: jspb.Message.getFieldWithDefault(msg, 2, ""),
displayName: jspb.Message.getFieldWithDefault(msg, 3, ""),
serverRoleId: jspb.Message.getFieldWithDefault(msg, 6, 0),
userEmail: jspb.Message.getFieldWithDefault(msg, 7, ""),
userProfilePicture: msg.getUserProfilePicture_asB64(),
createdAt: (f = msg.getCreatedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
modifiedAt: (f = msg.getModifiedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
createdBy: jspb.Message.getFieldWithDefault(msg, 11, ""),
modifiedBy: jspb.Message.getFieldWithDefault(msg, 12, "")
};
if (includeInstance) {
obj.$jspbMessageInstance = msg;
}
return obj;
};
}
/**
* Deserializes binary data (in protobuf wire format).
* @param {jspb.ByteSource} bytes The bytes to deserialize.
* @return {!proto.ondewo.nlu.User}
*/
proto.ondewo.nlu.User.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.ondewo.nlu.User;
return proto.ondewo.nlu.User.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.ondewo.nlu.User} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.ondewo.nlu.User}
*/
proto.ondewo.nlu.User.deserializeBinaryFromReader = function(msg, reader) {
while (reader.nextField()) {
if (reader.isEndGroup()) {
break;
}
var field = reader.getFieldNumber();
switch (field) {
case 2:
var value = /** @type {string} */ (reader.readString());
msg.setUserId(value);
break;
case 3:
var value = /** @type {string} */ (reader.readString());
msg.setDisplayName(value);
break;
case 6:
var value = /** @type {number} */ (reader.readUint32());
msg.setServerRoleId(value);
break;
case 7:
var value = /** @type {string} */ (reader.readString());
msg.setUserEmail(value);
break;
case 8:
var value = /** @type {!Uint8Array} */ (reader.readBytes());
msg.setUserProfilePicture(value);
break;
case 9:
var value = new google_protobuf_timestamp_pb.Timestamp;
reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
msg.setCreatedAt(value);
break;
case 10:
var value = new google_protobuf_timestamp_pb.Timestamp;
reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
msg.setModifiedAt(value);
break;
case 11:
var value = /** @type {string} */ (reader.readString());
msg.setCreatedBy(value);
break;
case 12:
var value = /** @type {string} */ (reader.readString());
msg.setModifiedBy(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.ondewo.nlu.User.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.ondewo.nlu.User.serializeBinaryToWriter(this, writer);
return writer.getResultBuffer();
};
/**
* Serializes the given message to binary data (in protobuf wire
* format), writing to the given BinaryWriter.
* @param {!proto.ondewo.nlu.User} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.ondewo.nlu.User.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = message.getUserId();
if (f.length > 0) {
writer.writeString(
2,
f
);
}
f = message.getDisplayName();
if (f.length > 0) {
writer.writeString(
3,
f
);
}
f = message.getServerRoleId();
if (f !== 0) {
writer.writeUint32(
6,
f
);
}
f = message.getUserEmail();
if (f.length > 0) {
writer.writeString(
7,
f
);
}
f = message.getUserProfilePicture_asU8();
if (f.length > 0) {
writer.writeBytes(
8,
f
);
}
f = message.getCreatedAt();
if (f != null) {
writer.writeMessage(
9,
f,
google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
);
}
f = message.getModifiedAt();
if (f != null) {
writer.writeMessage(
10,
f,
google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
);
}
f = message.getCreatedBy();
if (f.length > 0) {
writer.writeString(
11,
f
);
}
f = message.getModifiedBy();
if (f.length > 0) {
writer.writeString(
12,
f
);
}
};
/**
* optional string user_id = 2;
* @return {string}
*/
proto.ondewo.nlu.User.prototype.getUserId = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
};
/**
* @param {string} value
* @return {!proto.ondewo.nlu.User} returns this
*/
proto.ondewo.nlu.User.prototype.setUserId = function(value) {
return jspb.Message.setProto3StringField(this, 2, value);
};
/**
* optional string display_name = 3;
* @return {string}
*/
proto.ondewo.nlu.User.prototype.getDisplayName = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
};
/**
* @param {string} value
* @return {!proto.ondewo.nlu.User} returns this
*/
proto.ondewo.nlu.User.prototype.setDisplayName = function(value) {
return jspb.Message.setProto3StringField(this, 3, value);
};
/**
* optional uint32 server_role_id = 6;
* @return {number}
*/
proto.ondewo.nlu.User.prototype.getServerRoleId = function() {
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 6, 0));
};
/**
* @param {number} value
* @return {!proto.ondewo.nlu.User} returns this
*/
proto.ondewo.nlu.User.prototype.setServerRoleId = function(value) {
return jspb.Message.setProto3IntField(this, 6, value);
};
/**
* optional string user_email = 7;
* @return {string}
*/
proto.ondewo.nlu.User.prototype.getUserEmail = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
};
/**
* @param {string} value
* @return {!proto.ondewo.nlu.User} returns this
*/
proto.ondewo.nlu.User.prototype.setUserEmail = function(value) {
return jspb.Message.setProto3StringField(this, 7, value);
};
/**
* optional bytes user_profile_picture = 8;
* @return {!(string|Uint8Array)}
*/
proto.ondewo.nlu.User.prototype.getUserProfilePicture = function() {
return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 8, ""));
};
/**
* optional bytes user_profile_picture = 8;
* This is a type-conversion wrapper around `getUserProfilePicture()`
* @return {string}
*/
proto.ondewo.nlu.User.prototype.getUserProfilePicture_asB64 = function() {
return /** @type {string} */ (jspb.Message.bytesAsB64(
this.getUserProfilePicture()));
};
/**
* optional bytes user_profile_picture = 8;
* Note that Uint8Array is not supported on all browsers.
* @see http://caniuse.com/Uint8Array
* This is a type-conversion wrapper around `getUserProfilePicture()`
* @return {!Uint8Array}
*/
proto.ondewo.nlu.User.prototype.getUserProfilePicture_asU8 = function() {
return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8(
this.getUserProfilePicture()));
};
/**
* @param {!(string|Uint8Array)} value
* @return {!proto.ondewo.nlu.User} returns this
*/
proto.ondewo.nlu.User.prototype.setUserProfilePicture = function(value) {
return jspb.Message.setProto3BytesField(this, 8, value);
};
/**
* optional google.protobuf.Timestamp created_at = 9;
* @return {?proto.google.protobuf.Timestamp}
*/
proto.ondewo.nlu.User.prototype.getCreatedAt = function() {
return /** @type{?proto.google.protobuf.Timestamp} */ (
jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 9));
};
/**
* @param {?proto.google.protobuf.Timestamp|undefined} value
* @return {!proto.ondewo.nlu.User} returns this
*/
proto.ondewo.nlu.User.prototype.setCreatedAt = function(value) {
return jspb.Message.setWrapperField(this, 9, value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.ondewo.nlu.User} returns this
*/
proto.ondewo.nlu.User.prototype.clearCreatedAt = function() {
return this.setCreatedAt(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.ondewo.nlu.User.prototype.hasCreatedAt = function() {
return jspb.Message.getField(this, 9) != null;
};
/**
* optional google.protobuf.Timestamp modified_at = 10;
* @return {?proto.google.protobuf.Timestamp}
*/
proto.ondewo.nlu.User.prototype.getModifiedAt = function() {
return /** @type{?proto.google.protobuf.Timestamp} */ (
jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 10));
};
/**
* @param {?proto.google.protobuf.Timestamp|undefined} value
* @return {!proto.ondewo.nlu.User} returns this
*/
proto.ondewo.nlu.User.prototype.setModifiedAt = function(value) {
return jspb.Message.setWrapperField(this, 10, value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.ondewo.nlu.User} returns this
*/
proto.ondewo.nlu.User.prototype.clearModifiedAt = function() {
return this.setModifiedAt(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.ondewo.nlu.User.prototype.hasModifiedAt = function() {
return jspb.Message.getField(this, 10) != null;
};
/**
* optional string created_by = 11;
* @return {string}
*/
proto.ondewo.nlu.User.prototype.getCreatedBy = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 11, ""));
};
/**
* @param {string} value
* @return {!proto.ondewo.nlu.User} returns this
*/
proto.ondewo.nlu.User.prototype.setCreatedBy = function(value) {
return jspb.Message.setProto3StringField(this, 11, value);
};
/**
* optional string modified_by = 12;
* @return {string}
*/
proto.ondewo.nlu.User.prototype.getModifiedBy = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 12, ""));
};
/**
* @param {string} value
* @return {!proto.ondewo.nlu.User} returns this
*/
proto.ondewo.nlu.User.prototype.setModifiedBy = function(value) {
return jspb.Message.setProto3StringField(this, 12, 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.ondewo.nlu.UserInfo.prototype.toObject = function(opt_includeInstance) {
return proto.ondewo.nlu.UserInfo.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.ondewo.nlu.UserInfo} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.ondewo.nlu.UserInfo.toObject = function(includeInstance, msg) {
var f, obj = {
user: (f = msg.getUser()) && proto.ondewo.nlu.User.toObject(includeInstance, f),
projectRolesMap: (f = msg.getProjectRolesMap()) ? f.toObject(includeInstance, proto.ondewo.nlu.ProjectRole.toObject) : []
};
if (includeInstance) {
obj.$jspbMessageInstance = msg;
}
return obj;
};
}
/**
* Deserializes binary data (in protobuf wire format).
* @param {jspb.ByteSource} bytes The bytes to deserialize.
* @return {!proto.ondewo.nlu.UserInfo}
*/
proto.ondewo.nlu.UserInfo.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.ondewo.nlu.UserInfo;
return proto.ondewo.nlu.UserInfo.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.ondewo.nlu.UserInfo} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.ondewo.nlu.UserInfo}
*/
proto.ondewo.nlu.UserInfo.deserializeBinaryFromReader = function(msg, reader) {
while (reader.nextField()) {
if (reader.isEndGroup()) {
break;
}
var field = reader.getFieldNumber();
switch (field) {
case 1:
var value = new proto.ondewo.nlu.User;
reader.readMessage(value,proto.ondewo.nlu.User.deserializeBinaryFromReader);
msg.setUser(value);
break;
case 2:
var value = msg.getProjectRolesMap();
reader.readMessage(value, function(message, reader) {
jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readMessage, proto.ondewo.nlu.ProjectRole.deserializeBinaryFromReader, "", new proto.ondewo.nlu.ProjectRole());
});
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.ondewo.nlu.UserInfo.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.ondewo.nlu.UserInfo.serializeBinaryToWriter(this, writer);
return writer.getResultBuffer();
};
/**
* Serializes the given message to binary data (in protobuf wire
* format), writing to the given BinaryWriter.
* @param {!proto.ondewo.nlu.UserInfo} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.ondewo.nlu.UserInfo.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = message.getUser();
if (f != null) {
writer.writeMessage(
1,
f,
proto.ondewo.nlu.User.serializeBinaryToWriter
);
}
f = message.getProjectRolesMap(true);
if (f && f.getLength() > 0) {
f.serializeBinary(2, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeMessage, proto.ondewo.nlu.ProjectRole.serializeBinaryToWriter);
}
};
/**
* optional User user = 1;
* @return {?proto.ondewo.nlu.User}
*/
proto.ondewo.nlu.UserInfo.prototype.getUser = function() {
return /** @type{?proto.ondewo.nlu.User} */ (
jspb.Message.getWrapperField(this, proto.ondewo.nlu.User, 1));
};
/**
* @param {?proto.ondewo.nlu.User|undefined} value
* @return {!proto.ondewo.nlu.UserInfo} returns this
*/
proto.ondewo.nlu.UserInfo.prototype.setUser = function(value) {
return jspb.Message.setWrapperField(this, 1, value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.ondewo.nlu.UserInfo} returns this
*/
proto.ondewo.nlu.UserInfo.prototype.clearUser = function() {
return this.setUser(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.ondewo.nlu.UserInfo.prototype.hasUser = function() {
return jspb.Message.getField(this, 1) != null;
};
/**
* map<string, ProjectRole> project_roles = 2;
* @param {boolean=} opt_noLazyCreate Do not create the map if
* empty, instead returning `undefined`
* @return {!jspb.Map<string,!proto.ondewo.nlu.ProjectRole>}
*/
proto.ondewo.nlu.UserInfo.prototype.getProjectRolesMap = function(opt_noLazyCreate) {
return /** @type {!jspb.Map<string,!proto.ondewo.nlu.ProjectRole>} */ (
jspb.Message.getMapField(this, 2, opt_noLazyCreate,
proto.ondewo.nlu.ProjectRole));
};
/**
* Clears values from the map. The map will be non-null.
* @return {!proto.ondewo.nlu.UserInfo} returns this
*/
proto.ondewo.nlu.UserInfo.prototype.clearProjectRolesMap = function() {
this.getProjectRolesMap().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.ondewo.nlu.CreateUserRequest.prototype.toObject = function(opt_includeInstance) {
return proto.ondewo.nlu.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.ondewo.nlu.CreateUserRequest} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.ondewo.nlu.CreateUserRequest.toObject = function(includeInstance, msg) {
var f, obj = {
user: (f = msg.getUser()) && proto.ondewo.nlu.User.toObject(includeInstance, f),
password: jspb.Message.getFieldWithDefault(msg, 3, "")
};
if (includeInstance) {
obj.$jspbMessageInstance = msg;
}
return obj;
};
}
/**
* Deserializes binary data (in protobuf wire format).
* @param {jspb.ByteSource} bytes The bytes to deserialize.
* @return {!proto.ondewo.nlu.CreateUserRequest}
*/
proto.ondewo.nlu.CreateUserRequest.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.ondewo.nlu.CreateUserRequest;
return proto.ondewo.nlu.CreateUserRequest.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.ondewo.nlu.CreateUserRequest} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.ondewo.nlu.CreateUserRequest}
*/
proto.ondewo.nlu.CreateUserRequest.deserializeBinaryFromReader = function(msg, reader) {
while (reader.nextField()) {
if (reader.isEndGroup()) {
break;
}
var field = reader.getFieldNumber();
switch (field) {
case 1:
var value = new proto.ondewo.nlu.User;
reader.readMessage(value,proto.ondewo.nlu.User.deserializeBinaryFromReader);
msg.setUser(value);
break;
case 3:
var value = /** @type {string} */ (reader.readString());
msg.setPassword(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.ondewo.nlu.CreateUserRequest.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.ondewo.nlu.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.ondewo.nlu.CreateUserRequest} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.ondewo.nlu.CreateUserRequest.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = message.getUser();
if (f != null) {
writer.writeMessage(
1,
f,
proto.ondewo.nlu.User.serializeBinaryToWriter
);
}
f = message.getPassword();
if (f.length > 0) {
writer.writeString(
3,
f
);
}
};
/**
* optional User user = 1;
* @return {?proto.ondewo.nlu.User}
*/
proto.ondewo.nlu.CreateUserRequest.prototype.getUser = function() {
return /** @type{?proto.ondewo.nlu.User} */ (
jspb.Message.getWrapperField(this, proto.ondewo.nlu.User, 1));
};
/**
* @param {?proto.ondewo.nlu.User|undefined} value
* @return {!proto.ondewo.nlu.CreateUserRequest} returns this
*/
proto.ondewo.nlu.CreateUserRequest.prototype.setUser = function(value) {
return jspb.Message.setWrapperField(this, 1, value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.ondewo.nlu.CreateUserRequest} returns this
*/
proto.ondewo.nlu.CreateUserRequest.prototype.clearUser = function() {
return this.setUser(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.ondewo.nlu.CreateUserRequest.prototype.hasUser = function() {
return jspb.Message.getField(this, 1) != null;
};
/**
* optional string password = 3;
* @return {string}
*/
proto.ondewo.nlu.CreateUserRequest.prototype.getPassword = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
};
/**
* @param {string} value
* @return {!proto.ondewo.nlu.CreateUserRequest} returns this
*/
proto.ondewo.nlu.CreateUserRequest.prototype.setPassword = function(value) {
return jspb.Message.setProto3StringField(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
*