UNPKG

auto-traffic-control

Version:

A video game for programmers about air traffic control

1,644 lines (1,426 loc) 63 kB
// source: atc/v1/event.proto /** * @fileoverview * @enhanceable * @suppress {missingRequire} reports error on implicit type usages. * @suppress {messageConventions} JS Compiler reports an error if a variable or * field starts with 'MSG_' and isn't a translatable message. * @public */ // GENERATED CODE -- DO NOT EDIT! /* eslint-disable */ // @ts-nocheck var jspb = require('google-protobuf'); var goog = jspb; var global = (function() { return this || window || global || self || Function('return this')(); }).call(null); var atc_v1_airplane_pb = require('../../atc/v1/airplane_pb.js'); goog.object.extend(proto, atc_v1_airplane_pb); var atc_v1_map_pb = require('../../atc/v1/map_pb.js'); goog.object.extend(proto, atc_v1_map_pb); goog.exportSymbol('proto.atc.v1.AirplaneCollided', null, global); goog.exportSymbol('proto.atc.v1.AirplaneDetected', null, global); goog.exportSymbol('proto.atc.v1.AirplaneLanded', null, global); goog.exportSymbol('proto.atc.v1.AirplaneMoved', null, global); goog.exportSymbol('proto.atc.v1.FlightPlanUpdated', null, global); goog.exportSymbol('proto.atc.v1.GameStarted', null, global); goog.exportSymbol('proto.atc.v1.GameStopped', null, global); goog.exportSymbol('proto.atc.v1.LandingAborted', null, global); goog.exportSymbol('proto.atc.v1.StreamRequest', null, global); goog.exportSymbol('proto.atc.v1.StreamResponse', null, global); goog.exportSymbol('proto.atc.v1.StreamResponse.EventCase', 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.atc.v1.AirplaneCollided = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.atc.v1.AirplaneCollided, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.atc.v1.AirplaneCollided.displayName = 'proto.atc.v1.AirplaneCollided'; } /** * 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.atc.v1.AirplaneDetected = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.atc.v1.AirplaneDetected, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.atc.v1.AirplaneDetected.displayName = 'proto.atc.v1.AirplaneDetected'; } /** * 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.atc.v1.AirplaneLanded = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.atc.v1.AirplaneLanded, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.atc.v1.AirplaneLanded.displayName = 'proto.atc.v1.AirplaneLanded'; } /** * 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.atc.v1.AirplaneMoved = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.atc.v1.AirplaneMoved, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.atc.v1.AirplaneMoved.displayName = 'proto.atc.v1.AirplaneMoved'; } /** * 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.atc.v1.FlightPlanUpdated = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, proto.atc.v1.FlightPlanUpdated.repeatedFields_, null); }; goog.inherits(proto.atc.v1.FlightPlanUpdated, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.atc.v1.FlightPlanUpdated.displayName = 'proto.atc.v1.FlightPlanUpdated'; } /** * 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.atc.v1.LandingAborted = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.atc.v1.LandingAborted, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.atc.v1.LandingAborted.displayName = 'proto.atc.v1.LandingAborted'; } /** * 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.atc.v1.GameStarted = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.atc.v1.GameStarted, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.atc.v1.GameStarted.displayName = 'proto.atc.v1.GameStarted'; } /** * 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.atc.v1.GameStopped = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.atc.v1.GameStopped, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.atc.v1.GameStopped.displayName = 'proto.atc.v1.GameStopped'; } /** * 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.atc.v1.StreamRequest = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.atc.v1.StreamRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.atc.v1.StreamRequest.displayName = 'proto.atc.v1.StreamRequest'; } /** * 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.atc.v1.StreamResponse = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, proto.atc.v1.StreamResponse.oneofGroups_); }; goog.inherits(proto.atc.v1.StreamResponse, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.atc.v1.StreamResponse.displayName = 'proto.atc.v1.StreamResponse'; } 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.atc.v1.AirplaneCollided.prototype.toObject = function(opt_includeInstance) { return proto.atc.v1.AirplaneCollided.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.atc.v1.AirplaneCollided} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.atc.v1.AirplaneCollided.toObject = function(includeInstance, msg) { var f, obj = { id1: jspb.Message.getFieldWithDefault(msg, 1, ""), id2: jspb.Message.getFieldWithDefault(msg, 2, "") }; if (includeInstance) { obj.$jspbMessageInstance = msg; } return obj; }; } /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. * @return {!proto.atc.v1.AirplaneCollided} */ proto.atc.v1.AirplaneCollided.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); var msg = new proto.atc.v1.AirplaneCollided; return proto.atc.v1.AirplaneCollided.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. * @param {!proto.atc.v1.AirplaneCollided} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.atc.v1.AirplaneCollided} */ proto.atc.v1.AirplaneCollided.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.setId1(value); break; case 2: var value = /** @type {string} */ (reader.readString()); msg.setId2(value); break; default: reader.skipField(); break; } } return msg; }; /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ proto.atc.v1.AirplaneCollided.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); proto.atc.v1.AirplaneCollided.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. * @param {!proto.atc.v1.AirplaneCollided} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.atc.v1.AirplaneCollided.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getId1(); if (f.length > 0) { writer.writeString( 1, f ); } f = message.getId2(); if (f.length > 0) { writer.writeString( 2, f ); } }; /** * optional string id1 = 1; * @return {string} */ proto.atc.v1.AirplaneCollided.prototype.getId1 = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; /** * @param {string} value * @return {!proto.atc.v1.AirplaneCollided} returns this */ proto.atc.v1.AirplaneCollided.prototype.setId1 = function(value) { return jspb.Message.setProto3StringField(this, 1, value); }; /** * optional string id2 = 2; * @return {string} */ proto.atc.v1.AirplaneCollided.prototype.getId2 = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); }; /** * @param {string} value * @return {!proto.atc.v1.AirplaneCollided} returns this */ proto.atc.v1.AirplaneCollided.prototype.setId2 = function(value) { return jspb.Message.setProto3StringField(this, 2, value); }; if (jspb.Message.GENERATE_TO_OBJECT) { /** * Creates an object representation of this proto. * Field names that are reserved in JavaScript and will be renamed to pb_name. * Optional fields that are not set will be set to undefined. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default. * For the list of reserved names please see: * net/proto2/compiler/js/internal/generator.cc#kKeyword. * @param {boolean=} opt_includeInstance Deprecated. whether to include the * JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @return {!Object} */ proto.atc.v1.AirplaneDetected.prototype.toObject = function(opt_includeInstance) { return proto.atc.v1.AirplaneDetected.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.atc.v1.AirplaneDetected} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.atc.v1.AirplaneDetected.toObject = function(includeInstance, msg) { var f, obj = { airplane: (f = msg.getAirplane()) && atc_v1_airplane_pb.Airplane.toObject(includeInstance, f) }; if (includeInstance) { obj.$jspbMessageInstance = msg; } return obj; }; } /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. * @return {!proto.atc.v1.AirplaneDetected} */ proto.atc.v1.AirplaneDetected.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); var msg = new proto.atc.v1.AirplaneDetected; return proto.atc.v1.AirplaneDetected.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. * @param {!proto.atc.v1.AirplaneDetected} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.atc.v1.AirplaneDetected} */ proto.atc.v1.AirplaneDetected.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; } var field = reader.getFieldNumber(); switch (field) { case 1: var value = new atc_v1_airplane_pb.Airplane; reader.readMessage(value,atc_v1_airplane_pb.Airplane.deserializeBinaryFromReader); msg.setAirplane(value); break; default: reader.skipField(); break; } } return msg; }; /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ proto.atc.v1.AirplaneDetected.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); proto.atc.v1.AirplaneDetected.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. * @param {!proto.atc.v1.AirplaneDetected} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.atc.v1.AirplaneDetected.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getAirplane(); if (f != null) { writer.writeMessage( 1, f, atc_v1_airplane_pb.Airplane.serializeBinaryToWriter ); } }; /** * optional Airplane airplane = 1; * @return {?proto.atc.v1.Airplane} */ proto.atc.v1.AirplaneDetected.prototype.getAirplane = function() { return /** @type{?proto.atc.v1.Airplane} */ ( jspb.Message.getWrapperField(this, atc_v1_airplane_pb.Airplane, 1)); }; /** * @param {?proto.atc.v1.Airplane|undefined} value * @return {!proto.atc.v1.AirplaneDetected} returns this */ proto.atc.v1.AirplaneDetected.prototype.setAirplane = function(value) { return jspb.Message.setWrapperField(this, 1, value); }; /** * Clears the message field making it undefined. * @return {!proto.atc.v1.AirplaneDetected} returns this */ proto.atc.v1.AirplaneDetected.prototype.clearAirplane = function() { return this.setAirplane(undefined); }; /** * Returns whether this field is set. * @return {boolean} */ proto.atc.v1.AirplaneDetected.prototype.hasAirplane = function() { return jspb.Message.getField(this, 1) != null; }; if (jspb.Message.GENERATE_TO_OBJECT) { /** * Creates an object representation of this proto. * Field names that are reserved in JavaScript and will be renamed to pb_name. * Optional fields that are not set will be set to undefined. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default. * For the list of reserved names please see: * net/proto2/compiler/js/internal/generator.cc#kKeyword. * @param {boolean=} opt_includeInstance Deprecated. whether to include the * JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @return {!Object} */ proto.atc.v1.AirplaneLanded.prototype.toObject = function(opt_includeInstance) { return proto.atc.v1.AirplaneLanded.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.atc.v1.AirplaneLanded} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.atc.v1.AirplaneLanded.toObject = function(includeInstance, msg) { var f, obj = { id: jspb.Message.getFieldWithDefault(msg, 1, "") }; if (includeInstance) { obj.$jspbMessageInstance = msg; } return obj; }; } /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. * @return {!proto.atc.v1.AirplaneLanded} */ proto.atc.v1.AirplaneLanded.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); var msg = new proto.atc.v1.AirplaneLanded; return proto.atc.v1.AirplaneLanded.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. * @param {!proto.atc.v1.AirplaneLanded} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.atc.v1.AirplaneLanded} */ proto.atc.v1.AirplaneLanded.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.setId(value); break; default: reader.skipField(); break; } } return msg; }; /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ proto.atc.v1.AirplaneLanded.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); proto.atc.v1.AirplaneLanded.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. * @param {!proto.atc.v1.AirplaneLanded} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.atc.v1.AirplaneLanded.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getId(); if (f.length > 0) { writer.writeString( 1, f ); } }; /** * optional string id = 1; * @return {string} */ proto.atc.v1.AirplaneLanded.prototype.getId = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; /** * @param {string} value * @return {!proto.atc.v1.AirplaneLanded} returns this */ proto.atc.v1.AirplaneLanded.prototype.setId = function(value) { return jspb.Message.setProto3StringField(this, 1, value); }; if (jspb.Message.GENERATE_TO_OBJECT) { /** * Creates an object representation of this proto. * Field names that are reserved in JavaScript and will be renamed to pb_name. * Optional fields that are not set will be set to undefined. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default. * For the list of reserved names please see: * net/proto2/compiler/js/internal/generator.cc#kKeyword. * @param {boolean=} opt_includeInstance Deprecated. whether to include the * JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @return {!Object} */ proto.atc.v1.AirplaneMoved.prototype.toObject = function(opt_includeInstance) { return proto.atc.v1.AirplaneMoved.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.atc.v1.AirplaneMoved} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.atc.v1.AirplaneMoved.toObject = function(includeInstance, msg) { var f, obj = { id: jspb.Message.getFieldWithDefault(msg, 1, ""), point: (f = msg.getPoint()) && atc_v1_map_pb.Point.toObject(includeInstance, f) }; if (includeInstance) { obj.$jspbMessageInstance = msg; } return obj; }; } /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. * @return {!proto.atc.v1.AirplaneMoved} */ proto.atc.v1.AirplaneMoved.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); var msg = new proto.atc.v1.AirplaneMoved; return proto.atc.v1.AirplaneMoved.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. * @param {!proto.atc.v1.AirplaneMoved} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.atc.v1.AirplaneMoved} */ proto.atc.v1.AirplaneMoved.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.setId(value); break; case 2: var value = new atc_v1_map_pb.Point; reader.readMessage(value,atc_v1_map_pb.Point.deserializeBinaryFromReader); msg.setPoint(value); break; default: reader.skipField(); break; } } return msg; }; /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ proto.atc.v1.AirplaneMoved.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); proto.atc.v1.AirplaneMoved.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. * @param {!proto.atc.v1.AirplaneMoved} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.atc.v1.AirplaneMoved.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getId(); if (f.length > 0) { writer.writeString( 1, f ); } f = message.getPoint(); if (f != null) { writer.writeMessage( 2, f, atc_v1_map_pb.Point.serializeBinaryToWriter ); } }; /** * optional string id = 1; * @return {string} */ proto.atc.v1.AirplaneMoved.prototype.getId = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; /** * @param {string} value * @return {!proto.atc.v1.AirplaneMoved} returns this */ proto.atc.v1.AirplaneMoved.prototype.setId = function(value) { return jspb.Message.setProto3StringField(this, 1, value); }; /** * optional Point point = 2; * @return {?proto.atc.v1.Point} */ proto.atc.v1.AirplaneMoved.prototype.getPoint = function() { return /** @type{?proto.atc.v1.Point} */ ( jspb.Message.getWrapperField(this, atc_v1_map_pb.Point, 2)); }; /** * @param {?proto.atc.v1.Point|undefined} value * @return {!proto.atc.v1.AirplaneMoved} returns this */ proto.atc.v1.AirplaneMoved.prototype.setPoint = function(value) { return jspb.Message.setWrapperField(this, 2, value); }; /** * Clears the message field making it undefined. * @return {!proto.atc.v1.AirplaneMoved} returns this */ proto.atc.v1.AirplaneMoved.prototype.clearPoint = function() { return this.setPoint(undefined); }; /** * Returns whether this field is set. * @return {boolean} */ proto.atc.v1.AirplaneMoved.prototype.hasPoint = function() { return jspb.Message.getField(this, 2) != null; }; /** * List of repeated fields within this message type. * @private {!Array<number>} * @const */ proto.atc.v1.FlightPlanUpdated.repeatedFields_ = [2]; 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.atc.v1.FlightPlanUpdated.prototype.toObject = function(opt_includeInstance) { return proto.atc.v1.FlightPlanUpdated.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.atc.v1.FlightPlanUpdated} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.atc.v1.FlightPlanUpdated.toObject = function(includeInstance, msg) { var f, obj = { id: jspb.Message.getFieldWithDefault(msg, 1, ""), flightPlanList: jspb.Message.toObjectList(msg.getFlightPlanList(), atc_v1_map_pb.Node.toObject, includeInstance) }; if (includeInstance) { obj.$jspbMessageInstance = msg; } return obj; }; } /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. * @return {!proto.atc.v1.FlightPlanUpdated} */ proto.atc.v1.FlightPlanUpdated.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); var msg = new proto.atc.v1.FlightPlanUpdated; return proto.atc.v1.FlightPlanUpdated.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. * @param {!proto.atc.v1.FlightPlanUpdated} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.atc.v1.FlightPlanUpdated} */ proto.atc.v1.FlightPlanUpdated.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.setId(value); break; case 2: var value = new atc_v1_map_pb.Node; reader.readMessage(value,atc_v1_map_pb.Node.deserializeBinaryFromReader); msg.addFlightPlan(value); break; default: reader.skipField(); break; } } return msg; }; /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ proto.atc.v1.FlightPlanUpdated.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); proto.atc.v1.FlightPlanUpdated.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. * @param {!proto.atc.v1.FlightPlanUpdated} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.atc.v1.FlightPlanUpdated.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getId(); if (f.length > 0) { writer.writeString( 1, f ); } f = message.getFlightPlanList(); if (f.length > 0) { writer.writeRepeatedMessage( 2, f, atc_v1_map_pb.Node.serializeBinaryToWriter ); } }; /** * optional string id = 1; * @return {string} */ proto.atc.v1.FlightPlanUpdated.prototype.getId = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; /** * @param {string} value * @return {!proto.atc.v1.FlightPlanUpdated} returns this */ proto.atc.v1.FlightPlanUpdated.prototype.setId = function(value) { return jspb.Message.setProto3StringField(this, 1, value); }; /** * repeated Node flight_plan = 2; * @return {!Array<!proto.atc.v1.Node>} */ proto.atc.v1.FlightPlanUpdated.prototype.getFlightPlanList = function() { return /** @type{!Array<!proto.atc.v1.Node>} */ ( jspb.Message.getRepeatedWrapperField(this, atc_v1_map_pb.Node, 2)); }; /** * @param {!Array<!proto.atc.v1.Node>} value * @return {!proto.atc.v1.FlightPlanUpdated} returns this */ proto.atc.v1.FlightPlanUpdated.prototype.setFlightPlanList = function(value) { return jspb.Message.setRepeatedWrapperField(this, 2, value); }; /** * @param {!proto.atc.v1.Node=} opt_value * @param {number=} opt_index * @return {!proto.atc.v1.Node} */ proto.atc.v1.FlightPlanUpdated.prototype.addFlightPlan = function(opt_value, opt_index) { return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.atc.v1.Node, opt_index); }; /** * Clears the list making it empty but non-null. * @return {!proto.atc.v1.FlightPlanUpdated} returns this */ proto.atc.v1.FlightPlanUpdated.prototype.clearFlightPlanList = function() { return this.setFlightPlanList([]); }; 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.atc.v1.LandingAborted.prototype.toObject = function(opt_includeInstance) { return proto.atc.v1.LandingAborted.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.atc.v1.LandingAborted} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.atc.v1.LandingAborted.toObject = function(includeInstance, msg) { var f, obj = { id: jspb.Message.getFieldWithDefault(msg, 1, "") }; if (includeInstance) { obj.$jspbMessageInstance = msg; } return obj; }; } /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. * @return {!proto.atc.v1.LandingAborted} */ proto.atc.v1.LandingAborted.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); var msg = new proto.atc.v1.LandingAborted; return proto.atc.v1.LandingAborted.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. * @param {!proto.atc.v1.LandingAborted} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.atc.v1.LandingAborted} */ proto.atc.v1.LandingAborted.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.setId(value); break; default: reader.skipField(); break; } } return msg; }; /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ proto.atc.v1.LandingAborted.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); proto.atc.v1.LandingAborted.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. * @param {!proto.atc.v1.LandingAborted} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.atc.v1.LandingAborted.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getId(); if (f.length > 0) { writer.writeString( 1, f ); } }; /** * optional string id = 1; * @return {string} */ proto.atc.v1.LandingAborted.prototype.getId = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; /** * @param {string} value * @return {!proto.atc.v1.LandingAborted} returns this */ proto.atc.v1.LandingAborted.prototype.setId = function(value) { return jspb.Message.setProto3StringField(this, 1, value); }; if (jspb.Message.GENERATE_TO_OBJECT) { /** * Creates an object representation of this proto. * Field names that are reserved in JavaScript and will be renamed to pb_name. * Optional fields that are not set will be set to undefined. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default. * For the list of reserved names please see: * net/proto2/compiler/js/internal/generator.cc#kKeyword. * @param {boolean=} opt_includeInstance Deprecated. whether to include the * JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @return {!Object} */ proto.atc.v1.GameStarted.prototype.toObject = function(opt_includeInstance) { return proto.atc.v1.GameStarted.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.atc.v1.GameStarted} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.atc.v1.GameStarted.toObject = function(includeInstance, msg) { var f, obj = { map: (f = msg.getMap()) && atc_v1_map_pb.Map.toObject(includeInstance, f) }; if (includeInstance) { obj.$jspbMessageInstance = msg; } return obj; }; } /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. * @return {!proto.atc.v1.GameStarted} */ proto.atc.v1.GameStarted.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); var msg = new proto.atc.v1.GameStarted; return proto.atc.v1.GameStarted.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. * @param {!proto.atc.v1.GameStarted} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.atc.v1.GameStarted} */ proto.atc.v1.GameStarted.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; } var field = reader.getFieldNumber(); switch (field) { case 1: var value = new atc_v1_map_pb.Map; reader.readMessage(value,atc_v1_map_pb.Map.deserializeBinaryFromReader); msg.setMap(value); break; default: reader.skipField(); break; } } return msg; }; /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ proto.atc.v1.GameStarted.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); proto.atc.v1.GameStarted.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. * @param {!proto.atc.v1.GameStarted} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.atc.v1.GameStarted.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getMap(); if (f != null) { writer.writeMessage( 1, f, atc_v1_map_pb.Map.serializeBinaryToWriter ); } }; /** * optional Map map = 1; * @return {?proto.atc.v1.Map} */ proto.atc.v1.GameStarted.prototype.getMap = function() { return /** @type{?proto.atc.v1.Map} */ ( jspb.Message.getWrapperField(this, atc_v1_map_pb.Map, 1)); }; /** * @param {?proto.atc.v1.Map|undefined} value * @return {!proto.atc.v1.GameStarted} returns this */ proto.atc.v1.GameStarted.prototype.setMap = function(value) { return jspb.Message.setWrapperField(this, 1, value); }; /** * Clears the message field making it undefined. * @return {!proto.atc.v1.GameStarted} returns this */ proto.atc.v1.GameStarted.prototype.clearMap = function() { return this.setMap(undefined); }; /** * Returns whether this field is set. * @return {boolean} */ proto.atc.v1.GameStarted.prototype.hasMap = function() { return jspb.Message.getField(this, 1) != null; }; if (jspb.Message.GENERATE_TO_OBJECT) { /** * Creates an object representation of this proto. * Field names that are reserved in JavaScript and will be renamed to pb_name. * Optional fields that are not set will be set to undefined. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default. * For the list of reserved names please see: * net/proto2/compiler/js/internal/generator.cc#kKeyword. * @param {boolean=} opt_includeInstance Deprecated. whether to include the * JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @return {!Object} */ proto.atc.v1.GameStopped.prototype.toObject = function(opt_includeInstance) { return proto.atc.v1.GameStopped.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.atc.v1.GameStopped} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.atc.v1.GameStopped.toObject = function(includeInstance, msg) { var f, obj = { score: jspb.Message.getFieldWithDefault(msg, 1, 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.atc.v1.GameStopped} */ proto.atc.v1.GameStopped.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); var msg = new proto.atc.v1.GameStopped; return proto.atc.v1.GameStopped.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. * @param {!proto.atc.v1.GameStopped} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.atc.v1.GameStopped} */ proto.atc.v1.GameStopped.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.setScore(value); break; default: reader.skipField(); break; } } return msg; }; /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ proto.atc.v1.GameStopped.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); proto.atc.v1.GameStopped.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. * @param {!proto.atc.v1.GameStopped} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.atc.v1.GameStopped.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getScore(); if (f !== 0) { writer.writeUint32( 1, f ); } }; /** * optional uint32 score = 1; * @return {number} */ proto.atc.v1.GameStopped.prototype.getScore = function() { return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); }; /** * @param {number} value * @return {!proto.atc.v1.GameStopped} returns this */ proto.atc.v1.GameStopped.prototype.setScore = function(value) { return jspb.Message.setProto3IntField(this, 1, value); }; if (jspb.Message.GENERATE_TO_OBJECT) { /** * Creates an object representation of this proto. * Field names that are reserved in JavaScript and will be renamed to pb_name. * Optional fields that are not set will be set to undefined. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default. * For the list of reserved names please see: * net/proto2/compiler/js/internal/generator.cc#kKeyword. * @param {boolean=} opt_includeInstance Deprecated. whether to include the * JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @return {!Object} */ proto.atc.v1.StreamRequest.prototype.toObject = function(opt_includeInstance) { return proto.atc.v1.StreamRequest.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.atc.v1.StreamRequest} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.atc.v1.StreamRequest.toObject = function(includeInstance, msg) { var f, obj = { }; if (includeInstance) { obj.$jspbMessageInstance = msg; } return obj; }; } /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. * @return {!proto.atc.v1.StreamRequest} */ proto.atc.v1.StreamRequest.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); var msg = new proto.atc.v1.StreamRequest; return proto.atc.v1.StreamRequest.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. * @param {!proto.atc.v1.StreamRequest} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.atc.v1.StreamRequest} */ proto.atc.v1.StreamRequest.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; } var field = reader.getFieldNumber(); switch (field) { default: reader.skipField(); break; } } return msg; }; /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ proto.atc.v1.StreamRequest.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); proto.atc.v1.StreamRequest.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. * @param {!proto.atc.v1.StreamRequest} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.atc.v1.StreamRequest.serializeBinaryToWriter = function(message, writer) { var f = undefined; }; /** * 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.atc.v1.StreamResponse.oneofGroups_ = [[1,2,3,4,5,6,7,8]]; /** * @enum {number} */ proto.atc.v1.StreamResponse.EventCase = { EVENT_NOT_SET: 0, AIRPLANE_COLLIDED: 1, AIRPLANE_DETECTED: 2, AIRPLANE_LANDED: 3, AIRPLANE_MOVED: 4, FLIGHT_PLAN_UPDATED: 5, LANDING_ABORTED: 6, GAME_STARTED: 7, GAME_STOPPED: 8 }; /** * @return {proto.atc.v1.StreamResponse.EventCase} */ proto.atc.v1.StreamResponse.prototype.getEventCase = function() { return /** @type {proto.atc.v1.StreamResponse.EventCase} */(jspb.Message.computeOneofCase(this, proto.atc.v1.StreamResponse.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.atc.v1.StreamResponse.prototype.toObject = function(opt_includeInstance) { return proto.atc.v1.StreamResponse.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.atc.v1.StreamResponse} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.atc.v1.StreamResponse.toObject = function(includeInstance, msg) { var f, obj = { airplaneCollided: (f = msg.getAirplaneCollided()) && proto.atc.v1.AirplaneCollided.toObject(includeInstance, f), airplaneDetected: (f = msg.getAirplaneDetected()) && proto.atc.v1.AirplaneDetected.toObject(includeInstance, f), airplaneLanded: (f = msg.getAirplaneLanded()) && proto.atc.v1.AirplaneLanded.toObject(includeInstance, f), airplaneMoved: (f = msg.getAirplaneMoved()) && proto.atc.v1.AirplaneMoved.toObject(includeInstance, f), flightPlanUpdated: (f = msg.getFlightPlanUpdated()) && proto.atc.v1.FlightPlanUpdated.toObject(includeInstance, f), landingAborted: (f = msg.getLandingAborted()) && proto.atc.v1.LandingAborted.toObject(includeInstance, f), gameStarted: (f = msg.getGameStarted()) && proto.atc.v1.GameStarted.toObject(includeInstance, f), gameStopped: (f = msg.getGameStopped()) && proto.atc.v1.GameStopped.toObject(includeInstance, f) }; if (includeInstance) { obj.$jspbMessageInstance = msg; }