UNPKG

@ondewo/csi-client-nodejs

Version:

ONDEWO Communication System Integration (CSI) Client library for Nodejs

1,629 lines (1,413 loc) 57.7 kB
// source: ondewo/nlu/project_role.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); goog.exportSymbol('proto.ondewo.nlu.CreateProjectRoleRequest', null, global); goog.exportSymbol('proto.ondewo.nlu.DefaultProjectRole', null, global); goog.exportSymbol('proto.ondewo.nlu.DeleteProjectRoleRequest', null, global); goog.exportSymbol('proto.ondewo.nlu.GetProjectRoleRequest', null, global); goog.exportSymbol('proto.ondewo.nlu.GetProjectRoleRequest.ProjectRoleIdentifierCase', null, global); goog.exportSymbol('proto.ondewo.nlu.ListProjectRolesRequest', null, global); goog.exportSymbol('proto.ondewo.nlu.ListProjectRolesResponse', null, global); goog.exportSymbol('proto.ondewo.nlu.ProjectRole', null, global); goog.exportSymbol('proto.ondewo.nlu.ProjectRoleView', null, global); goog.exportSymbol('proto.ondewo.nlu.UpdateProjectRoleRequest', 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.ProjectRole = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, proto.ondewo.nlu.ProjectRole.repeatedFields_, null); }; goog.inherits(proto.ondewo.nlu.ProjectRole, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.ondewo.nlu.ProjectRole.displayName = 'proto.ondewo.nlu.ProjectRole'; } /** * 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.CreateProjectRoleRequest = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.ondewo.nlu.CreateProjectRoleRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.ondewo.nlu.CreateProjectRoleRequest.displayName = 'proto.ondewo.nlu.CreateProjectRoleRequest'; } /** * 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.UpdateProjectRoleRequest = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.ondewo.nlu.UpdateProjectRoleRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.ondewo.nlu.UpdateProjectRoleRequest.displayName = 'proto.ondewo.nlu.UpdateProjectRoleRequest'; } /** * 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.GetProjectRoleRequest = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, proto.ondewo.nlu.GetProjectRoleRequest.oneofGroups_); }; goog.inherits(proto.ondewo.nlu.GetProjectRoleRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.ondewo.nlu.GetProjectRoleRequest.displayName = 'proto.ondewo.nlu.GetProjectRoleRequest'; } /** * 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.DeleteProjectRoleRequest = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.ondewo.nlu.DeleteProjectRoleRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.ondewo.nlu.DeleteProjectRoleRequest.displayName = 'proto.ondewo.nlu.DeleteProjectRoleRequest'; } /** * 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.ListProjectRolesRequest = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.ondewo.nlu.ListProjectRolesRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.ondewo.nlu.ListProjectRolesRequest.displayName = 'proto.ondewo.nlu.ListProjectRolesRequest'; } /** * 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.ListProjectRolesResponse = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, proto.ondewo.nlu.ListProjectRolesResponse.repeatedFields_, null); }; goog.inherits(proto.ondewo.nlu.ListProjectRolesResponse, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.ondewo.nlu.ListProjectRolesResponse.displayName = 'proto.ondewo.nlu.ListProjectRolesResponse'; } /** * List of repeated fields within this message type. * @private {!Array<number>} * @const */ proto.ondewo.nlu.ProjectRole.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.ondewo.nlu.ProjectRole.prototype.toObject = function(opt_includeInstance) { return proto.ondewo.nlu.ProjectRole.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.ProjectRole} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.ondewo.nlu.ProjectRole.toObject = function(includeInstance, msg) { var f, obj = { roleId: jspb.Message.getFieldWithDefault(msg, 1, 0), name: jspb.Message.getFieldWithDefault(msg, 2, ""), permissionsList: (f = jspb.Message.getRepeatedField(msg, 3)) == null ? undefined : f, 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, 6, ""), modifiedBy: jspb.Message.getFieldWithDefault(msg, 7, "") }; if (includeInstance) { obj.$jspbMessageInstance = msg; } return obj; }; } /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. * @return {!proto.ondewo.nlu.ProjectRole} */ proto.ondewo.nlu.ProjectRole.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); var msg = new proto.ondewo.nlu.ProjectRole; return proto.ondewo.nlu.ProjectRole.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. * @param {!proto.ondewo.nlu.ProjectRole} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.ondewo.nlu.ProjectRole} */ proto.ondewo.nlu.ProjectRole.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; } var field = reader.getFieldNumber(); switch (field) { case 1: var value = /** @type {number} */ (reader.readUint32()); msg.setRoleId(value); break; case 2: var value = /** @type {string} */ (reader.readString()); msg.setName(value); break; case 3: var value = /** @type {string} */ (reader.readString()); msg.addPermissions(value); break; case 4: var value = new google_protobuf_timestamp_pb.Timestamp; reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); msg.setCreatedAt(value); break; case 5: var value = new google_protobuf_timestamp_pb.Timestamp; reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); msg.setModifiedAt(value); break; case 6: var value = /** @type {string} */ (reader.readString()); msg.setCreatedBy(value); break; case 7: 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.ProjectRole.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); proto.ondewo.nlu.ProjectRole.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.ProjectRole} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.ondewo.nlu.ProjectRole.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getRoleId(); if (f !== 0) { writer.writeUint32( 1, f ); } f = message.getName(); if (f.length > 0) { writer.writeString( 2, f ); } f = message.getPermissionsList(); if (f.length > 0) { writer.writeRepeatedString( 3, f ); } f = message.getCreatedAt(); if (f != null) { writer.writeMessage( 4, f, google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter ); } f = message.getModifiedAt(); if (f != null) { writer.writeMessage( 5, f, google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter ); } f = message.getCreatedBy(); if (f.length > 0) { writer.writeString( 6, f ); } f = message.getModifiedBy(); if (f.length > 0) { writer.writeString( 7, f ); } }; /** * optional uint32 role_id = 1; * @return {number} */ proto.ondewo.nlu.ProjectRole.prototype.getRoleId = function() { return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); }; /** * @param {number} value * @return {!proto.ondewo.nlu.ProjectRole} returns this */ proto.ondewo.nlu.ProjectRole.prototype.setRoleId = function(value) { return jspb.Message.setProto3IntField(this, 1, value); }; /** * optional string name = 2; * @return {string} */ proto.ondewo.nlu.ProjectRole.prototype.getName = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); }; /** * @param {string} value * @return {!proto.ondewo.nlu.ProjectRole} returns this */ proto.ondewo.nlu.ProjectRole.prototype.setName = function(value) { return jspb.Message.setProto3StringField(this, 2, value); }; /** * repeated string permissions = 3; * @return {!Array<string>} */ proto.ondewo.nlu.ProjectRole.prototype.getPermissionsList = function() { return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 3)); }; /** * @param {!Array<string>} value * @return {!proto.ondewo.nlu.ProjectRole} returns this */ proto.ondewo.nlu.ProjectRole.prototype.setPermissionsList = function(value) { return jspb.Message.setField(this, 3, value || []); }; /** * @param {string} value * @param {number=} opt_index * @return {!proto.ondewo.nlu.ProjectRole} returns this */ proto.ondewo.nlu.ProjectRole.prototype.addPermissions = function(value, opt_index) { return jspb.Message.addToRepeatedField(this, 3, value, opt_index); }; /** * Clears the list making it empty but non-null. * @return {!proto.ondewo.nlu.ProjectRole} returns this */ proto.ondewo.nlu.ProjectRole.prototype.clearPermissionsList = function() { return this.setPermissionsList([]); }; /** * optional google.protobuf.Timestamp created_at = 4; * @return {?proto.google.protobuf.Timestamp} */ proto.ondewo.nlu.ProjectRole.prototype.getCreatedAt = function() { return /** @type{?proto.google.protobuf.Timestamp} */ ( jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 4)); }; /** * @param {?proto.google.protobuf.Timestamp|undefined} value * @return {!proto.ondewo.nlu.ProjectRole} returns this */ proto.ondewo.nlu.ProjectRole.prototype.setCreatedAt = function(value) { return jspb.Message.setWrapperField(this, 4, value); }; /** * Clears the message field making it undefined. * @return {!proto.ondewo.nlu.ProjectRole} returns this */ proto.ondewo.nlu.ProjectRole.prototype.clearCreatedAt = function() { return this.setCreatedAt(undefined); }; /** * Returns whether this field is set. * @return {boolean} */ proto.ondewo.nlu.ProjectRole.prototype.hasCreatedAt = function() { return jspb.Message.getField(this, 4) != null; }; /** * optional google.protobuf.Timestamp modified_at = 5; * @return {?proto.google.protobuf.Timestamp} */ proto.ondewo.nlu.ProjectRole.prototype.getModifiedAt = function() { return /** @type{?proto.google.protobuf.Timestamp} */ ( jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 5)); }; /** * @param {?proto.google.protobuf.Timestamp|undefined} value * @return {!proto.ondewo.nlu.ProjectRole} returns this */ proto.ondewo.nlu.ProjectRole.prototype.setModifiedAt = function(value) { return jspb.Message.setWrapperField(this, 5, value); }; /** * Clears the message field making it undefined. * @return {!proto.ondewo.nlu.ProjectRole} returns this */ proto.ondewo.nlu.ProjectRole.prototype.clearModifiedAt = function() { return this.setModifiedAt(undefined); }; /** * Returns whether this field is set. * @return {boolean} */ proto.ondewo.nlu.ProjectRole.prototype.hasModifiedAt = function() { return jspb.Message.getField(this, 5) != null; }; /** * optional string created_by = 6; * @return {string} */ proto.ondewo.nlu.ProjectRole.prototype.getCreatedBy = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, "")); }; /** * @param {string} value * @return {!proto.ondewo.nlu.ProjectRole} returns this */ proto.ondewo.nlu.ProjectRole.prototype.setCreatedBy = function(value) { return jspb.Message.setProto3StringField(this, 6, value); }; /** * optional string modified_by = 7; * @return {string} */ proto.ondewo.nlu.ProjectRole.prototype.getModifiedBy = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, "")); }; /** * @param {string} value * @return {!proto.ondewo.nlu.ProjectRole} returns this */ proto.ondewo.nlu.ProjectRole.prototype.setModifiedBy = function(value) { return jspb.Message.setProto3StringField(this, 7, 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.CreateProjectRoleRequest.prototype.toObject = function(opt_includeInstance) { return proto.ondewo.nlu.CreateProjectRoleRequest.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.CreateProjectRoleRequest} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.ondewo.nlu.CreateProjectRoleRequest.toObject = function(includeInstance, msg) { var f, obj = { parent: jspb.Message.getFieldWithDefault(msg, 1, ""), role: (f = msg.getRole()) && proto.ondewo.nlu.ProjectRole.toObject(includeInstance, f), projectRoleView: jspb.Message.getFieldWithDefault(msg, 3, 0) }; if (includeInstance) { obj.$jspbMessageInstance = msg; } return obj; }; } /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. * @return {!proto.ondewo.nlu.CreateProjectRoleRequest} */ proto.ondewo.nlu.CreateProjectRoleRequest.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); var msg = new proto.ondewo.nlu.CreateProjectRoleRequest; return proto.ondewo.nlu.CreateProjectRoleRequest.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. * @param {!proto.ondewo.nlu.CreateProjectRoleRequest} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.ondewo.nlu.CreateProjectRoleRequest} */ proto.ondewo.nlu.CreateProjectRoleRequest.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.setParent(value); break; case 2: var value = new proto.ondewo.nlu.ProjectRole; reader.readMessage(value,proto.ondewo.nlu.ProjectRole.deserializeBinaryFromReader); msg.setRole(value); break; case 3: var value = /** @type {!proto.ondewo.nlu.ProjectRoleView} */ (reader.readEnum()); msg.setProjectRoleView(value); break; default: reader.skipField(); break; } } return msg; }; /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ proto.ondewo.nlu.CreateProjectRoleRequest.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); proto.ondewo.nlu.CreateProjectRoleRequest.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.CreateProjectRoleRequest} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.ondewo.nlu.CreateProjectRoleRequest.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getParent(); if (f.length > 0) { writer.writeString( 1, f ); } f = message.getRole(); if (f != null) { writer.writeMessage( 2, f, proto.ondewo.nlu.ProjectRole.serializeBinaryToWriter ); } f = message.getProjectRoleView(); if (f !== 0.0) { writer.writeEnum( 3, f ); } }; /** * optional string parent = 1; * @return {string} */ proto.ondewo.nlu.CreateProjectRoleRequest.prototype.getParent = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; /** * @param {string} value * @return {!proto.ondewo.nlu.CreateProjectRoleRequest} returns this */ proto.ondewo.nlu.CreateProjectRoleRequest.prototype.setParent = function(value) { return jspb.Message.setProto3StringField(this, 1, value); }; /** * optional ProjectRole role = 2; * @return {?proto.ondewo.nlu.ProjectRole} */ proto.ondewo.nlu.CreateProjectRoleRequest.prototype.getRole = function() { return /** @type{?proto.ondewo.nlu.ProjectRole} */ ( jspb.Message.getWrapperField(this, proto.ondewo.nlu.ProjectRole, 2)); }; /** * @param {?proto.ondewo.nlu.ProjectRole|undefined} value * @return {!proto.ondewo.nlu.CreateProjectRoleRequest} returns this */ proto.ondewo.nlu.CreateProjectRoleRequest.prototype.setRole = function(value) { return jspb.Message.setWrapperField(this, 2, value); }; /** * Clears the message field making it undefined. * @return {!proto.ondewo.nlu.CreateProjectRoleRequest} returns this */ proto.ondewo.nlu.CreateProjectRoleRequest.prototype.clearRole = function() { return this.setRole(undefined); }; /** * Returns whether this field is set. * @return {boolean} */ proto.ondewo.nlu.CreateProjectRoleRequest.prototype.hasRole = function() { return jspb.Message.getField(this, 2) != null; }; /** * optional ProjectRoleView project_role_view = 3; * @return {!proto.ondewo.nlu.ProjectRoleView} */ proto.ondewo.nlu.CreateProjectRoleRequest.prototype.getProjectRoleView = function() { return /** @type {!proto.ondewo.nlu.ProjectRoleView} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); }; /** * @param {!proto.ondewo.nlu.ProjectRoleView} value * @return {!proto.ondewo.nlu.CreateProjectRoleRequest} returns this */ proto.ondewo.nlu.CreateProjectRoleRequest.prototype.setProjectRoleView = function(value) { return jspb.Message.setProto3EnumField(this, 3, value); }; if (jspb.Message.GENERATE_TO_OBJECT) { /** * Creates an object representation of this proto. * Field names that are reserved in JavaScript and will be renamed to pb_name. * Optional fields that are not set will be set to undefined. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default. * For the list of reserved names please see: * net/proto2/compiler/js/internal/generator.cc#kKeyword. * @param {boolean=} opt_includeInstance Deprecated. whether to include the * JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @return {!Object} */ proto.ondewo.nlu.UpdateProjectRoleRequest.prototype.toObject = function(opt_includeInstance) { return proto.ondewo.nlu.UpdateProjectRoleRequest.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.UpdateProjectRoleRequest} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.ondewo.nlu.UpdateProjectRoleRequest.toObject = function(includeInstance, msg) { var f, obj = { parent: jspb.Message.getFieldWithDefault(msg, 1, ""), role: (f = msg.getRole()) && proto.ondewo.nlu.ProjectRole.toObject(includeInstance, f), updateMask: (f = msg.getUpdateMask()) && google_protobuf_field_mask_pb.FieldMask.toObject(includeInstance, f), projectRoleView: jspb.Message.getFieldWithDefault(msg, 4, 0) }; if (includeInstance) { obj.$jspbMessageInstance = msg; } return obj; }; } /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. * @return {!proto.ondewo.nlu.UpdateProjectRoleRequest} */ proto.ondewo.nlu.UpdateProjectRoleRequest.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); var msg = new proto.ondewo.nlu.UpdateProjectRoleRequest; return proto.ondewo.nlu.UpdateProjectRoleRequest.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. * @param {!proto.ondewo.nlu.UpdateProjectRoleRequest} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.ondewo.nlu.UpdateProjectRoleRequest} */ proto.ondewo.nlu.UpdateProjectRoleRequest.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.setParent(value); break; case 2: var value = new proto.ondewo.nlu.ProjectRole; reader.readMessage(value,proto.ondewo.nlu.ProjectRole.deserializeBinaryFromReader); msg.setRole(value); break; case 3: var value = new google_protobuf_field_mask_pb.FieldMask; reader.readMessage(value,google_protobuf_field_mask_pb.FieldMask.deserializeBinaryFromReader); msg.setUpdateMask(value); break; case 4: var value = /** @type {!proto.ondewo.nlu.ProjectRoleView} */ (reader.readEnum()); msg.setProjectRoleView(value); break; default: reader.skipField(); break; } } return msg; }; /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ proto.ondewo.nlu.UpdateProjectRoleRequest.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); proto.ondewo.nlu.UpdateProjectRoleRequest.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.UpdateProjectRoleRequest} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.ondewo.nlu.UpdateProjectRoleRequest.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getParent(); if (f.length > 0) { writer.writeString( 1, f ); } f = message.getRole(); if (f != null) { writer.writeMessage( 2, f, proto.ondewo.nlu.ProjectRole.serializeBinaryToWriter ); } f = message.getUpdateMask(); if (f != null) { writer.writeMessage( 3, f, google_protobuf_field_mask_pb.FieldMask.serializeBinaryToWriter ); } f = message.getProjectRoleView(); if (f !== 0.0) { writer.writeEnum( 4, f ); } }; /** * optional string parent = 1; * @return {string} */ proto.ondewo.nlu.UpdateProjectRoleRequest.prototype.getParent = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; /** * @param {string} value * @return {!proto.ondewo.nlu.UpdateProjectRoleRequest} returns this */ proto.ondewo.nlu.UpdateProjectRoleRequest.prototype.setParent = function(value) { return jspb.Message.setProto3StringField(this, 1, value); }; /** * optional ProjectRole role = 2; * @return {?proto.ondewo.nlu.ProjectRole} */ proto.ondewo.nlu.UpdateProjectRoleRequest.prototype.getRole = function() { return /** @type{?proto.ondewo.nlu.ProjectRole} */ ( jspb.Message.getWrapperField(this, proto.ondewo.nlu.ProjectRole, 2)); }; /** * @param {?proto.ondewo.nlu.ProjectRole|undefined} value * @return {!proto.ondewo.nlu.UpdateProjectRoleRequest} returns this */ proto.ondewo.nlu.UpdateProjectRoleRequest.prototype.setRole = function(value) { return jspb.Message.setWrapperField(this, 2, value); }; /** * Clears the message field making it undefined. * @return {!proto.ondewo.nlu.UpdateProjectRoleRequest} returns this */ proto.ondewo.nlu.UpdateProjectRoleRequest.prototype.clearRole = function() { return this.setRole(undefined); }; /** * Returns whether this field is set. * @return {boolean} */ proto.ondewo.nlu.UpdateProjectRoleRequest.prototype.hasRole = function() { return jspb.Message.getField(this, 2) != null; }; /** * optional google.protobuf.FieldMask update_mask = 3; * @return {?proto.google.protobuf.FieldMask} */ proto.ondewo.nlu.UpdateProjectRoleRequest.prototype.getUpdateMask = function() { return /** @type{?proto.google.protobuf.FieldMask} */ ( jspb.Message.getWrapperField(this, google_protobuf_field_mask_pb.FieldMask, 3)); }; /** * @param {?proto.google.protobuf.FieldMask|undefined} value * @return {!proto.ondewo.nlu.UpdateProjectRoleRequest} returns this */ proto.ondewo.nlu.UpdateProjectRoleRequest.prototype.setUpdateMask = function(value) { return jspb.Message.setWrapperField(this, 3, value); }; /** * Clears the message field making it undefined. * @return {!proto.ondewo.nlu.UpdateProjectRoleRequest} returns this */ proto.ondewo.nlu.UpdateProjectRoleRequest.prototype.clearUpdateMask = function() { return this.setUpdateMask(undefined); }; /** * Returns whether this field is set. * @return {boolean} */ proto.ondewo.nlu.UpdateProjectRoleRequest.prototype.hasUpdateMask = function() { return jspb.Message.getField(this, 3) != null; }; /** * optional ProjectRoleView project_role_view = 4; * @return {!proto.ondewo.nlu.ProjectRoleView} */ proto.ondewo.nlu.UpdateProjectRoleRequest.prototype.getProjectRoleView = function() { return /** @type {!proto.ondewo.nlu.ProjectRoleView} */ (jspb.Message.getFieldWithDefault(this, 4, 0)); }; /** * @param {!proto.ondewo.nlu.ProjectRoleView} value * @return {!proto.ondewo.nlu.UpdateProjectRoleRequest} returns this */ proto.ondewo.nlu.UpdateProjectRoleRequest.prototype.setProjectRoleView = function(value) { return jspb.Message.setProto3EnumField(this, 4, value); }; /** * Oneof group definitions for this message. Each group defines the field * numbers belonging to that group. When of these fields' value is set, all * other fields in the group are cleared. During deserialization, if multiple * fields are encountered for a group, only the last value seen will be kept. * @private {!Array<!Array<number>>} * @const */ proto.ondewo.nlu.GetProjectRoleRequest.oneofGroups_ = [[2,3]]; /** * @enum {number} */ proto.ondewo.nlu.GetProjectRoleRequest.ProjectRoleIdentifierCase = { PROJECT_ROLE_IDENTIFIER_NOT_SET: 0, ROLE_ID: 2, ROLE_NAME: 3 }; /** * @return {proto.ondewo.nlu.GetProjectRoleRequest.ProjectRoleIdentifierCase} */ proto.ondewo.nlu.GetProjectRoleRequest.prototype.getProjectRoleIdentifierCase = function() { return /** @type {proto.ondewo.nlu.GetProjectRoleRequest.ProjectRoleIdentifierCase} */(jspb.Message.computeOneofCase(this, proto.ondewo.nlu.GetProjectRoleRequest.oneofGroups_[0])); }; if (jspb.Message.GENERATE_TO_OBJECT) { /** * Creates an object representation of this proto. * Field names that are reserved in JavaScript and will be renamed to pb_name. * Optional fields that are not set will be set to undefined. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default. * For the list of reserved names please see: * net/proto2/compiler/js/internal/generator.cc#kKeyword. * @param {boolean=} opt_includeInstance Deprecated. whether to include the * JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @return {!Object} */ proto.ondewo.nlu.GetProjectRoleRequest.prototype.toObject = function(opt_includeInstance) { return proto.ondewo.nlu.GetProjectRoleRequest.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.GetProjectRoleRequest} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.ondewo.nlu.GetProjectRoleRequest.toObject = function(includeInstance, msg) { var f, obj = { parent: jspb.Message.getFieldWithDefault(msg, 1, ""), roleId: jspb.Message.getFieldWithDefault(msg, 2, 0), roleName: jspb.Message.getFieldWithDefault(msg, 3, ""), projectRoleView: jspb.Message.getFieldWithDefault(msg, 4, 0) }; if (includeInstance) { obj.$jspbMessageInstance = msg; } return obj; }; } /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. * @return {!proto.ondewo.nlu.GetProjectRoleRequest} */ proto.ondewo.nlu.GetProjectRoleRequest.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); var msg = new proto.ondewo.nlu.GetProjectRoleRequest; return proto.ondewo.nlu.GetProjectRoleRequest.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. * @param {!proto.ondewo.nlu.GetProjectRoleRequest} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.ondewo.nlu.GetProjectRoleRequest} */ proto.ondewo.nlu.GetProjectRoleRequest.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.setParent(value); break; case 2: var value = /** @type {number} */ (reader.readUint32()); msg.setRoleId(value); break; case 3: var value = /** @type {string} */ (reader.readString()); msg.setRoleName(value); break; case 4: var value = /** @type {!proto.ondewo.nlu.ProjectRoleView} */ (reader.readEnum()); msg.setProjectRoleView(value); break; default: reader.skipField(); break; } } return msg; }; /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ proto.ondewo.nlu.GetProjectRoleRequest.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); proto.ondewo.nlu.GetProjectRoleRequest.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.GetProjectRoleRequest} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.ondewo.nlu.GetProjectRoleRequest.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getParent(); if (f.length > 0) { writer.writeString( 1, f ); } f = /** @type {number} */ (jspb.Message.getField(message, 2)); if (f != null) { writer.writeUint32( 2, f ); } f = /** @type {string} */ (jspb.Message.getField(message, 3)); if (f != null) { writer.writeString( 3, f ); } f = message.getProjectRoleView(); if (f !== 0.0) { writer.writeEnum( 4, f ); } }; /** * optional string parent = 1; * @return {string} */ proto.ondewo.nlu.GetProjectRoleRequest.prototype.getParent = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; /** * @param {string} value * @return {!proto.ondewo.nlu.GetProjectRoleRequest} returns this */ proto.ondewo.nlu.GetProjectRoleRequest.prototype.setParent = function(value) { return jspb.Message.setProto3StringField(this, 1, value); }; /** * optional uint32 role_id = 2; * @return {number} */ proto.ondewo.nlu.GetProjectRoleRequest.prototype.getRoleId = function() { return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); }; /** * @param {number} value * @return {!proto.ondewo.nlu.GetProjectRoleRequest} returns this */ proto.ondewo.nlu.GetProjectRoleRequest.prototype.setRoleId = function(value) { return jspb.Message.setOneofField(this, 2, proto.ondewo.nlu.GetProjectRoleRequest.oneofGroups_[0], value); }; /** * Clears the field making it undefined. * @return {!proto.ondewo.nlu.GetProjectRoleRequest} returns this */ proto.ondewo.nlu.GetProjectRoleRequest.prototype.clearRoleId = function() { return jspb.Message.setOneofField(this, 2, proto.ondewo.nlu.GetProjectRoleRequest.oneofGroups_[0], undefined); }; /** * Returns whether this field is set. * @return {boolean} */ proto.ondewo.nlu.GetProjectRoleRequest.prototype.hasRoleId = function() { return jspb.Message.getField(this, 2) != null; }; /** * optional string role_name = 3; * @return {string} */ proto.ondewo.nlu.GetProjectRoleRequest.prototype.getRoleName = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); }; /** * @param {string} value * @return {!proto.ondewo.nlu.GetProjectRoleRequest} returns this */ proto.ondewo.nlu.GetProjectRoleRequest.prototype.setRoleName = function(value) { return jspb.Message.setOneofField(this, 3, proto.ondewo.nlu.GetProjectRoleRequest.oneofGroups_[0], value); }; /** * Clears the field making it undefined. * @return {!proto.ondewo.nlu.GetProjectRoleRequest} returns this */ proto.ondewo.nlu.GetProjectRoleRequest.prototype.clearRoleName = function() { return jspb.Message.setOneofField(this, 3, proto.ondewo.nlu.GetProjectRoleRequest.oneofGroups_[0], undefined); }; /** * Returns whether this field is set. * @return {boolean} */ proto.ondewo.nlu.GetProjectRoleRequest.prototype.hasRoleName = function() { return jspb.Message.getField(this, 3) != null; }; /** * optional ProjectRoleView project_role_view = 4; * @return {!proto.ondewo.nlu.ProjectRoleView} */ proto.ondewo.nlu.GetProjectRoleRequest.prototype.getProjectRoleView = function() { return /** @type {!proto.ondewo.nlu.ProjectRoleView} */ (jspb.Message.getFieldWithDefault(this, 4, 0)); }; /** * @param {!proto.ondewo.nlu.ProjectRoleView} value * @return {!proto.ondewo.nlu.GetProjectRoleRequest} returns this */ proto.ondewo.nlu.GetProjectRoleRequest.prototype.setProjectRoleView = function(value) { return jspb.Message.setProto3EnumField(this, 4, value); }; if (jspb.Message.GENERATE_TO_OBJECT) { /** * Creates an object representation of this proto. * Field names that are reserved in JavaScript and will be renamed to pb_name. * Optional fields that are not set will be set to undefined. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default. * For the list of reserved names please see: * net/proto2/compiler/js/internal/generator.cc#kKeyword. * @param {boolean=} opt_includeInstance Deprecated. whether to include the * JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @return {!Object} */ proto.ondewo.nlu.DeleteProjectRoleRequest.prototype.toObject = function(opt_includeInstance) { return proto.ondewo.nlu.DeleteProjectRoleRequest.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.DeleteProjectRoleRequest} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.ondewo.nlu.DeleteProjectRoleRequest.toObject = function(includeInstance, msg) { var f, obj = { parent: jspb.Message.getFieldWithDefault(msg, 1, ""), roleId: 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.ondewo.nlu.DeleteProjectRoleRequest} */ proto.ondewo.nlu.DeleteProjectRoleRequest.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); var msg = new proto.ondewo.nlu.DeleteProjectRoleRequest; return proto.ondewo.nlu.DeleteProjectRoleRequest.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. * @param {!proto.ondewo.nlu.DeleteProjectRoleRequest} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.ondewo.nlu.DeleteProjectRoleRequest} */ proto.ondewo.nlu.DeleteProjectRoleRequest.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.setParent(value); break; case 2: var value = /** @type {number} */ (reader.readUint32()); msg.setRoleId(value); break; default: reader.skipField(); break; } } return msg; }; /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ proto.ondewo.nlu.DeleteProjectRoleRequest.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); proto.ondewo.nlu.DeleteProjectRoleRequest.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.DeleteProjectRoleRequest} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.ondewo.nlu.DeleteProjectRoleRequest.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getParent(); if (f.length > 0) { writer.writeString( 1, f ); } f = message.getRoleId(); if (f !== 0) { writer.writeUint32( 2, f ); } }; /** * optional string parent = 1; * @return {string} */ proto.ondewo.nlu.DeleteProjectRoleRequest.prototype.getParent = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; /** * @param {string} value * @return {!proto.ondewo.nlu.DeleteProjectRoleRequest} returns this */ proto.ondewo.nlu.DeleteProjectRoleRequest.prototype.setParent = function(value) { return jspb.Message.setProto3StringField(this, 1, value); }; /** * optional uint32 role_id = 2; * @return {number} */ proto.ondewo.nlu.DeleteProjectRoleRequest.prototype.getRoleId = function() { return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); }; /** * @param {number} value * @return {!proto.ondewo.nlu.DeleteProjectRoleRequest} returns this */ proto.ondewo.nlu.DeleteProjectRoleRequest.prototype.setRoleId = function(value) { return 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.ondewo.nlu.ListProjectRolesRequest.prototype.toObject = function(opt_includeInstance) { return proto.ondewo.nlu.ListProjectRolesRequest.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.ListProjectRolesRequest} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.ondewo.nlu.ListProjectRolesRequest.toObject = function(includeInstance, msg) { var f, obj = { parent: jspb.Message.getFieldWithDefault(msg, 1, ""), pageToken: jspb.Message.getFieldWithDefault(msg, 2, ""), projectRoleView: jspb.Message.getFieldWithDefault(msg, 3, 0) }; if (includeInstance) { obj.$jspbMessageInstance = msg; } return obj; }; } /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. * @return {!proto.ondewo.nlu.ListProjectRolesRequest} */ proto.ondewo.nlu.ListProjectRolesRequest.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); var msg = new proto.ondewo.nlu.ListProjectRolesRequest; return proto.ondewo.nlu.ListProjectRolesRequest.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. * @param {!proto.ondewo.nlu.ListProjectRolesRequest} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.ondewo.nlu.ListProjectRolesRequest} */ proto.ondewo.nlu.ListProjectRolesRequest.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.setParent(value); break; case 2: var value = /** @type {string} */ (reader.readString()); msg.setPageToken(value); break; case 3: var value = /** @type {!proto.ondewo.nlu.ProjectRoleView} */ (reader.readEnum()); msg.setProjectRoleView(value); break; default: reader.skipField(); break; } } return msg; }; /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ proto.ondewo.nlu.ListProjectRolesRequest.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); proto.ondewo.nlu.ListProjectRolesRequest.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.ListProjectRolesRequest} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.ondewo.nlu.ListProjectRolesRequest.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getParent(); if (f.length > 0) { writer.writeString( 1, f ); } f = message.getPageToken(); if (f.length > 0) { writer.writeString( 2, f ); } f = message.getProjectRoleView(); if (f !== 0.0) { writer.writeEnum( 3, f ); } }; /** * optional string parent = 1; * @return {string} */ proto.ondewo.nlu.ListProjectRolesRequest.prototype.getParent = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; /** * @param {string} value * @return {!proto.ond