diff --git a/CNAME b/CNAME
deleted file mode 100644
index 1acc9e2..0000000
--- a/CNAME
+++ /dev/null
@@ -1 +0,0 @@
-cyprusbus.info
\ No newline at end of file
diff --git a/README.md b/README.md
index e0800e3..0730ef8 100644
--- a/README.md
+++ b/README.md
@@ -1,6 +1,6 @@
# Cyprus Bus: Real-Time Bus Tracking Application
-### WEB app: [cyprusbus.info](http://cyprusbus.info)
+### WEB app: cyprusbus.info
Cyprus Bus is a real-time bus tracking web application for Cyprus, leveraging the GTFS (General Transit Feed
Specification) Realtime feed.
@@ -13,8 +13,10 @@ interactive way to track public transportation in Cyprus.
- **Real-Time Bus Tracking**: Utilizes GTFS Realtime data to display the current positions of buses in Cyprus.
- **Interactive Map**: Leverages the Leaflet library for an interactive map experience.
- **Automatic Updates**: The bus locations are updated every 10 seconds, ensuring up-to-date information.
-- **Popup Information**: Clicking on any bus marker reveals details such as movement speed, start time, bus label and
- the latest timestamp.
+- **Popup Information**: Clicking on any bus marker reveals details such as route number and description, movement speed
+ and start time.
+- **Show me on map**: The user can click on the "Show me on map" button to center the map on their current location.
+ Requires the user to allow location access.
## Data source
diff --git a/bundle.js b/bundle.js
deleted file mode 100644
index f660d61..0000000
--- a/bundle.js
+++ /dev/null
@@ -1,27540 +0,0 @@
-(function(){function r(e,n,t){function o(i,f){if(!n[i]){if(!e[i]){var c="function"==typeof require&&require;if(!f&&c)return c(i,!0);if(u)return u(i,!0);var a=new Error("Cannot find module '"+i+"'");throw a.code="MODULE_NOT_FOUND",a}var p=n[i]={exports:{}};e[i][0].call(p.exports,function(r){var n=e[i][1][r];return o(n||r)},p,p.exports,r,e,n,t)}return n[i].exports}for(var u="function"==typeof require&&require,i=0;i}
- */
-proto.transit_realtime.FeedMessage.extensions = {};
-
-
-/**
- * The extensions registered with this message class. This is a map of
- * extension field number to fieldInfo object.
- *
- * For example:
- * { 123: {fieldIndex: 123, fieldName: {my_field_name: 0}, ctor: proto.example.MyMessage} }
- *
- * fieldName contains the JsCompiler renamed field name property so that it
- * works in OPTIMIZED mode.
- *
- * @type {!Object}
- */
-proto.transit_realtime.FeedMessage.extensionsBinary = {};
-
-/**
- * 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.transit_realtime.FeedHeader = function(opt_data) {
- jspb.Message.initialize(this, opt_data, 0, 4, null, null);
-};
-goog.inherits(proto.transit_realtime.FeedHeader, jspb.Message);
-if (goog.DEBUG && !COMPILED) {
- /**
- * @public
- * @override
- */
- proto.transit_realtime.FeedHeader.displayName = 'proto.transit_realtime.FeedHeader';
-}
-
-/**
- * The extensions registered with this message class. This is a map of
- * extension field number to fieldInfo object.
- *
- * For example:
- * { 123: {fieldIndex: 123, fieldName: {my_field_name: 0}, ctor: proto.example.MyMessage} }
- *
- * fieldName contains the JsCompiler renamed field name property so that it
- * works in OPTIMIZED mode.
- *
- * @type {!Object}
- */
-proto.transit_realtime.FeedHeader.extensions = {};
-
-
-/**
- * The extensions registered with this message class. This is a map of
- * extension field number to fieldInfo object.
- *
- * For example:
- * { 123: {fieldIndex: 123, fieldName: {my_field_name: 0}, ctor: proto.example.MyMessage} }
- *
- * fieldName contains the JsCompiler renamed field name property so that it
- * works in OPTIMIZED mode.
- *
- * @type {!Object}
- */
-proto.transit_realtime.FeedHeader.extensionsBinary = {};
-
-/**
- * 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.transit_realtime.FeedEntity = function(opt_data) {
- jspb.Message.initialize(this, opt_data, 0, 9, null, null);
-};
-goog.inherits(proto.transit_realtime.FeedEntity, jspb.Message);
-if (goog.DEBUG && !COMPILED) {
- /**
- * @public
- * @override
- */
- proto.transit_realtime.FeedEntity.displayName = 'proto.transit_realtime.FeedEntity';
-}
-
-/**
- * The extensions registered with this message class. This is a map of
- * extension field number to fieldInfo object.
- *
- * For example:
- * { 123: {fieldIndex: 123, fieldName: {my_field_name: 0}, ctor: proto.example.MyMessage} }
- *
- * fieldName contains the JsCompiler renamed field name property so that it
- * works in OPTIMIZED mode.
- *
- * @type {!Object}
- */
-proto.transit_realtime.FeedEntity.extensions = {};
-
-
-/**
- * The extensions registered with this message class. This is a map of
- * extension field number to fieldInfo object.
- *
- * For example:
- * { 123: {fieldIndex: 123, fieldName: {my_field_name: 0}, ctor: proto.example.MyMessage} }
- *
- * fieldName contains the JsCompiler renamed field name property so that it
- * works in OPTIMIZED mode.
- *
- * @type {!Object}
- */
-proto.transit_realtime.FeedEntity.extensionsBinary = {};
-
-/**
- * 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.transit_realtime.TripUpdate = function(opt_data) {
- jspb.Message.initialize(this, opt_data, 0, 7, proto.transit_realtime.TripUpdate.repeatedFields_, null);
-};
-goog.inherits(proto.transit_realtime.TripUpdate, jspb.Message);
-if (goog.DEBUG && !COMPILED) {
- /**
- * @public
- * @override
- */
- proto.transit_realtime.TripUpdate.displayName = 'proto.transit_realtime.TripUpdate';
-}
-
-/**
- * The extensions registered with this message class. This is a map of
- * extension field number to fieldInfo object.
- *
- * For example:
- * { 123: {fieldIndex: 123, fieldName: {my_field_name: 0}, ctor: proto.example.MyMessage} }
- *
- * fieldName contains the JsCompiler renamed field name property so that it
- * works in OPTIMIZED mode.
- *
- * @type {!Object}
- */
-proto.transit_realtime.TripUpdate.extensions = {};
-
-
-/**
- * The extensions registered with this message class. This is a map of
- * extension field number to fieldInfo object.
- *
- * For example:
- * { 123: {fieldIndex: 123, fieldName: {my_field_name: 0}, ctor: proto.example.MyMessage} }
- *
- * fieldName contains the JsCompiler renamed field name property so that it
- * works in OPTIMIZED mode.
- *
- * @type {!Object}
- */
-proto.transit_realtime.TripUpdate.extensionsBinary = {};
-
-/**
- * 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.transit_realtime.TripUpdate.StopTimeEvent = function(opt_data) {
- jspb.Message.initialize(this, opt_data, 0, 4, null, null);
-};
-goog.inherits(proto.transit_realtime.TripUpdate.StopTimeEvent, jspb.Message);
-if (goog.DEBUG && !COMPILED) {
- /**
- * @public
- * @override
- */
- proto.transit_realtime.TripUpdate.StopTimeEvent.displayName = 'proto.transit_realtime.TripUpdate.StopTimeEvent';
-}
-
-/**
- * The extensions registered with this message class. This is a map of
- * extension field number to fieldInfo object.
- *
- * For example:
- * { 123: {fieldIndex: 123, fieldName: {my_field_name: 0}, ctor: proto.example.MyMessage} }
- *
- * fieldName contains the JsCompiler renamed field name property so that it
- * works in OPTIMIZED mode.
- *
- * @type {!Object}
- */
-proto.transit_realtime.TripUpdate.StopTimeEvent.extensions = {};
-
-
-/**
- * The extensions registered with this message class. This is a map of
- * extension field number to fieldInfo object.
- *
- * For example:
- * { 123: {fieldIndex: 123, fieldName: {my_field_name: 0}, ctor: proto.example.MyMessage} }
- *
- * fieldName contains the JsCompiler renamed field name property so that it
- * works in OPTIMIZED mode.
- *
- * @type {!Object}
- */
-proto.transit_realtime.TripUpdate.StopTimeEvent.extensionsBinary = {};
-
-/**
- * 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.transit_realtime.TripUpdate.StopTimeUpdate = function(opt_data) {
- jspb.Message.initialize(this, opt_data, 0, 8, null, null);
-};
-goog.inherits(proto.transit_realtime.TripUpdate.StopTimeUpdate, jspb.Message);
-if (goog.DEBUG && !COMPILED) {
- /**
- * @public
- * @override
- */
- proto.transit_realtime.TripUpdate.StopTimeUpdate.displayName = 'proto.transit_realtime.TripUpdate.StopTimeUpdate';
-}
-
-/**
- * The extensions registered with this message class. This is a map of
- * extension field number to fieldInfo object.
- *
- * For example:
- * { 123: {fieldIndex: 123, fieldName: {my_field_name: 0}, ctor: proto.example.MyMessage} }
- *
- * fieldName contains the JsCompiler renamed field name property so that it
- * works in OPTIMIZED mode.
- *
- * @type {!Object}
- */
-proto.transit_realtime.TripUpdate.StopTimeUpdate.extensions = {};
-
-
-/**
- * The extensions registered with this message class. This is a map of
- * extension field number to fieldInfo object.
- *
- * For example:
- * { 123: {fieldIndex: 123, fieldName: {my_field_name: 0}, ctor: proto.example.MyMessage} }
- *
- * fieldName contains the JsCompiler renamed field name property so that it
- * works in OPTIMIZED mode.
- *
- * @type {!Object}
- */
-proto.transit_realtime.TripUpdate.StopTimeUpdate.extensionsBinary = {};
-
-/**
- * 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.transit_realtime.TripUpdate.StopTimeUpdate.StopTimeProperties = function(opt_data) {
- jspb.Message.initialize(this, opt_data, 0, 2, null, null);
-};
-goog.inherits(proto.transit_realtime.TripUpdate.StopTimeUpdate.StopTimeProperties, jspb.Message);
-if (goog.DEBUG && !COMPILED) {
- /**
- * @public
- * @override
- */
- proto.transit_realtime.TripUpdate.StopTimeUpdate.StopTimeProperties.displayName = 'proto.transit_realtime.TripUpdate.StopTimeUpdate.StopTimeProperties';
-}
-
-/**
- * The extensions registered with this message class. This is a map of
- * extension field number to fieldInfo object.
- *
- * For example:
- * { 123: {fieldIndex: 123, fieldName: {my_field_name: 0}, ctor: proto.example.MyMessage} }
- *
- * fieldName contains the JsCompiler renamed field name property so that it
- * works in OPTIMIZED mode.
- *
- * @type {!Object}
- */
-proto.transit_realtime.TripUpdate.StopTimeUpdate.StopTimeProperties.extensions = {};
-
-
-/**
- * The extensions registered with this message class. This is a map of
- * extension field number to fieldInfo object.
- *
- * For example:
- * { 123: {fieldIndex: 123, fieldName: {my_field_name: 0}, ctor: proto.example.MyMessage} }
- *
- * fieldName contains the JsCompiler renamed field name property so that it
- * works in OPTIMIZED mode.
- *
- * @type {!Object}
- */
-proto.transit_realtime.TripUpdate.StopTimeUpdate.StopTimeProperties.extensionsBinary = {};
-
-/**
- * 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.transit_realtime.TripUpdate.TripProperties = function(opt_data) {
- jspb.Message.initialize(this, opt_data, 0, 5, null, null);
-};
-goog.inherits(proto.transit_realtime.TripUpdate.TripProperties, jspb.Message);
-if (goog.DEBUG && !COMPILED) {
- /**
- * @public
- * @override
- */
- proto.transit_realtime.TripUpdate.TripProperties.displayName = 'proto.transit_realtime.TripUpdate.TripProperties';
-}
-
-/**
- * The extensions registered with this message class. This is a map of
- * extension field number to fieldInfo object.
- *
- * For example:
- * { 123: {fieldIndex: 123, fieldName: {my_field_name: 0}, ctor: proto.example.MyMessage} }
- *
- * fieldName contains the JsCompiler renamed field name property so that it
- * works in OPTIMIZED mode.
- *
- * @type {!Object}
- */
-proto.transit_realtime.TripUpdate.TripProperties.extensions = {};
-
-
-/**
- * The extensions registered with this message class. This is a map of
- * extension field number to fieldInfo object.
- *
- * For example:
- * { 123: {fieldIndex: 123, fieldName: {my_field_name: 0}, ctor: proto.example.MyMessage} }
- *
- * fieldName contains the JsCompiler renamed field name property so that it
- * works in OPTIMIZED mode.
- *
- * @type {!Object}
- */
-proto.transit_realtime.TripUpdate.TripProperties.extensionsBinary = {};
-
-/**
- * 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.transit_realtime.VehiclePosition = function(opt_data) {
- jspb.Message.initialize(this, opt_data, 0, 12, proto.transit_realtime.VehiclePosition.repeatedFields_, null);
-};
-goog.inherits(proto.transit_realtime.VehiclePosition, jspb.Message);
-if (goog.DEBUG && !COMPILED) {
- /**
- * @public
- * @override
- */
- proto.transit_realtime.VehiclePosition.displayName = 'proto.transit_realtime.VehiclePosition';
-}
-
-/**
- * The extensions registered with this message class. This is a map of
- * extension field number to fieldInfo object.
- *
- * For example:
- * { 123: {fieldIndex: 123, fieldName: {my_field_name: 0}, ctor: proto.example.MyMessage} }
- *
- * fieldName contains the JsCompiler renamed field name property so that it
- * works in OPTIMIZED mode.
- *
- * @type {!Object}
- */
-proto.transit_realtime.VehiclePosition.extensions = {};
-
-
-/**
- * The extensions registered with this message class. This is a map of
- * extension field number to fieldInfo object.
- *
- * For example:
- * { 123: {fieldIndex: 123, fieldName: {my_field_name: 0}, ctor: proto.example.MyMessage} }
- *
- * fieldName contains the JsCompiler renamed field name property so that it
- * works in OPTIMIZED mode.
- *
- * @type {!Object}
- */
-proto.transit_realtime.VehiclePosition.extensionsBinary = {};
-
-/**
- * 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.transit_realtime.VehiclePosition.CarriageDetails = function(opt_data) {
- jspb.Message.initialize(this, opt_data, 0, 6, null, null);
-};
-goog.inherits(proto.transit_realtime.VehiclePosition.CarriageDetails, jspb.Message);
-if (goog.DEBUG && !COMPILED) {
- /**
- * @public
- * @override
- */
- proto.transit_realtime.VehiclePosition.CarriageDetails.displayName = 'proto.transit_realtime.VehiclePosition.CarriageDetails';
-}
-
-/**
- * The extensions registered with this message class. This is a map of
- * extension field number to fieldInfo object.
- *
- * For example:
- * { 123: {fieldIndex: 123, fieldName: {my_field_name: 0}, ctor: proto.example.MyMessage} }
- *
- * fieldName contains the JsCompiler renamed field name property so that it
- * works in OPTIMIZED mode.
- *
- * @type {!Object}
- */
-proto.transit_realtime.VehiclePosition.CarriageDetails.extensions = {};
-
-
-/**
- * The extensions registered with this message class. This is a map of
- * extension field number to fieldInfo object.
- *
- * For example:
- * { 123: {fieldIndex: 123, fieldName: {my_field_name: 0}, ctor: proto.example.MyMessage} }
- *
- * fieldName contains the JsCompiler renamed field name property so that it
- * works in OPTIMIZED mode.
- *
- * @type {!Object}
- */
-proto.transit_realtime.VehiclePosition.CarriageDetails.extensionsBinary = {};
-
-/**
- * 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.transit_realtime.Alert = function(opt_data) {
- jspb.Message.initialize(this, opt_data, 0, 19, proto.transit_realtime.Alert.repeatedFields_, null);
-};
-goog.inherits(proto.transit_realtime.Alert, jspb.Message);
-if (goog.DEBUG && !COMPILED) {
- /**
- * @public
- * @override
- */
- proto.transit_realtime.Alert.displayName = 'proto.transit_realtime.Alert';
-}
-
-/**
- * The extensions registered with this message class. This is a map of
- * extension field number to fieldInfo object.
- *
- * For example:
- * { 123: {fieldIndex: 123, fieldName: {my_field_name: 0}, ctor: proto.example.MyMessage} }
- *
- * fieldName contains the JsCompiler renamed field name property so that it
- * works in OPTIMIZED mode.
- *
- * @type {!Object}
- */
-proto.transit_realtime.Alert.extensions = {};
-
-
-/**
- * The extensions registered with this message class. This is a map of
- * extension field number to fieldInfo object.
- *
- * For example:
- * { 123: {fieldIndex: 123, fieldName: {my_field_name: 0}, ctor: proto.example.MyMessage} }
- *
- * fieldName contains the JsCompiler renamed field name property so that it
- * works in OPTIMIZED mode.
- *
- * @type {!Object}
- */
-proto.transit_realtime.Alert.extensionsBinary = {};
-
-/**
- * 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.transit_realtime.TimeRange = function(opt_data) {
- jspb.Message.initialize(this, opt_data, 0, 3, null, null);
-};
-goog.inherits(proto.transit_realtime.TimeRange, jspb.Message);
-if (goog.DEBUG && !COMPILED) {
- /**
- * @public
- * @override
- */
- proto.transit_realtime.TimeRange.displayName = 'proto.transit_realtime.TimeRange';
-}
-
-/**
- * The extensions registered with this message class. This is a map of
- * extension field number to fieldInfo object.
- *
- * For example:
- * { 123: {fieldIndex: 123, fieldName: {my_field_name: 0}, ctor: proto.example.MyMessage} }
- *
- * fieldName contains the JsCompiler renamed field name property so that it
- * works in OPTIMIZED mode.
- *
- * @type {!Object}
- */
-proto.transit_realtime.TimeRange.extensions = {};
-
-
-/**
- * The extensions registered with this message class. This is a map of
- * extension field number to fieldInfo object.
- *
- * For example:
- * { 123: {fieldIndex: 123, fieldName: {my_field_name: 0}, ctor: proto.example.MyMessage} }
- *
- * fieldName contains the JsCompiler renamed field name property so that it
- * works in OPTIMIZED mode.
- *
- * @type {!Object}
- */
-proto.transit_realtime.TimeRange.extensionsBinary = {};
-
-/**
- * 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.transit_realtime.Position = function(opt_data) {
- jspb.Message.initialize(this, opt_data, 0, 6, null, null);
-};
-goog.inherits(proto.transit_realtime.Position, jspb.Message);
-if (goog.DEBUG && !COMPILED) {
- /**
- * @public
- * @override
- */
- proto.transit_realtime.Position.displayName = 'proto.transit_realtime.Position';
-}
-
-/**
- * The extensions registered with this message class. This is a map of
- * extension field number to fieldInfo object.
- *
- * For example:
- * { 123: {fieldIndex: 123, fieldName: {my_field_name: 0}, ctor: proto.example.MyMessage} }
- *
- * fieldName contains the JsCompiler renamed field name property so that it
- * works in OPTIMIZED mode.
- *
- * @type {!Object}
- */
-proto.transit_realtime.Position.extensions = {};
-
-
-/**
- * The extensions registered with this message class. This is a map of
- * extension field number to fieldInfo object.
- *
- * For example:
- * { 123: {fieldIndex: 123, fieldName: {my_field_name: 0}, ctor: proto.example.MyMessage} }
- *
- * fieldName contains the JsCompiler renamed field name property so that it
- * works in OPTIMIZED mode.
- *
- * @type {!Object}
- */
-proto.transit_realtime.Position.extensionsBinary = {};
-
-/**
- * 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.transit_realtime.TripDescriptor = function(opt_data) {
- jspb.Message.initialize(this, opt_data, 0, 8, null, null);
-};
-goog.inherits(proto.transit_realtime.TripDescriptor, jspb.Message);
-if (goog.DEBUG && !COMPILED) {
- /**
- * @public
- * @override
- */
- proto.transit_realtime.TripDescriptor.displayName = 'proto.transit_realtime.TripDescriptor';
-}
-
-/**
- * The extensions registered with this message class. This is a map of
- * extension field number to fieldInfo object.
- *
- * For example:
- * { 123: {fieldIndex: 123, fieldName: {my_field_name: 0}, ctor: proto.example.MyMessage} }
- *
- * fieldName contains the JsCompiler renamed field name property so that it
- * works in OPTIMIZED mode.
- *
- * @type {!Object}
- */
-proto.transit_realtime.TripDescriptor.extensions = {};
-
-
-/**
- * The extensions registered with this message class. This is a map of
- * extension field number to fieldInfo object.
- *
- * For example:
- * { 123: {fieldIndex: 123, fieldName: {my_field_name: 0}, ctor: proto.example.MyMessage} }
- *
- * fieldName contains the JsCompiler renamed field name property so that it
- * works in OPTIMIZED mode.
- *
- * @type {!Object}
- */
-proto.transit_realtime.TripDescriptor.extensionsBinary = {};
-
-/**
- * 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.transit_realtime.TripDescriptor.ModifiedTripSelector = function(opt_data) {
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
-};
-goog.inherits(proto.transit_realtime.TripDescriptor.ModifiedTripSelector, jspb.Message);
-if (goog.DEBUG && !COMPILED) {
- /**
- * @public
- * @override
- */
- proto.transit_realtime.TripDescriptor.ModifiedTripSelector.displayName = 'proto.transit_realtime.TripDescriptor.ModifiedTripSelector';
-}
-/**
- * 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.transit_realtime.VehicleDescriptor = function(opt_data) {
- jspb.Message.initialize(this, opt_data, 0, 5, null, null);
-};
-goog.inherits(proto.transit_realtime.VehicleDescriptor, jspb.Message);
-if (goog.DEBUG && !COMPILED) {
- /**
- * @public
- * @override
- */
- proto.transit_realtime.VehicleDescriptor.displayName = 'proto.transit_realtime.VehicleDescriptor';
-}
-
-/**
- * The extensions registered with this message class. This is a map of
- * extension field number to fieldInfo object.
- *
- * For example:
- * { 123: {fieldIndex: 123, fieldName: {my_field_name: 0}, ctor: proto.example.MyMessage} }
- *
- * fieldName contains the JsCompiler renamed field name property so that it
- * works in OPTIMIZED mode.
- *
- * @type {!Object}
- */
-proto.transit_realtime.VehicleDescriptor.extensions = {};
-
-
-/**
- * The extensions registered with this message class. This is a map of
- * extension field number to fieldInfo object.
- *
- * For example:
- * { 123: {fieldIndex: 123, fieldName: {my_field_name: 0}, ctor: proto.example.MyMessage} }
- *
- * fieldName contains the JsCompiler renamed field name property so that it
- * works in OPTIMIZED mode.
- *
- * @type {!Object}
- */
-proto.transit_realtime.VehicleDescriptor.extensionsBinary = {};
-
-/**
- * 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.transit_realtime.EntitySelector = function(opt_data) {
- jspb.Message.initialize(this, opt_data, 0, 7, null, null);
-};
-goog.inherits(proto.transit_realtime.EntitySelector, jspb.Message);
-if (goog.DEBUG && !COMPILED) {
- /**
- * @public
- * @override
- */
- proto.transit_realtime.EntitySelector.displayName = 'proto.transit_realtime.EntitySelector';
-}
-
-/**
- * The extensions registered with this message class. This is a map of
- * extension field number to fieldInfo object.
- *
- * For example:
- * { 123: {fieldIndex: 123, fieldName: {my_field_name: 0}, ctor: proto.example.MyMessage} }
- *
- * fieldName contains the JsCompiler renamed field name property so that it
- * works in OPTIMIZED mode.
- *
- * @type {!Object}
- */
-proto.transit_realtime.EntitySelector.extensions = {};
-
-
-/**
- * The extensions registered with this message class. This is a map of
- * extension field number to fieldInfo object.
- *
- * For example:
- * { 123: {fieldIndex: 123, fieldName: {my_field_name: 0}, ctor: proto.example.MyMessage} }
- *
- * fieldName contains the JsCompiler renamed field name property so that it
- * works in OPTIMIZED mode.
- *
- * @type {!Object}
- */
-proto.transit_realtime.EntitySelector.extensionsBinary = {};
-
-/**
- * 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.transit_realtime.TranslatedString = function(opt_data) {
- jspb.Message.initialize(this, opt_data, 0, 2, proto.transit_realtime.TranslatedString.repeatedFields_, null);
-};
-goog.inherits(proto.transit_realtime.TranslatedString, jspb.Message);
-if (goog.DEBUG && !COMPILED) {
- /**
- * @public
- * @override
- */
- proto.transit_realtime.TranslatedString.displayName = 'proto.transit_realtime.TranslatedString';
-}
-
-/**
- * The extensions registered with this message class. This is a map of
- * extension field number to fieldInfo object.
- *
- * For example:
- * { 123: {fieldIndex: 123, fieldName: {my_field_name: 0}, ctor: proto.example.MyMessage} }
- *
- * fieldName contains the JsCompiler renamed field name property so that it
- * works in OPTIMIZED mode.
- *
- * @type {!Object}
- */
-proto.transit_realtime.TranslatedString.extensions = {};
-
-
-/**
- * The extensions registered with this message class. This is a map of
- * extension field number to fieldInfo object.
- *
- * For example:
- * { 123: {fieldIndex: 123, fieldName: {my_field_name: 0}, ctor: proto.example.MyMessage} }
- *
- * fieldName contains the JsCompiler renamed field name property so that it
- * works in OPTIMIZED mode.
- *
- * @type {!Object}
- */
-proto.transit_realtime.TranslatedString.extensionsBinary = {};
-
-/**
- * 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.transit_realtime.TranslatedString.Translation = function(opt_data) {
- jspb.Message.initialize(this, opt_data, 0, 3, null, null);
-};
-goog.inherits(proto.transit_realtime.TranslatedString.Translation, jspb.Message);
-if (goog.DEBUG && !COMPILED) {
- /**
- * @public
- * @override
- */
- proto.transit_realtime.TranslatedString.Translation.displayName = 'proto.transit_realtime.TranslatedString.Translation';
-}
-
-/**
- * The extensions registered with this message class. This is a map of
- * extension field number to fieldInfo object.
- *
- * For example:
- * { 123: {fieldIndex: 123, fieldName: {my_field_name: 0}, ctor: proto.example.MyMessage} }
- *
- * fieldName contains the JsCompiler renamed field name property so that it
- * works in OPTIMIZED mode.
- *
- * @type {!Object}
- */
-proto.transit_realtime.TranslatedString.Translation.extensions = {};
-
-
-/**
- * The extensions registered with this message class. This is a map of
- * extension field number to fieldInfo object.
- *
- * For example:
- * { 123: {fieldIndex: 123, fieldName: {my_field_name: 0}, ctor: proto.example.MyMessage} }
- *
- * fieldName contains the JsCompiler renamed field name property so that it
- * works in OPTIMIZED mode.
- *
- * @type {!Object}
- */
-proto.transit_realtime.TranslatedString.Translation.extensionsBinary = {};
-
-/**
- * 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.transit_realtime.TranslatedImage = function(opt_data) {
- jspb.Message.initialize(this, opt_data, 0, 2, proto.transit_realtime.TranslatedImage.repeatedFields_, null);
-};
-goog.inherits(proto.transit_realtime.TranslatedImage, jspb.Message);
-if (goog.DEBUG && !COMPILED) {
- /**
- * @public
- * @override
- */
- proto.transit_realtime.TranslatedImage.displayName = 'proto.transit_realtime.TranslatedImage';
-}
-
-/**
- * The extensions registered with this message class. This is a map of
- * extension field number to fieldInfo object.
- *
- * For example:
- * { 123: {fieldIndex: 123, fieldName: {my_field_name: 0}, ctor: proto.example.MyMessage} }
- *
- * fieldName contains the JsCompiler renamed field name property so that it
- * works in OPTIMIZED mode.
- *
- * @type {!Object}
- */
-proto.transit_realtime.TranslatedImage.extensions = {};
-
-
-/**
- * The extensions registered with this message class. This is a map of
- * extension field number to fieldInfo object.
- *
- * For example:
- * { 123: {fieldIndex: 123, fieldName: {my_field_name: 0}, ctor: proto.example.MyMessage} }
- *
- * fieldName contains the JsCompiler renamed field name property so that it
- * works in OPTIMIZED mode.
- *
- * @type {!Object}
- */
-proto.transit_realtime.TranslatedImage.extensionsBinary = {};
-
-/**
- * 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.transit_realtime.TranslatedImage.LocalizedImage = function(opt_data) {
- jspb.Message.initialize(this, opt_data, 0, 4, null, null);
-};
-goog.inherits(proto.transit_realtime.TranslatedImage.LocalizedImage, jspb.Message);
-if (goog.DEBUG && !COMPILED) {
- /**
- * @public
- * @override
- */
- proto.transit_realtime.TranslatedImage.LocalizedImage.displayName = 'proto.transit_realtime.TranslatedImage.LocalizedImage';
-}
-
-/**
- * The extensions registered with this message class. This is a map of
- * extension field number to fieldInfo object.
- *
- * For example:
- * { 123: {fieldIndex: 123, fieldName: {my_field_name: 0}, ctor: proto.example.MyMessage} }
- *
- * fieldName contains the JsCompiler renamed field name property so that it
- * works in OPTIMIZED mode.
- *
- * @type {!Object}
- */
-proto.transit_realtime.TranslatedImage.LocalizedImage.extensions = {};
-
-
-/**
- * The extensions registered with this message class. This is a map of
- * extension field number to fieldInfo object.
- *
- * For example:
- * { 123: {fieldIndex: 123, fieldName: {my_field_name: 0}, ctor: proto.example.MyMessage} }
- *
- * fieldName contains the JsCompiler renamed field name property so that it
- * works in OPTIMIZED mode.
- *
- * @type {!Object}
- */
-proto.transit_realtime.TranslatedImage.LocalizedImage.extensionsBinary = {};
-
-/**
- * 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.transit_realtime.Shape = function(opt_data) {
- jspb.Message.initialize(this, opt_data, 0, 3, null, null);
-};
-goog.inherits(proto.transit_realtime.Shape, jspb.Message);
-if (goog.DEBUG && !COMPILED) {
- /**
- * @public
- * @override
- */
- proto.transit_realtime.Shape.displayName = 'proto.transit_realtime.Shape';
-}
-
-/**
- * The extensions registered with this message class. This is a map of
- * extension field number to fieldInfo object.
- *
- * For example:
- * { 123: {fieldIndex: 123, fieldName: {my_field_name: 0}, ctor: proto.example.MyMessage} }
- *
- * fieldName contains the JsCompiler renamed field name property so that it
- * works in OPTIMIZED mode.
- *
- * @type {!Object}
- */
-proto.transit_realtime.Shape.extensions = {};
-
-
-/**
- * The extensions registered with this message class. This is a map of
- * extension field number to fieldInfo object.
- *
- * For example:
- * { 123: {fieldIndex: 123, fieldName: {my_field_name: 0}, ctor: proto.example.MyMessage} }
- *
- * fieldName contains the JsCompiler renamed field name property so that it
- * works in OPTIMIZED mode.
- *
- * @type {!Object}
- */
-proto.transit_realtime.Shape.extensionsBinary = {};
-
-/**
- * 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.transit_realtime.Stop = function(opt_data) {
- jspb.Message.initialize(this, opt_data, 0, 16, null, null);
-};
-goog.inherits(proto.transit_realtime.Stop, jspb.Message);
-if (goog.DEBUG && !COMPILED) {
- /**
- * @public
- * @override
- */
- proto.transit_realtime.Stop.displayName = 'proto.transit_realtime.Stop';
-}
-
-/**
- * The extensions registered with this message class. This is a map of
- * extension field number to fieldInfo object.
- *
- * For example:
- * { 123: {fieldIndex: 123, fieldName: {my_field_name: 0}, ctor: proto.example.MyMessage} }
- *
- * fieldName contains the JsCompiler renamed field name property so that it
- * works in OPTIMIZED mode.
- *
- * @type {!Object}
- */
-proto.transit_realtime.Stop.extensions = {};
-
-
-/**
- * The extensions registered with this message class. This is a map of
- * extension field number to fieldInfo object.
- *
- * For example:
- * { 123: {fieldIndex: 123, fieldName: {my_field_name: 0}, ctor: proto.example.MyMessage} }
- *
- * fieldName contains the JsCompiler renamed field name property so that it
- * works in OPTIMIZED mode.
- *
- * @type {!Object}
- */
-proto.transit_realtime.Stop.extensionsBinary = {};
-
-/**
- * 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.transit_realtime.TripModifications = function(opt_data) {
- jspb.Message.initialize(this, opt_data, 0, 5, proto.transit_realtime.TripModifications.repeatedFields_, null);
-};
-goog.inherits(proto.transit_realtime.TripModifications, jspb.Message);
-if (goog.DEBUG && !COMPILED) {
- /**
- * @public
- * @override
- */
- proto.transit_realtime.TripModifications.displayName = 'proto.transit_realtime.TripModifications';
-}
-
-/**
- * The extensions registered with this message class. This is a map of
- * extension field number to fieldInfo object.
- *
- * For example:
- * { 123: {fieldIndex: 123, fieldName: {my_field_name: 0}, ctor: proto.example.MyMessage} }
- *
- * fieldName contains the JsCompiler renamed field name property so that it
- * works in OPTIMIZED mode.
- *
- * @type {!Object}
- */
-proto.transit_realtime.TripModifications.extensions = {};
-
-
-/**
- * The extensions registered with this message class. This is a map of
- * extension field number to fieldInfo object.
- *
- * For example:
- * { 123: {fieldIndex: 123, fieldName: {my_field_name: 0}, ctor: proto.example.MyMessage} }
- *
- * fieldName contains the JsCompiler renamed field name property so that it
- * works in OPTIMIZED mode.
- *
- * @type {!Object}
- */
-proto.transit_realtime.TripModifications.extensionsBinary = {};
-
-/**
- * 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.transit_realtime.TripModifications.Modification = function(opt_data) {
- jspb.Message.initialize(this, opt_data, 0, 7, proto.transit_realtime.TripModifications.Modification.repeatedFields_, null);
-};
-goog.inherits(proto.transit_realtime.TripModifications.Modification, jspb.Message);
-if (goog.DEBUG && !COMPILED) {
- /**
- * @public
- * @override
- */
- proto.transit_realtime.TripModifications.Modification.displayName = 'proto.transit_realtime.TripModifications.Modification';
-}
-
-/**
- * The extensions registered with this message class. This is a map of
- * extension field number to fieldInfo object.
- *
- * For example:
- * { 123: {fieldIndex: 123, fieldName: {my_field_name: 0}, ctor: proto.example.MyMessage} }
- *
- * fieldName contains the JsCompiler renamed field name property so that it
- * works in OPTIMIZED mode.
- *
- * @type {!Object}
- */
-proto.transit_realtime.TripModifications.Modification.extensions = {};
-
-
-/**
- * The extensions registered with this message class. This is a map of
- * extension field number to fieldInfo object.
- *
- * For example:
- * { 123: {fieldIndex: 123, fieldName: {my_field_name: 0}, ctor: proto.example.MyMessage} }
- *
- * fieldName contains the JsCompiler renamed field name property so that it
- * works in OPTIMIZED mode.
- *
- * @type {!Object}
- */
-proto.transit_realtime.TripModifications.Modification.extensionsBinary = {};
-
-/**
- * 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.transit_realtime.TripModifications.SelectedTrips = function(opt_data) {
- jspb.Message.initialize(this, opt_data, 0, 3, proto.transit_realtime.TripModifications.SelectedTrips.repeatedFields_, null);
-};
-goog.inherits(proto.transit_realtime.TripModifications.SelectedTrips, jspb.Message);
-if (goog.DEBUG && !COMPILED) {
- /**
- * @public
- * @override
- */
- proto.transit_realtime.TripModifications.SelectedTrips.displayName = 'proto.transit_realtime.TripModifications.SelectedTrips';
-}
-
-/**
- * The extensions registered with this message class. This is a map of
- * extension field number to fieldInfo object.
- *
- * For example:
- * { 123: {fieldIndex: 123, fieldName: {my_field_name: 0}, ctor: proto.example.MyMessage} }
- *
- * fieldName contains the JsCompiler renamed field name property so that it
- * works in OPTIMIZED mode.
- *
- * @type {!Object}
- */
-proto.transit_realtime.TripModifications.SelectedTrips.extensions = {};
-
-
-/**
- * The extensions registered with this message class. This is a map of
- * extension field number to fieldInfo object.
- *
- * For example:
- * { 123: {fieldIndex: 123, fieldName: {my_field_name: 0}, ctor: proto.example.MyMessage} }
- *
- * fieldName contains the JsCompiler renamed field name property so that it
- * works in OPTIMIZED mode.
- *
- * @type {!Object}
- */
-proto.transit_realtime.TripModifications.SelectedTrips.extensionsBinary = {};
-
-/**
- * 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.transit_realtime.StopSelector = function(opt_data) {
- jspb.Message.initialize(this, opt_data, 0, 3, null, null);
-};
-goog.inherits(proto.transit_realtime.StopSelector, jspb.Message);
-if (goog.DEBUG && !COMPILED) {
- /**
- * @public
- * @override
- */
- proto.transit_realtime.StopSelector.displayName = 'proto.transit_realtime.StopSelector';
-}
-
-/**
- * The extensions registered with this message class. This is a map of
- * extension field number to fieldInfo object.
- *
- * For example:
- * { 123: {fieldIndex: 123, fieldName: {my_field_name: 0}, ctor: proto.example.MyMessage} }
- *
- * fieldName contains the JsCompiler renamed field name property so that it
- * works in OPTIMIZED mode.
- *
- * @type {!Object}
- */
-proto.transit_realtime.StopSelector.extensions = {};
-
-
-/**
- * The extensions registered with this message class. This is a map of
- * extension field number to fieldInfo object.
- *
- * For example:
- * { 123: {fieldIndex: 123, fieldName: {my_field_name: 0}, ctor: proto.example.MyMessage} }
- *
- * fieldName contains the JsCompiler renamed field name property so that it
- * works in OPTIMIZED mode.
- *
- * @type {!Object}
- */
-proto.transit_realtime.StopSelector.extensionsBinary = {};
-
-/**
- * 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.transit_realtime.ReplacementStop = function(opt_data) {
- jspb.Message.initialize(this, opt_data, 0, 3, null, null);
-};
-goog.inherits(proto.transit_realtime.ReplacementStop, jspb.Message);
-if (goog.DEBUG && !COMPILED) {
- /**
- * @public
- * @override
- */
- proto.transit_realtime.ReplacementStop.displayName = 'proto.transit_realtime.ReplacementStop';
-}
-
-/**
- * The extensions registered with this message class. This is a map of
- * extension field number to fieldInfo object.
- *
- * For example:
- * { 123: {fieldIndex: 123, fieldName: {my_field_name: 0}, ctor: proto.example.MyMessage} }
- *
- * fieldName contains the JsCompiler renamed field name property so that it
- * works in OPTIMIZED mode.
- *
- * @type {!Object}
- */
-proto.transit_realtime.ReplacementStop.extensions = {};
-
-
-/**
- * The extensions registered with this message class. This is a map of
- * extension field number to fieldInfo object.
- *
- * For example:
- * { 123: {fieldIndex: 123, fieldName: {my_field_name: 0}, ctor: proto.example.MyMessage} }
- *
- * fieldName contains the JsCompiler renamed field name property so that it
- * works in OPTIMIZED mode.
- *
- * @type {!Object}
- */
-proto.transit_realtime.ReplacementStop.extensionsBinary = {};
-
-
-/**
- * List of repeated fields within this message type.
- * @private {!Array}
- * @const
- */
-proto.transit_realtime.FeedMessage.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_, 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.transit_realtime.FeedMessage.prototype.toObject = function(opt_includeInstance) {
- return proto.transit_realtime.FeedMessage.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.transit_realtime.FeedMessage} msg The msg instance to transform.
- * @return {!Object}
- * @suppress {unusedLocalVariables} f is only used for nested messages
- */
-proto.transit_realtime.FeedMessage.toObject = function(includeInstance, msg) {
- var f, obj = {
- header: (f = msg.getHeader()) && proto.transit_realtime.FeedHeader.toObject(includeInstance, f),
- entityList: jspb.Message.toObjectList(msg.getEntityList(),
- proto.transit_realtime.FeedEntity.toObject, includeInstance)
- };
-
- jspb.Message.toObjectExtension(/** @type {!jspb.Message} */ (msg), obj,
- proto.transit_realtime.FeedMessage.extensions, proto.transit_realtime.FeedMessage.prototype.getExtension,
- 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.transit_realtime.FeedMessage}
- */
-proto.transit_realtime.FeedMessage.deserializeBinary = function(bytes) {
- var reader = new jspb.BinaryReader(bytes);
- var msg = new proto.transit_realtime.FeedMessage;
- return proto.transit_realtime.FeedMessage.deserializeBinaryFromReader(msg, reader);
-};
-
-
-/**
- * Deserializes binary data (in protobuf wire format) from the
- * given reader into the given message object.
- * @param {!proto.transit_realtime.FeedMessage} msg The message object to deserialize into.
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
- * @return {!proto.transit_realtime.FeedMessage}
- */
-proto.transit_realtime.FeedMessage.deserializeBinaryFromReader = function(msg, reader) {
- while (reader.nextField()) {
- if (reader.isEndGroup()) {
- break;
- }
- var field = reader.getFieldNumber();
- switch (field) {
- case 1:
- var value = new proto.transit_realtime.FeedHeader;
- reader.readMessage(value,proto.transit_realtime.FeedHeader.deserializeBinaryFromReader);
- msg.setHeader(value);
- break;
- case 2:
- var value = new proto.transit_realtime.FeedEntity;
- reader.readMessage(value,proto.transit_realtime.FeedEntity.deserializeBinaryFromReader);
- msg.addEntity(value);
- break;
- default:
- jspb.Message.readBinaryExtension(msg, reader,
- proto.transit_realtime.FeedMessage.extensionsBinary,
- proto.transit_realtime.FeedMessage.prototype.getExtension,
- proto.transit_realtime.FeedMessage.prototype.setExtension);
- break;
- }
- }
- return msg;
-};
-
-
-/**
- * Serializes the message to binary data (in protobuf wire format).
- * @return {!Uint8Array}
- */
-proto.transit_realtime.FeedMessage.prototype.serializeBinary = function() {
- var writer = new jspb.BinaryWriter();
- proto.transit_realtime.FeedMessage.serializeBinaryToWriter(this, writer);
- return writer.getResultBuffer();
-};
-
-
-/**
- * Serializes the given message to binary data (in protobuf wire
- * format), writing to the given BinaryWriter.
- * @param {!proto.transit_realtime.FeedMessage} message
- * @param {!jspb.BinaryWriter} writer
- * @suppress {unusedLocalVariables} f is only used for nested messages
- */
-proto.transit_realtime.FeedMessage.serializeBinaryToWriter = function(message, writer) {
- var f = undefined;
- f = message.getHeader();
- if (f != null) {
- writer.writeMessage(
- 1,
- f,
- proto.transit_realtime.FeedHeader.serializeBinaryToWriter
- );
- }
- f = message.getEntityList();
- if (f.length > 0) {
- writer.writeRepeatedMessage(
- 2,
- f,
- proto.transit_realtime.FeedEntity.serializeBinaryToWriter
- );
- }
- jspb.Message.serializeBinaryExtensions(message, writer,
- proto.transit_realtime.FeedMessage.extensionsBinary, proto.transit_realtime.FeedMessage.prototype.getExtension);
-};
-
-
-/**
- * required FeedHeader header = 1;
- * @return {!proto.transit_realtime.FeedHeader}
- */
-proto.transit_realtime.FeedMessage.prototype.getHeader = function() {
- return /** @type{!proto.transit_realtime.FeedHeader} */ (
- jspb.Message.getWrapperField(this, proto.transit_realtime.FeedHeader, 1, 1));
-};
-
-
-/**
- * @param {!proto.transit_realtime.FeedHeader} value
- * @return {!proto.transit_realtime.FeedMessage} returns this
-*/
-proto.transit_realtime.FeedMessage.prototype.setHeader = function(value) {
- return jspb.Message.setWrapperField(this, 1, value);
-};
-
-
-/**
- * Clears the field making it undefined.
- * @return {!proto.transit_realtime.FeedMessage} returns this
- */
-proto.transit_realtime.FeedMessage.prototype.clearHeader = function() {
- return jspb.Message.setField(this, 1, undefined);
-};
-
-
-/**
- * Returns whether this field is set.
- * @return {boolean}
- */
-proto.transit_realtime.FeedMessage.prototype.hasHeader = function() {
- return jspb.Message.getField(this, 1) != null;
-};
-
-
-/**
- * repeated FeedEntity entity = 2;
- * @return {!Array}
- */
-proto.transit_realtime.FeedMessage.prototype.getEntityList = function() {
- return /** @type{!Array} */ (
- jspb.Message.getRepeatedWrapperField(this, proto.transit_realtime.FeedEntity, 2));
-};
-
-
-/**
- * @param {!Array} value
- * @return {!proto.transit_realtime.FeedMessage} returns this
-*/
-proto.transit_realtime.FeedMessage.prototype.setEntityList = function(value) {
- return jspb.Message.setRepeatedWrapperField(this, 2, value);
-};
-
-
-/**
- * @param {!proto.transit_realtime.FeedEntity=} opt_value
- * @param {number=} opt_index
- * @return {!proto.transit_realtime.FeedEntity}
- */
-proto.transit_realtime.FeedMessage.prototype.addEntity = function(opt_value, opt_index) {
- return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.transit_realtime.FeedEntity, opt_index);
-};
-
-
-/**
- * Clears the list making it empty but non-null.
- * @return {!proto.transit_realtime.FeedMessage} returns this
- */
-proto.transit_realtime.FeedMessage.prototype.clearEntityList = function() {
- return this.setEntityList([]);
-};
-
-
-
-
-
-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_, 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.transit_realtime.FeedHeader.prototype.toObject = function(opt_includeInstance) {
- return proto.transit_realtime.FeedHeader.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.transit_realtime.FeedHeader} msg The msg instance to transform.
- * @return {!Object}
- * @suppress {unusedLocalVariables} f is only used for nested messages
- */
-proto.transit_realtime.FeedHeader.toObject = function(includeInstance, msg) {
- var f, obj = {
- gtfsRealtimeVersion: (f = jspb.Message.getField(msg, 1)) == null ? undefined : f,
- incrementality: jspb.Message.getFieldWithDefault(msg, 2, 0),
- timestamp: (f = jspb.Message.getField(msg, 3)) == null ? undefined : f
- };
-
- jspb.Message.toObjectExtension(/** @type {!jspb.Message} */ (msg), obj,
- proto.transit_realtime.FeedHeader.extensions, proto.transit_realtime.FeedHeader.prototype.getExtension,
- 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.transit_realtime.FeedHeader}
- */
-proto.transit_realtime.FeedHeader.deserializeBinary = function(bytes) {
- var reader = new jspb.BinaryReader(bytes);
- var msg = new proto.transit_realtime.FeedHeader;
- return proto.transit_realtime.FeedHeader.deserializeBinaryFromReader(msg, reader);
-};
-
-
-/**
- * Deserializes binary data (in protobuf wire format) from the
- * given reader into the given message object.
- * @param {!proto.transit_realtime.FeedHeader} msg The message object to deserialize into.
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
- * @return {!proto.transit_realtime.FeedHeader}
- */
-proto.transit_realtime.FeedHeader.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.setGtfsRealtimeVersion(value);
- break;
- case 2:
- var value = /** @type {!proto.transit_realtime.FeedHeader.Incrementality} */ (reader.readEnum());
- msg.setIncrementality(value);
- break;
- case 3:
- var value = /** @type {number} */ (reader.readUint64());
- msg.setTimestamp(value);
- break;
- default:
- jspb.Message.readBinaryExtension(msg, reader,
- proto.transit_realtime.FeedHeader.extensionsBinary,
- proto.transit_realtime.FeedHeader.prototype.getExtension,
- proto.transit_realtime.FeedHeader.prototype.setExtension);
- break;
- }
- }
- return msg;
-};
-
-
-/**
- * Serializes the message to binary data (in protobuf wire format).
- * @return {!Uint8Array}
- */
-proto.transit_realtime.FeedHeader.prototype.serializeBinary = function() {
- var writer = new jspb.BinaryWriter();
- proto.transit_realtime.FeedHeader.serializeBinaryToWriter(this, writer);
- return writer.getResultBuffer();
-};
-
-
-/**
- * Serializes the given message to binary data (in protobuf wire
- * format), writing to the given BinaryWriter.
- * @param {!proto.transit_realtime.FeedHeader} message
- * @param {!jspb.BinaryWriter} writer
- * @suppress {unusedLocalVariables} f is only used for nested messages
- */
-proto.transit_realtime.FeedHeader.serializeBinaryToWriter = function(message, writer) {
- var f = undefined;
- f = /** @type {string} */ (jspb.Message.getField(message, 1));
- if (f != null) {
- writer.writeString(
- 1,
- f
- );
- }
- f = /** @type {!proto.transit_realtime.FeedHeader.Incrementality} */ (jspb.Message.getField(message, 2));
- if (f != null) {
- writer.writeEnum(
- 2,
- f
- );
- }
- f = /** @type {number} */ (jspb.Message.getField(message, 3));
- if (f != null) {
- writer.writeUint64(
- 3,
- f
- );
- }
- jspb.Message.serializeBinaryExtensions(message, writer,
- proto.transit_realtime.FeedHeader.extensionsBinary, proto.transit_realtime.FeedHeader.prototype.getExtension);
-};
-
-
-/**
- * @enum {number}
- */
-proto.transit_realtime.FeedHeader.Incrementality = {
- FULL_DATASET: 0,
- DIFFERENTIAL: 1
-};
-
-/**
- * required string gtfs_realtime_version = 1;
- * @return {string}
- */
-proto.transit_realtime.FeedHeader.prototype.getGtfsRealtimeVersion = function() {
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
-};
-
-
-/**
- * @param {string} value
- * @return {!proto.transit_realtime.FeedHeader} returns this
- */
-proto.transit_realtime.FeedHeader.prototype.setGtfsRealtimeVersion = function(value) {
- return jspb.Message.setField(this, 1, value);
-};
-
-
-/**
- * Clears the field making it undefined.
- * @return {!proto.transit_realtime.FeedHeader} returns this
- */
-proto.transit_realtime.FeedHeader.prototype.clearGtfsRealtimeVersion = function() {
- return jspb.Message.setField(this, 1, undefined);
-};
-
-
-/**
- * Returns whether this field is set.
- * @return {boolean}
- */
-proto.transit_realtime.FeedHeader.prototype.hasGtfsRealtimeVersion = function() {
- return jspb.Message.getField(this, 1) != null;
-};
-
-
-/**
- * optional Incrementality incrementality = 2;
- * @return {!proto.transit_realtime.FeedHeader.Incrementality}
- */
-proto.transit_realtime.FeedHeader.prototype.getIncrementality = function() {
- return /** @type {!proto.transit_realtime.FeedHeader.Incrementality} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
-};
-
-
-/**
- * @param {!proto.transit_realtime.FeedHeader.Incrementality} value
- * @return {!proto.transit_realtime.FeedHeader} returns this
- */
-proto.transit_realtime.FeedHeader.prototype.setIncrementality = function(value) {
- return jspb.Message.setField(this, 2, value);
-};
-
-
-/**
- * Clears the field making it undefined.
- * @return {!proto.transit_realtime.FeedHeader} returns this
- */
-proto.transit_realtime.FeedHeader.prototype.clearIncrementality = function() {
- return jspb.Message.setField(this, 2, undefined);
-};
-
-
-/**
- * Returns whether this field is set.
- * @return {boolean}
- */
-proto.transit_realtime.FeedHeader.prototype.hasIncrementality = function() {
- return jspb.Message.getField(this, 2) != null;
-};
-
-
-/**
- * optional uint64 timestamp = 3;
- * @return {number}
- */
-proto.transit_realtime.FeedHeader.prototype.getTimestamp = function() {
- return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
-};
-
-
-/**
- * @param {number} value
- * @return {!proto.transit_realtime.FeedHeader} returns this
- */
-proto.transit_realtime.FeedHeader.prototype.setTimestamp = function(value) {
- return jspb.Message.setField(this, 3, value);
-};
-
-
-/**
- * Clears the field making it undefined.
- * @return {!proto.transit_realtime.FeedHeader} returns this
- */
-proto.transit_realtime.FeedHeader.prototype.clearTimestamp = function() {
- return jspb.Message.setField(this, 3, undefined);
-};
-
-
-/**
- * Returns whether this field is set.
- * @return {boolean}
- */
-proto.transit_realtime.FeedHeader.prototype.hasTimestamp = function() {
- return jspb.Message.getField(this, 3) != 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_, 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.transit_realtime.FeedEntity.prototype.toObject = function(opt_includeInstance) {
- return proto.transit_realtime.FeedEntity.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.transit_realtime.FeedEntity} msg The msg instance to transform.
- * @return {!Object}
- * @suppress {unusedLocalVariables} f is only used for nested messages
- */
-proto.transit_realtime.FeedEntity.toObject = function(includeInstance, msg) {
- var f, obj = {
- id: (f = jspb.Message.getField(msg, 1)) == null ? undefined : f,
- isDeleted: jspb.Message.getBooleanFieldWithDefault(msg, 2, false),
- tripUpdate: (f = msg.getTripUpdate()) && proto.transit_realtime.TripUpdate.toObject(includeInstance, f),
- vehicle: (f = msg.getVehicle()) && proto.transit_realtime.VehiclePosition.toObject(includeInstance, f),
- alert: (f = msg.getAlert()) && proto.transit_realtime.Alert.toObject(includeInstance, f),
- shape: (f = msg.getShape()) && proto.transit_realtime.Shape.toObject(includeInstance, f),
- stop: (f = msg.getStop()) && proto.transit_realtime.Stop.toObject(includeInstance, f),
- tripModifications: (f = msg.getTripModifications()) && proto.transit_realtime.TripModifications.toObject(includeInstance, f)
- };
-
- jspb.Message.toObjectExtension(/** @type {!jspb.Message} */ (msg), obj,
- proto.transit_realtime.FeedEntity.extensions, proto.transit_realtime.FeedEntity.prototype.getExtension,
- 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.transit_realtime.FeedEntity}
- */
-proto.transit_realtime.FeedEntity.deserializeBinary = function(bytes) {
- var reader = new jspb.BinaryReader(bytes);
- var msg = new proto.transit_realtime.FeedEntity;
- return proto.transit_realtime.FeedEntity.deserializeBinaryFromReader(msg, reader);
-};
-
-
-/**
- * Deserializes binary data (in protobuf wire format) from the
- * given reader into the given message object.
- * @param {!proto.transit_realtime.FeedEntity} msg The message object to deserialize into.
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
- * @return {!proto.transit_realtime.FeedEntity}
- */
-proto.transit_realtime.FeedEntity.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 = /** @type {boolean} */ (reader.readBool());
- msg.setIsDeleted(value);
- break;
- case 3:
- var value = new proto.transit_realtime.TripUpdate;
- reader.readMessage(value,proto.transit_realtime.TripUpdate.deserializeBinaryFromReader);
- msg.setTripUpdate(value);
- break;
- case 4:
- var value = new proto.transit_realtime.VehiclePosition;
- reader.readMessage(value,proto.transit_realtime.VehiclePosition.deserializeBinaryFromReader);
- msg.setVehicle(value);
- break;
- case 5:
- var value = new proto.transit_realtime.Alert;
- reader.readMessage(value,proto.transit_realtime.Alert.deserializeBinaryFromReader);
- msg.setAlert(value);
- break;
- case 6:
- var value = new proto.transit_realtime.Shape;
- reader.readMessage(value,proto.transit_realtime.Shape.deserializeBinaryFromReader);
- msg.setShape(value);
- break;
- case 7:
- var value = new proto.transit_realtime.Stop;
- reader.readMessage(value,proto.transit_realtime.Stop.deserializeBinaryFromReader);
- msg.setStop(value);
- break;
- case 8:
- var value = new proto.transit_realtime.TripModifications;
- reader.readMessage(value,proto.transit_realtime.TripModifications.deserializeBinaryFromReader);
- msg.setTripModifications(value);
- break;
- default:
- jspb.Message.readBinaryExtension(msg, reader,
- proto.transit_realtime.FeedEntity.extensionsBinary,
- proto.transit_realtime.FeedEntity.prototype.getExtension,
- proto.transit_realtime.FeedEntity.prototype.setExtension);
- break;
- }
- }
- return msg;
-};
-
-
-/**
- * Serializes the message to binary data (in protobuf wire format).
- * @return {!Uint8Array}
- */
-proto.transit_realtime.FeedEntity.prototype.serializeBinary = function() {
- var writer = new jspb.BinaryWriter();
- proto.transit_realtime.FeedEntity.serializeBinaryToWriter(this, writer);
- return writer.getResultBuffer();
-};
-
-
-/**
- * Serializes the given message to binary data (in protobuf wire
- * format), writing to the given BinaryWriter.
- * @param {!proto.transit_realtime.FeedEntity} message
- * @param {!jspb.BinaryWriter} writer
- * @suppress {unusedLocalVariables} f is only used for nested messages
- */
-proto.transit_realtime.FeedEntity.serializeBinaryToWriter = function(message, writer) {
- var f = undefined;
- f = /** @type {string} */ (jspb.Message.getField(message, 1));
- if (f != null) {
- writer.writeString(
- 1,
- f
- );
- }
- f = /** @type {boolean} */ (jspb.Message.getField(message, 2));
- if (f != null) {
- writer.writeBool(
- 2,
- f
- );
- }
- f = message.getTripUpdate();
- if (f != null) {
- writer.writeMessage(
- 3,
- f,
- proto.transit_realtime.TripUpdate.serializeBinaryToWriter
- );
- }
- f = message.getVehicle();
- if (f != null) {
- writer.writeMessage(
- 4,
- f,
- proto.transit_realtime.VehiclePosition.serializeBinaryToWriter
- );
- }
- f = message.getAlert();
- if (f != null) {
- writer.writeMessage(
- 5,
- f,
- proto.transit_realtime.Alert.serializeBinaryToWriter
- );
- }
- f = message.getShape();
- if (f != null) {
- writer.writeMessage(
- 6,
- f,
- proto.transit_realtime.Shape.serializeBinaryToWriter
- );
- }
- f = message.getStop();
- if (f != null) {
- writer.writeMessage(
- 7,
- f,
- proto.transit_realtime.Stop.serializeBinaryToWriter
- );
- }
- f = message.getTripModifications();
- if (f != null) {
- writer.writeMessage(
- 8,
- f,
- proto.transit_realtime.TripModifications.serializeBinaryToWriter
- );
- }
- jspb.Message.serializeBinaryExtensions(message, writer,
- proto.transit_realtime.FeedEntity.extensionsBinary, proto.transit_realtime.FeedEntity.prototype.getExtension);
-};
-
-
-/**
- * required string id = 1;
- * @return {string}
- */
-proto.transit_realtime.FeedEntity.prototype.getId = function() {
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
-};
-
-
-/**
- * @param {string} value
- * @return {!proto.transit_realtime.FeedEntity} returns this
- */
-proto.transit_realtime.FeedEntity.prototype.setId = function(value) {
- return jspb.Message.setField(this, 1, value);
-};
-
-
-/**
- * Clears the field making it undefined.
- * @return {!proto.transit_realtime.FeedEntity} returns this
- */
-proto.transit_realtime.FeedEntity.prototype.clearId = function() {
- return jspb.Message.setField(this, 1, undefined);
-};
-
-
-/**
- * Returns whether this field is set.
- * @return {boolean}
- */
-proto.transit_realtime.FeedEntity.prototype.hasId = function() {
- return jspb.Message.getField(this, 1) != null;
-};
-
-
-/**
- * optional bool is_deleted = 2;
- * @return {boolean}
- */
-proto.transit_realtime.FeedEntity.prototype.getIsDeleted = function() {
- return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 2, false));
-};
-
-
-/**
- * @param {boolean} value
- * @return {!proto.transit_realtime.FeedEntity} returns this
- */
-proto.transit_realtime.FeedEntity.prototype.setIsDeleted = function(value) {
- return jspb.Message.setField(this, 2, value);
-};
-
-
-/**
- * Clears the field making it undefined.
- * @return {!proto.transit_realtime.FeedEntity} returns this
- */
-proto.transit_realtime.FeedEntity.prototype.clearIsDeleted = function() {
- return jspb.Message.setField(this, 2, undefined);
-};
-
-
-/**
- * Returns whether this field is set.
- * @return {boolean}
- */
-proto.transit_realtime.FeedEntity.prototype.hasIsDeleted = function() {
- return jspb.Message.getField(this, 2) != null;
-};
-
-
-/**
- * optional TripUpdate trip_update = 3;
- * @return {?proto.transit_realtime.TripUpdate}
- */
-proto.transit_realtime.FeedEntity.prototype.getTripUpdate = function() {
- return /** @type{?proto.transit_realtime.TripUpdate} */ (
- jspb.Message.getWrapperField(this, proto.transit_realtime.TripUpdate, 3));
-};
-
-
-/**
- * @param {?proto.transit_realtime.TripUpdate|undefined} value
- * @return {!proto.transit_realtime.FeedEntity} returns this
-*/
-proto.transit_realtime.FeedEntity.prototype.setTripUpdate = function(value) {
- return jspb.Message.setWrapperField(this, 3, value);
-};
-
-
-/**
- * Clears the message field making it undefined.
- * @return {!proto.transit_realtime.FeedEntity} returns this
- */
-proto.transit_realtime.FeedEntity.prototype.clearTripUpdate = function() {
- return this.setTripUpdate(undefined);
-};
-
-
-/**
- * Returns whether this field is set.
- * @return {boolean}
- */
-proto.transit_realtime.FeedEntity.prototype.hasTripUpdate = function() {
- return jspb.Message.getField(this, 3) != null;
-};
-
-
-/**
- * optional VehiclePosition vehicle = 4;
- * @return {?proto.transit_realtime.VehiclePosition}
- */
-proto.transit_realtime.FeedEntity.prototype.getVehicle = function() {
- return /** @type{?proto.transit_realtime.VehiclePosition} */ (
- jspb.Message.getWrapperField(this, proto.transit_realtime.VehiclePosition, 4));
-};
-
-
-/**
- * @param {?proto.transit_realtime.VehiclePosition|undefined} value
- * @return {!proto.transit_realtime.FeedEntity} returns this
-*/
-proto.transit_realtime.FeedEntity.prototype.setVehicle = function(value) {
- return jspb.Message.setWrapperField(this, 4, value);
-};
-
-
-/**
- * Clears the message field making it undefined.
- * @return {!proto.transit_realtime.FeedEntity} returns this
- */
-proto.transit_realtime.FeedEntity.prototype.clearVehicle = function() {
- return this.setVehicle(undefined);
-};
-
-
-/**
- * Returns whether this field is set.
- * @return {boolean}
- */
-proto.transit_realtime.FeedEntity.prototype.hasVehicle = function() {
- return jspb.Message.getField(this, 4) != null;
-};
-
-
-/**
- * optional Alert alert = 5;
- * @return {?proto.transit_realtime.Alert}
- */
-proto.transit_realtime.FeedEntity.prototype.getAlert = function() {
- return /** @type{?proto.transit_realtime.Alert} */ (
- jspb.Message.getWrapperField(this, proto.transit_realtime.Alert, 5));
-};
-
-
-/**
- * @param {?proto.transit_realtime.Alert|undefined} value
- * @return {!proto.transit_realtime.FeedEntity} returns this
-*/
-proto.transit_realtime.FeedEntity.prototype.setAlert = function(value) {
- return jspb.Message.setWrapperField(this, 5, value);
-};
-
-
-/**
- * Clears the message field making it undefined.
- * @return {!proto.transit_realtime.FeedEntity} returns this
- */
-proto.transit_realtime.FeedEntity.prototype.clearAlert = function() {
- return this.setAlert(undefined);
-};
-
-
-/**
- * Returns whether this field is set.
- * @return {boolean}
- */
-proto.transit_realtime.FeedEntity.prototype.hasAlert = function() {
- return jspb.Message.getField(this, 5) != null;
-};
-
-
-/**
- * optional Shape shape = 6;
- * @return {?proto.transit_realtime.Shape}
- */
-proto.transit_realtime.FeedEntity.prototype.getShape = function() {
- return /** @type{?proto.transit_realtime.Shape} */ (
- jspb.Message.getWrapperField(this, proto.transit_realtime.Shape, 6));
-};
-
-
-/**
- * @param {?proto.transit_realtime.Shape|undefined} value
- * @return {!proto.transit_realtime.FeedEntity} returns this
-*/
-proto.transit_realtime.FeedEntity.prototype.setShape = function(value) {
- return jspb.Message.setWrapperField(this, 6, value);
-};
-
-
-/**
- * Clears the message field making it undefined.
- * @return {!proto.transit_realtime.FeedEntity} returns this
- */
-proto.transit_realtime.FeedEntity.prototype.clearShape = function() {
- return this.setShape(undefined);
-};
-
-
-/**
- * Returns whether this field is set.
- * @return {boolean}
- */
-proto.transit_realtime.FeedEntity.prototype.hasShape = function() {
- return jspb.Message.getField(this, 6) != null;
-};
-
-
-/**
- * optional Stop stop = 7;
- * @return {?proto.transit_realtime.Stop}
- */
-proto.transit_realtime.FeedEntity.prototype.getStop = function() {
- return /** @type{?proto.transit_realtime.Stop} */ (
- jspb.Message.getWrapperField(this, proto.transit_realtime.Stop, 7));
-};
-
-
-/**
- * @param {?proto.transit_realtime.Stop|undefined} value
- * @return {!proto.transit_realtime.FeedEntity} returns this
-*/
-proto.transit_realtime.FeedEntity.prototype.setStop = function(value) {
- return jspb.Message.setWrapperField(this, 7, value);
-};
-
-
-/**
- * Clears the message field making it undefined.
- * @return {!proto.transit_realtime.FeedEntity} returns this
- */
-proto.transit_realtime.FeedEntity.prototype.clearStop = function() {
- return this.setStop(undefined);
-};
-
-
-/**
- * Returns whether this field is set.
- * @return {boolean}
- */
-proto.transit_realtime.FeedEntity.prototype.hasStop = function() {
- return jspb.Message.getField(this, 7) != null;
-};
-
-
-/**
- * optional TripModifications trip_modifications = 8;
- * @return {?proto.transit_realtime.TripModifications}
- */
-proto.transit_realtime.FeedEntity.prototype.getTripModifications = function() {
- return /** @type{?proto.transit_realtime.TripModifications} */ (
- jspb.Message.getWrapperField(this, proto.transit_realtime.TripModifications, 8));
-};
-
-
-/**
- * @param {?proto.transit_realtime.TripModifications|undefined} value
- * @return {!proto.transit_realtime.FeedEntity} returns this
-*/
-proto.transit_realtime.FeedEntity.prototype.setTripModifications = function(value) {
- return jspb.Message.setWrapperField(this, 8, value);
-};
-
-
-/**
- * Clears the message field making it undefined.
- * @return {!proto.transit_realtime.FeedEntity} returns this
- */
-proto.transit_realtime.FeedEntity.prototype.clearTripModifications = function() {
- return this.setTripModifications(undefined);
-};
-
-
-/**
- * Returns whether this field is set.
- * @return {boolean}
- */
-proto.transit_realtime.FeedEntity.prototype.hasTripModifications = function() {
- return jspb.Message.getField(this, 8) != null;
-};
-
-
-
-/**
- * List of repeated fields within this message type.
- * @private {!Array}
- * @const
- */
-proto.transit_realtime.TripUpdate.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_, 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.transit_realtime.TripUpdate.prototype.toObject = function(opt_includeInstance) {
- return proto.transit_realtime.TripUpdate.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.transit_realtime.TripUpdate} msg The msg instance to transform.
- * @return {!Object}
- * @suppress {unusedLocalVariables} f is only used for nested messages
- */
-proto.transit_realtime.TripUpdate.toObject = function(includeInstance, msg) {
- var f, obj = {
- trip: (f = msg.getTrip()) && proto.transit_realtime.TripDescriptor.toObject(includeInstance, f),
- vehicle: (f = msg.getVehicle()) && proto.transit_realtime.VehicleDescriptor.toObject(includeInstance, f),
- stopTimeUpdateList: jspb.Message.toObjectList(msg.getStopTimeUpdateList(),
- proto.transit_realtime.TripUpdate.StopTimeUpdate.toObject, includeInstance),
- timestamp: (f = jspb.Message.getField(msg, 4)) == null ? undefined : f,
- delay: (f = jspb.Message.getField(msg, 5)) == null ? undefined : f,
- tripProperties: (f = msg.getTripProperties()) && proto.transit_realtime.TripUpdate.TripProperties.toObject(includeInstance, f)
- };
-
- jspb.Message.toObjectExtension(/** @type {!jspb.Message} */ (msg), obj,
- proto.transit_realtime.TripUpdate.extensions, proto.transit_realtime.TripUpdate.prototype.getExtension,
- 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.transit_realtime.TripUpdate}
- */
-proto.transit_realtime.TripUpdate.deserializeBinary = function(bytes) {
- var reader = new jspb.BinaryReader(bytes);
- var msg = new proto.transit_realtime.TripUpdate;
- return proto.transit_realtime.TripUpdate.deserializeBinaryFromReader(msg, reader);
-};
-
-
-/**
- * Deserializes binary data (in protobuf wire format) from the
- * given reader into the given message object.
- * @param {!proto.transit_realtime.TripUpdate} msg The message object to deserialize into.
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
- * @return {!proto.transit_realtime.TripUpdate}
- */
-proto.transit_realtime.TripUpdate.deserializeBinaryFromReader = function(msg, reader) {
- while (reader.nextField()) {
- if (reader.isEndGroup()) {
- break;
- }
- var field = reader.getFieldNumber();
- switch (field) {
- case 1:
- var value = new proto.transit_realtime.TripDescriptor;
- reader.readMessage(value,proto.transit_realtime.TripDescriptor.deserializeBinaryFromReader);
- msg.setTrip(value);
- break;
- case 3:
- var value = new proto.transit_realtime.VehicleDescriptor;
- reader.readMessage(value,proto.transit_realtime.VehicleDescriptor.deserializeBinaryFromReader);
- msg.setVehicle(value);
- break;
- case 2:
- var value = new proto.transit_realtime.TripUpdate.StopTimeUpdate;
- reader.readMessage(value,proto.transit_realtime.TripUpdate.StopTimeUpdate.deserializeBinaryFromReader);
- msg.addStopTimeUpdate(value);
- break;
- case 4:
- var value = /** @type {number} */ (reader.readUint64());
- msg.setTimestamp(value);
- break;
- case 5:
- var value = /** @type {number} */ (reader.readInt32());
- msg.setDelay(value);
- break;
- case 6:
- var value = new proto.transit_realtime.TripUpdate.TripProperties;
- reader.readMessage(value,proto.transit_realtime.TripUpdate.TripProperties.deserializeBinaryFromReader);
- msg.setTripProperties(value);
- break;
- default:
- jspb.Message.readBinaryExtension(msg, reader,
- proto.transit_realtime.TripUpdate.extensionsBinary,
- proto.transit_realtime.TripUpdate.prototype.getExtension,
- proto.transit_realtime.TripUpdate.prototype.setExtension);
- break;
- }
- }
- return msg;
-};
-
-
-/**
- * Serializes the message to binary data (in protobuf wire format).
- * @return {!Uint8Array}
- */
-proto.transit_realtime.TripUpdate.prototype.serializeBinary = function() {
- var writer = new jspb.BinaryWriter();
- proto.transit_realtime.TripUpdate.serializeBinaryToWriter(this, writer);
- return writer.getResultBuffer();
-};
-
-
-/**
- * Serializes the given message to binary data (in protobuf wire
- * format), writing to the given BinaryWriter.
- * @param {!proto.transit_realtime.TripUpdate} message
- * @param {!jspb.BinaryWriter} writer
- * @suppress {unusedLocalVariables} f is only used for nested messages
- */
-proto.transit_realtime.TripUpdate.serializeBinaryToWriter = function(message, writer) {
- var f = undefined;
- f = message.getTrip();
- if (f != null) {
- writer.writeMessage(
- 1,
- f,
- proto.transit_realtime.TripDescriptor.serializeBinaryToWriter
- );
- }
- f = message.getVehicle();
- if (f != null) {
- writer.writeMessage(
- 3,
- f,
- proto.transit_realtime.VehicleDescriptor.serializeBinaryToWriter
- );
- }
- f = message.getStopTimeUpdateList();
- if (f.length > 0) {
- writer.writeRepeatedMessage(
- 2,
- f,
- proto.transit_realtime.TripUpdate.StopTimeUpdate.serializeBinaryToWriter
- );
- }
- f = /** @type {number} */ (jspb.Message.getField(message, 4));
- if (f != null) {
- writer.writeUint64(
- 4,
- f
- );
- }
- f = /** @type {number} */ (jspb.Message.getField(message, 5));
- if (f != null) {
- writer.writeInt32(
- 5,
- f
- );
- }
- f = message.getTripProperties();
- if (f != null) {
- writer.writeMessage(
- 6,
- f,
- proto.transit_realtime.TripUpdate.TripProperties.serializeBinaryToWriter
- );
- }
- jspb.Message.serializeBinaryExtensions(message, writer,
- proto.transit_realtime.TripUpdate.extensionsBinary, proto.transit_realtime.TripUpdate.prototype.getExtension);
-};
-
-
-
-
-
-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_, 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.transit_realtime.TripUpdate.StopTimeEvent.prototype.toObject = function(opt_includeInstance) {
- return proto.transit_realtime.TripUpdate.StopTimeEvent.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.transit_realtime.TripUpdate.StopTimeEvent} msg The msg instance to transform.
- * @return {!Object}
- * @suppress {unusedLocalVariables} f is only used for nested messages
- */
-proto.transit_realtime.TripUpdate.StopTimeEvent.toObject = function(includeInstance, msg) {
- var f, obj = {
- delay: (f = jspb.Message.getField(msg, 1)) == null ? undefined : f,
- time: (f = jspb.Message.getField(msg, 2)) == null ? undefined : f,
- uncertainty: (f = jspb.Message.getField(msg, 3)) == null ? undefined : f
- };
-
- jspb.Message.toObjectExtension(/** @type {!jspb.Message} */ (msg), obj,
- proto.transit_realtime.TripUpdate.StopTimeEvent.extensions, proto.transit_realtime.TripUpdate.StopTimeEvent.prototype.getExtension,
- 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.transit_realtime.TripUpdate.StopTimeEvent}
- */
-proto.transit_realtime.TripUpdate.StopTimeEvent.deserializeBinary = function(bytes) {
- var reader = new jspb.BinaryReader(bytes);
- var msg = new proto.transit_realtime.TripUpdate.StopTimeEvent;
- return proto.transit_realtime.TripUpdate.StopTimeEvent.deserializeBinaryFromReader(msg, reader);
-};
-
-
-/**
- * Deserializes binary data (in protobuf wire format) from the
- * given reader into the given message object.
- * @param {!proto.transit_realtime.TripUpdate.StopTimeEvent} msg The message object to deserialize into.
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
- * @return {!proto.transit_realtime.TripUpdate.StopTimeEvent}
- */
-proto.transit_realtime.TripUpdate.StopTimeEvent.deserializeBinaryFromReader = function(msg, reader) {
- while (reader.nextField()) {
- if (reader.isEndGroup()) {
- break;
- }
- var field = reader.getFieldNumber();
- switch (field) {
- case 1:
- var value = /** @type {number} */ (reader.readInt32());
- msg.setDelay(value);
- break;
- case 2:
- var value = /** @type {number} */ (reader.readInt64());
- msg.setTime(value);
- break;
- case 3:
- var value = /** @type {number} */ (reader.readInt32());
- msg.setUncertainty(value);
- break;
- default:
- jspb.Message.readBinaryExtension(msg, reader,
- proto.transit_realtime.TripUpdate.StopTimeEvent.extensionsBinary,
- proto.transit_realtime.TripUpdate.StopTimeEvent.prototype.getExtension,
- proto.transit_realtime.TripUpdate.StopTimeEvent.prototype.setExtension);
- break;
- }
- }
- return msg;
-};
-
-
-/**
- * Serializes the message to binary data (in protobuf wire format).
- * @return {!Uint8Array}
- */
-proto.transit_realtime.TripUpdate.StopTimeEvent.prototype.serializeBinary = function() {
- var writer = new jspb.BinaryWriter();
- proto.transit_realtime.TripUpdate.StopTimeEvent.serializeBinaryToWriter(this, writer);
- return writer.getResultBuffer();
-};
-
-
-/**
- * Serializes the given message to binary data (in protobuf wire
- * format), writing to the given BinaryWriter.
- * @param {!proto.transit_realtime.TripUpdate.StopTimeEvent} message
- * @param {!jspb.BinaryWriter} writer
- * @suppress {unusedLocalVariables} f is only used for nested messages
- */
-proto.transit_realtime.TripUpdate.StopTimeEvent.serializeBinaryToWriter = function(message, writer) {
- var f = undefined;
- f = /** @type {number} */ (jspb.Message.getField(message, 1));
- if (f != null) {
- writer.writeInt32(
- 1,
- f
- );
- }
- f = /** @type {number} */ (jspb.Message.getField(message, 2));
- if (f != null) {
- writer.writeInt64(
- 2,
- f
- );
- }
- f = /** @type {number} */ (jspb.Message.getField(message, 3));
- if (f != null) {
- writer.writeInt32(
- 3,
- f
- );
- }
- jspb.Message.serializeBinaryExtensions(message, writer,
- proto.transit_realtime.TripUpdate.StopTimeEvent.extensionsBinary, proto.transit_realtime.TripUpdate.StopTimeEvent.prototype.getExtension);
-};
-
-
-/**
- * optional int32 delay = 1;
- * @return {number}
- */
-proto.transit_realtime.TripUpdate.StopTimeEvent.prototype.getDelay = function() {
- return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
-};
-
-
-/**
- * @param {number} value
- * @return {!proto.transit_realtime.TripUpdate.StopTimeEvent} returns this
- */
-proto.transit_realtime.TripUpdate.StopTimeEvent.prototype.setDelay = function(value) {
- return jspb.Message.setField(this, 1, value);
-};
-
-
-/**
- * Clears the field making it undefined.
- * @return {!proto.transit_realtime.TripUpdate.StopTimeEvent} returns this
- */
-proto.transit_realtime.TripUpdate.StopTimeEvent.prototype.clearDelay = function() {
- return jspb.Message.setField(this, 1, undefined);
-};
-
-
-/**
- * Returns whether this field is set.
- * @return {boolean}
- */
-proto.transit_realtime.TripUpdate.StopTimeEvent.prototype.hasDelay = function() {
- return jspb.Message.getField(this, 1) != null;
-};
-
-
-/**
- * optional int64 time = 2;
- * @return {number}
- */
-proto.transit_realtime.TripUpdate.StopTimeEvent.prototype.getTime = function() {
- return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
-};
-
-
-/**
- * @param {number} value
- * @return {!proto.transit_realtime.TripUpdate.StopTimeEvent} returns this
- */
-proto.transit_realtime.TripUpdate.StopTimeEvent.prototype.setTime = function(value) {
- return jspb.Message.setField(this, 2, value);
-};
-
-
-/**
- * Clears the field making it undefined.
- * @return {!proto.transit_realtime.TripUpdate.StopTimeEvent} returns this
- */
-proto.transit_realtime.TripUpdate.StopTimeEvent.prototype.clearTime = function() {
- return jspb.Message.setField(this, 2, undefined);
-};
-
-
-/**
- * Returns whether this field is set.
- * @return {boolean}
- */
-proto.transit_realtime.TripUpdate.StopTimeEvent.prototype.hasTime = function() {
- return jspb.Message.getField(this, 2) != null;
-};
-
-
-/**
- * optional int32 uncertainty = 3;
- * @return {number}
- */
-proto.transit_realtime.TripUpdate.StopTimeEvent.prototype.getUncertainty = function() {
- return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
-};
-
-
-/**
- * @param {number} value
- * @return {!proto.transit_realtime.TripUpdate.StopTimeEvent} returns this
- */
-proto.transit_realtime.TripUpdate.StopTimeEvent.prototype.setUncertainty = function(value) {
- return jspb.Message.setField(this, 3, value);
-};
-
-
-/**
- * Clears the field making it undefined.
- * @return {!proto.transit_realtime.TripUpdate.StopTimeEvent} returns this
- */
-proto.transit_realtime.TripUpdate.StopTimeEvent.prototype.clearUncertainty = function() {
- return jspb.Message.setField(this, 3, undefined);
-};
-
-
-/**
- * Returns whether this field is set.
- * @return {boolean}
- */
-proto.transit_realtime.TripUpdate.StopTimeEvent.prototype.hasUncertainty = function() {
- return jspb.Message.getField(this, 3) != 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_, 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.transit_realtime.TripUpdate.StopTimeUpdate.prototype.toObject = function(opt_includeInstance) {
- return proto.transit_realtime.TripUpdate.StopTimeUpdate.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.transit_realtime.TripUpdate.StopTimeUpdate} msg The msg instance to transform.
- * @return {!Object}
- * @suppress {unusedLocalVariables} f is only used for nested messages
- */
-proto.transit_realtime.TripUpdate.StopTimeUpdate.toObject = function(includeInstance, msg) {
- var f, obj = {
- stopSequence: (f = jspb.Message.getField(msg, 1)) == null ? undefined : f,
- stopId: (f = jspb.Message.getField(msg, 4)) == null ? undefined : f,
- arrival: (f = msg.getArrival()) && proto.transit_realtime.TripUpdate.StopTimeEvent.toObject(includeInstance, f),
- departure: (f = msg.getDeparture()) && proto.transit_realtime.TripUpdate.StopTimeEvent.toObject(includeInstance, f),
- departureOccupancyStatus: (f = jspb.Message.getField(msg, 7)) == null ? undefined : f,
- scheduleRelationship: jspb.Message.getFieldWithDefault(msg, 5, 0),
- stopTimeProperties: (f = msg.getStopTimeProperties()) && proto.transit_realtime.TripUpdate.StopTimeUpdate.StopTimeProperties.toObject(includeInstance, f)
- };
-
- jspb.Message.toObjectExtension(/** @type {!jspb.Message} */ (msg), obj,
- proto.transit_realtime.TripUpdate.StopTimeUpdate.extensions, proto.transit_realtime.TripUpdate.StopTimeUpdate.prototype.getExtension,
- 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.transit_realtime.TripUpdate.StopTimeUpdate}
- */
-proto.transit_realtime.TripUpdate.StopTimeUpdate.deserializeBinary = function(bytes) {
- var reader = new jspb.BinaryReader(bytes);
- var msg = new proto.transit_realtime.TripUpdate.StopTimeUpdate;
- return proto.transit_realtime.TripUpdate.StopTimeUpdate.deserializeBinaryFromReader(msg, reader);
-};
-
-
-/**
- * Deserializes binary data (in protobuf wire format) from the
- * given reader into the given message object.
- * @param {!proto.transit_realtime.TripUpdate.StopTimeUpdate} msg The message object to deserialize into.
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
- * @return {!proto.transit_realtime.TripUpdate.StopTimeUpdate}
- */
-proto.transit_realtime.TripUpdate.StopTimeUpdate.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.setStopSequence(value);
- break;
- case 4:
- var value = /** @type {string} */ (reader.readString());
- msg.setStopId(value);
- break;
- case 2:
- var value = new proto.transit_realtime.TripUpdate.StopTimeEvent;
- reader.readMessage(value,proto.transit_realtime.TripUpdate.StopTimeEvent.deserializeBinaryFromReader);
- msg.setArrival(value);
- break;
- case 3:
- var value = new proto.transit_realtime.TripUpdate.StopTimeEvent;
- reader.readMessage(value,proto.transit_realtime.TripUpdate.StopTimeEvent.deserializeBinaryFromReader);
- msg.setDeparture(value);
- break;
- case 7:
- var value = /** @type {!proto.transit_realtime.VehiclePosition.OccupancyStatus} */ (reader.readEnum());
- msg.setDepartureOccupancyStatus(value);
- break;
- case 5:
- var value = /** @type {!proto.transit_realtime.TripUpdate.StopTimeUpdate.ScheduleRelationship} */ (reader.readEnum());
- msg.setScheduleRelationship(value);
- break;
- case 6:
- var value = new proto.transit_realtime.TripUpdate.StopTimeUpdate.StopTimeProperties;
- reader.readMessage(value,proto.transit_realtime.TripUpdate.StopTimeUpdate.StopTimeProperties.deserializeBinaryFromReader);
- msg.setStopTimeProperties(value);
- break;
- default:
- jspb.Message.readBinaryExtension(msg, reader,
- proto.transit_realtime.TripUpdate.StopTimeUpdate.extensionsBinary,
- proto.transit_realtime.TripUpdate.StopTimeUpdate.prototype.getExtension,
- proto.transit_realtime.TripUpdate.StopTimeUpdate.prototype.setExtension);
- break;
- }
- }
- return msg;
-};
-
-
-/**
- * Serializes the message to binary data (in protobuf wire format).
- * @return {!Uint8Array}
- */
-proto.transit_realtime.TripUpdate.StopTimeUpdate.prototype.serializeBinary = function() {
- var writer = new jspb.BinaryWriter();
- proto.transit_realtime.TripUpdate.StopTimeUpdate.serializeBinaryToWriter(this, writer);
- return writer.getResultBuffer();
-};
-
-
-/**
- * Serializes the given message to binary data (in protobuf wire
- * format), writing to the given BinaryWriter.
- * @param {!proto.transit_realtime.TripUpdate.StopTimeUpdate} message
- * @param {!jspb.BinaryWriter} writer
- * @suppress {unusedLocalVariables} f is only used for nested messages
- */
-proto.transit_realtime.TripUpdate.StopTimeUpdate.serializeBinaryToWriter = function(message, writer) {
- var f = undefined;
- f = /** @type {number} */ (jspb.Message.getField(message, 1));
- if (f != null) {
- writer.writeUint32(
- 1,
- f
- );
- }
- f = /** @type {string} */ (jspb.Message.getField(message, 4));
- if (f != null) {
- writer.writeString(
- 4,
- f
- );
- }
- f = message.getArrival();
- if (f != null) {
- writer.writeMessage(
- 2,
- f,
- proto.transit_realtime.TripUpdate.StopTimeEvent.serializeBinaryToWriter
- );
- }
- f = message.getDeparture();
- if (f != null) {
- writer.writeMessage(
- 3,
- f,
- proto.transit_realtime.TripUpdate.StopTimeEvent.serializeBinaryToWriter
- );
- }
- f = /** @type {!proto.transit_realtime.VehiclePosition.OccupancyStatus} */ (jspb.Message.getField(message, 7));
- if (f != null) {
- writer.writeEnum(
- 7,
- f
- );
- }
- f = /** @type {!proto.transit_realtime.TripUpdate.StopTimeUpdate.ScheduleRelationship} */ (jspb.Message.getField(message, 5));
- if (f != null) {
- writer.writeEnum(
- 5,
- f
- );
- }
- f = message.getStopTimeProperties();
- if (f != null) {
- writer.writeMessage(
- 6,
- f,
- proto.transit_realtime.TripUpdate.StopTimeUpdate.StopTimeProperties.serializeBinaryToWriter
- );
- }
- jspb.Message.serializeBinaryExtensions(message, writer,
- proto.transit_realtime.TripUpdate.StopTimeUpdate.extensionsBinary, proto.transit_realtime.TripUpdate.StopTimeUpdate.prototype.getExtension);
-};
-
-
-/**
- * @enum {number}
- */
-proto.transit_realtime.TripUpdate.StopTimeUpdate.ScheduleRelationship = {
- SCHEDULED: 0,
- SKIPPED: 1,
- NO_DATA: 2,
- UNSCHEDULED: 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_, 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.transit_realtime.TripUpdate.StopTimeUpdate.StopTimeProperties.prototype.toObject = function(opt_includeInstance) {
- return proto.transit_realtime.TripUpdate.StopTimeUpdate.StopTimeProperties.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.transit_realtime.TripUpdate.StopTimeUpdate.StopTimeProperties} msg The msg instance to transform.
- * @return {!Object}
- * @suppress {unusedLocalVariables} f is only used for nested messages
- */
-proto.transit_realtime.TripUpdate.StopTimeUpdate.StopTimeProperties.toObject = function(includeInstance, msg) {
- var f, obj = {
- assignedStopId: (f = jspb.Message.getField(msg, 1)) == null ? undefined : f
- };
-
- jspb.Message.toObjectExtension(/** @type {!jspb.Message} */ (msg), obj,
- proto.transit_realtime.TripUpdate.StopTimeUpdate.StopTimeProperties.extensions, proto.transit_realtime.TripUpdate.StopTimeUpdate.StopTimeProperties.prototype.getExtension,
- 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.transit_realtime.TripUpdate.StopTimeUpdate.StopTimeProperties}
- */
-proto.transit_realtime.TripUpdate.StopTimeUpdate.StopTimeProperties.deserializeBinary = function(bytes) {
- var reader = new jspb.BinaryReader(bytes);
- var msg = new proto.transit_realtime.TripUpdate.StopTimeUpdate.StopTimeProperties;
- return proto.transit_realtime.TripUpdate.StopTimeUpdate.StopTimeProperties.deserializeBinaryFromReader(msg, reader);
-};
-
-
-/**
- * Deserializes binary data (in protobuf wire format) from the
- * given reader into the given message object.
- * @param {!proto.transit_realtime.TripUpdate.StopTimeUpdate.StopTimeProperties} msg The message object to deserialize into.
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
- * @return {!proto.transit_realtime.TripUpdate.StopTimeUpdate.StopTimeProperties}
- */
-proto.transit_realtime.TripUpdate.StopTimeUpdate.StopTimeProperties.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.setAssignedStopId(value);
- break;
- default:
- jspb.Message.readBinaryExtension(msg, reader,
- proto.transit_realtime.TripUpdate.StopTimeUpdate.StopTimeProperties.extensionsBinary,
- proto.transit_realtime.TripUpdate.StopTimeUpdate.StopTimeProperties.prototype.getExtension,
- proto.transit_realtime.TripUpdate.StopTimeUpdate.StopTimeProperties.prototype.setExtension);
- break;
- }
- }
- return msg;
-};
-
-
-/**
- * Serializes the message to binary data (in protobuf wire format).
- * @return {!Uint8Array}
- */
-proto.transit_realtime.TripUpdate.StopTimeUpdate.StopTimeProperties.prototype.serializeBinary = function() {
- var writer = new jspb.BinaryWriter();
- proto.transit_realtime.TripUpdate.StopTimeUpdate.StopTimeProperties.serializeBinaryToWriter(this, writer);
- return writer.getResultBuffer();
-};
-
-
-/**
- * Serializes the given message to binary data (in protobuf wire
- * format), writing to the given BinaryWriter.
- * @param {!proto.transit_realtime.TripUpdate.StopTimeUpdate.StopTimeProperties} message
- * @param {!jspb.BinaryWriter} writer
- * @suppress {unusedLocalVariables} f is only used for nested messages
- */
-proto.transit_realtime.TripUpdate.StopTimeUpdate.StopTimeProperties.serializeBinaryToWriter = function(message, writer) {
- var f = undefined;
- f = /** @type {string} */ (jspb.Message.getField(message, 1));
- if (f != null) {
- writer.writeString(
- 1,
- f
- );
- }
- jspb.Message.serializeBinaryExtensions(message, writer,
- proto.transit_realtime.TripUpdate.StopTimeUpdate.StopTimeProperties.extensionsBinary, proto.transit_realtime.TripUpdate.StopTimeUpdate.StopTimeProperties.prototype.getExtension);
-};
-
-
-/**
- * optional string assigned_stop_id = 1;
- * @return {string}
- */
-proto.transit_realtime.TripUpdate.StopTimeUpdate.StopTimeProperties.prototype.getAssignedStopId = function() {
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
-};
-
-
-/**
- * @param {string} value
- * @return {!proto.transit_realtime.TripUpdate.StopTimeUpdate.StopTimeProperties} returns this
- */
-proto.transit_realtime.TripUpdate.StopTimeUpdate.StopTimeProperties.prototype.setAssignedStopId = function(value) {
- return jspb.Message.setField(this, 1, value);
-};
-
-
-/**
- * Clears the field making it undefined.
- * @return {!proto.transit_realtime.TripUpdate.StopTimeUpdate.StopTimeProperties} returns this
- */
-proto.transit_realtime.TripUpdate.StopTimeUpdate.StopTimeProperties.prototype.clearAssignedStopId = function() {
- return jspb.Message.setField(this, 1, undefined);
-};
-
-
-/**
- * Returns whether this field is set.
- * @return {boolean}
- */
-proto.transit_realtime.TripUpdate.StopTimeUpdate.StopTimeProperties.prototype.hasAssignedStopId = function() {
- return jspb.Message.getField(this, 1) != null;
-};
-
-
-/**
- * optional uint32 stop_sequence = 1;
- * @return {number}
- */
-proto.transit_realtime.TripUpdate.StopTimeUpdate.prototype.getStopSequence = function() {
- return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
-};
-
-
-/**
- * @param {number} value
- * @return {!proto.transit_realtime.TripUpdate.StopTimeUpdate} returns this
- */
-proto.transit_realtime.TripUpdate.StopTimeUpdate.prototype.setStopSequence = function(value) {
- return jspb.Message.setField(this, 1, value);
-};
-
-
-/**
- * Clears the field making it undefined.
- * @return {!proto.transit_realtime.TripUpdate.StopTimeUpdate} returns this
- */
-proto.transit_realtime.TripUpdate.StopTimeUpdate.prototype.clearStopSequence = function() {
- return jspb.Message.setField(this, 1, undefined);
-};
-
-
-/**
- * Returns whether this field is set.
- * @return {boolean}
- */
-proto.transit_realtime.TripUpdate.StopTimeUpdate.prototype.hasStopSequence = function() {
- return jspb.Message.getField(this, 1) != null;
-};
-
-
-/**
- * optional string stop_id = 4;
- * @return {string}
- */
-proto.transit_realtime.TripUpdate.StopTimeUpdate.prototype.getStopId = function() {
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
-};
-
-
-/**
- * @param {string} value
- * @return {!proto.transit_realtime.TripUpdate.StopTimeUpdate} returns this
- */
-proto.transit_realtime.TripUpdate.StopTimeUpdate.prototype.setStopId = function(value) {
- return jspb.Message.setField(this, 4, value);
-};
-
-
-/**
- * Clears the field making it undefined.
- * @return {!proto.transit_realtime.TripUpdate.StopTimeUpdate} returns this
- */
-proto.transit_realtime.TripUpdate.StopTimeUpdate.prototype.clearStopId = function() {
- return jspb.Message.setField(this, 4, undefined);
-};
-
-
-/**
- * Returns whether this field is set.
- * @return {boolean}
- */
-proto.transit_realtime.TripUpdate.StopTimeUpdate.prototype.hasStopId = function() {
- return jspb.Message.getField(this, 4) != null;
-};
-
-
-/**
- * optional StopTimeEvent arrival = 2;
- * @return {?proto.transit_realtime.TripUpdate.StopTimeEvent}
- */
-proto.transit_realtime.TripUpdate.StopTimeUpdate.prototype.getArrival = function() {
- return /** @type{?proto.transit_realtime.TripUpdate.StopTimeEvent} */ (
- jspb.Message.getWrapperField(this, proto.transit_realtime.TripUpdate.StopTimeEvent, 2));
-};
-
-
-/**
- * @param {?proto.transit_realtime.TripUpdate.StopTimeEvent|undefined} value
- * @return {!proto.transit_realtime.TripUpdate.StopTimeUpdate} returns this
-*/
-proto.transit_realtime.TripUpdate.StopTimeUpdate.prototype.setArrival = function(value) {
- return jspb.Message.setWrapperField(this, 2, value);
-};
-
-
-/**
- * Clears the message field making it undefined.
- * @return {!proto.transit_realtime.TripUpdate.StopTimeUpdate} returns this
- */
-proto.transit_realtime.TripUpdate.StopTimeUpdate.prototype.clearArrival = function() {
- return this.setArrival(undefined);
-};
-
-
-/**
- * Returns whether this field is set.
- * @return {boolean}
- */
-proto.transit_realtime.TripUpdate.StopTimeUpdate.prototype.hasArrival = function() {
- return jspb.Message.getField(this, 2) != null;
-};
-
-
-/**
- * optional StopTimeEvent departure = 3;
- * @return {?proto.transit_realtime.TripUpdate.StopTimeEvent}
- */
-proto.transit_realtime.TripUpdate.StopTimeUpdate.prototype.getDeparture = function() {
- return /** @type{?proto.transit_realtime.TripUpdate.StopTimeEvent} */ (
- jspb.Message.getWrapperField(this, proto.transit_realtime.TripUpdate.StopTimeEvent, 3));
-};
-
-
-/**
- * @param {?proto.transit_realtime.TripUpdate.StopTimeEvent|undefined} value
- * @return {!proto.transit_realtime.TripUpdate.StopTimeUpdate} returns this
-*/
-proto.transit_realtime.TripUpdate.StopTimeUpdate.prototype.setDeparture = function(value) {
- return jspb.Message.setWrapperField(this, 3, value);
-};
-
-
-/**
- * Clears the message field making it undefined.
- * @return {!proto.transit_realtime.TripUpdate.StopTimeUpdate} returns this
- */
-proto.transit_realtime.TripUpdate.StopTimeUpdate.prototype.clearDeparture = function() {
- return this.setDeparture(undefined);
-};
-
-
-/**
- * Returns whether this field is set.
- * @return {boolean}
- */
-proto.transit_realtime.TripUpdate.StopTimeUpdate.prototype.hasDeparture = function() {
- return jspb.Message.getField(this, 3) != null;
-};
-
-
-/**
- * optional VehiclePosition.OccupancyStatus departure_occupancy_status = 7;
- * @return {!proto.transit_realtime.VehiclePosition.OccupancyStatus}
- */
-proto.transit_realtime.TripUpdate.StopTimeUpdate.prototype.getDepartureOccupancyStatus = function() {
- return /** @type {!proto.transit_realtime.VehiclePosition.OccupancyStatus} */ (jspb.Message.getFieldWithDefault(this, 7, 0));
-};
-
-
-/**
- * @param {!proto.transit_realtime.VehiclePosition.OccupancyStatus} value
- * @return {!proto.transit_realtime.TripUpdate.StopTimeUpdate} returns this
- */
-proto.transit_realtime.TripUpdate.StopTimeUpdate.prototype.setDepartureOccupancyStatus = function(value) {
- return jspb.Message.setField(this, 7, value);
-};
-
-
-/**
- * Clears the field making it undefined.
- * @return {!proto.transit_realtime.TripUpdate.StopTimeUpdate} returns this
- */
-proto.transit_realtime.TripUpdate.StopTimeUpdate.prototype.clearDepartureOccupancyStatus = function() {
- return jspb.Message.setField(this, 7, undefined);
-};
-
-
-/**
- * Returns whether this field is set.
- * @return {boolean}
- */
-proto.transit_realtime.TripUpdate.StopTimeUpdate.prototype.hasDepartureOccupancyStatus = function() {
- return jspb.Message.getField(this, 7) != null;
-};
-
-
-/**
- * optional ScheduleRelationship schedule_relationship = 5;
- * @return {!proto.transit_realtime.TripUpdate.StopTimeUpdate.ScheduleRelationship}
- */
-proto.transit_realtime.TripUpdate.StopTimeUpdate.prototype.getScheduleRelationship = function() {
- return /** @type {!proto.transit_realtime.TripUpdate.StopTimeUpdate.ScheduleRelationship} */ (jspb.Message.getFieldWithDefault(this, 5, 0));
-};
-
-
-/**
- * @param {!proto.transit_realtime.TripUpdate.StopTimeUpdate.ScheduleRelationship} value
- * @return {!proto.transit_realtime.TripUpdate.StopTimeUpdate} returns this
- */
-proto.transit_realtime.TripUpdate.StopTimeUpdate.prototype.setScheduleRelationship = function(value) {
- return jspb.Message.setField(this, 5, value);
-};
-
-
-/**
- * Clears the field making it undefined.
- * @return {!proto.transit_realtime.TripUpdate.StopTimeUpdate} returns this
- */
-proto.transit_realtime.TripUpdate.StopTimeUpdate.prototype.clearScheduleRelationship = function() {
- return jspb.Message.setField(this, 5, undefined);
-};
-
-
-/**
- * Returns whether this field is set.
- * @return {boolean}
- */
-proto.transit_realtime.TripUpdate.StopTimeUpdate.prototype.hasScheduleRelationship = function() {
- return jspb.Message.getField(this, 5) != null;
-};
-
-
-/**
- * optional StopTimeProperties stop_time_properties = 6;
- * @return {?proto.transit_realtime.TripUpdate.StopTimeUpdate.StopTimeProperties}
- */
-proto.transit_realtime.TripUpdate.StopTimeUpdate.prototype.getStopTimeProperties = function() {
- return /** @type{?proto.transit_realtime.TripUpdate.StopTimeUpdate.StopTimeProperties} */ (
- jspb.Message.getWrapperField(this, proto.transit_realtime.TripUpdate.StopTimeUpdate.StopTimeProperties, 6));
-};
-
-
-/**
- * @param {?proto.transit_realtime.TripUpdate.StopTimeUpdate.StopTimeProperties|undefined} value
- * @return {!proto.transit_realtime.TripUpdate.StopTimeUpdate} returns this
-*/
-proto.transit_realtime.TripUpdate.StopTimeUpdate.prototype.setStopTimeProperties = function(value) {
- return jspb.Message.setWrapperField(this, 6, value);
-};
-
-
-/**
- * Clears the message field making it undefined.
- * @return {!proto.transit_realtime.TripUpdate.StopTimeUpdate} returns this
- */
-proto.transit_realtime.TripUpdate.StopTimeUpdate.prototype.clearStopTimeProperties = function() {
- return this.setStopTimeProperties(undefined);
-};
-
-
-/**
- * Returns whether this field is set.
- * @return {boolean}
- */
-proto.transit_realtime.TripUpdate.StopTimeUpdate.prototype.hasStopTimeProperties = function() {
- return jspb.Message.getField(this, 6) != null;
-};
-
-
-
-
-
-if (jspb.Message.GENERATE_TO_OBJECT) {
-/**
- * Creates an object representation of this proto.
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
- * Optional fields that are not set will be set to undefined.
- * To access a reserved field use, foo.pb_, 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.transit_realtime.TripUpdate.TripProperties.prototype.toObject = function(opt_includeInstance) {
- return proto.transit_realtime.TripUpdate.TripProperties.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.transit_realtime.TripUpdate.TripProperties} msg The msg instance to transform.
- * @return {!Object}
- * @suppress {unusedLocalVariables} f is only used for nested messages
- */
-proto.transit_realtime.TripUpdate.TripProperties.toObject = function(includeInstance, msg) {
- var f, obj = {
- tripId: (f = jspb.Message.getField(msg, 1)) == null ? undefined : f,
- startDate: (f = jspb.Message.getField(msg, 2)) == null ? undefined : f,
- startTime: (f = jspb.Message.getField(msg, 3)) == null ? undefined : f,
- shapeId: (f = jspb.Message.getField(msg, 4)) == null ? undefined : f
- };
-
- jspb.Message.toObjectExtension(/** @type {!jspb.Message} */ (msg), obj,
- proto.transit_realtime.TripUpdate.TripProperties.extensions, proto.transit_realtime.TripUpdate.TripProperties.prototype.getExtension,
- 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.transit_realtime.TripUpdate.TripProperties}
- */
-proto.transit_realtime.TripUpdate.TripProperties.deserializeBinary = function(bytes) {
- var reader = new jspb.BinaryReader(bytes);
- var msg = new proto.transit_realtime.TripUpdate.TripProperties;
- return proto.transit_realtime.TripUpdate.TripProperties.deserializeBinaryFromReader(msg, reader);
-};
-
-
-/**
- * Deserializes binary data (in protobuf wire format) from the
- * given reader into the given message object.
- * @param {!proto.transit_realtime.TripUpdate.TripProperties} msg The message object to deserialize into.
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
- * @return {!proto.transit_realtime.TripUpdate.TripProperties}
- */
-proto.transit_realtime.TripUpdate.TripProperties.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.setTripId(value);
- break;
- case 2:
- var value = /** @type {string} */ (reader.readString());
- msg.setStartDate(value);
- break;
- case 3:
- var value = /** @type {string} */ (reader.readString());
- msg.setStartTime(value);
- break;
- case 4:
- var value = /** @type {string} */ (reader.readString());
- msg.setShapeId(value);
- break;
- default:
- jspb.Message.readBinaryExtension(msg, reader,
- proto.transit_realtime.TripUpdate.TripProperties.extensionsBinary,
- proto.transit_realtime.TripUpdate.TripProperties.prototype.getExtension,
- proto.transit_realtime.TripUpdate.TripProperties.prototype.setExtension);
- break;
- }
- }
- return msg;
-};
-
-
-/**
- * Serializes the message to binary data (in protobuf wire format).
- * @return {!Uint8Array}
- */
-proto.transit_realtime.TripUpdate.TripProperties.prototype.serializeBinary = function() {
- var writer = new jspb.BinaryWriter();
- proto.transit_realtime.TripUpdate.TripProperties.serializeBinaryToWriter(this, writer);
- return writer.getResultBuffer();
-};
-
-
-/**
- * Serializes the given message to binary data (in protobuf wire
- * format), writing to the given BinaryWriter.
- * @param {!proto.transit_realtime.TripUpdate.TripProperties} message
- * @param {!jspb.BinaryWriter} writer
- * @suppress {unusedLocalVariables} f is only used for nested messages
- */
-proto.transit_realtime.TripUpdate.TripProperties.serializeBinaryToWriter = function(message, writer) {
- var f = undefined;
- f = /** @type {string} */ (jspb.Message.getField(message, 1));
- if (f != null) {
- writer.writeString(
- 1,
- f
- );
- }
- f = /** @type {string} */ (jspb.Message.getField(message, 2));
- if (f != null) {
- writer.writeString(
- 2,
- f
- );
- }
- f = /** @type {string} */ (jspb.Message.getField(message, 3));
- if (f != null) {
- writer.writeString(
- 3,
- f
- );
- }
- f = /** @type {string} */ (jspb.Message.getField(message, 4));
- if (f != null) {
- writer.writeString(
- 4,
- f
- );
- }
- jspb.Message.serializeBinaryExtensions(message, writer,
- proto.transit_realtime.TripUpdate.TripProperties.extensionsBinary, proto.transit_realtime.TripUpdate.TripProperties.prototype.getExtension);
-};
-
-
-/**
- * optional string trip_id = 1;
- * @return {string}
- */
-proto.transit_realtime.TripUpdate.TripProperties.prototype.getTripId = function() {
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
-};
-
-
-/**
- * @param {string} value
- * @return {!proto.transit_realtime.TripUpdate.TripProperties} returns this
- */
-proto.transit_realtime.TripUpdate.TripProperties.prototype.setTripId = function(value) {
- return jspb.Message.setField(this, 1, value);
-};
-
-
-/**
- * Clears the field making it undefined.
- * @return {!proto.transit_realtime.TripUpdate.TripProperties} returns this
- */
-proto.transit_realtime.TripUpdate.TripProperties.prototype.clearTripId = function() {
- return jspb.Message.setField(this, 1, undefined);
-};
-
-
-/**
- * Returns whether this field is set.
- * @return {boolean}
- */
-proto.transit_realtime.TripUpdate.TripProperties.prototype.hasTripId = function() {
- return jspb.Message.getField(this, 1) != null;
-};
-
-
-/**
- * optional string start_date = 2;
- * @return {string}
- */
-proto.transit_realtime.TripUpdate.TripProperties.prototype.getStartDate = function() {
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
-};
-
-
-/**
- * @param {string} value
- * @return {!proto.transit_realtime.TripUpdate.TripProperties} returns this
- */
-proto.transit_realtime.TripUpdate.TripProperties.prototype.setStartDate = function(value) {
- return jspb.Message.setField(this, 2, value);
-};
-
-
-/**
- * Clears the field making it undefined.
- * @return {!proto.transit_realtime.TripUpdate.TripProperties} returns this
- */
-proto.transit_realtime.TripUpdate.TripProperties.prototype.clearStartDate = function() {
- return jspb.Message.setField(this, 2, undefined);
-};
-
-
-/**
- * Returns whether this field is set.
- * @return {boolean}
- */
-proto.transit_realtime.TripUpdate.TripProperties.prototype.hasStartDate = function() {
- return jspb.Message.getField(this, 2) != null;
-};
-
-
-/**
- * optional string start_time = 3;
- * @return {string}
- */
-proto.transit_realtime.TripUpdate.TripProperties.prototype.getStartTime = function() {
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
-};
-
-
-/**
- * @param {string} value
- * @return {!proto.transit_realtime.TripUpdate.TripProperties} returns this
- */
-proto.transit_realtime.TripUpdate.TripProperties.prototype.setStartTime = function(value) {
- return jspb.Message.setField(this, 3, value);
-};
-
-
-/**
- * Clears the field making it undefined.
- * @return {!proto.transit_realtime.TripUpdate.TripProperties} returns this
- */
-proto.transit_realtime.TripUpdate.TripProperties.prototype.clearStartTime = function() {
- return jspb.Message.setField(this, 3, undefined);
-};
-
-
-/**
- * Returns whether this field is set.
- * @return {boolean}
- */
-proto.transit_realtime.TripUpdate.TripProperties.prototype.hasStartTime = function() {
- return jspb.Message.getField(this, 3) != null;
-};
-
-
-/**
- * optional string shape_id = 4;
- * @return {string}
- */
-proto.transit_realtime.TripUpdate.TripProperties.prototype.getShapeId = function() {
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
-};
-
-
-/**
- * @param {string} value
- * @return {!proto.transit_realtime.TripUpdate.TripProperties} returns this
- */
-proto.transit_realtime.TripUpdate.TripProperties.prototype.setShapeId = function(value) {
- return jspb.Message.setField(this, 4, value);
-};
-
-
-/**
- * Clears the field making it undefined.
- * @return {!proto.transit_realtime.TripUpdate.TripProperties} returns this
- */
-proto.transit_realtime.TripUpdate.TripProperties.prototype.clearShapeId = function() {
- return jspb.Message.setField(this, 4, undefined);
-};
-
-
-/**
- * Returns whether this field is set.
- * @return {boolean}
- */
-proto.transit_realtime.TripUpdate.TripProperties.prototype.hasShapeId = function() {
- return jspb.Message.getField(this, 4) != null;
-};
-
-
-/**
- * required TripDescriptor trip = 1;
- * @return {!proto.transit_realtime.TripDescriptor}
- */
-proto.transit_realtime.TripUpdate.prototype.getTrip = function() {
- return /** @type{!proto.transit_realtime.TripDescriptor} */ (
- jspb.Message.getWrapperField(this, proto.transit_realtime.TripDescriptor, 1, 1));
-};
-
-
-/**
- * @param {!proto.transit_realtime.TripDescriptor} value
- * @return {!proto.transit_realtime.TripUpdate} returns this
-*/
-proto.transit_realtime.TripUpdate.prototype.setTrip = function(value) {
- return jspb.Message.setWrapperField(this, 1, value);
-};
-
-
-/**
- * Clears the field making it undefined.
- * @return {!proto.transit_realtime.TripUpdate} returns this
- */
-proto.transit_realtime.TripUpdate.prototype.clearTrip = function() {
- return jspb.Message.setField(this, 1, undefined);
-};
-
-
-/**
- * Returns whether this field is set.
- * @return {boolean}
- */
-proto.transit_realtime.TripUpdate.prototype.hasTrip = function() {
- return jspb.Message.getField(this, 1) != null;
-};
-
-
-/**
- * optional VehicleDescriptor vehicle = 3;
- * @return {?proto.transit_realtime.VehicleDescriptor}
- */
-proto.transit_realtime.TripUpdate.prototype.getVehicle = function() {
- return /** @type{?proto.transit_realtime.VehicleDescriptor} */ (
- jspb.Message.getWrapperField(this, proto.transit_realtime.VehicleDescriptor, 3));
-};
-
-
-/**
- * @param {?proto.transit_realtime.VehicleDescriptor|undefined} value
- * @return {!proto.transit_realtime.TripUpdate} returns this
-*/
-proto.transit_realtime.TripUpdate.prototype.setVehicle = function(value) {
- return jspb.Message.setWrapperField(this, 3, value);
-};
-
-
-/**
- * Clears the message field making it undefined.
- * @return {!proto.transit_realtime.TripUpdate} returns this
- */
-proto.transit_realtime.TripUpdate.prototype.clearVehicle = function() {
- return this.setVehicle(undefined);
-};
-
-
-/**
- * Returns whether this field is set.
- * @return {boolean}
- */
-proto.transit_realtime.TripUpdate.prototype.hasVehicle = function() {
- return jspb.Message.getField(this, 3) != null;
-};
-
-
-/**
- * repeated StopTimeUpdate stop_time_update = 2;
- * @return {!Array}
- */
-proto.transit_realtime.TripUpdate.prototype.getStopTimeUpdateList = function() {
- return /** @type{!Array} */ (
- jspb.Message.getRepeatedWrapperField(this, proto.transit_realtime.TripUpdate.StopTimeUpdate, 2));
-};
-
-
-/**
- * @param {!Array} value
- * @return {!proto.transit_realtime.TripUpdate} returns this
-*/
-proto.transit_realtime.TripUpdate.prototype.setStopTimeUpdateList = function(value) {
- return jspb.Message.setRepeatedWrapperField(this, 2, value);
-};
-
-
-/**
- * @param {!proto.transit_realtime.TripUpdate.StopTimeUpdate=} opt_value
- * @param {number=} opt_index
- * @return {!proto.transit_realtime.TripUpdate.StopTimeUpdate}
- */
-proto.transit_realtime.TripUpdate.prototype.addStopTimeUpdate = function(opt_value, opt_index) {
- return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.transit_realtime.TripUpdate.StopTimeUpdate, opt_index);
-};
-
-
-/**
- * Clears the list making it empty but non-null.
- * @return {!proto.transit_realtime.TripUpdate} returns this
- */
-proto.transit_realtime.TripUpdate.prototype.clearStopTimeUpdateList = function() {
- return this.setStopTimeUpdateList([]);
-};
-
-
-/**
- * optional uint64 timestamp = 4;
- * @return {number}
- */
-proto.transit_realtime.TripUpdate.prototype.getTimestamp = function() {
- return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
-};
-
-
-/**
- * @param {number} value
- * @return {!proto.transit_realtime.TripUpdate} returns this
- */
-proto.transit_realtime.TripUpdate.prototype.setTimestamp = function(value) {
- return jspb.Message.setField(this, 4, value);
-};
-
-
-/**
- * Clears the field making it undefined.
- * @return {!proto.transit_realtime.TripUpdate} returns this
- */
-proto.transit_realtime.TripUpdate.prototype.clearTimestamp = function() {
- return jspb.Message.setField(this, 4, undefined);
-};
-
-
-/**
- * Returns whether this field is set.
- * @return {boolean}
- */
-proto.transit_realtime.TripUpdate.prototype.hasTimestamp = function() {
- return jspb.Message.getField(this, 4) != null;
-};
-
-
-/**
- * optional int32 delay = 5;
- * @return {number}
- */
-proto.transit_realtime.TripUpdate.prototype.getDelay = function() {
- return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0));
-};
-
-
-/**
- * @param {number} value
- * @return {!proto.transit_realtime.TripUpdate} returns this
- */
-proto.transit_realtime.TripUpdate.prototype.setDelay = function(value) {
- return jspb.Message.setField(this, 5, value);
-};
-
-
-/**
- * Clears the field making it undefined.
- * @return {!proto.transit_realtime.TripUpdate} returns this
- */
-proto.transit_realtime.TripUpdate.prototype.clearDelay = function() {
- return jspb.Message.setField(this, 5, undefined);
-};
-
-
-/**
- * Returns whether this field is set.
- * @return {boolean}
- */
-proto.transit_realtime.TripUpdate.prototype.hasDelay = function() {
- return jspb.Message.getField(this, 5) != null;
-};
-
-
-/**
- * optional TripProperties trip_properties = 6;
- * @return {?proto.transit_realtime.TripUpdate.TripProperties}
- */
-proto.transit_realtime.TripUpdate.prototype.getTripProperties = function() {
- return /** @type{?proto.transit_realtime.TripUpdate.TripProperties} */ (
- jspb.Message.getWrapperField(this, proto.transit_realtime.TripUpdate.TripProperties, 6));
-};
-
-
-/**
- * @param {?proto.transit_realtime.TripUpdate.TripProperties|undefined} value
- * @return {!proto.transit_realtime.TripUpdate} returns this
-*/
-proto.transit_realtime.TripUpdate.prototype.setTripProperties = function(value) {
- return jspb.Message.setWrapperField(this, 6, value);
-};
-
-
-/**
- * Clears the message field making it undefined.
- * @return {!proto.transit_realtime.TripUpdate} returns this
- */
-proto.transit_realtime.TripUpdate.prototype.clearTripProperties = function() {
- return this.setTripProperties(undefined);
-};
-
-
-/**
- * Returns whether this field is set.
- * @return {boolean}
- */
-proto.transit_realtime.TripUpdate.prototype.hasTripProperties = function() {
- return jspb.Message.getField(this, 6) != null;
-};
-
-
-
-/**
- * List of repeated fields within this message type.
- * @private {!Array}
- * @const
- */
-proto.transit_realtime.VehiclePosition.repeatedFields_ = [11];
-
-
-
-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_, 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.transit_realtime.VehiclePosition.prototype.toObject = function(opt_includeInstance) {
- return proto.transit_realtime.VehiclePosition.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.transit_realtime.VehiclePosition} msg The msg instance to transform.
- * @return {!Object}
- * @suppress {unusedLocalVariables} f is only used for nested messages
- */
-proto.transit_realtime.VehiclePosition.toObject = function(includeInstance, msg) {
- var f, obj = {
- trip: (f = msg.getTrip()) && proto.transit_realtime.TripDescriptor.toObject(includeInstance, f),
- vehicle: (f = msg.getVehicle()) && proto.transit_realtime.VehicleDescriptor.toObject(includeInstance, f),
- position: (f = msg.getPosition()) && proto.transit_realtime.Position.toObject(includeInstance, f),
- currentStopSequence: (f = jspb.Message.getField(msg, 3)) == null ? undefined : f,
- stopId: (f = jspb.Message.getField(msg, 7)) == null ? undefined : f,
- currentStatus: jspb.Message.getFieldWithDefault(msg, 4, 2),
- timestamp: (f = jspb.Message.getField(msg, 5)) == null ? undefined : f,
- congestionLevel: (f = jspb.Message.getField(msg, 6)) == null ? undefined : f,
- occupancyStatus: (f = jspb.Message.getField(msg, 9)) == null ? undefined : f,
- occupancyPercentage: (f = jspb.Message.getField(msg, 10)) == null ? undefined : f,
- multiCarriageDetailsList: jspb.Message.toObjectList(msg.getMultiCarriageDetailsList(),
- proto.transit_realtime.VehiclePosition.CarriageDetails.toObject, includeInstance)
- };
-
- jspb.Message.toObjectExtension(/** @type {!jspb.Message} */ (msg), obj,
- proto.transit_realtime.VehiclePosition.extensions, proto.transit_realtime.VehiclePosition.prototype.getExtension,
- 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.transit_realtime.VehiclePosition}
- */
-proto.transit_realtime.VehiclePosition.deserializeBinary = function(bytes) {
- var reader = new jspb.BinaryReader(bytes);
- var msg = new proto.transit_realtime.VehiclePosition;
- return proto.transit_realtime.VehiclePosition.deserializeBinaryFromReader(msg, reader);
-};
-
-
-/**
- * Deserializes binary data (in protobuf wire format) from the
- * given reader into the given message object.
- * @param {!proto.transit_realtime.VehiclePosition} msg The message object to deserialize into.
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
- * @return {!proto.transit_realtime.VehiclePosition}
- */
-proto.transit_realtime.VehiclePosition.deserializeBinaryFromReader = function(msg, reader) {
- while (reader.nextField()) {
- if (reader.isEndGroup()) {
- break;
- }
- var field = reader.getFieldNumber();
- switch (field) {
- case 1:
- var value = new proto.transit_realtime.TripDescriptor;
- reader.readMessage(value,proto.transit_realtime.TripDescriptor.deserializeBinaryFromReader);
- msg.setTrip(value);
- break;
- case 8:
- var value = new proto.transit_realtime.VehicleDescriptor;
- reader.readMessage(value,proto.transit_realtime.VehicleDescriptor.deserializeBinaryFromReader);
- msg.setVehicle(value);
- break;
- case 2:
- var value = new proto.transit_realtime.Position;
- reader.readMessage(value,proto.transit_realtime.Position.deserializeBinaryFromReader);
- msg.setPosition(value);
- break;
- case 3:
- var value = /** @type {number} */ (reader.readUint32());
- msg.setCurrentStopSequence(value);
- break;
- case 7:
- var value = /** @type {string} */ (reader.readString());
- msg.setStopId(value);
- break;
- case 4:
- var value = /** @type {!proto.transit_realtime.VehiclePosition.VehicleStopStatus} */ (reader.readEnum());
- msg.setCurrentStatus(value);
- break;
- case 5:
- var value = /** @type {number} */ (reader.readUint64());
- msg.setTimestamp(value);
- break;
- case 6:
- var value = /** @type {!proto.transit_realtime.VehiclePosition.CongestionLevel} */ (reader.readEnum());
- msg.setCongestionLevel(value);
- break;
- case 9:
- var value = /** @type {!proto.transit_realtime.VehiclePosition.OccupancyStatus} */ (reader.readEnum());
- msg.setOccupancyStatus(value);
- break;
- case 10:
- var value = /** @type {number} */ (reader.readUint32());
- msg.setOccupancyPercentage(value);
- break;
- case 11:
- var value = new proto.transit_realtime.VehiclePosition.CarriageDetails;
- reader.readMessage(value,proto.transit_realtime.VehiclePosition.CarriageDetails.deserializeBinaryFromReader);
- msg.addMultiCarriageDetails(value);
- break;
- default:
- jspb.Message.readBinaryExtension(msg, reader,
- proto.transit_realtime.VehiclePosition.extensionsBinary,
- proto.transit_realtime.VehiclePosition.prototype.getExtension,
- proto.transit_realtime.VehiclePosition.prototype.setExtension);
- break;
- }
- }
- return msg;
-};
-
-
-/**
- * Serializes the message to binary data (in protobuf wire format).
- * @return {!Uint8Array}
- */
-proto.transit_realtime.VehiclePosition.prototype.serializeBinary = function() {
- var writer = new jspb.BinaryWriter();
- proto.transit_realtime.VehiclePosition.serializeBinaryToWriter(this, writer);
- return writer.getResultBuffer();
-};
-
-
-/**
- * Serializes the given message to binary data (in protobuf wire
- * format), writing to the given BinaryWriter.
- * @param {!proto.transit_realtime.VehiclePosition} message
- * @param {!jspb.BinaryWriter} writer
- * @suppress {unusedLocalVariables} f is only used for nested messages
- */
-proto.transit_realtime.VehiclePosition.serializeBinaryToWriter = function(message, writer) {
- var f = undefined;
- f = message.getTrip();
- if (f != null) {
- writer.writeMessage(
- 1,
- f,
- proto.transit_realtime.TripDescriptor.serializeBinaryToWriter
- );
- }
- f = message.getVehicle();
- if (f != null) {
- writer.writeMessage(
- 8,
- f,
- proto.transit_realtime.VehicleDescriptor.serializeBinaryToWriter
- );
- }
- f = message.getPosition();
- if (f != null) {
- writer.writeMessage(
- 2,
- f,
- proto.transit_realtime.Position.serializeBinaryToWriter
- );
- }
- f = /** @type {number} */ (jspb.Message.getField(message, 3));
- if (f != null) {
- writer.writeUint32(
- 3,
- f
- );
- }
- f = /** @type {string} */ (jspb.Message.getField(message, 7));
- if (f != null) {
- writer.writeString(
- 7,
- f
- );
- }
- f = /** @type {!proto.transit_realtime.VehiclePosition.VehicleStopStatus} */ (jspb.Message.getField(message, 4));
- if (f != null) {
- writer.writeEnum(
- 4,
- f
- );
- }
- f = /** @type {number} */ (jspb.Message.getField(message, 5));
- if (f != null) {
- writer.writeUint64(
- 5,
- f
- );
- }
- f = /** @type {!proto.transit_realtime.VehiclePosition.CongestionLevel} */ (jspb.Message.getField(message, 6));
- if (f != null) {
- writer.writeEnum(
- 6,
- f
- );
- }
- f = /** @type {!proto.transit_realtime.VehiclePosition.OccupancyStatus} */ (jspb.Message.getField(message, 9));
- if (f != null) {
- writer.writeEnum(
- 9,
- f
- );
- }
- f = /** @type {number} */ (jspb.Message.getField(message, 10));
- if (f != null) {
- writer.writeUint32(
- 10,
- f
- );
- }
- f = message.getMultiCarriageDetailsList();
- if (f.length > 0) {
- writer.writeRepeatedMessage(
- 11,
- f,
- proto.transit_realtime.VehiclePosition.CarriageDetails.serializeBinaryToWriter
- );
- }
- jspb.Message.serializeBinaryExtensions(message, writer,
- proto.transit_realtime.VehiclePosition.extensionsBinary, proto.transit_realtime.VehiclePosition.prototype.getExtension);
-};
-
-
-/**
- * @enum {number}
- */
-proto.transit_realtime.VehiclePosition.VehicleStopStatus = {
- INCOMING_AT: 0,
- STOPPED_AT: 1,
- IN_TRANSIT_TO: 2
-};
-
-/**
- * @enum {number}
- */
-proto.transit_realtime.VehiclePosition.CongestionLevel = {
- UNKNOWN_CONGESTION_LEVEL: 0,
- RUNNING_SMOOTHLY: 1,
- STOP_AND_GO: 2,
- CONGESTION: 3,
- SEVERE_CONGESTION: 4
-};
-
-/**
- * @enum {number}
- */
-proto.transit_realtime.VehiclePosition.OccupancyStatus = {
- EMPTY: 0,
- MANY_SEATS_AVAILABLE: 1,
- FEW_SEATS_AVAILABLE: 2,
- STANDING_ROOM_ONLY: 3,
- CRUSHED_STANDING_ROOM_ONLY: 4,
- FULL: 5,
- NOT_ACCEPTING_PASSENGERS: 6,
- NO_DATA_AVAILABLE: 7,
- NOT_BOARDABLE: 8
-};
-
-
-
-
-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_, 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.transit_realtime.VehiclePosition.CarriageDetails.prototype.toObject = function(opt_includeInstance) {
- return proto.transit_realtime.VehiclePosition.CarriageDetails.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.transit_realtime.VehiclePosition.CarriageDetails} msg The msg instance to transform.
- * @return {!Object}
- * @suppress {unusedLocalVariables} f is only used for nested messages
- */
-proto.transit_realtime.VehiclePosition.CarriageDetails.toObject = function(includeInstance, msg) {
- var f, obj = {
- id: (f = jspb.Message.getField(msg, 1)) == null ? undefined : f,
- label: (f = jspb.Message.getField(msg, 2)) == null ? undefined : f,
- occupancyStatus: jspb.Message.getFieldWithDefault(msg, 3, 7),
- occupancyPercentage: jspb.Message.getFieldWithDefault(msg, 4, -1),
- carriageSequence: (f = jspb.Message.getField(msg, 5)) == null ? undefined : f
- };
-
- jspb.Message.toObjectExtension(/** @type {!jspb.Message} */ (msg), obj,
- proto.transit_realtime.VehiclePosition.CarriageDetails.extensions, proto.transit_realtime.VehiclePosition.CarriageDetails.prototype.getExtension,
- 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.transit_realtime.VehiclePosition.CarriageDetails}
- */
-proto.transit_realtime.VehiclePosition.CarriageDetails.deserializeBinary = function(bytes) {
- var reader = new jspb.BinaryReader(bytes);
- var msg = new proto.transit_realtime.VehiclePosition.CarriageDetails;
- return proto.transit_realtime.VehiclePosition.CarriageDetails.deserializeBinaryFromReader(msg, reader);
-};
-
-
-/**
- * Deserializes binary data (in protobuf wire format) from the
- * given reader into the given message object.
- * @param {!proto.transit_realtime.VehiclePosition.CarriageDetails} msg The message object to deserialize into.
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
- * @return {!proto.transit_realtime.VehiclePosition.CarriageDetails}
- */
-proto.transit_realtime.VehiclePosition.CarriageDetails.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 = /** @type {string} */ (reader.readString());
- msg.setLabel(value);
- break;
- case 3:
- var value = /** @type {!proto.transit_realtime.VehiclePosition.OccupancyStatus} */ (reader.readEnum());
- msg.setOccupancyStatus(value);
- break;
- case 4:
- var value = /** @type {number} */ (reader.readInt32());
- msg.setOccupancyPercentage(value);
- break;
- case 5:
- var value = /** @type {number} */ (reader.readUint32());
- msg.setCarriageSequence(value);
- break;
- default:
- jspb.Message.readBinaryExtension(msg, reader,
- proto.transit_realtime.VehiclePosition.CarriageDetails.extensionsBinary,
- proto.transit_realtime.VehiclePosition.CarriageDetails.prototype.getExtension,
- proto.transit_realtime.VehiclePosition.CarriageDetails.prototype.setExtension);
- break;
- }
- }
- return msg;
-};
-
-
-/**
- * Serializes the message to binary data (in protobuf wire format).
- * @return {!Uint8Array}
- */
-proto.transit_realtime.VehiclePosition.CarriageDetails.prototype.serializeBinary = function() {
- var writer = new jspb.BinaryWriter();
- proto.transit_realtime.VehiclePosition.CarriageDetails.serializeBinaryToWriter(this, writer);
- return writer.getResultBuffer();
-};
-
-
-/**
- * Serializes the given message to binary data (in protobuf wire
- * format), writing to the given BinaryWriter.
- * @param {!proto.transit_realtime.VehiclePosition.CarriageDetails} message
- * @param {!jspb.BinaryWriter} writer
- * @suppress {unusedLocalVariables} f is only used for nested messages
- */
-proto.transit_realtime.VehiclePosition.CarriageDetails.serializeBinaryToWriter = function(message, writer) {
- var f = undefined;
- f = /** @type {string} */ (jspb.Message.getField(message, 1));
- if (f != null) {
- writer.writeString(
- 1,
- f
- );
- }
- f = /** @type {string} */ (jspb.Message.getField(message, 2));
- if (f != null) {
- writer.writeString(
- 2,
- f
- );
- }
- f = /** @type {!proto.transit_realtime.VehiclePosition.OccupancyStatus} */ (jspb.Message.getField(message, 3));
- if (f != null) {
- writer.writeEnum(
- 3,
- f
- );
- }
- f = /** @type {number} */ (jspb.Message.getField(message, 4));
- if (f != null) {
- writer.writeInt32(
- 4,
- f
- );
- }
- f = /** @type {number} */ (jspb.Message.getField(message, 5));
- if (f != null) {
- writer.writeUint32(
- 5,
- f
- );
- }
- jspb.Message.serializeBinaryExtensions(message, writer,
- proto.transit_realtime.VehiclePosition.CarriageDetails.extensionsBinary, proto.transit_realtime.VehiclePosition.CarriageDetails.prototype.getExtension);
-};
-
-
-/**
- * optional string id = 1;
- * @return {string}
- */
-proto.transit_realtime.VehiclePosition.CarriageDetails.prototype.getId = function() {
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
-};
-
-
-/**
- * @param {string} value
- * @return {!proto.transit_realtime.VehiclePosition.CarriageDetails} returns this
- */
-proto.transit_realtime.VehiclePosition.CarriageDetails.prototype.setId = function(value) {
- return jspb.Message.setField(this, 1, value);
-};
-
-
-/**
- * Clears the field making it undefined.
- * @return {!proto.transit_realtime.VehiclePosition.CarriageDetails} returns this
- */
-proto.transit_realtime.VehiclePosition.CarriageDetails.prototype.clearId = function() {
- return jspb.Message.setField(this, 1, undefined);
-};
-
-
-/**
- * Returns whether this field is set.
- * @return {boolean}
- */
-proto.transit_realtime.VehiclePosition.CarriageDetails.prototype.hasId = function() {
- return jspb.Message.getField(this, 1) != null;
-};
-
-
-/**
- * optional string label = 2;
- * @return {string}
- */
-proto.transit_realtime.VehiclePosition.CarriageDetails.prototype.getLabel = function() {
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
-};
-
-
-/**
- * @param {string} value
- * @return {!proto.transit_realtime.VehiclePosition.CarriageDetails} returns this
- */
-proto.transit_realtime.VehiclePosition.CarriageDetails.prototype.setLabel = function(value) {
- return jspb.Message.setField(this, 2, value);
-};
-
-
-/**
- * Clears the field making it undefined.
- * @return {!proto.transit_realtime.VehiclePosition.CarriageDetails} returns this
- */
-proto.transit_realtime.VehiclePosition.CarriageDetails.prototype.clearLabel = function() {
- return jspb.Message.setField(this, 2, undefined);
-};
-
-
-/**
- * Returns whether this field is set.
- * @return {boolean}
- */
-proto.transit_realtime.VehiclePosition.CarriageDetails.prototype.hasLabel = function() {
- return jspb.Message.getField(this, 2) != null;
-};
-
-
-/**
- * optional OccupancyStatus occupancy_status = 3;
- * @return {!proto.transit_realtime.VehiclePosition.OccupancyStatus}
- */
-proto.transit_realtime.VehiclePosition.CarriageDetails.prototype.getOccupancyStatus = function() {
- return /** @type {!proto.transit_realtime.VehiclePosition.OccupancyStatus} */ (jspb.Message.getFieldWithDefault(this, 3, 7));
-};
-
-
-/**
- * @param {!proto.transit_realtime.VehiclePosition.OccupancyStatus} value
- * @return {!proto.transit_realtime.VehiclePosition.CarriageDetails} returns this
- */
-proto.transit_realtime.VehiclePosition.CarriageDetails.prototype.setOccupancyStatus = function(value) {
- return jspb.Message.setField(this, 3, value);
-};
-
-
-/**
- * Clears the field making it undefined.
- * @return {!proto.transit_realtime.VehiclePosition.CarriageDetails} returns this
- */
-proto.transit_realtime.VehiclePosition.CarriageDetails.prototype.clearOccupancyStatus = function() {
- return jspb.Message.setField(this, 3, undefined);
-};
-
-
-/**
- * Returns whether this field is set.
- * @return {boolean}
- */
-proto.transit_realtime.VehiclePosition.CarriageDetails.prototype.hasOccupancyStatus = function() {
- return jspb.Message.getField(this, 3) != null;
-};
-
-
-/**
- * optional int32 occupancy_percentage = 4;
- * @return {number}
- */
-proto.transit_realtime.VehiclePosition.CarriageDetails.prototype.getOccupancyPercentage = function() {
- return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, -1));
-};
-
-
-/**
- * @param {number} value
- * @return {!proto.transit_realtime.VehiclePosition.CarriageDetails} returns this
- */
-proto.transit_realtime.VehiclePosition.CarriageDetails.prototype.setOccupancyPercentage = function(value) {
- return jspb.Message.setField(this, 4, value);
-};
-
-
-/**
- * Clears the field making it undefined.
- * @return {!proto.transit_realtime.VehiclePosition.CarriageDetails} returns this
- */
-proto.transit_realtime.VehiclePosition.CarriageDetails.prototype.clearOccupancyPercentage = function() {
- return jspb.Message.setField(this, 4, undefined);
-};
-
-
-/**
- * Returns whether this field is set.
- * @return {boolean}
- */
-proto.transit_realtime.VehiclePosition.CarriageDetails.prototype.hasOccupancyPercentage = function() {
- return jspb.Message.getField(this, 4) != null;
-};
-
-
-/**
- * optional uint32 carriage_sequence = 5;
- * @return {number}
- */
-proto.transit_realtime.VehiclePosition.CarriageDetails.prototype.getCarriageSequence = function() {
- return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0));
-};
-
-
-/**
- * @param {number} value
- * @return {!proto.transit_realtime.VehiclePosition.CarriageDetails} returns this
- */
-proto.transit_realtime.VehiclePosition.CarriageDetails.prototype.setCarriageSequence = function(value) {
- return jspb.Message.setField(this, 5, value);
-};
-
-
-/**
- * Clears the field making it undefined.
- * @return {!proto.transit_realtime.VehiclePosition.CarriageDetails} returns this
- */
-proto.transit_realtime.VehiclePosition.CarriageDetails.prototype.clearCarriageSequence = function() {
- return jspb.Message.setField(this, 5, undefined);
-};
-
-
-/**
- * Returns whether this field is set.
- * @return {boolean}
- */
-proto.transit_realtime.VehiclePosition.CarriageDetails.prototype.hasCarriageSequence = function() {
- return jspb.Message.getField(this, 5) != null;
-};
-
-
-/**
- * optional TripDescriptor trip = 1;
- * @return {?proto.transit_realtime.TripDescriptor}
- */
-proto.transit_realtime.VehiclePosition.prototype.getTrip = function() {
- return /** @type{?proto.transit_realtime.TripDescriptor} */ (
- jspb.Message.getWrapperField(this, proto.transit_realtime.TripDescriptor, 1));
-};
-
-
-/**
- * @param {?proto.transit_realtime.TripDescriptor|undefined} value
- * @return {!proto.transit_realtime.VehiclePosition} returns this
-*/
-proto.transit_realtime.VehiclePosition.prototype.setTrip = function(value) {
- return jspb.Message.setWrapperField(this, 1, value);
-};
-
-
-/**
- * Clears the message field making it undefined.
- * @return {!proto.transit_realtime.VehiclePosition} returns this
- */
-proto.transit_realtime.VehiclePosition.prototype.clearTrip = function() {
- return this.setTrip(undefined);
-};
-
-
-/**
- * Returns whether this field is set.
- * @return {boolean}
- */
-proto.transit_realtime.VehiclePosition.prototype.hasTrip = function() {
- return jspb.Message.getField(this, 1) != null;
-};
-
-
-/**
- * optional VehicleDescriptor vehicle = 8;
- * @return {?proto.transit_realtime.VehicleDescriptor}
- */
-proto.transit_realtime.VehiclePosition.prototype.getVehicle = function() {
- return /** @type{?proto.transit_realtime.VehicleDescriptor} */ (
- jspb.Message.getWrapperField(this, proto.transit_realtime.VehicleDescriptor, 8));
-};
-
-
-/**
- * @param {?proto.transit_realtime.VehicleDescriptor|undefined} value
- * @return {!proto.transit_realtime.VehiclePosition} returns this
-*/
-proto.transit_realtime.VehiclePosition.prototype.setVehicle = function(value) {
- return jspb.Message.setWrapperField(this, 8, value);
-};
-
-
-/**
- * Clears the message field making it undefined.
- * @return {!proto.transit_realtime.VehiclePosition} returns this
- */
-proto.transit_realtime.VehiclePosition.prototype.clearVehicle = function() {
- return this.setVehicle(undefined);
-};
-
-
-/**
- * Returns whether this field is set.
- * @return {boolean}
- */
-proto.transit_realtime.VehiclePosition.prototype.hasVehicle = function() {
- return jspb.Message.getField(this, 8) != null;
-};
-
-
-/**
- * optional Position position = 2;
- * @return {?proto.transit_realtime.Position}
- */
-proto.transit_realtime.VehiclePosition.prototype.getPosition = function() {
- return /** @type{?proto.transit_realtime.Position} */ (
- jspb.Message.getWrapperField(this, proto.transit_realtime.Position, 2));
-};
-
-
-/**
- * @param {?proto.transit_realtime.Position|undefined} value
- * @return {!proto.transit_realtime.VehiclePosition} returns this
-*/
-proto.transit_realtime.VehiclePosition.prototype.setPosition = function(value) {
- return jspb.Message.setWrapperField(this, 2, value);
-};
-
-
-/**
- * Clears the message field making it undefined.
- * @return {!proto.transit_realtime.VehiclePosition} returns this
- */
-proto.transit_realtime.VehiclePosition.prototype.clearPosition = function() {
- return this.setPosition(undefined);
-};
-
-
-/**
- * Returns whether this field is set.
- * @return {boolean}
- */
-proto.transit_realtime.VehiclePosition.prototype.hasPosition = function() {
- return jspb.Message.getField(this, 2) != null;
-};
-
-
-/**
- * optional uint32 current_stop_sequence = 3;
- * @return {number}
- */
-proto.transit_realtime.VehiclePosition.prototype.getCurrentStopSequence = function() {
- return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
-};
-
-
-/**
- * @param {number} value
- * @return {!proto.transit_realtime.VehiclePosition} returns this
- */
-proto.transit_realtime.VehiclePosition.prototype.setCurrentStopSequence = function(value) {
- return jspb.Message.setField(this, 3, value);
-};
-
-
-/**
- * Clears the field making it undefined.
- * @return {!proto.transit_realtime.VehiclePosition} returns this
- */
-proto.transit_realtime.VehiclePosition.prototype.clearCurrentStopSequence = function() {
- return jspb.Message.setField(this, 3, undefined);
-};
-
-
-/**
- * Returns whether this field is set.
- * @return {boolean}
- */
-proto.transit_realtime.VehiclePosition.prototype.hasCurrentStopSequence = function() {
- return jspb.Message.getField(this, 3) != null;
-};
-
-
-/**
- * optional string stop_id = 7;
- * @return {string}
- */
-proto.transit_realtime.VehiclePosition.prototype.getStopId = function() {
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
-};
-
-
-/**
- * @param {string} value
- * @return {!proto.transit_realtime.VehiclePosition} returns this
- */
-proto.transit_realtime.VehiclePosition.prototype.setStopId = function(value) {
- return jspb.Message.setField(this, 7, value);
-};
-
-
-/**
- * Clears the field making it undefined.
- * @return {!proto.transit_realtime.VehiclePosition} returns this
- */
-proto.transit_realtime.VehiclePosition.prototype.clearStopId = function() {
- return jspb.Message.setField(this, 7, undefined);
-};
-
-
-/**
- * Returns whether this field is set.
- * @return {boolean}
- */
-proto.transit_realtime.VehiclePosition.prototype.hasStopId = function() {
- return jspb.Message.getField(this, 7) != null;
-};
-
-
-/**
- * optional VehicleStopStatus current_status = 4;
- * @return {!proto.transit_realtime.VehiclePosition.VehicleStopStatus}
- */
-proto.transit_realtime.VehiclePosition.prototype.getCurrentStatus = function() {
- return /** @type {!proto.transit_realtime.VehiclePosition.VehicleStopStatus} */ (jspb.Message.getFieldWithDefault(this, 4, 2));
-};
-
-
-/**
- * @param {!proto.transit_realtime.VehiclePosition.VehicleStopStatus} value
- * @return {!proto.transit_realtime.VehiclePosition} returns this
- */
-proto.transit_realtime.VehiclePosition.prototype.setCurrentStatus = function(value) {
- return jspb.Message.setField(this, 4, value);
-};
-
-
-/**
- * Clears the field making it undefined.
- * @return {!proto.transit_realtime.VehiclePosition} returns this
- */
-proto.transit_realtime.VehiclePosition.prototype.clearCurrentStatus = function() {
- return jspb.Message.setField(this, 4, undefined);
-};
-
-
-/**
- * Returns whether this field is set.
- * @return {boolean}
- */
-proto.transit_realtime.VehiclePosition.prototype.hasCurrentStatus = function() {
- return jspb.Message.getField(this, 4) != null;
-};
-
-
-/**
- * optional uint64 timestamp = 5;
- * @return {number}
- */
-proto.transit_realtime.VehiclePosition.prototype.getTimestamp = function() {
- return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0));
-};
-
-
-/**
- * @param {number} value
- * @return {!proto.transit_realtime.VehiclePosition} returns this
- */
-proto.transit_realtime.VehiclePosition.prototype.setTimestamp = function(value) {
- return jspb.Message.setField(this, 5, value);
-};
-
-
-/**
- * Clears the field making it undefined.
- * @return {!proto.transit_realtime.VehiclePosition} returns this
- */
-proto.transit_realtime.VehiclePosition.prototype.clearTimestamp = function() {
- return jspb.Message.setField(this, 5, undefined);
-};
-
-
-/**
- * Returns whether this field is set.
- * @return {boolean}
- */
-proto.transit_realtime.VehiclePosition.prototype.hasTimestamp = function() {
- return jspb.Message.getField(this, 5) != null;
-};
-
-
-/**
- * optional CongestionLevel congestion_level = 6;
- * @return {!proto.transit_realtime.VehiclePosition.CongestionLevel}
- */
-proto.transit_realtime.VehiclePosition.prototype.getCongestionLevel = function() {
- return /** @type {!proto.transit_realtime.VehiclePosition.CongestionLevel} */ (jspb.Message.getFieldWithDefault(this, 6, 0));
-};
-
-
-/**
- * @param {!proto.transit_realtime.VehiclePosition.CongestionLevel} value
- * @return {!proto.transit_realtime.VehiclePosition} returns this
- */
-proto.transit_realtime.VehiclePosition.prototype.setCongestionLevel = function(value) {
- return jspb.Message.setField(this, 6, value);
-};
-
-
-/**
- * Clears the field making it undefined.
- * @return {!proto.transit_realtime.VehiclePosition} returns this
- */
-proto.transit_realtime.VehiclePosition.prototype.clearCongestionLevel = function() {
- return jspb.Message.setField(this, 6, undefined);
-};
-
-
-/**
- * Returns whether this field is set.
- * @return {boolean}
- */
-proto.transit_realtime.VehiclePosition.prototype.hasCongestionLevel = function() {
- return jspb.Message.getField(this, 6) != null;
-};
-
-
-/**
- * optional OccupancyStatus occupancy_status = 9;
- * @return {!proto.transit_realtime.VehiclePosition.OccupancyStatus}
- */
-proto.transit_realtime.VehiclePosition.prototype.getOccupancyStatus = function() {
- return /** @type {!proto.transit_realtime.VehiclePosition.OccupancyStatus} */ (jspb.Message.getFieldWithDefault(this, 9, 0));
-};
-
-
-/**
- * @param {!proto.transit_realtime.VehiclePosition.OccupancyStatus} value
- * @return {!proto.transit_realtime.VehiclePosition} returns this
- */
-proto.transit_realtime.VehiclePosition.prototype.setOccupancyStatus = function(value) {
- return jspb.Message.setField(this, 9, value);
-};
-
-
-/**
- * Clears the field making it undefined.
- * @return {!proto.transit_realtime.VehiclePosition} returns this
- */
-proto.transit_realtime.VehiclePosition.prototype.clearOccupancyStatus = function() {
- return jspb.Message.setField(this, 9, undefined);
-};
-
-
-/**
- * Returns whether this field is set.
- * @return {boolean}
- */
-proto.transit_realtime.VehiclePosition.prototype.hasOccupancyStatus = function() {
- return jspb.Message.getField(this, 9) != null;
-};
-
-
-/**
- * optional uint32 occupancy_percentage = 10;
- * @return {number}
- */
-proto.transit_realtime.VehiclePosition.prototype.getOccupancyPercentage = function() {
- return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 10, 0));
-};
-
-
-/**
- * @param {number} value
- * @return {!proto.transit_realtime.VehiclePosition} returns this
- */
-proto.transit_realtime.VehiclePosition.prototype.setOccupancyPercentage = function(value) {
- return jspb.Message.setField(this, 10, value);
-};
-
-
-/**
- * Clears the field making it undefined.
- * @return {!proto.transit_realtime.VehiclePosition} returns this
- */
-proto.transit_realtime.VehiclePosition.prototype.clearOccupancyPercentage = function() {
- return jspb.Message.setField(this, 10, undefined);
-};
-
-
-/**
- * Returns whether this field is set.
- * @return {boolean}
- */
-proto.transit_realtime.VehiclePosition.prototype.hasOccupancyPercentage = function() {
- return jspb.Message.getField(this, 10) != null;
-};
-
-
-/**
- * repeated CarriageDetails multi_carriage_details = 11;
- * @return {!Array}
- */
-proto.transit_realtime.VehiclePosition.prototype.getMultiCarriageDetailsList = function() {
- return /** @type{!Array} */ (
- jspb.Message.getRepeatedWrapperField(this, proto.transit_realtime.VehiclePosition.CarriageDetails, 11));
-};
-
-
-/**
- * @param {!Array} value
- * @return {!proto.transit_realtime.VehiclePosition} returns this
-*/
-proto.transit_realtime.VehiclePosition.prototype.setMultiCarriageDetailsList = function(value) {
- return jspb.Message.setRepeatedWrapperField(this, 11, value);
-};
-
-
-/**
- * @param {!proto.transit_realtime.VehiclePosition.CarriageDetails=} opt_value
- * @param {number=} opt_index
- * @return {!proto.transit_realtime.VehiclePosition.CarriageDetails}
- */
-proto.transit_realtime.VehiclePosition.prototype.addMultiCarriageDetails = function(opt_value, opt_index) {
- return jspb.Message.addToRepeatedWrapperField(this, 11, opt_value, proto.transit_realtime.VehiclePosition.CarriageDetails, opt_index);
-};
-
-
-/**
- * Clears the list making it empty but non-null.
- * @return {!proto.transit_realtime.VehiclePosition} returns this
- */
-proto.transit_realtime.VehiclePosition.prototype.clearMultiCarriageDetailsList = function() {
- return this.setMultiCarriageDetailsList([]);
-};
-
-
-
-/**
- * List of repeated fields within this message type.
- * @private {!Array}
- * @const
- */
-proto.transit_realtime.Alert.repeatedFields_ = [1,5];
-
-
-
-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_, 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.transit_realtime.Alert.prototype.toObject = function(opt_includeInstance) {
- return proto.transit_realtime.Alert.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.transit_realtime.Alert} msg The msg instance to transform.
- * @return {!Object}
- * @suppress {unusedLocalVariables} f is only used for nested messages
- */
-proto.transit_realtime.Alert.toObject = function(includeInstance, msg) {
- var f, obj = {
- activePeriodList: jspb.Message.toObjectList(msg.getActivePeriodList(),
- proto.transit_realtime.TimeRange.toObject, includeInstance),
- informedEntityList: jspb.Message.toObjectList(msg.getInformedEntityList(),
- proto.transit_realtime.EntitySelector.toObject, includeInstance),
- cause: jspb.Message.getFieldWithDefault(msg, 6, 1),
- effect: jspb.Message.getFieldWithDefault(msg, 7, 8),
- url: (f = msg.getUrl()) && proto.transit_realtime.TranslatedString.toObject(includeInstance, f),
- headerText: (f = msg.getHeaderText()) && proto.transit_realtime.TranslatedString.toObject(includeInstance, f),
- descriptionText: (f = msg.getDescriptionText()) && proto.transit_realtime.TranslatedString.toObject(includeInstance, f),
- ttsHeaderText: (f = msg.getTtsHeaderText()) && proto.transit_realtime.TranslatedString.toObject(includeInstance, f),
- ttsDescriptionText: (f = msg.getTtsDescriptionText()) && proto.transit_realtime.TranslatedString.toObject(includeInstance, f),
- severityLevel: jspb.Message.getFieldWithDefault(msg, 14, 1),
- image: (f = msg.getImage()) && proto.transit_realtime.TranslatedImage.toObject(includeInstance, f),
- imageAlternativeText: (f = msg.getImageAlternativeText()) && proto.transit_realtime.TranslatedString.toObject(includeInstance, f),
- causeDetail: (f = msg.getCauseDetail()) && proto.transit_realtime.TranslatedString.toObject(includeInstance, f),
- effectDetail: (f = msg.getEffectDetail()) && proto.transit_realtime.TranslatedString.toObject(includeInstance, f)
- };
-
- jspb.Message.toObjectExtension(/** @type {!jspb.Message} */ (msg), obj,
- proto.transit_realtime.Alert.extensions, proto.transit_realtime.Alert.prototype.getExtension,
- 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.transit_realtime.Alert}
- */
-proto.transit_realtime.Alert.deserializeBinary = function(bytes) {
- var reader = new jspb.BinaryReader(bytes);
- var msg = new proto.transit_realtime.Alert;
- return proto.transit_realtime.Alert.deserializeBinaryFromReader(msg, reader);
-};
-
-
-/**
- * Deserializes binary data (in protobuf wire format) from the
- * given reader into the given message object.
- * @param {!proto.transit_realtime.Alert} msg The message object to deserialize into.
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
- * @return {!proto.transit_realtime.Alert}
- */
-proto.transit_realtime.Alert.deserializeBinaryFromReader = function(msg, reader) {
- while (reader.nextField()) {
- if (reader.isEndGroup()) {
- break;
- }
- var field = reader.getFieldNumber();
- switch (field) {
- case 1:
- var value = new proto.transit_realtime.TimeRange;
- reader.readMessage(value,proto.transit_realtime.TimeRange.deserializeBinaryFromReader);
- msg.addActivePeriod(value);
- break;
- case 5:
- var value = new proto.transit_realtime.EntitySelector;
- reader.readMessage(value,proto.transit_realtime.EntitySelector.deserializeBinaryFromReader);
- msg.addInformedEntity(value);
- break;
- case 6:
- var value = /** @type {!proto.transit_realtime.Alert.Cause} */ (reader.readEnum());
- msg.setCause(value);
- break;
- case 7:
- var value = /** @type {!proto.transit_realtime.Alert.Effect} */ (reader.readEnum());
- msg.setEffect(value);
- break;
- case 8:
- var value = new proto.transit_realtime.TranslatedString;
- reader.readMessage(value,proto.transit_realtime.TranslatedString.deserializeBinaryFromReader);
- msg.setUrl(value);
- break;
- case 10:
- var value = new proto.transit_realtime.TranslatedString;
- reader.readMessage(value,proto.transit_realtime.TranslatedString.deserializeBinaryFromReader);
- msg.setHeaderText(value);
- break;
- case 11:
- var value = new proto.transit_realtime.TranslatedString;
- reader.readMessage(value,proto.transit_realtime.TranslatedString.deserializeBinaryFromReader);
- msg.setDescriptionText(value);
- break;
- case 12:
- var value = new proto.transit_realtime.TranslatedString;
- reader.readMessage(value,proto.transit_realtime.TranslatedString.deserializeBinaryFromReader);
- msg.setTtsHeaderText(value);
- break;
- case 13:
- var value = new proto.transit_realtime.TranslatedString;
- reader.readMessage(value,proto.transit_realtime.TranslatedString.deserializeBinaryFromReader);
- msg.setTtsDescriptionText(value);
- break;
- case 14:
- var value = /** @type {!proto.transit_realtime.Alert.SeverityLevel} */ (reader.readEnum());
- msg.setSeverityLevel(value);
- break;
- case 15:
- var value = new proto.transit_realtime.TranslatedImage;
- reader.readMessage(value,proto.transit_realtime.TranslatedImage.deserializeBinaryFromReader);
- msg.setImage(value);
- break;
- case 16:
- var value = new proto.transit_realtime.TranslatedString;
- reader.readMessage(value,proto.transit_realtime.TranslatedString.deserializeBinaryFromReader);
- msg.setImageAlternativeText(value);
- break;
- case 17:
- var value = new proto.transit_realtime.TranslatedString;
- reader.readMessage(value,proto.transit_realtime.TranslatedString.deserializeBinaryFromReader);
- msg.setCauseDetail(value);
- break;
- case 18:
- var value = new proto.transit_realtime.TranslatedString;
- reader.readMessage(value,proto.transit_realtime.TranslatedString.deserializeBinaryFromReader);
- msg.setEffectDetail(value);
- break;
- default:
- jspb.Message.readBinaryExtension(msg, reader,
- proto.transit_realtime.Alert.extensionsBinary,
- proto.transit_realtime.Alert.prototype.getExtension,
- proto.transit_realtime.Alert.prototype.setExtension);
- break;
- }
- }
- return msg;
-};
-
-
-/**
- * Serializes the message to binary data (in protobuf wire format).
- * @return {!Uint8Array}
- */
-proto.transit_realtime.Alert.prototype.serializeBinary = function() {
- var writer = new jspb.BinaryWriter();
- proto.transit_realtime.Alert.serializeBinaryToWriter(this, writer);
- return writer.getResultBuffer();
-};
-
-
-/**
- * Serializes the given message to binary data (in protobuf wire
- * format), writing to the given BinaryWriter.
- * @param {!proto.transit_realtime.Alert} message
- * @param {!jspb.BinaryWriter} writer
- * @suppress {unusedLocalVariables} f is only used for nested messages
- */
-proto.transit_realtime.Alert.serializeBinaryToWriter = function(message, writer) {
- var f = undefined;
- f = message.getActivePeriodList();
- if (f.length > 0) {
- writer.writeRepeatedMessage(
- 1,
- f,
- proto.transit_realtime.TimeRange.serializeBinaryToWriter
- );
- }
- f = message.getInformedEntityList();
- if (f.length > 0) {
- writer.writeRepeatedMessage(
- 5,
- f,
- proto.transit_realtime.EntitySelector.serializeBinaryToWriter
- );
- }
- f = /** @type {!proto.transit_realtime.Alert.Cause} */ (jspb.Message.getField(message, 6));
- if (f != null) {
- writer.writeEnum(
- 6,
- f
- );
- }
- f = /** @type {!proto.transit_realtime.Alert.Effect} */ (jspb.Message.getField(message, 7));
- if (f != null) {
- writer.writeEnum(
- 7,
- f
- );
- }
- f = message.getUrl();
- if (f != null) {
- writer.writeMessage(
- 8,
- f,
- proto.transit_realtime.TranslatedString.serializeBinaryToWriter
- );
- }
- f = message.getHeaderText();
- if (f != null) {
- writer.writeMessage(
- 10,
- f,
- proto.transit_realtime.TranslatedString.serializeBinaryToWriter
- );
- }
- f = message.getDescriptionText();
- if (f != null) {
- writer.writeMessage(
- 11,
- f,
- proto.transit_realtime.TranslatedString.serializeBinaryToWriter
- );
- }
- f = message.getTtsHeaderText();
- if (f != null) {
- writer.writeMessage(
- 12,
- f,
- proto.transit_realtime.TranslatedString.serializeBinaryToWriter
- );
- }
- f = message.getTtsDescriptionText();
- if (f != null) {
- writer.writeMessage(
- 13,
- f,
- proto.transit_realtime.TranslatedString.serializeBinaryToWriter
- );
- }
- f = /** @type {!proto.transit_realtime.Alert.SeverityLevel} */ (jspb.Message.getField(message, 14));
- if (f != null) {
- writer.writeEnum(
- 14,
- f
- );
- }
- f = message.getImage();
- if (f != null) {
- writer.writeMessage(
- 15,
- f,
- proto.transit_realtime.TranslatedImage.serializeBinaryToWriter
- );
- }
- f = message.getImageAlternativeText();
- if (f != null) {
- writer.writeMessage(
- 16,
- f,
- proto.transit_realtime.TranslatedString.serializeBinaryToWriter
- );
- }
- f = message.getCauseDetail();
- if (f != null) {
- writer.writeMessage(
- 17,
- f,
- proto.transit_realtime.TranslatedString.serializeBinaryToWriter
- );
- }
- f = message.getEffectDetail();
- if (f != null) {
- writer.writeMessage(
- 18,
- f,
- proto.transit_realtime.TranslatedString.serializeBinaryToWriter
- );
- }
- jspb.Message.serializeBinaryExtensions(message, writer,
- proto.transit_realtime.Alert.extensionsBinary, proto.transit_realtime.Alert.prototype.getExtension);
-};
-
-
-/**
- * @enum {number}
- */
-proto.transit_realtime.Alert.Cause = {
- UNKNOWN_CAUSE: 1,
- OTHER_CAUSE: 2,
- TECHNICAL_PROBLEM: 3,
- STRIKE: 4,
- DEMONSTRATION: 5,
- ACCIDENT: 6,
- HOLIDAY: 7,
- WEATHER: 8,
- MAINTENANCE: 9,
- CONSTRUCTION: 10,
- POLICE_ACTIVITY: 11,
- MEDICAL_EMERGENCY: 12
-};
-
-/**
- * @enum {number}
- */
-proto.transit_realtime.Alert.Effect = {
- NO_SERVICE: 1,
- REDUCED_SERVICE: 2,
- SIGNIFICANT_DELAYS: 3,
- DETOUR: 4,
- ADDITIONAL_SERVICE: 5,
- MODIFIED_SERVICE: 6,
- OTHER_EFFECT: 7,
- UNKNOWN_EFFECT: 8,
- STOP_MOVED: 9,
- NO_EFFECT: 10,
- ACCESSIBILITY_ISSUE: 11
-};
-
-/**
- * @enum {number}
- */
-proto.transit_realtime.Alert.SeverityLevel = {
- UNKNOWN_SEVERITY: 1,
- INFO: 2,
- WARNING: 3,
- SEVERE: 4
-};
-
-/**
- * repeated TimeRange active_period = 1;
- * @return {!Array}
- */
-proto.transit_realtime.Alert.prototype.getActivePeriodList = function() {
- return /** @type{!Array} */ (
- jspb.Message.getRepeatedWrapperField(this, proto.transit_realtime.TimeRange, 1));
-};
-
-
-/**
- * @param {!Array} value
- * @return {!proto.transit_realtime.Alert} returns this
-*/
-proto.transit_realtime.Alert.prototype.setActivePeriodList = function(value) {
- return jspb.Message.setRepeatedWrapperField(this, 1, value);
-};
-
-
-/**
- * @param {!proto.transit_realtime.TimeRange=} opt_value
- * @param {number=} opt_index
- * @return {!proto.transit_realtime.TimeRange}
- */
-proto.transit_realtime.Alert.prototype.addActivePeriod = function(opt_value, opt_index) {
- return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.transit_realtime.TimeRange, opt_index);
-};
-
-
-/**
- * Clears the list making it empty but non-null.
- * @return {!proto.transit_realtime.Alert} returns this
- */
-proto.transit_realtime.Alert.prototype.clearActivePeriodList = function() {
- return this.setActivePeriodList([]);
-};
-
-
-/**
- * repeated EntitySelector informed_entity = 5;
- * @return {!Array}
- */
-proto.transit_realtime.Alert.prototype.getInformedEntityList = function() {
- return /** @type{!Array} */ (
- jspb.Message.getRepeatedWrapperField(this, proto.transit_realtime.EntitySelector, 5));
-};
-
-
-/**
- * @param {!Array} value
- * @return {!proto.transit_realtime.Alert} returns this
-*/
-proto.transit_realtime.Alert.prototype.setInformedEntityList = function(value) {
- return jspb.Message.setRepeatedWrapperField(this, 5, value);
-};
-
-
-/**
- * @param {!proto.transit_realtime.EntitySelector=} opt_value
- * @param {number=} opt_index
- * @return {!proto.transit_realtime.EntitySelector}
- */
-proto.transit_realtime.Alert.prototype.addInformedEntity = function(opt_value, opt_index) {
- return jspb.Message.addToRepeatedWrapperField(this, 5, opt_value, proto.transit_realtime.EntitySelector, opt_index);
-};
-
-
-/**
- * Clears the list making it empty but non-null.
- * @return {!proto.transit_realtime.Alert} returns this
- */
-proto.transit_realtime.Alert.prototype.clearInformedEntityList = function() {
- return this.setInformedEntityList([]);
-};
-
-
-/**
- * optional Cause cause = 6;
- * @return {!proto.transit_realtime.Alert.Cause}
- */
-proto.transit_realtime.Alert.prototype.getCause = function() {
- return /** @type {!proto.transit_realtime.Alert.Cause} */ (jspb.Message.getFieldWithDefault(this, 6, 1));
-};
-
-
-/**
- * @param {!proto.transit_realtime.Alert.Cause} value
- * @return {!proto.transit_realtime.Alert} returns this
- */
-proto.transit_realtime.Alert.prototype.setCause = function(value) {
- return jspb.Message.setField(this, 6, value);
-};
-
-
-/**
- * Clears the field making it undefined.
- * @return {!proto.transit_realtime.Alert} returns this
- */
-proto.transit_realtime.Alert.prototype.clearCause = function() {
- return jspb.Message.setField(this, 6, undefined);
-};
-
-
-/**
- * Returns whether this field is set.
- * @return {boolean}
- */
-proto.transit_realtime.Alert.prototype.hasCause = function() {
- return jspb.Message.getField(this, 6) != null;
-};
-
-
-/**
- * optional Effect effect = 7;
- * @return {!proto.transit_realtime.Alert.Effect}
- */
-proto.transit_realtime.Alert.prototype.getEffect = function() {
- return /** @type {!proto.transit_realtime.Alert.Effect} */ (jspb.Message.getFieldWithDefault(this, 7, 8));
-};
-
-
-/**
- * @param {!proto.transit_realtime.Alert.Effect} value
- * @return {!proto.transit_realtime.Alert} returns this
- */
-proto.transit_realtime.Alert.prototype.setEffect = function(value) {
- return jspb.Message.setField(this, 7, value);
-};
-
-
-/**
- * Clears the field making it undefined.
- * @return {!proto.transit_realtime.Alert} returns this
- */
-proto.transit_realtime.Alert.prototype.clearEffect = function() {
- return jspb.Message.setField(this, 7, undefined);
-};
-
-
-/**
- * Returns whether this field is set.
- * @return {boolean}
- */
-proto.transit_realtime.Alert.prototype.hasEffect = function() {
- return jspb.Message.getField(this, 7) != null;
-};
-
-
-/**
- * optional TranslatedString url = 8;
- * @return {?proto.transit_realtime.TranslatedString}
- */
-proto.transit_realtime.Alert.prototype.getUrl = function() {
- return /** @type{?proto.transit_realtime.TranslatedString} */ (
- jspb.Message.getWrapperField(this, proto.transit_realtime.TranslatedString, 8));
-};
-
-
-/**
- * @param {?proto.transit_realtime.TranslatedString|undefined} value
- * @return {!proto.transit_realtime.Alert} returns this
-*/
-proto.transit_realtime.Alert.prototype.setUrl = function(value) {
- return jspb.Message.setWrapperField(this, 8, value);
-};
-
-
-/**
- * Clears the message field making it undefined.
- * @return {!proto.transit_realtime.Alert} returns this
- */
-proto.transit_realtime.Alert.prototype.clearUrl = function() {
- return this.setUrl(undefined);
-};
-
-
-/**
- * Returns whether this field is set.
- * @return {boolean}
- */
-proto.transit_realtime.Alert.prototype.hasUrl = function() {
- return jspb.Message.getField(this, 8) != null;
-};
-
-
-/**
- * optional TranslatedString header_text = 10;
- * @return {?proto.transit_realtime.TranslatedString}
- */
-proto.transit_realtime.Alert.prototype.getHeaderText = function() {
- return /** @type{?proto.transit_realtime.TranslatedString} */ (
- jspb.Message.getWrapperField(this, proto.transit_realtime.TranslatedString, 10));
-};
-
-
-/**
- * @param {?proto.transit_realtime.TranslatedString|undefined} value
- * @return {!proto.transit_realtime.Alert} returns this
-*/
-proto.transit_realtime.Alert.prototype.setHeaderText = function(value) {
- return jspb.Message.setWrapperField(this, 10, value);
-};
-
-
-/**
- * Clears the message field making it undefined.
- * @return {!proto.transit_realtime.Alert} returns this
- */
-proto.transit_realtime.Alert.prototype.clearHeaderText = function() {
- return this.setHeaderText(undefined);
-};
-
-
-/**
- * Returns whether this field is set.
- * @return {boolean}
- */
-proto.transit_realtime.Alert.prototype.hasHeaderText = function() {
- return jspb.Message.getField(this, 10) != null;
-};
-
-
-/**
- * optional TranslatedString description_text = 11;
- * @return {?proto.transit_realtime.TranslatedString}
- */
-proto.transit_realtime.Alert.prototype.getDescriptionText = function() {
- return /** @type{?proto.transit_realtime.TranslatedString} */ (
- jspb.Message.getWrapperField(this, proto.transit_realtime.TranslatedString, 11));
-};
-
-
-/**
- * @param {?proto.transit_realtime.TranslatedString|undefined} value
- * @return {!proto.transit_realtime.Alert} returns this
-*/
-proto.transit_realtime.Alert.prototype.setDescriptionText = function(value) {
- return jspb.Message.setWrapperField(this, 11, value);
-};
-
-
-/**
- * Clears the message field making it undefined.
- * @return {!proto.transit_realtime.Alert} returns this
- */
-proto.transit_realtime.Alert.prototype.clearDescriptionText = function() {
- return this.setDescriptionText(undefined);
-};
-
-
-/**
- * Returns whether this field is set.
- * @return {boolean}
- */
-proto.transit_realtime.Alert.prototype.hasDescriptionText = function() {
- return jspb.Message.getField(this, 11) != null;
-};
-
-
-/**
- * optional TranslatedString tts_header_text = 12;
- * @return {?proto.transit_realtime.TranslatedString}
- */
-proto.transit_realtime.Alert.prototype.getTtsHeaderText = function() {
- return /** @type{?proto.transit_realtime.TranslatedString} */ (
- jspb.Message.getWrapperField(this, proto.transit_realtime.TranslatedString, 12));
-};
-
-
-/**
- * @param {?proto.transit_realtime.TranslatedString|undefined} value
- * @return {!proto.transit_realtime.Alert} returns this
-*/
-proto.transit_realtime.Alert.prototype.setTtsHeaderText = function(value) {
- return jspb.Message.setWrapperField(this, 12, value);
-};
-
-
-/**
- * Clears the message field making it undefined.
- * @return {!proto.transit_realtime.Alert} returns this
- */
-proto.transit_realtime.Alert.prototype.clearTtsHeaderText = function() {
- return this.setTtsHeaderText(undefined);
-};
-
-
-/**
- * Returns whether this field is set.
- * @return {boolean}
- */
-proto.transit_realtime.Alert.prototype.hasTtsHeaderText = function() {
- return jspb.Message.getField(this, 12) != null;
-};
-
-
-/**
- * optional TranslatedString tts_description_text = 13;
- * @return {?proto.transit_realtime.TranslatedString}
- */
-proto.transit_realtime.Alert.prototype.getTtsDescriptionText = function() {
- return /** @type{?proto.transit_realtime.TranslatedString} */ (
- jspb.Message.getWrapperField(this, proto.transit_realtime.TranslatedString, 13));
-};
-
-
-/**
- * @param {?proto.transit_realtime.TranslatedString|undefined} value
- * @return {!proto.transit_realtime.Alert} returns this
-*/
-proto.transit_realtime.Alert.prototype.setTtsDescriptionText = function(value) {
- return jspb.Message.setWrapperField(this, 13, value);
-};
-
-
-/**
- * Clears the message field making it undefined.
- * @return {!proto.transit_realtime.Alert} returns this
- */
-proto.transit_realtime.Alert.prototype.clearTtsDescriptionText = function() {
- return this.setTtsDescriptionText(undefined);
-};
-
-
-/**
- * Returns whether this field is set.
- * @return {boolean}
- */
-proto.transit_realtime.Alert.prototype.hasTtsDescriptionText = function() {
- return jspb.Message.getField(this, 13) != null;
-};
-
-
-/**
- * optional SeverityLevel severity_level = 14;
- * @return {!proto.transit_realtime.Alert.SeverityLevel}
- */
-proto.transit_realtime.Alert.prototype.getSeverityLevel = function() {
- return /** @type {!proto.transit_realtime.Alert.SeverityLevel} */ (jspb.Message.getFieldWithDefault(this, 14, 1));
-};
-
-
-/**
- * @param {!proto.transit_realtime.Alert.SeverityLevel} value
- * @return {!proto.transit_realtime.Alert} returns this
- */
-proto.transit_realtime.Alert.prototype.setSeverityLevel = function(value) {
- return jspb.Message.setField(this, 14, value);
-};
-
-
-/**
- * Clears the field making it undefined.
- * @return {!proto.transit_realtime.Alert} returns this
- */
-proto.transit_realtime.Alert.prototype.clearSeverityLevel = function() {
- return jspb.Message.setField(this, 14, undefined);
-};
-
-
-/**
- * Returns whether this field is set.
- * @return {boolean}
- */
-proto.transit_realtime.Alert.prototype.hasSeverityLevel = function() {
- return jspb.Message.getField(this, 14) != null;
-};
-
-
-/**
- * optional TranslatedImage image = 15;
- * @return {?proto.transit_realtime.TranslatedImage}
- */
-proto.transit_realtime.Alert.prototype.getImage = function() {
- return /** @type{?proto.transit_realtime.TranslatedImage} */ (
- jspb.Message.getWrapperField(this, proto.transit_realtime.TranslatedImage, 15));
-};
-
-
-/**
- * @param {?proto.transit_realtime.TranslatedImage|undefined} value
- * @return {!proto.transit_realtime.Alert} returns this
-*/
-proto.transit_realtime.Alert.prototype.setImage = function(value) {
- return jspb.Message.setWrapperField(this, 15, value);
-};
-
-
-/**
- * Clears the message field making it undefined.
- * @return {!proto.transit_realtime.Alert} returns this
- */
-proto.transit_realtime.Alert.prototype.clearImage = function() {
- return this.setImage(undefined);
-};
-
-
-/**
- * Returns whether this field is set.
- * @return {boolean}
- */
-proto.transit_realtime.Alert.prototype.hasImage = function() {
- return jspb.Message.getField(this, 15) != null;
-};
-
-
-/**
- * optional TranslatedString image_alternative_text = 16;
- * @return {?proto.transit_realtime.TranslatedString}
- */
-proto.transit_realtime.Alert.prototype.getImageAlternativeText = function() {
- return /** @type{?proto.transit_realtime.TranslatedString} */ (
- jspb.Message.getWrapperField(this, proto.transit_realtime.TranslatedString, 16));
-};
-
-
-/**
- * @param {?proto.transit_realtime.TranslatedString|undefined} value
- * @return {!proto.transit_realtime.Alert} returns this
-*/
-proto.transit_realtime.Alert.prototype.setImageAlternativeText = function(value) {
- return jspb.Message.setWrapperField(this, 16, value);
-};
-
-
-/**
- * Clears the message field making it undefined.
- * @return {!proto.transit_realtime.Alert} returns this
- */
-proto.transit_realtime.Alert.prototype.clearImageAlternativeText = function() {
- return this.setImageAlternativeText(undefined);
-};
-
-
-/**
- * Returns whether this field is set.
- * @return {boolean}
- */
-proto.transit_realtime.Alert.prototype.hasImageAlternativeText = function() {
- return jspb.Message.getField(this, 16) != null;
-};
-
-
-/**
- * optional TranslatedString cause_detail = 17;
- * @return {?proto.transit_realtime.TranslatedString}
- */
-proto.transit_realtime.Alert.prototype.getCauseDetail = function() {
- return /** @type{?proto.transit_realtime.TranslatedString} */ (
- jspb.Message.getWrapperField(this, proto.transit_realtime.TranslatedString, 17));
-};
-
-
-/**
- * @param {?proto.transit_realtime.TranslatedString|undefined} value
- * @return {!proto.transit_realtime.Alert} returns this
-*/
-proto.transit_realtime.Alert.prototype.setCauseDetail = function(value) {
- return jspb.Message.setWrapperField(this, 17, value);
-};
-
-
-/**
- * Clears the message field making it undefined.
- * @return {!proto.transit_realtime.Alert} returns this
- */
-proto.transit_realtime.Alert.prototype.clearCauseDetail = function() {
- return this.setCauseDetail(undefined);
-};
-
-
-/**
- * Returns whether this field is set.
- * @return {boolean}
- */
-proto.transit_realtime.Alert.prototype.hasCauseDetail = function() {
- return jspb.Message.getField(this, 17) != null;
-};
-
-
-/**
- * optional TranslatedString effect_detail = 18;
- * @return {?proto.transit_realtime.TranslatedString}
- */
-proto.transit_realtime.Alert.prototype.getEffectDetail = function() {
- return /** @type{?proto.transit_realtime.TranslatedString} */ (
- jspb.Message.getWrapperField(this, proto.transit_realtime.TranslatedString, 18));
-};
-
-
-/**
- * @param {?proto.transit_realtime.TranslatedString|undefined} value
- * @return {!proto.transit_realtime.Alert} returns this
-*/
-proto.transit_realtime.Alert.prototype.setEffectDetail = function(value) {
- return jspb.Message.setWrapperField(this, 18, value);
-};
-
-
-/**
- * Clears the message field making it undefined.
- * @return {!proto.transit_realtime.Alert} returns this
- */
-proto.transit_realtime.Alert.prototype.clearEffectDetail = function() {
- return this.setEffectDetail(undefined);
-};
-
-
-/**
- * Returns whether this field is set.
- * @return {boolean}
- */
-proto.transit_realtime.Alert.prototype.hasEffectDetail = function() {
- return jspb.Message.getField(this, 18) != 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_, 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.transit_realtime.TimeRange.prototype.toObject = function(opt_includeInstance) {
- return proto.transit_realtime.TimeRange.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.transit_realtime.TimeRange} msg The msg instance to transform.
- * @return {!Object}
- * @suppress {unusedLocalVariables} f is only used for nested messages
- */
-proto.transit_realtime.TimeRange.toObject = function(includeInstance, msg) {
- var f, obj = {
- start: (f = jspb.Message.getField(msg, 1)) == null ? undefined : f,
- end: (f = jspb.Message.getField(msg, 2)) == null ? undefined : f
- };
-
- jspb.Message.toObjectExtension(/** @type {!jspb.Message} */ (msg), obj,
- proto.transit_realtime.TimeRange.extensions, proto.transit_realtime.TimeRange.prototype.getExtension,
- 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.transit_realtime.TimeRange}
- */
-proto.transit_realtime.TimeRange.deserializeBinary = function(bytes) {
- var reader = new jspb.BinaryReader(bytes);
- var msg = new proto.transit_realtime.TimeRange;
- return proto.transit_realtime.TimeRange.deserializeBinaryFromReader(msg, reader);
-};
-
-
-/**
- * Deserializes binary data (in protobuf wire format) from the
- * given reader into the given message object.
- * @param {!proto.transit_realtime.TimeRange} msg The message object to deserialize into.
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
- * @return {!proto.transit_realtime.TimeRange}
- */
-proto.transit_realtime.TimeRange.deserializeBinaryFromReader = function(msg, reader) {
- while (reader.nextField()) {
- if (reader.isEndGroup()) {
- break;
- }
- var field = reader.getFieldNumber();
- switch (field) {
- case 1:
- var value = /** @type {number} */ (reader.readUint64());
- msg.setStart(value);
- break;
- case 2:
- var value = /** @type {number} */ (reader.readUint64());
- msg.setEnd(value);
- break;
- default:
- jspb.Message.readBinaryExtension(msg, reader,
- proto.transit_realtime.TimeRange.extensionsBinary,
- proto.transit_realtime.TimeRange.prototype.getExtension,
- proto.transit_realtime.TimeRange.prototype.setExtension);
- break;
- }
- }
- return msg;
-};
-
-
-/**
- * Serializes the message to binary data (in protobuf wire format).
- * @return {!Uint8Array}
- */
-proto.transit_realtime.TimeRange.prototype.serializeBinary = function() {
- var writer = new jspb.BinaryWriter();
- proto.transit_realtime.TimeRange.serializeBinaryToWriter(this, writer);
- return writer.getResultBuffer();
-};
-
-
-/**
- * Serializes the given message to binary data (in protobuf wire
- * format), writing to the given BinaryWriter.
- * @param {!proto.transit_realtime.TimeRange} message
- * @param {!jspb.BinaryWriter} writer
- * @suppress {unusedLocalVariables} f is only used for nested messages
- */
-proto.transit_realtime.TimeRange.serializeBinaryToWriter = function(message, writer) {
- var f = undefined;
- f = /** @type {number} */ (jspb.Message.getField(message, 1));
- if (f != null) {
- writer.writeUint64(
- 1,
- f
- );
- }
- f = /** @type {number} */ (jspb.Message.getField(message, 2));
- if (f != null) {
- writer.writeUint64(
- 2,
- f
- );
- }
- jspb.Message.serializeBinaryExtensions(message, writer,
- proto.transit_realtime.TimeRange.extensionsBinary, proto.transit_realtime.TimeRange.prototype.getExtension);
-};
-
-
-/**
- * optional uint64 start = 1;
- * @return {number}
- */
-proto.transit_realtime.TimeRange.prototype.getStart = function() {
- return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
-};
-
-
-/**
- * @param {number} value
- * @return {!proto.transit_realtime.TimeRange} returns this
- */
-proto.transit_realtime.TimeRange.prototype.setStart = function(value) {
- return jspb.Message.setField(this, 1, value);
-};
-
-
-/**
- * Clears the field making it undefined.
- * @return {!proto.transit_realtime.TimeRange} returns this
- */
-proto.transit_realtime.TimeRange.prototype.clearStart = function() {
- return jspb.Message.setField(this, 1, undefined);
-};
-
-
-/**
- * Returns whether this field is set.
- * @return {boolean}
- */
-proto.transit_realtime.TimeRange.prototype.hasStart = function() {
- return jspb.Message.getField(this, 1) != null;
-};
-
-
-/**
- * optional uint64 end = 2;
- * @return {number}
- */
-proto.transit_realtime.TimeRange.prototype.getEnd = function() {
- return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
-};
-
-
-/**
- * @param {number} value
- * @return {!proto.transit_realtime.TimeRange} returns this
- */
-proto.transit_realtime.TimeRange.prototype.setEnd = function(value) {
- return jspb.Message.setField(this, 2, value);
-};
-
-
-/**
- * Clears the field making it undefined.
- * @return {!proto.transit_realtime.TimeRange} returns this
- */
-proto.transit_realtime.TimeRange.prototype.clearEnd = function() {
- return jspb.Message.setField(this, 2, undefined);
-};
-
-
-/**
- * Returns whether this field is set.
- * @return {boolean}
- */
-proto.transit_realtime.TimeRange.prototype.hasEnd = function() {
- return jspb.Message.getField(this, 2) != null;
-};
-
-
-
-
-
-if (jspb.Message.GENERATE_TO_OBJECT) {
-/**
- * Creates an object representation of this proto.
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
- * Optional fields that are not set will be set to undefined.
- * To access a reserved field use, foo.pb_, 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.transit_realtime.Position.prototype.toObject = function(opt_includeInstance) {
- return proto.transit_realtime.Position.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.transit_realtime.Position} msg The msg instance to transform.
- * @return {!Object}
- * @suppress {unusedLocalVariables} f is only used for nested messages
- */
-proto.transit_realtime.Position.toObject = function(includeInstance, msg) {
- var f, obj = {
- latitude: (f = jspb.Message.getOptionalFloatingPointField(msg, 1)) == null ? undefined : f,
- longitude: (f = jspb.Message.getOptionalFloatingPointField(msg, 2)) == null ? undefined : f,
- bearing: (f = jspb.Message.getOptionalFloatingPointField(msg, 3)) == null ? undefined : f,
- odometer: (f = jspb.Message.getOptionalFloatingPointField(msg, 4)) == null ? undefined : f,
- speed: (f = jspb.Message.getOptionalFloatingPointField(msg, 5)) == null ? undefined : f
- };
-
- jspb.Message.toObjectExtension(/** @type {!jspb.Message} */ (msg), obj,
- proto.transit_realtime.Position.extensions, proto.transit_realtime.Position.prototype.getExtension,
- 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.transit_realtime.Position}
- */
-proto.transit_realtime.Position.deserializeBinary = function(bytes) {
- var reader = new jspb.BinaryReader(bytes);
- var msg = new proto.transit_realtime.Position;
- return proto.transit_realtime.Position.deserializeBinaryFromReader(msg, reader);
-};
-
-
-/**
- * Deserializes binary data (in protobuf wire format) from the
- * given reader into the given message object.
- * @param {!proto.transit_realtime.Position} msg The message object to deserialize into.
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
- * @return {!proto.transit_realtime.Position}
- */
-proto.transit_realtime.Position.deserializeBinaryFromReader = function(msg, reader) {
- while (reader.nextField()) {
- if (reader.isEndGroup()) {
- break;
- }
- var field = reader.getFieldNumber();
- switch (field) {
- case 1:
- var value = /** @type {number} */ (reader.readFloat());
- msg.setLatitude(value);
- break;
- case 2:
- var value = /** @type {number} */ (reader.readFloat());
- msg.setLongitude(value);
- break;
- case 3:
- var value = /** @type {number} */ (reader.readFloat());
- msg.setBearing(value);
- break;
- case 4:
- var value = /** @type {number} */ (reader.readDouble());
- msg.setOdometer(value);
- break;
- case 5:
- var value = /** @type {number} */ (reader.readFloat());
- msg.setSpeed(value);
- break;
- default:
- jspb.Message.readBinaryExtension(msg, reader,
- proto.transit_realtime.Position.extensionsBinary,
- proto.transit_realtime.Position.prototype.getExtension,
- proto.transit_realtime.Position.prototype.setExtension);
- break;
- }
- }
- return msg;
-};
-
-
-/**
- * Serializes the message to binary data (in protobuf wire format).
- * @return {!Uint8Array}
- */
-proto.transit_realtime.Position.prototype.serializeBinary = function() {
- var writer = new jspb.BinaryWriter();
- proto.transit_realtime.Position.serializeBinaryToWriter(this, writer);
- return writer.getResultBuffer();
-};
-
-
-/**
- * Serializes the given message to binary data (in protobuf wire
- * format), writing to the given BinaryWriter.
- * @param {!proto.transit_realtime.Position} message
- * @param {!jspb.BinaryWriter} writer
- * @suppress {unusedLocalVariables} f is only used for nested messages
- */
-proto.transit_realtime.Position.serializeBinaryToWriter = function(message, writer) {
- var f = undefined;
- f = /** @type {number} */ (jspb.Message.getField(message, 1));
- if (f != null) {
- writer.writeFloat(
- 1,
- f
- );
- }
- f = /** @type {number} */ (jspb.Message.getField(message, 2));
- if (f != null) {
- writer.writeFloat(
- 2,
- f
- );
- }
- f = /** @type {number} */ (jspb.Message.getField(message, 3));
- if (f != null) {
- writer.writeFloat(
- 3,
- f
- );
- }
- f = /** @type {number} */ (jspb.Message.getField(message, 4));
- if (f != null) {
- writer.writeDouble(
- 4,
- f
- );
- }
- f = /** @type {number} */ (jspb.Message.getField(message, 5));
- if (f != null) {
- writer.writeFloat(
- 5,
- f
- );
- }
- jspb.Message.serializeBinaryExtensions(message, writer,
- proto.transit_realtime.Position.extensionsBinary, proto.transit_realtime.Position.prototype.getExtension);
-};
-
-
-/**
- * required float latitude = 1;
- * @return {number}
- */
-proto.transit_realtime.Position.prototype.getLatitude = function() {
- return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 1, 0.0));
-};
-
-
-/**
- * @param {number} value
- * @return {!proto.transit_realtime.Position} returns this
- */
-proto.transit_realtime.Position.prototype.setLatitude = function(value) {
- return jspb.Message.setField(this, 1, value);
-};
-
-
-/**
- * Clears the field making it undefined.
- * @return {!proto.transit_realtime.Position} returns this
- */
-proto.transit_realtime.Position.prototype.clearLatitude = function() {
- return jspb.Message.setField(this, 1, undefined);
-};
-
-
-/**
- * Returns whether this field is set.
- * @return {boolean}
- */
-proto.transit_realtime.Position.prototype.hasLatitude = function() {
- return jspb.Message.getField(this, 1) != null;
-};
-
-
-/**
- * required float longitude = 2;
- * @return {number}
- */
-proto.transit_realtime.Position.prototype.getLongitude = function() {
- return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 2, 0.0));
-};
-
-
-/**
- * @param {number} value
- * @return {!proto.transit_realtime.Position} returns this
- */
-proto.transit_realtime.Position.prototype.setLongitude = function(value) {
- return jspb.Message.setField(this, 2, value);
-};
-
-
-/**
- * Clears the field making it undefined.
- * @return {!proto.transit_realtime.Position} returns this
- */
-proto.transit_realtime.Position.prototype.clearLongitude = function() {
- return jspb.Message.setField(this, 2, undefined);
-};
-
-
-/**
- * Returns whether this field is set.
- * @return {boolean}
- */
-proto.transit_realtime.Position.prototype.hasLongitude = function() {
- return jspb.Message.getField(this, 2) != null;
-};
-
-
-/**
- * optional float bearing = 3;
- * @return {number}
- */
-proto.transit_realtime.Position.prototype.getBearing = function() {
- return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 3, 0.0));
-};
-
-
-/**
- * @param {number} value
- * @return {!proto.transit_realtime.Position} returns this
- */
-proto.transit_realtime.Position.prototype.setBearing = function(value) {
- return jspb.Message.setField(this, 3, value);
-};
-
-
-/**
- * Clears the field making it undefined.
- * @return {!proto.transit_realtime.Position} returns this
- */
-proto.transit_realtime.Position.prototype.clearBearing = function() {
- return jspb.Message.setField(this, 3, undefined);
-};
-
-
-/**
- * Returns whether this field is set.
- * @return {boolean}
- */
-proto.transit_realtime.Position.prototype.hasBearing = function() {
- return jspb.Message.getField(this, 3) != null;
-};
-
-
-/**
- * optional double odometer = 4;
- * @return {number}
- */
-proto.transit_realtime.Position.prototype.getOdometer = function() {
- return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 4, 0.0));
-};
-
-
-/**
- * @param {number} value
- * @return {!proto.transit_realtime.Position} returns this
- */
-proto.transit_realtime.Position.prototype.setOdometer = function(value) {
- return jspb.Message.setField(this, 4, value);
-};
-
-
-/**
- * Clears the field making it undefined.
- * @return {!proto.transit_realtime.Position} returns this
- */
-proto.transit_realtime.Position.prototype.clearOdometer = function() {
- return jspb.Message.setField(this, 4, undefined);
-};
-
-
-/**
- * Returns whether this field is set.
- * @return {boolean}
- */
-proto.transit_realtime.Position.prototype.hasOdometer = function() {
- return jspb.Message.getField(this, 4) != null;
-};
-
-
-/**
- * optional float speed = 5;
- * @return {number}
- */
-proto.transit_realtime.Position.prototype.getSpeed = function() {
- return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 5, 0.0));
-};
-
-
-/**
- * @param {number} value
- * @return {!proto.transit_realtime.Position} returns this
- */
-proto.transit_realtime.Position.prototype.setSpeed = function(value) {
- return jspb.Message.setField(this, 5, value);
-};
-
-
-/**
- * Clears the field making it undefined.
- * @return {!proto.transit_realtime.Position} returns this
- */
-proto.transit_realtime.Position.prototype.clearSpeed = function() {
- return jspb.Message.setField(this, 5, undefined);
-};
-
-
-/**
- * Returns whether this field is set.
- * @return {boolean}
- */
-proto.transit_realtime.Position.prototype.hasSpeed = function() {
- return jspb.Message.getField(this, 5) != 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_, 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.transit_realtime.TripDescriptor.prototype.toObject = function(opt_includeInstance) {
- return proto.transit_realtime.TripDescriptor.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.transit_realtime.TripDescriptor} msg The msg instance to transform.
- * @return {!Object}
- * @suppress {unusedLocalVariables} f is only used for nested messages
- */
-proto.transit_realtime.TripDescriptor.toObject = function(includeInstance, msg) {
- var f, obj = {
- tripId: (f = jspb.Message.getField(msg, 1)) == null ? undefined : f,
- routeId: (f = jspb.Message.getField(msg, 5)) == null ? undefined : f,
- directionId: (f = jspb.Message.getField(msg, 6)) == null ? undefined : f,
- startTime: (f = jspb.Message.getField(msg, 2)) == null ? undefined : f,
- startDate: (f = jspb.Message.getField(msg, 3)) == null ? undefined : f,
- scheduleRelationship: (f = jspb.Message.getField(msg, 4)) == null ? undefined : f,
- modifiedTrip: (f = msg.getModifiedTrip()) && proto.transit_realtime.TripDescriptor.ModifiedTripSelector.toObject(includeInstance, f)
- };
-
- jspb.Message.toObjectExtension(/** @type {!jspb.Message} */ (msg), obj,
- proto.transit_realtime.TripDescriptor.extensions, proto.transit_realtime.TripDescriptor.prototype.getExtension,
- 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.transit_realtime.TripDescriptor}
- */
-proto.transit_realtime.TripDescriptor.deserializeBinary = function(bytes) {
- var reader = new jspb.BinaryReader(bytes);
- var msg = new proto.transit_realtime.TripDescriptor;
- return proto.transit_realtime.TripDescriptor.deserializeBinaryFromReader(msg, reader);
-};
-
-
-/**
- * Deserializes binary data (in protobuf wire format) from the
- * given reader into the given message object.
- * @param {!proto.transit_realtime.TripDescriptor} msg The message object to deserialize into.
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
- * @return {!proto.transit_realtime.TripDescriptor}
- */
-proto.transit_realtime.TripDescriptor.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.setTripId(value);
- break;
- case 5:
- var value = /** @type {string} */ (reader.readString());
- msg.setRouteId(value);
- break;
- case 6:
- var value = /** @type {number} */ (reader.readUint32());
- msg.setDirectionId(value);
- break;
- case 2:
- var value = /** @type {string} */ (reader.readString());
- msg.setStartTime(value);
- break;
- case 3:
- var value = /** @type {string} */ (reader.readString());
- msg.setStartDate(value);
- break;
- case 4:
- var value = /** @type {!proto.transit_realtime.TripDescriptor.ScheduleRelationship} */ (reader.readEnum());
- msg.setScheduleRelationship(value);
- break;
- case 7:
- var value = new proto.transit_realtime.TripDescriptor.ModifiedTripSelector;
- reader.readMessage(value,proto.transit_realtime.TripDescriptor.ModifiedTripSelector.deserializeBinaryFromReader);
- msg.setModifiedTrip(value);
- break;
- default:
- jspb.Message.readBinaryExtension(msg, reader,
- proto.transit_realtime.TripDescriptor.extensionsBinary,
- proto.transit_realtime.TripDescriptor.prototype.getExtension,
- proto.transit_realtime.TripDescriptor.prototype.setExtension);
- break;
- }
- }
- return msg;
-};
-
-
-/**
- * Serializes the message to binary data (in protobuf wire format).
- * @return {!Uint8Array}
- */
-proto.transit_realtime.TripDescriptor.prototype.serializeBinary = function() {
- var writer = new jspb.BinaryWriter();
- proto.transit_realtime.TripDescriptor.serializeBinaryToWriter(this, writer);
- return writer.getResultBuffer();
-};
-
-
-/**
- * Serializes the given message to binary data (in protobuf wire
- * format), writing to the given BinaryWriter.
- * @param {!proto.transit_realtime.TripDescriptor} message
- * @param {!jspb.BinaryWriter} writer
- * @suppress {unusedLocalVariables} f is only used for nested messages
- */
-proto.transit_realtime.TripDescriptor.serializeBinaryToWriter = function(message, writer) {
- var f = undefined;
- f = /** @type {string} */ (jspb.Message.getField(message, 1));
- if (f != null) {
- writer.writeString(
- 1,
- f
- );
- }
- f = /** @type {string} */ (jspb.Message.getField(message, 5));
- if (f != null) {
- writer.writeString(
- 5,
- f
- );
- }
- f = /** @type {number} */ (jspb.Message.getField(message, 6));
- if (f != null) {
- writer.writeUint32(
- 6,
- f
- );
- }
- f = /** @type {string} */ (jspb.Message.getField(message, 2));
- if (f != null) {
- writer.writeString(
- 2,
- f
- );
- }
- f = /** @type {string} */ (jspb.Message.getField(message, 3));
- if (f != null) {
- writer.writeString(
- 3,
- f
- );
- }
- f = /** @type {!proto.transit_realtime.TripDescriptor.ScheduleRelationship} */ (jspb.Message.getField(message, 4));
- if (f != null) {
- writer.writeEnum(
- 4,
- f
- );
- }
- f = message.getModifiedTrip();
- if (f != null) {
- writer.writeMessage(
- 7,
- f,
- proto.transit_realtime.TripDescriptor.ModifiedTripSelector.serializeBinaryToWriter
- );
- }
- jspb.Message.serializeBinaryExtensions(message, writer,
- proto.transit_realtime.TripDescriptor.extensionsBinary, proto.transit_realtime.TripDescriptor.prototype.getExtension);
-};
-
-
-/**
- * @enum {number}
- */
-proto.transit_realtime.TripDescriptor.ScheduleRelationship = {
- SCHEDULED: 0,
- ADDED: 1,
- UNSCHEDULED: 2,
- CANCELED: 3,
- REPLACEMENT: 5,
- DUPLICATED: 6,
- DELETED: 7
-};
-
-
-
-
-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_, 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.transit_realtime.TripDescriptor.ModifiedTripSelector.prototype.toObject = function(opt_includeInstance) {
- return proto.transit_realtime.TripDescriptor.ModifiedTripSelector.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.transit_realtime.TripDescriptor.ModifiedTripSelector} msg The msg instance to transform.
- * @return {!Object}
- * @suppress {unusedLocalVariables} f is only used for nested messages
- */
-proto.transit_realtime.TripDescriptor.ModifiedTripSelector.toObject = function(includeInstance, msg) {
- var f, obj = {
- modificationsId: (f = jspb.Message.getField(msg, 1)) == null ? undefined : f,
- affectedTripId: (f = jspb.Message.getField(msg, 2)) == null ? undefined : 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.transit_realtime.TripDescriptor.ModifiedTripSelector}
- */
-proto.transit_realtime.TripDescriptor.ModifiedTripSelector.deserializeBinary = function(bytes) {
- var reader = new jspb.BinaryReader(bytes);
- var msg = new proto.transit_realtime.TripDescriptor.ModifiedTripSelector;
- return proto.transit_realtime.TripDescriptor.ModifiedTripSelector.deserializeBinaryFromReader(msg, reader);
-};
-
-
-/**
- * Deserializes binary data (in protobuf wire format) from the
- * given reader into the given message object.
- * @param {!proto.transit_realtime.TripDescriptor.ModifiedTripSelector} msg The message object to deserialize into.
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
- * @return {!proto.transit_realtime.TripDescriptor.ModifiedTripSelector}
- */
-proto.transit_realtime.TripDescriptor.ModifiedTripSelector.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.setModificationsId(value);
- break;
- case 2:
- var value = /** @type {string} */ (reader.readString());
- msg.setAffectedTripId(value);
- break;
- default:
- reader.skipField();
- break;
- }
- }
- return msg;
-};
-
-
-/**
- * Serializes the message to binary data (in protobuf wire format).
- * @return {!Uint8Array}
- */
-proto.transit_realtime.TripDescriptor.ModifiedTripSelector.prototype.serializeBinary = function() {
- var writer = new jspb.BinaryWriter();
- proto.transit_realtime.TripDescriptor.ModifiedTripSelector.serializeBinaryToWriter(this, writer);
- return writer.getResultBuffer();
-};
-
-
-/**
- * Serializes the given message to binary data (in protobuf wire
- * format), writing to the given BinaryWriter.
- * @param {!proto.transit_realtime.TripDescriptor.ModifiedTripSelector} message
- * @param {!jspb.BinaryWriter} writer
- * @suppress {unusedLocalVariables} f is only used for nested messages
- */
-proto.transit_realtime.TripDescriptor.ModifiedTripSelector.serializeBinaryToWriter = function(message, writer) {
- var f = undefined;
- f = /** @type {string} */ (jspb.Message.getField(message, 1));
- if (f != null) {
- writer.writeString(
- 1,
- f
- );
- }
- f = /** @type {string} */ (jspb.Message.getField(message, 2));
- if (f != null) {
- writer.writeString(
- 2,
- f
- );
- }
-};
-
-
-/**
- * optional string modifications_id = 1;
- * @return {string}
- */
-proto.transit_realtime.TripDescriptor.ModifiedTripSelector.prototype.getModificationsId = function() {
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
-};
-
-
-/**
- * @param {string} value
- * @return {!proto.transit_realtime.TripDescriptor.ModifiedTripSelector} returns this
- */
-proto.transit_realtime.TripDescriptor.ModifiedTripSelector.prototype.setModificationsId = function(value) {
- return jspb.Message.setField(this, 1, value);
-};
-
-
-/**
- * Clears the field making it undefined.
- * @return {!proto.transit_realtime.TripDescriptor.ModifiedTripSelector} returns this
- */
-proto.transit_realtime.TripDescriptor.ModifiedTripSelector.prototype.clearModificationsId = function() {
- return jspb.Message.setField(this, 1, undefined);
-};
-
-
-/**
- * Returns whether this field is set.
- * @return {boolean}
- */
-proto.transit_realtime.TripDescriptor.ModifiedTripSelector.prototype.hasModificationsId = function() {
- return jspb.Message.getField(this, 1) != null;
-};
-
-
-/**
- * optional string affected_trip_id = 2;
- * @return {string}
- */
-proto.transit_realtime.TripDescriptor.ModifiedTripSelector.prototype.getAffectedTripId = function() {
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
-};
-
-
-/**
- * @param {string} value
- * @return {!proto.transit_realtime.TripDescriptor.ModifiedTripSelector} returns this
- */
-proto.transit_realtime.TripDescriptor.ModifiedTripSelector.prototype.setAffectedTripId = function(value) {
- return jspb.Message.setField(this, 2, value);
-};
-
-
-/**
- * Clears the field making it undefined.
- * @return {!proto.transit_realtime.TripDescriptor.ModifiedTripSelector} returns this
- */
-proto.transit_realtime.TripDescriptor.ModifiedTripSelector.prototype.clearAffectedTripId = function() {
- return jspb.Message.setField(this, 2, undefined);
-};
-
-
-/**
- * Returns whether this field is set.
- * @return {boolean}
- */
-proto.transit_realtime.TripDescriptor.ModifiedTripSelector.prototype.hasAffectedTripId = function() {
- return jspb.Message.getField(this, 2) != null;
-};
-
-
-/**
- * optional string trip_id = 1;
- * @return {string}
- */
-proto.transit_realtime.TripDescriptor.prototype.getTripId = function() {
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
-};
-
-
-/**
- * @param {string} value
- * @return {!proto.transit_realtime.TripDescriptor} returns this
- */
-proto.transit_realtime.TripDescriptor.prototype.setTripId = function(value) {
- return jspb.Message.setField(this, 1, value);
-};
-
-
-/**
- * Clears the field making it undefined.
- * @return {!proto.transit_realtime.TripDescriptor} returns this
- */
-proto.transit_realtime.TripDescriptor.prototype.clearTripId = function() {
- return jspb.Message.setField(this, 1, undefined);
-};
-
-
-/**
- * Returns whether this field is set.
- * @return {boolean}
- */
-proto.transit_realtime.TripDescriptor.prototype.hasTripId = function() {
- return jspb.Message.getField(this, 1) != null;
-};
-
-
-/**
- * optional string route_id = 5;
- * @return {string}
- */
-proto.transit_realtime.TripDescriptor.prototype.getRouteId = function() {
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
-};
-
-
-/**
- * @param {string} value
- * @return {!proto.transit_realtime.TripDescriptor} returns this
- */
-proto.transit_realtime.TripDescriptor.prototype.setRouteId = function(value) {
- return jspb.Message.setField(this, 5, value);
-};
-
-
-/**
- * Clears the field making it undefined.
- * @return {!proto.transit_realtime.TripDescriptor} returns this
- */
-proto.transit_realtime.TripDescriptor.prototype.clearRouteId = function() {
- return jspb.Message.setField(this, 5, undefined);
-};
-
-
-/**
- * Returns whether this field is set.
- * @return {boolean}
- */
-proto.transit_realtime.TripDescriptor.prototype.hasRouteId = function() {
- return jspb.Message.getField(this, 5) != null;
-};
-
-
-/**
- * optional uint32 direction_id = 6;
- * @return {number}
- */
-proto.transit_realtime.TripDescriptor.prototype.getDirectionId = function() {
- return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 6, 0));
-};
-
-
-/**
- * @param {number} value
- * @return {!proto.transit_realtime.TripDescriptor} returns this
- */
-proto.transit_realtime.TripDescriptor.prototype.setDirectionId = function(value) {
- return jspb.Message.setField(this, 6, value);
-};
-
-
-/**
- * Clears the field making it undefined.
- * @return {!proto.transit_realtime.TripDescriptor} returns this
- */
-proto.transit_realtime.TripDescriptor.prototype.clearDirectionId = function() {
- return jspb.Message.setField(this, 6, undefined);
-};
-
-
-/**
- * Returns whether this field is set.
- * @return {boolean}
- */
-proto.transit_realtime.TripDescriptor.prototype.hasDirectionId = function() {
- return jspb.Message.getField(this, 6) != null;
-};
-
-
-/**
- * optional string start_time = 2;
- * @return {string}
- */
-proto.transit_realtime.TripDescriptor.prototype.getStartTime = function() {
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
-};
-
-
-/**
- * @param {string} value
- * @return {!proto.transit_realtime.TripDescriptor} returns this
- */
-proto.transit_realtime.TripDescriptor.prototype.setStartTime = function(value) {
- return jspb.Message.setField(this, 2, value);
-};
-
-
-/**
- * Clears the field making it undefined.
- * @return {!proto.transit_realtime.TripDescriptor} returns this
- */
-proto.transit_realtime.TripDescriptor.prototype.clearStartTime = function() {
- return jspb.Message.setField(this, 2, undefined);
-};
-
-
-/**
- * Returns whether this field is set.
- * @return {boolean}
- */
-proto.transit_realtime.TripDescriptor.prototype.hasStartTime = function() {
- return jspb.Message.getField(this, 2) != null;
-};
-
-
-/**
- * optional string start_date = 3;
- * @return {string}
- */
-proto.transit_realtime.TripDescriptor.prototype.getStartDate = function() {
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
-};
-
-
-/**
- * @param {string} value
- * @return {!proto.transit_realtime.TripDescriptor} returns this
- */
-proto.transit_realtime.TripDescriptor.prototype.setStartDate = function(value) {
- return jspb.Message.setField(this, 3, value);
-};
-
-
-/**
- * Clears the field making it undefined.
- * @return {!proto.transit_realtime.TripDescriptor} returns this
- */
-proto.transit_realtime.TripDescriptor.prototype.clearStartDate = function() {
- return jspb.Message.setField(this, 3, undefined);
-};
-
-
-/**
- * Returns whether this field is set.
- * @return {boolean}
- */
-proto.transit_realtime.TripDescriptor.prototype.hasStartDate = function() {
- return jspb.Message.getField(this, 3) != null;
-};
-
-
-/**
- * optional ScheduleRelationship schedule_relationship = 4;
- * @return {!proto.transit_realtime.TripDescriptor.ScheduleRelationship}
- */
-proto.transit_realtime.TripDescriptor.prototype.getScheduleRelationship = function() {
- return /** @type {!proto.transit_realtime.TripDescriptor.ScheduleRelationship} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
-};
-
-
-/**
- * @param {!proto.transit_realtime.TripDescriptor.ScheduleRelationship} value
- * @return {!proto.transit_realtime.TripDescriptor} returns this
- */
-proto.transit_realtime.TripDescriptor.prototype.setScheduleRelationship = function(value) {
- return jspb.Message.setField(this, 4, value);
-};
-
-
-/**
- * Clears the field making it undefined.
- * @return {!proto.transit_realtime.TripDescriptor} returns this
- */
-proto.transit_realtime.TripDescriptor.prototype.clearScheduleRelationship = function() {
- return jspb.Message.setField(this, 4, undefined);
-};
-
-
-/**
- * Returns whether this field is set.
- * @return {boolean}
- */
-proto.transit_realtime.TripDescriptor.prototype.hasScheduleRelationship = function() {
- return jspb.Message.getField(this, 4) != null;
-};
-
-
-/**
- * optional ModifiedTripSelector modified_trip = 7;
- * @return {?proto.transit_realtime.TripDescriptor.ModifiedTripSelector}
- */
-proto.transit_realtime.TripDescriptor.prototype.getModifiedTrip = function() {
- return /** @type{?proto.transit_realtime.TripDescriptor.ModifiedTripSelector} */ (
- jspb.Message.getWrapperField(this, proto.transit_realtime.TripDescriptor.ModifiedTripSelector, 7));
-};
-
-
-/**
- * @param {?proto.transit_realtime.TripDescriptor.ModifiedTripSelector|undefined} value
- * @return {!proto.transit_realtime.TripDescriptor} returns this
-*/
-proto.transit_realtime.TripDescriptor.prototype.setModifiedTrip = function(value) {
- return jspb.Message.setWrapperField(this, 7, value);
-};
-
-
-/**
- * Clears the message field making it undefined.
- * @return {!proto.transit_realtime.TripDescriptor} returns this
- */
-proto.transit_realtime.TripDescriptor.prototype.clearModifiedTrip = function() {
- return this.setModifiedTrip(undefined);
-};
-
-
-/**
- * Returns whether this field is set.
- * @return {boolean}
- */
-proto.transit_realtime.TripDescriptor.prototype.hasModifiedTrip = function() {
- return jspb.Message.getField(this, 7) != null;
-};
-
-
-
-
-
-if (jspb.Message.GENERATE_TO_OBJECT) {
-/**
- * Creates an object representation of this proto.
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
- * Optional fields that are not set will be set to undefined.
- * To access a reserved field use, foo.pb_, 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.transit_realtime.VehicleDescriptor.prototype.toObject = function(opt_includeInstance) {
- return proto.transit_realtime.VehicleDescriptor.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.transit_realtime.VehicleDescriptor} msg The msg instance to transform.
- * @return {!Object}
- * @suppress {unusedLocalVariables} f is only used for nested messages
- */
-proto.transit_realtime.VehicleDescriptor.toObject = function(includeInstance, msg) {
- var f, obj = {
- id: (f = jspb.Message.getField(msg, 1)) == null ? undefined : f,
- label: (f = jspb.Message.getField(msg, 2)) == null ? undefined : f,
- licensePlate: (f = jspb.Message.getField(msg, 3)) == null ? undefined : f,
- wheelchairAccessible: jspb.Message.getFieldWithDefault(msg, 4, 0)
- };
-
- jspb.Message.toObjectExtension(/** @type {!jspb.Message} */ (msg), obj,
- proto.transit_realtime.VehicleDescriptor.extensions, proto.transit_realtime.VehicleDescriptor.prototype.getExtension,
- 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.transit_realtime.VehicleDescriptor}
- */
-proto.transit_realtime.VehicleDescriptor.deserializeBinary = function(bytes) {
- var reader = new jspb.BinaryReader(bytes);
- var msg = new proto.transit_realtime.VehicleDescriptor;
- return proto.transit_realtime.VehicleDescriptor.deserializeBinaryFromReader(msg, reader);
-};
-
-
-/**
- * Deserializes binary data (in protobuf wire format) from the
- * given reader into the given message object.
- * @param {!proto.transit_realtime.VehicleDescriptor} msg The message object to deserialize into.
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
- * @return {!proto.transit_realtime.VehicleDescriptor}
- */
-proto.transit_realtime.VehicleDescriptor.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 = /** @type {string} */ (reader.readString());
- msg.setLabel(value);
- break;
- case 3:
- var value = /** @type {string} */ (reader.readString());
- msg.setLicensePlate(value);
- break;
- case 4:
- var value = /** @type {!proto.transit_realtime.VehicleDescriptor.WheelchairAccessible} */ (reader.readEnum());
- msg.setWheelchairAccessible(value);
- break;
- default:
- jspb.Message.readBinaryExtension(msg, reader,
- proto.transit_realtime.VehicleDescriptor.extensionsBinary,
- proto.transit_realtime.VehicleDescriptor.prototype.getExtension,
- proto.transit_realtime.VehicleDescriptor.prototype.setExtension);
- break;
- }
- }
- return msg;
-};
-
-
-/**
- * Serializes the message to binary data (in protobuf wire format).
- * @return {!Uint8Array}
- */
-proto.transit_realtime.VehicleDescriptor.prototype.serializeBinary = function() {
- var writer = new jspb.BinaryWriter();
- proto.transit_realtime.VehicleDescriptor.serializeBinaryToWriter(this, writer);
- return writer.getResultBuffer();
-};
-
-
-/**
- * Serializes the given message to binary data (in protobuf wire
- * format), writing to the given BinaryWriter.
- * @param {!proto.transit_realtime.VehicleDescriptor} message
- * @param {!jspb.BinaryWriter} writer
- * @suppress {unusedLocalVariables} f is only used for nested messages
- */
-proto.transit_realtime.VehicleDescriptor.serializeBinaryToWriter = function(message, writer) {
- var f = undefined;
- f = /** @type {string} */ (jspb.Message.getField(message, 1));
- if (f != null) {
- writer.writeString(
- 1,
- f
- );
- }
- f = /** @type {string} */ (jspb.Message.getField(message, 2));
- if (f != null) {
- writer.writeString(
- 2,
- f
- );
- }
- f = /** @type {string} */ (jspb.Message.getField(message, 3));
- if (f != null) {
- writer.writeString(
- 3,
- f
- );
- }
- f = /** @type {!proto.transit_realtime.VehicleDescriptor.WheelchairAccessible} */ (jspb.Message.getField(message, 4));
- if (f != null) {
- writer.writeEnum(
- 4,
- f
- );
- }
- jspb.Message.serializeBinaryExtensions(message, writer,
- proto.transit_realtime.VehicleDescriptor.extensionsBinary, proto.transit_realtime.VehicleDescriptor.prototype.getExtension);
-};
-
-
-/**
- * @enum {number}
- */
-proto.transit_realtime.VehicleDescriptor.WheelchairAccessible = {
- NO_VALUE: 0,
- UNKNOWN: 1,
- WHEELCHAIR_ACCESSIBLE: 2,
- WHEELCHAIR_INACCESSIBLE: 3
-};
-
-/**
- * optional string id = 1;
- * @return {string}
- */
-proto.transit_realtime.VehicleDescriptor.prototype.getId = function() {
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
-};
-
-
-/**
- * @param {string} value
- * @return {!proto.transit_realtime.VehicleDescriptor} returns this
- */
-proto.transit_realtime.VehicleDescriptor.prototype.setId = function(value) {
- return jspb.Message.setField(this, 1, value);
-};
-
-
-/**
- * Clears the field making it undefined.
- * @return {!proto.transit_realtime.VehicleDescriptor} returns this
- */
-proto.transit_realtime.VehicleDescriptor.prototype.clearId = function() {
- return jspb.Message.setField(this, 1, undefined);
-};
-
-
-/**
- * Returns whether this field is set.
- * @return {boolean}
- */
-proto.transit_realtime.VehicleDescriptor.prototype.hasId = function() {
- return jspb.Message.getField(this, 1) != null;
-};
-
-
-/**
- * optional string label = 2;
- * @return {string}
- */
-proto.transit_realtime.VehicleDescriptor.prototype.getLabel = function() {
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
-};
-
-
-/**
- * @param {string} value
- * @return {!proto.transit_realtime.VehicleDescriptor} returns this
- */
-proto.transit_realtime.VehicleDescriptor.prototype.setLabel = function(value) {
- return jspb.Message.setField(this, 2, value);
-};
-
-
-/**
- * Clears the field making it undefined.
- * @return {!proto.transit_realtime.VehicleDescriptor} returns this
- */
-proto.transit_realtime.VehicleDescriptor.prototype.clearLabel = function() {
- return jspb.Message.setField(this, 2, undefined);
-};
-
-
-/**
- * Returns whether this field is set.
- * @return {boolean}
- */
-proto.transit_realtime.VehicleDescriptor.prototype.hasLabel = function() {
- return jspb.Message.getField(this, 2) != null;
-};
-
-
-/**
- * optional string license_plate = 3;
- * @return {string}
- */
-proto.transit_realtime.VehicleDescriptor.prototype.getLicensePlate = function() {
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
-};
-
-
-/**
- * @param {string} value
- * @return {!proto.transit_realtime.VehicleDescriptor} returns this
- */
-proto.transit_realtime.VehicleDescriptor.prototype.setLicensePlate = function(value) {
- return jspb.Message.setField(this, 3, value);
-};
-
-
-/**
- * Clears the field making it undefined.
- * @return {!proto.transit_realtime.VehicleDescriptor} returns this
- */
-proto.transit_realtime.VehicleDescriptor.prototype.clearLicensePlate = function() {
- return jspb.Message.setField(this, 3, undefined);
-};
-
-
-/**
- * Returns whether this field is set.
- * @return {boolean}
- */
-proto.transit_realtime.VehicleDescriptor.prototype.hasLicensePlate = function() {
- return jspb.Message.getField(this, 3) != null;
-};
-
-
-/**
- * optional WheelchairAccessible wheelchair_accessible = 4;
- * @return {!proto.transit_realtime.VehicleDescriptor.WheelchairAccessible}
- */
-proto.transit_realtime.VehicleDescriptor.prototype.getWheelchairAccessible = function() {
- return /** @type {!proto.transit_realtime.VehicleDescriptor.WheelchairAccessible} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
-};
-
-
-/**
- * @param {!proto.transit_realtime.VehicleDescriptor.WheelchairAccessible} value
- * @return {!proto.transit_realtime.VehicleDescriptor} returns this
- */
-proto.transit_realtime.VehicleDescriptor.prototype.setWheelchairAccessible = function(value) {
- return jspb.Message.setField(this, 4, value);
-};
-
-
-/**
- * Clears the field making it undefined.
- * @return {!proto.transit_realtime.VehicleDescriptor} returns this
- */
-proto.transit_realtime.VehicleDescriptor.prototype.clearWheelchairAccessible = function() {
- return jspb.Message.setField(this, 4, undefined);
-};
-
-
-/**
- * Returns whether this field is set.
- * @return {boolean}
- */
-proto.transit_realtime.VehicleDescriptor.prototype.hasWheelchairAccessible = function() {
- return jspb.Message.getField(this, 4) != 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_, 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.transit_realtime.EntitySelector.prototype.toObject = function(opt_includeInstance) {
- return proto.transit_realtime.EntitySelector.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.transit_realtime.EntitySelector} msg The msg instance to transform.
- * @return {!Object}
- * @suppress {unusedLocalVariables} f is only used for nested messages
- */
-proto.transit_realtime.EntitySelector.toObject = function(includeInstance, msg) {
- var f, obj = {
- agencyId: (f = jspb.Message.getField(msg, 1)) == null ? undefined : f,
- routeId: (f = jspb.Message.getField(msg, 2)) == null ? undefined : f,
- routeType: (f = jspb.Message.getField(msg, 3)) == null ? undefined : f,
- trip: (f = msg.getTrip()) && proto.transit_realtime.TripDescriptor.toObject(includeInstance, f),
- stopId: (f = jspb.Message.getField(msg, 5)) == null ? undefined : f,
- directionId: (f = jspb.Message.getField(msg, 6)) == null ? undefined : f
- };
-
- jspb.Message.toObjectExtension(/** @type {!jspb.Message} */ (msg), obj,
- proto.transit_realtime.EntitySelector.extensions, proto.transit_realtime.EntitySelector.prototype.getExtension,
- 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.transit_realtime.EntitySelector}
- */
-proto.transit_realtime.EntitySelector.deserializeBinary = function(bytes) {
- var reader = new jspb.BinaryReader(bytes);
- var msg = new proto.transit_realtime.EntitySelector;
- return proto.transit_realtime.EntitySelector.deserializeBinaryFromReader(msg, reader);
-};
-
-
-/**
- * Deserializes binary data (in protobuf wire format) from the
- * given reader into the given message object.
- * @param {!proto.transit_realtime.EntitySelector} msg The message object to deserialize into.
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
- * @return {!proto.transit_realtime.EntitySelector}
- */
-proto.transit_realtime.EntitySelector.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.setAgencyId(value);
- break;
- case 2:
- var value = /** @type {string} */ (reader.readString());
- msg.setRouteId(value);
- break;
- case 3:
- var value = /** @type {number} */ (reader.readInt32());
- msg.setRouteType(value);
- break;
- case 4:
- var value = new proto.transit_realtime.TripDescriptor;
- reader.readMessage(value,proto.transit_realtime.TripDescriptor.deserializeBinaryFromReader);
- msg.setTrip(value);
- break;
- case 5:
- var value = /** @type {string} */ (reader.readString());
- msg.setStopId(value);
- break;
- case 6:
- var value = /** @type {number} */ (reader.readUint32());
- msg.setDirectionId(value);
- break;
- default:
- jspb.Message.readBinaryExtension(msg, reader,
- proto.transit_realtime.EntitySelector.extensionsBinary,
- proto.transit_realtime.EntitySelector.prototype.getExtension,
- proto.transit_realtime.EntitySelector.prototype.setExtension);
- break;
- }
- }
- return msg;
-};
-
-
-/**
- * Serializes the message to binary data (in protobuf wire format).
- * @return {!Uint8Array}
- */
-proto.transit_realtime.EntitySelector.prototype.serializeBinary = function() {
- var writer = new jspb.BinaryWriter();
- proto.transit_realtime.EntitySelector.serializeBinaryToWriter(this, writer);
- return writer.getResultBuffer();
-};
-
-
-/**
- * Serializes the given message to binary data (in protobuf wire
- * format), writing to the given BinaryWriter.
- * @param {!proto.transit_realtime.EntitySelector} message
- * @param {!jspb.BinaryWriter} writer
- * @suppress {unusedLocalVariables} f is only used for nested messages
- */
-proto.transit_realtime.EntitySelector.serializeBinaryToWriter = function(message, writer) {
- var f = undefined;
- f = /** @type {string} */ (jspb.Message.getField(message, 1));
- if (f != null) {
- writer.writeString(
- 1,
- f
- );
- }
- f = /** @type {string} */ (jspb.Message.getField(message, 2));
- if (f != null) {
- writer.writeString(
- 2,
- f
- );
- }
- f = /** @type {number} */ (jspb.Message.getField(message, 3));
- if (f != null) {
- writer.writeInt32(
- 3,
- f
- );
- }
- f = message.getTrip();
- if (f != null) {
- writer.writeMessage(
- 4,
- f,
- proto.transit_realtime.TripDescriptor.serializeBinaryToWriter
- );
- }
- f = /** @type {string} */ (jspb.Message.getField(message, 5));
- if (f != null) {
- writer.writeString(
- 5,
- f
- );
- }
- f = /** @type {number} */ (jspb.Message.getField(message, 6));
- if (f != null) {
- writer.writeUint32(
- 6,
- f
- );
- }
- jspb.Message.serializeBinaryExtensions(message, writer,
- proto.transit_realtime.EntitySelector.extensionsBinary, proto.transit_realtime.EntitySelector.prototype.getExtension);
-};
-
-
-/**
- * optional string agency_id = 1;
- * @return {string}
- */
-proto.transit_realtime.EntitySelector.prototype.getAgencyId = function() {
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
-};
-
-
-/**
- * @param {string} value
- * @return {!proto.transit_realtime.EntitySelector} returns this
- */
-proto.transit_realtime.EntitySelector.prototype.setAgencyId = function(value) {
- return jspb.Message.setField(this, 1, value);
-};
-
-
-/**
- * Clears the field making it undefined.
- * @return {!proto.transit_realtime.EntitySelector} returns this
- */
-proto.transit_realtime.EntitySelector.prototype.clearAgencyId = function() {
- return jspb.Message.setField(this, 1, undefined);
-};
-
-
-/**
- * Returns whether this field is set.
- * @return {boolean}
- */
-proto.transit_realtime.EntitySelector.prototype.hasAgencyId = function() {
- return jspb.Message.getField(this, 1) != null;
-};
-
-
-/**
- * optional string route_id = 2;
- * @return {string}
- */
-proto.transit_realtime.EntitySelector.prototype.getRouteId = function() {
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
-};
-
-
-/**
- * @param {string} value
- * @return {!proto.transit_realtime.EntitySelector} returns this
- */
-proto.transit_realtime.EntitySelector.prototype.setRouteId = function(value) {
- return jspb.Message.setField(this, 2, value);
-};
-
-
-/**
- * Clears the field making it undefined.
- * @return {!proto.transit_realtime.EntitySelector} returns this
- */
-proto.transit_realtime.EntitySelector.prototype.clearRouteId = function() {
- return jspb.Message.setField(this, 2, undefined);
-};
-
-
-/**
- * Returns whether this field is set.
- * @return {boolean}
- */
-proto.transit_realtime.EntitySelector.prototype.hasRouteId = function() {
- return jspb.Message.getField(this, 2) != null;
-};
-
-
-/**
- * optional int32 route_type = 3;
- * @return {number}
- */
-proto.transit_realtime.EntitySelector.prototype.getRouteType = function() {
- return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
-};
-
-
-/**
- * @param {number} value
- * @return {!proto.transit_realtime.EntitySelector} returns this
- */
-proto.transit_realtime.EntitySelector.prototype.setRouteType = function(value) {
- return jspb.Message.setField(this, 3, value);
-};
-
-
-/**
- * Clears the field making it undefined.
- * @return {!proto.transit_realtime.EntitySelector} returns this
- */
-proto.transit_realtime.EntitySelector.prototype.clearRouteType = function() {
- return jspb.Message.setField(this, 3, undefined);
-};
-
-
-/**
- * Returns whether this field is set.
- * @return {boolean}
- */
-proto.transit_realtime.EntitySelector.prototype.hasRouteType = function() {
- return jspb.Message.getField(this, 3) != null;
-};
-
-
-/**
- * optional TripDescriptor trip = 4;
- * @return {?proto.transit_realtime.TripDescriptor}
- */
-proto.transit_realtime.EntitySelector.prototype.getTrip = function() {
- return /** @type{?proto.transit_realtime.TripDescriptor} */ (
- jspb.Message.getWrapperField(this, proto.transit_realtime.TripDescriptor, 4));
-};
-
-
-/**
- * @param {?proto.transit_realtime.TripDescriptor|undefined} value
- * @return {!proto.transit_realtime.EntitySelector} returns this
-*/
-proto.transit_realtime.EntitySelector.prototype.setTrip = function(value) {
- return jspb.Message.setWrapperField(this, 4, value);
-};
-
-
-/**
- * Clears the message field making it undefined.
- * @return {!proto.transit_realtime.EntitySelector} returns this
- */
-proto.transit_realtime.EntitySelector.prototype.clearTrip = function() {
- return this.setTrip(undefined);
-};
-
-
-/**
- * Returns whether this field is set.
- * @return {boolean}
- */
-proto.transit_realtime.EntitySelector.prototype.hasTrip = function() {
- return jspb.Message.getField(this, 4) != null;
-};
-
-
-/**
- * optional string stop_id = 5;
- * @return {string}
- */
-proto.transit_realtime.EntitySelector.prototype.getStopId = function() {
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
-};
-
-
-/**
- * @param {string} value
- * @return {!proto.transit_realtime.EntitySelector} returns this
- */
-proto.transit_realtime.EntitySelector.prototype.setStopId = function(value) {
- return jspb.Message.setField(this, 5, value);
-};
-
-
-/**
- * Clears the field making it undefined.
- * @return {!proto.transit_realtime.EntitySelector} returns this
- */
-proto.transit_realtime.EntitySelector.prototype.clearStopId = function() {
- return jspb.Message.setField(this, 5, undefined);
-};
-
-
-/**
- * Returns whether this field is set.
- * @return {boolean}
- */
-proto.transit_realtime.EntitySelector.prototype.hasStopId = function() {
- return jspb.Message.getField(this, 5) != null;
-};
-
-
-/**
- * optional uint32 direction_id = 6;
- * @return {number}
- */
-proto.transit_realtime.EntitySelector.prototype.getDirectionId = function() {
- return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 6, 0));
-};
-
-
-/**
- * @param {number} value
- * @return {!proto.transit_realtime.EntitySelector} returns this
- */
-proto.transit_realtime.EntitySelector.prototype.setDirectionId = function(value) {
- return jspb.Message.setField(this, 6, value);
-};
-
-
-/**
- * Clears the field making it undefined.
- * @return {!proto.transit_realtime.EntitySelector} returns this
- */
-proto.transit_realtime.EntitySelector.prototype.clearDirectionId = function() {
- return jspb.Message.setField(this, 6, undefined);
-};
-
-
-/**
- * Returns whether this field is set.
- * @return {boolean}
- */
-proto.transit_realtime.EntitySelector.prototype.hasDirectionId = function() {
- return jspb.Message.getField(this, 6) != null;
-};
-
-
-
-/**
- * List of repeated fields within this message type.
- * @private {!Array}
- * @const
- */
-proto.transit_realtime.TranslatedString.repeatedFields_ = [1];
-
-
-
-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_, 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.transit_realtime.TranslatedString.prototype.toObject = function(opt_includeInstance) {
- return proto.transit_realtime.TranslatedString.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.transit_realtime.TranslatedString} msg The msg instance to transform.
- * @return {!Object}
- * @suppress {unusedLocalVariables} f is only used for nested messages
- */
-proto.transit_realtime.TranslatedString.toObject = function(includeInstance, msg) {
- var f, obj = {
- translationList: jspb.Message.toObjectList(msg.getTranslationList(),
- proto.transit_realtime.TranslatedString.Translation.toObject, includeInstance)
- };
-
- jspb.Message.toObjectExtension(/** @type {!jspb.Message} */ (msg), obj,
- proto.transit_realtime.TranslatedString.extensions, proto.transit_realtime.TranslatedString.prototype.getExtension,
- 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.transit_realtime.TranslatedString}
- */
-proto.transit_realtime.TranslatedString.deserializeBinary = function(bytes) {
- var reader = new jspb.BinaryReader(bytes);
- var msg = new proto.transit_realtime.TranslatedString;
- return proto.transit_realtime.TranslatedString.deserializeBinaryFromReader(msg, reader);
-};
-
-
-/**
- * Deserializes binary data (in protobuf wire format) from the
- * given reader into the given message object.
- * @param {!proto.transit_realtime.TranslatedString} msg The message object to deserialize into.
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
- * @return {!proto.transit_realtime.TranslatedString}
- */
-proto.transit_realtime.TranslatedString.deserializeBinaryFromReader = function(msg, reader) {
- while (reader.nextField()) {
- if (reader.isEndGroup()) {
- break;
- }
- var field = reader.getFieldNumber();
- switch (field) {
- case 1:
- var value = new proto.transit_realtime.TranslatedString.Translation;
- reader.readMessage(value,proto.transit_realtime.TranslatedString.Translation.deserializeBinaryFromReader);
- msg.addTranslation(value);
- break;
- default:
- jspb.Message.readBinaryExtension(msg, reader,
- proto.transit_realtime.TranslatedString.extensionsBinary,
- proto.transit_realtime.TranslatedString.prototype.getExtension,
- proto.transit_realtime.TranslatedString.prototype.setExtension);
- break;
- }
- }
- return msg;
-};
-
-
-/**
- * Serializes the message to binary data (in protobuf wire format).
- * @return {!Uint8Array}
- */
-proto.transit_realtime.TranslatedString.prototype.serializeBinary = function() {
- var writer = new jspb.BinaryWriter();
- proto.transit_realtime.TranslatedString.serializeBinaryToWriter(this, writer);
- return writer.getResultBuffer();
-};
-
-
-/**
- * Serializes the given message to binary data (in protobuf wire
- * format), writing to the given BinaryWriter.
- * @param {!proto.transit_realtime.TranslatedString} message
- * @param {!jspb.BinaryWriter} writer
- * @suppress {unusedLocalVariables} f is only used for nested messages
- */
-proto.transit_realtime.TranslatedString.serializeBinaryToWriter = function(message, writer) {
- var f = undefined;
- f = message.getTranslationList();
- if (f.length > 0) {
- writer.writeRepeatedMessage(
- 1,
- f,
- proto.transit_realtime.TranslatedString.Translation.serializeBinaryToWriter
- );
- }
- jspb.Message.serializeBinaryExtensions(message, writer,
- proto.transit_realtime.TranslatedString.extensionsBinary, proto.transit_realtime.TranslatedString.prototype.getExtension);
-};
-
-
-
-
-
-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_, 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.transit_realtime.TranslatedString.Translation.prototype.toObject = function(opt_includeInstance) {
- return proto.transit_realtime.TranslatedString.Translation.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.transit_realtime.TranslatedString.Translation} msg The msg instance to transform.
- * @return {!Object}
- * @suppress {unusedLocalVariables} f is only used for nested messages
- */
-proto.transit_realtime.TranslatedString.Translation.toObject = function(includeInstance, msg) {
- var f, obj = {
- text: (f = jspb.Message.getField(msg, 1)) == null ? undefined : f,
- language: (f = jspb.Message.getField(msg, 2)) == null ? undefined : f
- };
-
- jspb.Message.toObjectExtension(/** @type {!jspb.Message} */ (msg), obj,
- proto.transit_realtime.TranslatedString.Translation.extensions, proto.transit_realtime.TranslatedString.Translation.prototype.getExtension,
- 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.transit_realtime.TranslatedString.Translation}
- */
-proto.transit_realtime.TranslatedString.Translation.deserializeBinary = function(bytes) {
- var reader = new jspb.BinaryReader(bytes);
- var msg = new proto.transit_realtime.TranslatedString.Translation;
- return proto.transit_realtime.TranslatedString.Translation.deserializeBinaryFromReader(msg, reader);
-};
-
-
-/**
- * Deserializes binary data (in protobuf wire format) from the
- * given reader into the given message object.
- * @param {!proto.transit_realtime.TranslatedString.Translation} msg The message object to deserialize into.
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
- * @return {!proto.transit_realtime.TranslatedString.Translation}
- */
-proto.transit_realtime.TranslatedString.Translation.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.setText(value);
- break;
- case 2:
- var value = /** @type {string} */ (reader.readString());
- msg.setLanguage(value);
- break;
- default:
- jspb.Message.readBinaryExtension(msg, reader,
- proto.transit_realtime.TranslatedString.Translation.extensionsBinary,
- proto.transit_realtime.TranslatedString.Translation.prototype.getExtension,
- proto.transit_realtime.TranslatedString.Translation.prototype.setExtension);
- break;
- }
- }
- return msg;
-};
-
-
-/**
- * Serializes the message to binary data (in protobuf wire format).
- * @return {!Uint8Array}
- */
-proto.transit_realtime.TranslatedString.Translation.prototype.serializeBinary = function() {
- var writer = new jspb.BinaryWriter();
- proto.transit_realtime.TranslatedString.Translation.serializeBinaryToWriter(this, writer);
- return writer.getResultBuffer();
-};
-
-
-/**
- * Serializes the given message to binary data (in protobuf wire
- * format), writing to the given BinaryWriter.
- * @param {!proto.transit_realtime.TranslatedString.Translation} message
- * @param {!jspb.BinaryWriter} writer
- * @suppress {unusedLocalVariables} f is only used for nested messages
- */
-proto.transit_realtime.TranslatedString.Translation.serializeBinaryToWriter = function(message, writer) {
- var f = undefined;
- f = /** @type {string} */ (jspb.Message.getField(message, 1));
- if (f != null) {
- writer.writeString(
- 1,
- f
- );
- }
- f = /** @type {string} */ (jspb.Message.getField(message, 2));
- if (f != null) {
- writer.writeString(
- 2,
- f
- );
- }
- jspb.Message.serializeBinaryExtensions(message, writer,
- proto.transit_realtime.TranslatedString.Translation.extensionsBinary, proto.transit_realtime.TranslatedString.Translation.prototype.getExtension);
-};
-
-
-/**
- * required string text = 1;
- * @return {string}
- */
-proto.transit_realtime.TranslatedString.Translation.prototype.getText = function() {
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
-};
-
-
-/**
- * @param {string} value
- * @return {!proto.transit_realtime.TranslatedString.Translation} returns this
- */
-proto.transit_realtime.TranslatedString.Translation.prototype.setText = function(value) {
- return jspb.Message.setField(this, 1, value);
-};
-
-
-/**
- * Clears the field making it undefined.
- * @return {!proto.transit_realtime.TranslatedString.Translation} returns this
- */
-proto.transit_realtime.TranslatedString.Translation.prototype.clearText = function() {
- return jspb.Message.setField(this, 1, undefined);
-};
-
-
-/**
- * Returns whether this field is set.
- * @return {boolean}
- */
-proto.transit_realtime.TranslatedString.Translation.prototype.hasText = function() {
- return jspb.Message.getField(this, 1) != null;
-};
-
-
-/**
- * optional string language = 2;
- * @return {string}
- */
-proto.transit_realtime.TranslatedString.Translation.prototype.getLanguage = function() {
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
-};
-
-
-/**
- * @param {string} value
- * @return {!proto.transit_realtime.TranslatedString.Translation} returns this
- */
-proto.transit_realtime.TranslatedString.Translation.prototype.setLanguage = function(value) {
- return jspb.Message.setField(this, 2, value);
-};
-
-
-/**
- * Clears the field making it undefined.
- * @return {!proto.transit_realtime.TranslatedString.Translation} returns this
- */
-proto.transit_realtime.TranslatedString.Translation.prototype.clearLanguage = function() {
- return jspb.Message.setField(this, 2, undefined);
-};
-
-
-/**
- * Returns whether this field is set.
- * @return {boolean}
- */
-proto.transit_realtime.TranslatedString.Translation.prototype.hasLanguage = function() {
- return jspb.Message.getField(this, 2) != null;
-};
-
-
-/**
- * repeated Translation translation = 1;
- * @return {!Array}
- */
-proto.transit_realtime.TranslatedString.prototype.getTranslationList = function() {
- return /** @type{!Array} */ (
- jspb.Message.getRepeatedWrapperField(this, proto.transit_realtime.TranslatedString.Translation, 1));
-};
-
-
-/**
- * @param {!Array} value
- * @return {!proto.transit_realtime.TranslatedString} returns this
-*/
-proto.transit_realtime.TranslatedString.prototype.setTranslationList = function(value) {
- return jspb.Message.setRepeatedWrapperField(this, 1, value);
-};
-
-
-/**
- * @param {!proto.transit_realtime.TranslatedString.Translation=} opt_value
- * @param {number=} opt_index
- * @return {!proto.transit_realtime.TranslatedString.Translation}
- */
-proto.transit_realtime.TranslatedString.prototype.addTranslation = function(opt_value, opt_index) {
- return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.transit_realtime.TranslatedString.Translation, opt_index);
-};
-
-
-/**
- * Clears the list making it empty but non-null.
- * @return {!proto.transit_realtime.TranslatedString} returns this
- */
-proto.transit_realtime.TranslatedString.prototype.clearTranslationList = function() {
- return this.setTranslationList([]);
-};
-
-
-
-/**
- * List of repeated fields within this message type.
- * @private {!Array}
- * @const
- */
-proto.transit_realtime.TranslatedImage.repeatedFields_ = [1];
-
-
-
-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_, 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.transit_realtime.TranslatedImage.prototype.toObject = function(opt_includeInstance) {
- return proto.transit_realtime.TranslatedImage.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.transit_realtime.TranslatedImage} msg The msg instance to transform.
- * @return {!Object}
- * @suppress {unusedLocalVariables} f is only used for nested messages
- */
-proto.transit_realtime.TranslatedImage.toObject = function(includeInstance, msg) {
- var f, obj = {
- localizedImageList: jspb.Message.toObjectList(msg.getLocalizedImageList(),
- proto.transit_realtime.TranslatedImage.LocalizedImage.toObject, includeInstance)
- };
-
- jspb.Message.toObjectExtension(/** @type {!jspb.Message} */ (msg), obj,
- proto.transit_realtime.TranslatedImage.extensions, proto.transit_realtime.TranslatedImage.prototype.getExtension,
- 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.transit_realtime.TranslatedImage}
- */
-proto.transit_realtime.TranslatedImage.deserializeBinary = function(bytes) {
- var reader = new jspb.BinaryReader(bytes);
- var msg = new proto.transit_realtime.TranslatedImage;
- return proto.transit_realtime.TranslatedImage.deserializeBinaryFromReader(msg, reader);
-};
-
-
-/**
- * Deserializes binary data (in protobuf wire format) from the
- * given reader into the given message object.
- * @param {!proto.transit_realtime.TranslatedImage} msg The message object to deserialize into.
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
- * @return {!proto.transit_realtime.TranslatedImage}
- */
-proto.transit_realtime.TranslatedImage.deserializeBinaryFromReader = function(msg, reader) {
- while (reader.nextField()) {
- if (reader.isEndGroup()) {
- break;
- }
- var field = reader.getFieldNumber();
- switch (field) {
- case 1:
- var value = new proto.transit_realtime.TranslatedImage.LocalizedImage;
- reader.readMessage(value,proto.transit_realtime.TranslatedImage.LocalizedImage.deserializeBinaryFromReader);
- msg.addLocalizedImage(value);
- break;
- default:
- jspb.Message.readBinaryExtension(msg, reader,
- proto.transit_realtime.TranslatedImage.extensionsBinary,
- proto.transit_realtime.TranslatedImage.prototype.getExtension,
- proto.transit_realtime.TranslatedImage.prototype.setExtension);
- break;
- }
- }
- return msg;
-};
-
-
-/**
- * Serializes the message to binary data (in protobuf wire format).
- * @return {!Uint8Array}
- */
-proto.transit_realtime.TranslatedImage.prototype.serializeBinary = function() {
- var writer = new jspb.BinaryWriter();
- proto.transit_realtime.TranslatedImage.serializeBinaryToWriter(this, writer);
- return writer.getResultBuffer();
-};
-
-
-/**
- * Serializes the given message to binary data (in protobuf wire
- * format), writing to the given BinaryWriter.
- * @param {!proto.transit_realtime.TranslatedImage} message
- * @param {!jspb.BinaryWriter} writer
- * @suppress {unusedLocalVariables} f is only used for nested messages
- */
-proto.transit_realtime.TranslatedImage.serializeBinaryToWriter = function(message, writer) {
- var f = undefined;
- f = message.getLocalizedImageList();
- if (f.length > 0) {
- writer.writeRepeatedMessage(
- 1,
- f,
- proto.transit_realtime.TranslatedImage.LocalizedImage.serializeBinaryToWriter
- );
- }
- jspb.Message.serializeBinaryExtensions(message, writer,
- proto.transit_realtime.TranslatedImage.extensionsBinary, proto.transit_realtime.TranslatedImage.prototype.getExtension);
-};
-
-
-
-
-
-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_, 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.transit_realtime.TranslatedImage.LocalizedImage.prototype.toObject = function(opt_includeInstance) {
- return proto.transit_realtime.TranslatedImage.LocalizedImage.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.transit_realtime.TranslatedImage.LocalizedImage} msg The msg instance to transform.
- * @return {!Object}
- * @suppress {unusedLocalVariables} f is only used for nested messages
- */
-proto.transit_realtime.TranslatedImage.LocalizedImage.toObject = function(includeInstance, msg) {
- var f, obj = {
- url: (f = jspb.Message.getField(msg, 1)) == null ? undefined : f,
- mediaType: (f = jspb.Message.getField(msg, 2)) == null ? undefined : f,
- language: (f = jspb.Message.getField(msg, 3)) == null ? undefined : f
- };
-
- jspb.Message.toObjectExtension(/** @type {!jspb.Message} */ (msg), obj,
- proto.transit_realtime.TranslatedImage.LocalizedImage.extensions, proto.transit_realtime.TranslatedImage.LocalizedImage.prototype.getExtension,
- 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.transit_realtime.TranslatedImage.LocalizedImage}
- */
-proto.transit_realtime.TranslatedImage.LocalizedImage.deserializeBinary = function(bytes) {
- var reader = new jspb.BinaryReader(bytes);
- var msg = new proto.transit_realtime.TranslatedImage.LocalizedImage;
- return proto.transit_realtime.TranslatedImage.LocalizedImage.deserializeBinaryFromReader(msg, reader);
-};
-
-
-/**
- * Deserializes binary data (in protobuf wire format) from the
- * given reader into the given message object.
- * @param {!proto.transit_realtime.TranslatedImage.LocalizedImage} msg The message object to deserialize into.
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
- * @return {!proto.transit_realtime.TranslatedImage.LocalizedImage}
- */
-proto.transit_realtime.TranslatedImage.LocalizedImage.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.setUrl(value);
- break;
- case 2:
- var value = /** @type {string} */ (reader.readString());
- msg.setMediaType(value);
- break;
- case 3:
- var value = /** @type {string} */ (reader.readString());
- msg.setLanguage(value);
- break;
- default:
- jspb.Message.readBinaryExtension(msg, reader,
- proto.transit_realtime.TranslatedImage.LocalizedImage.extensionsBinary,
- proto.transit_realtime.TranslatedImage.LocalizedImage.prototype.getExtension,
- proto.transit_realtime.TranslatedImage.LocalizedImage.prototype.setExtension);
- break;
- }
- }
- return msg;
-};
-
-
-/**
- * Serializes the message to binary data (in protobuf wire format).
- * @return {!Uint8Array}
- */
-proto.transit_realtime.TranslatedImage.LocalizedImage.prototype.serializeBinary = function() {
- var writer = new jspb.BinaryWriter();
- proto.transit_realtime.TranslatedImage.LocalizedImage.serializeBinaryToWriter(this, writer);
- return writer.getResultBuffer();
-};
-
-
-/**
- * Serializes the given message to binary data (in protobuf wire
- * format), writing to the given BinaryWriter.
- * @param {!proto.transit_realtime.TranslatedImage.LocalizedImage} message
- * @param {!jspb.BinaryWriter} writer
- * @suppress {unusedLocalVariables} f is only used for nested messages
- */
-proto.transit_realtime.TranslatedImage.LocalizedImage.serializeBinaryToWriter = function(message, writer) {
- var f = undefined;
- f = /** @type {string} */ (jspb.Message.getField(message, 1));
- if (f != null) {
- writer.writeString(
- 1,
- f
- );
- }
- f = /** @type {string} */ (jspb.Message.getField(message, 2));
- if (f != null) {
- writer.writeString(
- 2,
- f
- );
- }
- f = /** @type {string} */ (jspb.Message.getField(message, 3));
- if (f != null) {
- writer.writeString(
- 3,
- f
- );
- }
- jspb.Message.serializeBinaryExtensions(message, writer,
- proto.transit_realtime.TranslatedImage.LocalizedImage.extensionsBinary, proto.transit_realtime.TranslatedImage.LocalizedImage.prototype.getExtension);
-};
-
-
-/**
- * required string url = 1;
- * @return {string}
- */
-proto.transit_realtime.TranslatedImage.LocalizedImage.prototype.getUrl = function() {
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
-};
-
-
-/**
- * @param {string} value
- * @return {!proto.transit_realtime.TranslatedImage.LocalizedImage} returns this
- */
-proto.transit_realtime.TranslatedImage.LocalizedImage.prototype.setUrl = function(value) {
- return jspb.Message.setField(this, 1, value);
-};
-
-
-/**
- * Clears the field making it undefined.
- * @return {!proto.transit_realtime.TranslatedImage.LocalizedImage} returns this
- */
-proto.transit_realtime.TranslatedImage.LocalizedImage.prototype.clearUrl = function() {
- return jspb.Message.setField(this, 1, undefined);
-};
-
-
-/**
- * Returns whether this field is set.
- * @return {boolean}
- */
-proto.transit_realtime.TranslatedImage.LocalizedImage.prototype.hasUrl = function() {
- return jspb.Message.getField(this, 1) != null;
-};
-
-
-/**
- * required string media_type = 2;
- * @return {string}
- */
-proto.transit_realtime.TranslatedImage.LocalizedImage.prototype.getMediaType = function() {
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
-};
-
-
-/**
- * @param {string} value
- * @return {!proto.transit_realtime.TranslatedImage.LocalizedImage} returns this
- */
-proto.transit_realtime.TranslatedImage.LocalizedImage.prototype.setMediaType = function(value) {
- return jspb.Message.setField(this, 2, value);
-};
-
-
-/**
- * Clears the field making it undefined.
- * @return {!proto.transit_realtime.TranslatedImage.LocalizedImage} returns this
- */
-proto.transit_realtime.TranslatedImage.LocalizedImage.prototype.clearMediaType = function() {
- return jspb.Message.setField(this, 2, undefined);
-};
-
-
-/**
- * Returns whether this field is set.
- * @return {boolean}
- */
-proto.transit_realtime.TranslatedImage.LocalizedImage.prototype.hasMediaType = function() {
- return jspb.Message.getField(this, 2) != null;
-};
-
-
-/**
- * optional string language = 3;
- * @return {string}
- */
-proto.transit_realtime.TranslatedImage.LocalizedImage.prototype.getLanguage = function() {
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
-};
-
-
-/**
- * @param {string} value
- * @return {!proto.transit_realtime.TranslatedImage.LocalizedImage} returns this
- */
-proto.transit_realtime.TranslatedImage.LocalizedImage.prototype.setLanguage = function(value) {
- return jspb.Message.setField(this, 3, value);
-};
-
-
-/**
- * Clears the field making it undefined.
- * @return {!proto.transit_realtime.TranslatedImage.LocalizedImage} returns this
- */
-proto.transit_realtime.TranslatedImage.LocalizedImage.prototype.clearLanguage = function() {
- return jspb.Message.setField(this, 3, undefined);
-};
-
-
-/**
- * Returns whether this field is set.
- * @return {boolean}
- */
-proto.transit_realtime.TranslatedImage.LocalizedImage.prototype.hasLanguage = function() {
- return jspb.Message.getField(this, 3) != null;
-};
-
-
-/**
- * repeated LocalizedImage localized_image = 1;
- * @return {!Array}
- */
-proto.transit_realtime.TranslatedImage.prototype.getLocalizedImageList = function() {
- return /** @type{!Array} */ (
- jspb.Message.getRepeatedWrapperField(this, proto.transit_realtime.TranslatedImage.LocalizedImage, 1));
-};
-
-
-/**
- * @param {!Array} value
- * @return {!proto.transit_realtime.TranslatedImage} returns this
-*/
-proto.transit_realtime.TranslatedImage.prototype.setLocalizedImageList = function(value) {
- return jspb.Message.setRepeatedWrapperField(this, 1, value);
-};
-
-
-/**
- * @param {!proto.transit_realtime.TranslatedImage.LocalizedImage=} opt_value
- * @param {number=} opt_index
- * @return {!proto.transit_realtime.TranslatedImage.LocalizedImage}
- */
-proto.transit_realtime.TranslatedImage.prototype.addLocalizedImage = function(opt_value, opt_index) {
- return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.transit_realtime.TranslatedImage.LocalizedImage, opt_index);
-};
-
-
-/**
- * Clears the list making it empty but non-null.
- * @return {!proto.transit_realtime.TranslatedImage} returns this
- */
-proto.transit_realtime.TranslatedImage.prototype.clearLocalizedImageList = function() {
- return this.setLocalizedImageList([]);
-};
-
-
-
-
-
-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_, 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.transit_realtime.Shape.prototype.toObject = function(opt_includeInstance) {
- return proto.transit_realtime.Shape.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.transit_realtime.Shape} msg The msg instance to transform.
- * @return {!Object}
- * @suppress {unusedLocalVariables} f is only used for nested messages
- */
-proto.transit_realtime.Shape.toObject = function(includeInstance, msg) {
- var f, obj = {
- shapeId: (f = jspb.Message.getField(msg, 1)) == null ? undefined : f,
- encodedPolyline: (f = jspb.Message.getField(msg, 2)) == null ? undefined : f
- };
-
- jspb.Message.toObjectExtension(/** @type {!jspb.Message} */ (msg), obj,
- proto.transit_realtime.Shape.extensions, proto.transit_realtime.Shape.prototype.getExtension,
- 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.transit_realtime.Shape}
- */
-proto.transit_realtime.Shape.deserializeBinary = function(bytes) {
- var reader = new jspb.BinaryReader(bytes);
- var msg = new proto.transit_realtime.Shape;
- return proto.transit_realtime.Shape.deserializeBinaryFromReader(msg, reader);
-};
-
-
-/**
- * Deserializes binary data (in protobuf wire format) from the
- * given reader into the given message object.
- * @param {!proto.transit_realtime.Shape} msg The message object to deserialize into.
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
- * @return {!proto.transit_realtime.Shape}
- */
-proto.transit_realtime.Shape.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.setShapeId(value);
- break;
- case 2:
- var value = /** @type {string} */ (reader.readString());
- msg.setEncodedPolyline(value);
- break;
- default:
- jspb.Message.readBinaryExtension(msg, reader,
- proto.transit_realtime.Shape.extensionsBinary,
- proto.transit_realtime.Shape.prototype.getExtension,
- proto.transit_realtime.Shape.prototype.setExtension);
- break;
- }
- }
- return msg;
-};
-
-
-/**
- * Serializes the message to binary data (in protobuf wire format).
- * @return {!Uint8Array}
- */
-proto.transit_realtime.Shape.prototype.serializeBinary = function() {
- var writer = new jspb.BinaryWriter();
- proto.transit_realtime.Shape.serializeBinaryToWriter(this, writer);
- return writer.getResultBuffer();
-};
-
-
-/**
- * Serializes the given message to binary data (in protobuf wire
- * format), writing to the given BinaryWriter.
- * @param {!proto.transit_realtime.Shape} message
- * @param {!jspb.BinaryWriter} writer
- * @suppress {unusedLocalVariables} f is only used for nested messages
- */
-proto.transit_realtime.Shape.serializeBinaryToWriter = function(message, writer) {
- var f = undefined;
- f = /** @type {string} */ (jspb.Message.getField(message, 1));
- if (f != null) {
- writer.writeString(
- 1,
- f
- );
- }
- f = /** @type {string} */ (jspb.Message.getField(message, 2));
- if (f != null) {
- writer.writeString(
- 2,
- f
- );
- }
- jspb.Message.serializeBinaryExtensions(message, writer,
- proto.transit_realtime.Shape.extensionsBinary, proto.transit_realtime.Shape.prototype.getExtension);
-};
-
-
-/**
- * optional string shape_id = 1;
- * @return {string}
- */
-proto.transit_realtime.Shape.prototype.getShapeId = function() {
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
-};
-
-
-/**
- * @param {string} value
- * @return {!proto.transit_realtime.Shape} returns this
- */
-proto.transit_realtime.Shape.prototype.setShapeId = function(value) {
- return jspb.Message.setField(this, 1, value);
-};
-
-
-/**
- * Clears the field making it undefined.
- * @return {!proto.transit_realtime.Shape} returns this
- */
-proto.transit_realtime.Shape.prototype.clearShapeId = function() {
- return jspb.Message.setField(this, 1, undefined);
-};
-
-
-/**
- * Returns whether this field is set.
- * @return {boolean}
- */
-proto.transit_realtime.Shape.prototype.hasShapeId = function() {
- return jspb.Message.getField(this, 1) != null;
-};
-
-
-/**
- * optional string encoded_polyline = 2;
- * @return {string}
- */
-proto.transit_realtime.Shape.prototype.getEncodedPolyline = function() {
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
-};
-
-
-/**
- * @param {string} value
- * @return {!proto.transit_realtime.Shape} returns this
- */
-proto.transit_realtime.Shape.prototype.setEncodedPolyline = function(value) {
- return jspb.Message.setField(this, 2, value);
-};
-
-
-/**
- * Clears the field making it undefined.
- * @return {!proto.transit_realtime.Shape} returns this
- */
-proto.transit_realtime.Shape.prototype.clearEncodedPolyline = function() {
- return jspb.Message.setField(this, 2, undefined);
-};
-
-
-/**
- * Returns whether this field is set.
- * @return {boolean}
- */
-proto.transit_realtime.Shape.prototype.hasEncodedPolyline = function() {
- return jspb.Message.getField(this, 2) != null;
-};
-
-
-
-
-
-if (jspb.Message.GENERATE_TO_OBJECT) {
-/**
- * Creates an object representation of this proto.
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
- * Optional fields that are not set will be set to undefined.
- * To access a reserved field use, foo.pb_, 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.transit_realtime.Stop.prototype.toObject = function(opt_includeInstance) {
- return proto.transit_realtime.Stop.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.transit_realtime.Stop} msg The msg instance to transform.
- * @return {!Object}
- * @suppress {unusedLocalVariables} f is only used for nested messages
- */
-proto.transit_realtime.Stop.toObject = function(includeInstance, msg) {
- var f, obj = {
- stopId: (f = jspb.Message.getField(msg, 1)) == null ? undefined : f,
- stopCode: (f = msg.getStopCode()) && proto.transit_realtime.TranslatedString.toObject(includeInstance, f),
- stopName: (f = msg.getStopName()) && proto.transit_realtime.TranslatedString.toObject(includeInstance, f),
- ttsStopName: (f = msg.getTtsStopName()) && proto.transit_realtime.TranslatedString.toObject(includeInstance, f),
- stopDesc: (f = msg.getStopDesc()) && proto.transit_realtime.TranslatedString.toObject(includeInstance, f),
- stopLat: (f = jspb.Message.getOptionalFloatingPointField(msg, 6)) == null ? undefined : f,
- stopLon: (f = jspb.Message.getOptionalFloatingPointField(msg, 7)) == null ? undefined : f,
- zoneId: (f = jspb.Message.getField(msg, 8)) == null ? undefined : f,
- stopUrl: (f = msg.getStopUrl()) && proto.transit_realtime.TranslatedString.toObject(includeInstance, f),
- parentStation: (f = jspb.Message.getField(msg, 11)) == null ? undefined : f,
- stopTimezone: (f = jspb.Message.getField(msg, 12)) == null ? undefined : f,
- wheelchairBoarding: jspb.Message.getFieldWithDefault(msg, 13, 0),
- levelId: (f = jspb.Message.getField(msg, 14)) == null ? undefined : f,
- platformCode: (f = msg.getPlatformCode()) && proto.transit_realtime.TranslatedString.toObject(includeInstance, f)
- };
-
- jspb.Message.toObjectExtension(/** @type {!jspb.Message} */ (msg), obj,
- proto.transit_realtime.Stop.extensions, proto.transit_realtime.Stop.prototype.getExtension,
- 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.transit_realtime.Stop}
- */
-proto.transit_realtime.Stop.deserializeBinary = function(bytes) {
- var reader = new jspb.BinaryReader(bytes);
- var msg = new proto.transit_realtime.Stop;
- return proto.transit_realtime.Stop.deserializeBinaryFromReader(msg, reader);
-};
-
-
-/**
- * Deserializes binary data (in protobuf wire format) from the
- * given reader into the given message object.
- * @param {!proto.transit_realtime.Stop} msg The message object to deserialize into.
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
- * @return {!proto.transit_realtime.Stop}
- */
-proto.transit_realtime.Stop.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.setStopId(value);
- break;
- case 2:
- var value = new proto.transit_realtime.TranslatedString;
- reader.readMessage(value,proto.transit_realtime.TranslatedString.deserializeBinaryFromReader);
- msg.setStopCode(value);
- break;
- case 3:
- var value = new proto.transit_realtime.TranslatedString;
- reader.readMessage(value,proto.transit_realtime.TranslatedString.deserializeBinaryFromReader);
- msg.setStopName(value);
- break;
- case 4:
- var value = new proto.transit_realtime.TranslatedString;
- reader.readMessage(value,proto.transit_realtime.TranslatedString.deserializeBinaryFromReader);
- msg.setTtsStopName(value);
- break;
- case 5:
- var value = new proto.transit_realtime.TranslatedString;
- reader.readMessage(value,proto.transit_realtime.TranslatedString.deserializeBinaryFromReader);
- msg.setStopDesc(value);
- break;
- case 6:
- var value = /** @type {number} */ (reader.readFloat());
- msg.setStopLat(value);
- break;
- case 7:
- var value = /** @type {number} */ (reader.readFloat());
- msg.setStopLon(value);
- break;
- case 8:
- var value = /** @type {string} */ (reader.readString());
- msg.setZoneId(value);
- break;
- case 9:
- var value = new proto.transit_realtime.TranslatedString;
- reader.readMessage(value,proto.transit_realtime.TranslatedString.deserializeBinaryFromReader);
- msg.setStopUrl(value);
- break;
- case 11:
- var value = /** @type {string} */ (reader.readString());
- msg.setParentStation(value);
- break;
- case 12:
- var value = /** @type {string} */ (reader.readString());
- msg.setStopTimezone(value);
- break;
- case 13:
- var value = /** @type {!proto.transit_realtime.Stop.WheelchairBoarding} */ (reader.readEnum());
- msg.setWheelchairBoarding(value);
- break;
- case 14:
- var value = /** @type {string} */ (reader.readString());
- msg.setLevelId(value);
- break;
- case 15:
- var value = new proto.transit_realtime.TranslatedString;
- reader.readMessage(value,proto.transit_realtime.TranslatedString.deserializeBinaryFromReader);
- msg.setPlatformCode(value);
- break;
- default:
- jspb.Message.readBinaryExtension(msg, reader,
- proto.transit_realtime.Stop.extensionsBinary,
- proto.transit_realtime.Stop.prototype.getExtension,
- proto.transit_realtime.Stop.prototype.setExtension);
- break;
- }
- }
- return msg;
-};
-
-
-/**
- * Serializes the message to binary data (in protobuf wire format).
- * @return {!Uint8Array}
- */
-proto.transit_realtime.Stop.prototype.serializeBinary = function() {
- var writer = new jspb.BinaryWriter();
- proto.transit_realtime.Stop.serializeBinaryToWriter(this, writer);
- return writer.getResultBuffer();
-};
-
-
-/**
- * Serializes the given message to binary data (in protobuf wire
- * format), writing to the given BinaryWriter.
- * @param {!proto.transit_realtime.Stop} message
- * @param {!jspb.BinaryWriter} writer
- * @suppress {unusedLocalVariables} f is only used for nested messages
- */
-proto.transit_realtime.Stop.serializeBinaryToWriter = function(message, writer) {
- var f = undefined;
- f = /** @type {string} */ (jspb.Message.getField(message, 1));
- if (f != null) {
- writer.writeString(
- 1,
- f
- );
- }
- f = message.getStopCode();
- if (f != null) {
- writer.writeMessage(
- 2,
- f,
- proto.transit_realtime.TranslatedString.serializeBinaryToWriter
- );
- }
- f = message.getStopName();
- if (f != null) {
- writer.writeMessage(
- 3,
- f,
- proto.transit_realtime.TranslatedString.serializeBinaryToWriter
- );
- }
- f = message.getTtsStopName();
- if (f != null) {
- writer.writeMessage(
- 4,
- f,
- proto.transit_realtime.TranslatedString.serializeBinaryToWriter
- );
- }
- f = message.getStopDesc();
- if (f != null) {
- writer.writeMessage(
- 5,
- f,
- proto.transit_realtime.TranslatedString.serializeBinaryToWriter
- );
- }
- f = /** @type {number} */ (jspb.Message.getField(message, 6));
- if (f != null) {
- writer.writeFloat(
- 6,
- f
- );
- }
- f = /** @type {number} */ (jspb.Message.getField(message, 7));
- if (f != null) {
- writer.writeFloat(
- 7,
- f
- );
- }
- f = /** @type {string} */ (jspb.Message.getField(message, 8));
- if (f != null) {
- writer.writeString(
- 8,
- f
- );
- }
- f = message.getStopUrl();
- if (f != null) {
- writer.writeMessage(
- 9,
- f,
- proto.transit_realtime.TranslatedString.serializeBinaryToWriter
- );
- }
- f = /** @type {string} */ (jspb.Message.getField(message, 11));
- if (f != null) {
- writer.writeString(
- 11,
- f
- );
- }
- f = /** @type {string} */ (jspb.Message.getField(message, 12));
- if (f != null) {
- writer.writeString(
- 12,
- f
- );
- }
- f = /** @type {!proto.transit_realtime.Stop.WheelchairBoarding} */ (jspb.Message.getField(message, 13));
- if (f != null) {
- writer.writeEnum(
- 13,
- f
- );
- }
- f = /** @type {string} */ (jspb.Message.getField(message, 14));
- if (f != null) {
- writer.writeString(
- 14,
- f
- );
- }
- f = message.getPlatformCode();
- if (f != null) {
- writer.writeMessage(
- 15,
- f,
- proto.transit_realtime.TranslatedString.serializeBinaryToWriter
- );
- }
- jspb.Message.serializeBinaryExtensions(message, writer,
- proto.transit_realtime.Stop.extensionsBinary, proto.transit_realtime.Stop.prototype.getExtension);
-};
-
-
-/**
- * @enum {number}
- */
-proto.transit_realtime.Stop.WheelchairBoarding = {
- UNKNOWN: 0,
- AVAILABLE: 1,
- NOT_AVAILABLE: 2
-};
-
-/**
- * optional string stop_id = 1;
- * @return {string}
- */
-proto.transit_realtime.Stop.prototype.getStopId = function() {
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
-};
-
-
-/**
- * @param {string} value
- * @return {!proto.transit_realtime.Stop} returns this
- */
-proto.transit_realtime.Stop.prototype.setStopId = function(value) {
- return jspb.Message.setField(this, 1, value);
-};
-
-
-/**
- * Clears the field making it undefined.
- * @return {!proto.transit_realtime.Stop} returns this
- */
-proto.transit_realtime.Stop.prototype.clearStopId = function() {
- return jspb.Message.setField(this, 1, undefined);
-};
-
-
-/**
- * Returns whether this field is set.
- * @return {boolean}
- */
-proto.transit_realtime.Stop.prototype.hasStopId = function() {
- return jspb.Message.getField(this, 1) != null;
-};
-
-
-/**
- * optional TranslatedString stop_code = 2;
- * @return {?proto.transit_realtime.TranslatedString}
- */
-proto.transit_realtime.Stop.prototype.getStopCode = function() {
- return /** @type{?proto.transit_realtime.TranslatedString} */ (
- jspb.Message.getWrapperField(this, proto.transit_realtime.TranslatedString, 2));
-};
-
-
-/**
- * @param {?proto.transit_realtime.TranslatedString|undefined} value
- * @return {!proto.transit_realtime.Stop} returns this
-*/
-proto.transit_realtime.Stop.prototype.setStopCode = function(value) {
- return jspb.Message.setWrapperField(this, 2, value);
-};
-
-
-/**
- * Clears the message field making it undefined.
- * @return {!proto.transit_realtime.Stop} returns this
- */
-proto.transit_realtime.Stop.prototype.clearStopCode = function() {
- return this.setStopCode(undefined);
-};
-
-
-/**
- * Returns whether this field is set.
- * @return {boolean}
- */
-proto.transit_realtime.Stop.prototype.hasStopCode = function() {
- return jspb.Message.getField(this, 2) != null;
-};
-
-
-/**
- * optional TranslatedString stop_name = 3;
- * @return {?proto.transit_realtime.TranslatedString}
- */
-proto.transit_realtime.Stop.prototype.getStopName = function() {
- return /** @type{?proto.transit_realtime.TranslatedString} */ (
- jspb.Message.getWrapperField(this, proto.transit_realtime.TranslatedString, 3));
-};
-
-
-/**
- * @param {?proto.transit_realtime.TranslatedString|undefined} value
- * @return {!proto.transit_realtime.Stop} returns this
-*/
-proto.transit_realtime.Stop.prototype.setStopName = function(value) {
- return jspb.Message.setWrapperField(this, 3, value);
-};
-
-
-/**
- * Clears the message field making it undefined.
- * @return {!proto.transit_realtime.Stop} returns this
- */
-proto.transit_realtime.Stop.prototype.clearStopName = function() {
- return this.setStopName(undefined);
-};
-
-
-/**
- * Returns whether this field is set.
- * @return {boolean}
- */
-proto.transit_realtime.Stop.prototype.hasStopName = function() {
- return jspb.Message.getField(this, 3) != null;
-};
-
-
-/**
- * optional TranslatedString tts_stop_name = 4;
- * @return {?proto.transit_realtime.TranslatedString}
- */
-proto.transit_realtime.Stop.prototype.getTtsStopName = function() {
- return /** @type{?proto.transit_realtime.TranslatedString} */ (
- jspb.Message.getWrapperField(this, proto.transit_realtime.TranslatedString, 4));
-};
-
-
-/**
- * @param {?proto.transit_realtime.TranslatedString|undefined} value
- * @return {!proto.transit_realtime.Stop} returns this
-*/
-proto.transit_realtime.Stop.prototype.setTtsStopName = function(value) {
- return jspb.Message.setWrapperField(this, 4, value);
-};
-
-
-/**
- * Clears the message field making it undefined.
- * @return {!proto.transit_realtime.Stop} returns this
- */
-proto.transit_realtime.Stop.prototype.clearTtsStopName = function() {
- return this.setTtsStopName(undefined);
-};
-
-
-/**
- * Returns whether this field is set.
- * @return {boolean}
- */
-proto.transit_realtime.Stop.prototype.hasTtsStopName = function() {
- return jspb.Message.getField(this, 4) != null;
-};
-
-
-/**
- * optional TranslatedString stop_desc = 5;
- * @return {?proto.transit_realtime.TranslatedString}
- */
-proto.transit_realtime.Stop.prototype.getStopDesc = function() {
- return /** @type{?proto.transit_realtime.TranslatedString} */ (
- jspb.Message.getWrapperField(this, proto.transit_realtime.TranslatedString, 5));
-};
-
-
-/**
- * @param {?proto.transit_realtime.TranslatedString|undefined} value
- * @return {!proto.transit_realtime.Stop} returns this
-*/
-proto.transit_realtime.Stop.prototype.setStopDesc = function(value) {
- return jspb.Message.setWrapperField(this, 5, value);
-};
-
-
-/**
- * Clears the message field making it undefined.
- * @return {!proto.transit_realtime.Stop} returns this
- */
-proto.transit_realtime.Stop.prototype.clearStopDesc = function() {
- return this.setStopDesc(undefined);
-};
-
-
-/**
- * Returns whether this field is set.
- * @return {boolean}
- */
-proto.transit_realtime.Stop.prototype.hasStopDesc = function() {
- return jspb.Message.getField(this, 5) != null;
-};
-
-
-/**
- * optional float stop_lat = 6;
- * @return {number}
- */
-proto.transit_realtime.Stop.prototype.getStopLat = function() {
- return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 6, 0.0));
-};
-
-
-/**
- * @param {number} value
- * @return {!proto.transit_realtime.Stop} returns this
- */
-proto.transit_realtime.Stop.prototype.setStopLat = function(value) {
- return jspb.Message.setField(this, 6, value);
-};
-
-
-/**
- * Clears the field making it undefined.
- * @return {!proto.transit_realtime.Stop} returns this
- */
-proto.transit_realtime.Stop.prototype.clearStopLat = function() {
- return jspb.Message.setField(this, 6, undefined);
-};
-
-
-/**
- * Returns whether this field is set.
- * @return {boolean}
- */
-proto.transit_realtime.Stop.prototype.hasStopLat = function() {
- return jspb.Message.getField(this, 6) != null;
-};
-
-
-/**
- * optional float stop_lon = 7;
- * @return {number}
- */
-proto.transit_realtime.Stop.prototype.getStopLon = function() {
- return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 7, 0.0));
-};
-
-
-/**
- * @param {number} value
- * @return {!proto.transit_realtime.Stop} returns this
- */
-proto.transit_realtime.Stop.prototype.setStopLon = function(value) {
- return jspb.Message.setField(this, 7, value);
-};
-
-
-/**
- * Clears the field making it undefined.
- * @return {!proto.transit_realtime.Stop} returns this
- */
-proto.transit_realtime.Stop.prototype.clearStopLon = function() {
- return jspb.Message.setField(this, 7, undefined);
-};
-
-
-/**
- * Returns whether this field is set.
- * @return {boolean}
- */
-proto.transit_realtime.Stop.prototype.hasStopLon = function() {
- return jspb.Message.getField(this, 7) != null;
-};
-
-
-/**
- * optional string zone_id = 8;
- * @return {string}
- */
-proto.transit_realtime.Stop.prototype.getZoneId = function() {
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, ""));
-};
-
-
-/**
- * @param {string} value
- * @return {!proto.transit_realtime.Stop} returns this
- */
-proto.transit_realtime.Stop.prototype.setZoneId = function(value) {
- return jspb.Message.setField(this, 8, value);
-};
-
-
-/**
- * Clears the field making it undefined.
- * @return {!proto.transit_realtime.Stop} returns this
- */
-proto.transit_realtime.Stop.prototype.clearZoneId = function() {
- return jspb.Message.setField(this, 8, undefined);
-};
-
-
-/**
- * Returns whether this field is set.
- * @return {boolean}
- */
-proto.transit_realtime.Stop.prototype.hasZoneId = function() {
- return jspb.Message.getField(this, 8) != null;
-};
-
-
-/**
- * optional TranslatedString stop_url = 9;
- * @return {?proto.transit_realtime.TranslatedString}
- */
-proto.transit_realtime.Stop.prototype.getStopUrl = function() {
- return /** @type{?proto.transit_realtime.TranslatedString} */ (
- jspb.Message.getWrapperField(this, proto.transit_realtime.TranslatedString, 9));
-};
-
-
-/**
- * @param {?proto.transit_realtime.TranslatedString|undefined} value
- * @return {!proto.transit_realtime.Stop} returns this
-*/
-proto.transit_realtime.Stop.prototype.setStopUrl = function(value) {
- return jspb.Message.setWrapperField(this, 9, value);
-};
-
-
-/**
- * Clears the message field making it undefined.
- * @return {!proto.transit_realtime.Stop} returns this
- */
-proto.transit_realtime.Stop.prototype.clearStopUrl = function() {
- return this.setStopUrl(undefined);
-};
-
-
-/**
- * Returns whether this field is set.
- * @return {boolean}
- */
-proto.transit_realtime.Stop.prototype.hasStopUrl = function() {
- return jspb.Message.getField(this, 9) != null;
-};
-
-
-/**
- * optional string parent_station = 11;
- * @return {string}
- */
-proto.transit_realtime.Stop.prototype.getParentStation = function() {
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 11, ""));
-};
-
-
-/**
- * @param {string} value
- * @return {!proto.transit_realtime.Stop} returns this
- */
-proto.transit_realtime.Stop.prototype.setParentStation = function(value) {
- return jspb.Message.setField(this, 11, value);
-};
-
-
-/**
- * Clears the field making it undefined.
- * @return {!proto.transit_realtime.Stop} returns this
- */
-proto.transit_realtime.Stop.prototype.clearParentStation = function() {
- return jspb.Message.setField(this, 11, undefined);
-};
-
-
-/**
- * Returns whether this field is set.
- * @return {boolean}
- */
-proto.transit_realtime.Stop.prototype.hasParentStation = function() {
- return jspb.Message.getField(this, 11) != null;
-};
-
-
-/**
- * optional string stop_timezone = 12;
- * @return {string}
- */
-proto.transit_realtime.Stop.prototype.getStopTimezone = function() {
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 12, ""));
-};
-
-
-/**
- * @param {string} value
- * @return {!proto.transit_realtime.Stop} returns this
- */
-proto.transit_realtime.Stop.prototype.setStopTimezone = function(value) {
- return jspb.Message.setField(this, 12, value);
-};
-
-
-/**
- * Clears the field making it undefined.
- * @return {!proto.transit_realtime.Stop} returns this
- */
-proto.transit_realtime.Stop.prototype.clearStopTimezone = function() {
- return jspb.Message.setField(this, 12, undefined);
-};
-
-
-/**
- * Returns whether this field is set.
- * @return {boolean}
- */
-proto.transit_realtime.Stop.prototype.hasStopTimezone = function() {
- return jspb.Message.getField(this, 12) != null;
-};
-
-
-/**
- * optional WheelchairBoarding wheelchair_boarding = 13;
- * @return {!proto.transit_realtime.Stop.WheelchairBoarding}
- */
-proto.transit_realtime.Stop.prototype.getWheelchairBoarding = function() {
- return /** @type {!proto.transit_realtime.Stop.WheelchairBoarding} */ (jspb.Message.getFieldWithDefault(this, 13, 0));
-};
-
-
-/**
- * @param {!proto.transit_realtime.Stop.WheelchairBoarding} value
- * @return {!proto.transit_realtime.Stop} returns this
- */
-proto.transit_realtime.Stop.prototype.setWheelchairBoarding = function(value) {
- return jspb.Message.setField(this, 13, value);
-};
-
-
-/**
- * Clears the field making it undefined.
- * @return {!proto.transit_realtime.Stop} returns this
- */
-proto.transit_realtime.Stop.prototype.clearWheelchairBoarding = function() {
- return jspb.Message.setField(this, 13, undefined);
-};
-
-
-/**
- * Returns whether this field is set.
- * @return {boolean}
- */
-proto.transit_realtime.Stop.prototype.hasWheelchairBoarding = function() {
- return jspb.Message.getField(this, 13) != null;
-};
-
-
-/**
- * optional string level_id = 14;
- * @return {string}
- */
-proto.transit_realtime.Stop.prototype.getLevelId = function() {
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 14, ""));
-};
-
-
-/**
- * @param {string} value
- * @return {!proto.transit_realtime.Stop} returns this
- */
-proto.transit_realtime.Stop.prototype.setLevelId = function(value) {
- return jspb.Message.setField(this, 14, value);
-};
-
-
-/**
- * Clears the field making it undefined.
- * @return {!proto.transit_realtime.Stop} returns this
- */
-proto.transit_realtime.Stop.prototype.clearLevelId = function() {
- return jspb.Message.setField(this, 14, undefined);
-};
-
-
-/**
- * Returns whether this field is set.
- * @return {boolean}
- */
-proto.transit_realtime.Stop.prototype.hasLevelId = function() {
- return jspb.Message.getField(this, 14) != null;
-};
-
-
-/**
- * optional TranslatedString platform_code = 15;
- * @return {?proto.transit_realtime.TranslatedString}
- */
-proto.transit_realtime.Stop.prototype.getPlatformCode = function() {
- return /** @type{?proto.transit_realtime.TranslatedString} */ (
- jspb.Message.getWrapperField(this, proto.transit_realtime.TranslatedString, 15));
-};
-
-
-/**
- * @param {?proto.transit_realtime.TranslatedString|undefined} value
- * @return {!proto.transit_realtime.Stop} returns this
-*/
-proto.transit_realtime.Stop.prototype.setPlatformCode = function(value) {
- return jspb.Message.setWrapperField(this, 15, value);
-};
-
-
-/**
- * Clears the message field making it undefined.
- * @return {!proto.transit_realtime.Stop} returns this
- */
-proto.transit_realtime.Stop.prototype.clearPlatformCode = function() {
- return this.setPlatformCode(undefined);
-};
-
-
-/**
- * Returns whether this field is set.
- * @return {boolean}
- */
-proto.transit_realtime.Stop.prototype.hasPlatformCode = function() {
- return jspb.Message.getField(this, 15) != null;
-};
-
-
-
-/**
- * List of repeated fields within this message type.
- * @private {!Array}
- * @const
- */
-proto.transit_realtime.TripModifications.repeatedFields_ = [1,2,3,4];
-
-
-
-if (jspb.Message.GENERATE_TO_OBJECT) {
-/**
- * Creates an object representation of this proto.
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
- * Optional fields that are not set will be set to undefined.
- * To access a reserved field use, foo.pb_, 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.transit_realtime.TripModifications.prototype.toObject = function(opt_includeInstance) {
- return proto.transit_realtime.TripModifications.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.transit_realtime.TripModifications} msg The msg instance to transform.
- * @return {!Object}
- * @suppress {unusedLocalVariables} f is only used for nested messages
- */
-proto.transit_realtime.TripModifications.toObject = function(includeInstance, msg) {
- var f, obj = {
- selectedTripsList: jspb.Message.toObjectList(msg.getSelectedTripsList(),
- proto.transit_realtime.TripModifications.SelectedTrips.toObject, includeInstance),
- startTimesList: (f = jspb.Message.getRepeatedField(msg, 2)) == null ? undefined : f,
- serviceDatesList: (f = jspb.Message.getRepeatedField(msg, 3)) == null ? undefined : f,
- modificationsList: jspb.Message.toObjectList(msg.getModificationsList(),
- proto.transit_realtime.TripModifications.Modification.toObject, includeInstance)
- };
-
- jspb.Message.toObjectExtension(/** @type {!jspb.Message} */ (msg), obj,
- proto.transit_realtime.TripModifications.extensions, proto.transit_realtime.TripModifications.prototype.getExtension,
- 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.transit_realtime.TripModifications}
- */
-proto.transit_realtime.TripModifications.deserializeBinary = function(bytes) {
- var reader = new jspb.BinaryReader(bytes);
- var msg = new proto.transit_realtime.TripModifications;
- return proto.transit_realtime.TripModifications.deserializeBinaryFromReader(msg, reader);
-};
-
-
-/**
- * Deserializes binary data (in protobuf wire format) from the
- * given reader into the given message object.
- * @param {!proto.transit_realtime.TripModifications} msg The message object to deserialize into.
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
- * @return {!proto.transit_realtime.TripModifications}
- */
-proto.transit_realtime.TripModifications.deserializeBinaryFromReader = function(msg, reader) {
- while (reader.nextField()) {
- if (reader.isEndGroup()) {
- break;
- }
- var field = reader.getFieldNumber();
- switch (field) {
- case 1:
- var value = new proto.transit_realtime.TripModifications.SelectedTrips;
- reader.readMessage(value,proto.transit_realtime.TripModifications.SelectedTrips.deserializeBinaryFromReader);
- msg.addSelectedTrips(value);
- break;
- case 2:
- var value = /** @type {string} */ (reader.readString());
- msg.addStartTimes(value);
- break;
- case 3:
- var value = /** @type {string} */ (reader.readString());
- msg.addServiceDates(value);
- break;
- case 4:
- var value = new proto.transit_realtime.TripModifications.Modification;
- reader.readMessage(value,proto.transit_realtime.TripModifications.Modification.deserializeBinaryFromReader);
- msg.addModifications(value);
- break;
- default:
- jspb.Message.readBinaryExtension(msg, reader,
- proto.transit_realtime.TripModifications.extensionsBinary,
- proto.transit_realtime.TripModifications.prototype.getExtension,
- proto.transit_realtime.TripModifications.prototype.setExtension);
- break;
- }
- }
- return msg;
-};
-
-
-/**
- * Serializes the message to binary data (in protobuf wire format).
- * @return {!Uint8Array}
- */
-proto.transit_realtime.TripModifications.prototype.serializeBinary = function() {
- var writer = new jspb.BinaryWriter();
- proto.transit_realtime.TripModifications.serializeBinaryToWriter(this, writer);
- return writer.getResultBuffer();
-};
-
-
-/**
- * Serializes the given message to binary data (in protobuf wire
- * format), writing to the given BinaryWriter.
- * @param {!proto.transit_realtime.TripModifications} message
- * @param {!jspb.BinaryWriter} writer
- * @suppress {unusedLocalVariables} f is only used for nested messages
- */
-proto.transit_realtime.TripModifications.serializeBinaryToWriter = function(message, writer) {
- var f = undefined;
- f = message.getSelectedTripsList();
- if (f.length > 0) {
- writer.writeRepeatedMessage(
- 1,
- f,
- proto.transit_realtime.TripModifications.SelectedTrips.serializeBinaryToWriter
- );
- }
- f = message.getStartTimesList();
- if (f.length > 0) {
- writer.writeRepeatedString(
- 2,
- f
- );
- }
- f = message.getServiceDatesList();
- if (f.length > 0) {
- writer.writeRepeatedString(
- 3,
- f
- );
- }
- f = message.getModificationsList();
- if (f.length > 0) {
- writer.writeRepeatedMessage(
- 4,
- f,
- proto.transit_realtime.TripModifications.Modification.serializeBinaryToWriter
- );
- }
- jspb.Message.serializeBinaryExtensions(message, writer,
- proto.transit_realtime.TripModifications.extensionsBinary, proto.transit_realtime.TripModifications.prototype.getExtension);
-};
-
-
-
-/**
- * List of repeated fields within this message type.
- * @private {!Array}
- * @const
- */
-proto.transit_realtime.TripModifications.Modification.repeatedFields_ = [4];
-
-
-
-if (jspb.Message.GENERATE_TO_OBJECT) {
-/**
- * Creates an object representation of this proto.
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
- * Optional fields that are not set will be set to undefined.
- * To access a reserved field use, foo.pb_, 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.transit_realtime.TripModifications.Modification.prototype.toObject = function(opt_includeInstance) {
- return proto.transit_realtime.TripModifications.Modification.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.transit_realtime.TripModifications.Modification} msg The msg instance to transform.
- * @return {!Object}
- * @suppress {unusedLocalVariables} f is only used for nested messages
- */
-proto.transit_realtime.TripModifications.Modification.toObject = function(includeInstance, msg) {
- var f, obj = {
- startStopSelector: (f = msg.getStartStopSelector()) && proto.transit_realtime.StopSelector.toObject(includeInstance, f),
- endStopSelector: (f = msg.getEndStopSelector()) && proto.transit_realtime.StopSelector.toObject(includeInstance, f),
- propagatedModificationDelay: jspb.Message.getFieldWithDefault(msg, 3, 0),
- replacementStopsList: jspb.Message.toObjectList(msg.getReplacementStopsList(),
- proto.transit_realtime.ReplacementStop.toObject, includeInstance),
- serviceAlertId: (f = jspb.Message.getField(msg, 5)) == null ? undefined : f,
- lastModifiedTime: (f = jspb.Message.getField(msg, 6)) == null ? undefined : f
- };
-
- jspb.Message.toObjectExtension(/** @type {!jspb.Message} */ (msg), obj,
- proto.transit_realtime.TripModifications.Modification.extensions, proto.transit_realtime.TripModifications.Modification.prototype.getExtension,
- 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.transit_realtime.TripModifications.Modification}
- */
-proto.transit_realtime.TripModifications.Modification.deserializeBinary = function(bytes) {
- var reader = new jspb.BinaryReader(bytes);
- var msg = new proto.transit_realtime.TripModifications.Modification;
- return proto.transit_realtime.TripModifications.Modification.deserializeBinaryFromReader(msg, reader);
-};
-
-
-/**
- * Deserializes binary data (in protobuf wire format) from the
- * given reader into the given message object.
- * @param {!proto.transit_realtime.TripModifications.Modification} msg The message object to deserialize into.
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
- * @return {!proto.transit_realtime.TripModifications.Modification}
- */
-proto.transit_realtime.TripModifications.Modification.deserializeBinaryFromReader = function(msg, reader) {
- while (reader.nextField()) {
- if (reader.isEndGroup()) {
- break;
- }
- var field = reader.getFieldNumber();
- switch (field) {
- case 1:
- var value = new proto.transit_realtime.StopSelector;
- reader.readMessage(value,proto.transit_realtime.StopSelector.deserializeBinaryFromReader);
- msg.setStartStopSelector(value);
- break;
- case 2:
- var value = new proto.transit_realtime.StopSelector;
- reader.readMessage(value,proto.transit_realtime.StopSelector.deserializeBinaryFromReader);
- msg.setEndStopSelector(value);
- break;
- case 3:
- var value = /** @type {number} */ (reader.readInt32());
- msg.setPropagatedModificationDelay(value);
- break;
- case 4:
- var value = new proto.transit_realtime.ReplacementStop;
- reader.readMessage(value,proto.transit_realtime.ReplacementStop.deserializeBinaryFromReader);
- msg.addReplacementStops(value);
- break;
- case 5:
- var value = /** @type {string} */ (reader.readString());
- msg.setServiceAlertId(value);
- break;
- case 6:
- var value = /** @type {number} */ (reader.readUint64());
- msg.setLastModifiedTime(value);
- break;
- default:
- jspb.Message.readBinaryExtension(msg, reader,
- proto.transit_realtime.TripModifications.Modification.extensionsBinary,
- proto.transit_realtime.TripModifications.Modification.prototype.getExtension,
- proto.transit_realtime.TripModifications.Modification.prototype.setExtension);
- break;
- }
- }
- return msg;
-};
-
-
-/**
- * Serializes the message to binary data (in protobuf wire format).
- * @return {!Uint8Array}
- */
-proto.transit_realtime.TripModifications.Modification.prototype.serializeBinary = function() {
- var writer = new jspb.BinaryWriter();
- proto.transit_realtime.TripModifications.Modification.serializeBinaryToWriter(this, writer);
- return writer.getResultBuffer();
-};
-
-
-/**
- * Serializes the given message to binary data (in protobuf wire
- * format), writing to the given BinaryWriter.
- * @param {!proto.transit_realtime.TripModifications.Modification} message
- * @param {!jspb.BinaryWriter} writer
- * @suppress {unusedLocalVariables} f is only used for nested messages
- */
-proto.transit_realtime.TripModifications.Modification.serializeBinaryToWriter = function(message, writer) {
- var f = undefined;
- f = message.getStartStopSelector();
- if (f != null) {
- writer.writeMessage(
- 1,
- f,
- proto.transit_realtime.StopSelector.serializeBinaryToWriter
- );
- }
- f = message.getEndStopSelector();
- if (f != null) {
- writer.writeMessage(
- 2,
- f,
- proto.transit_realtime.StopSelector.serializeBinaryToWriter
- );
- }
- f = /** @type {number} */ (jspb.Message.getField(message, 3));
- if (f != null) {
- writer.writeInt32(
- 3,
- f
- );
- }
- f = message.getReplacementStopsList();
- if (f.length > 0) {
- writer.writeRepeatedMessage(
- 4,
- f,
- proto.transit_realtime.ReplacementStop.serializeBinaryToWriter
- );
- }
- f = /** @type {string} */ (jspb.Message.getField(message, 5));
- if (f != null) {
- writer.writeString(
- 5,
- f
- );
- }
- f = /** @type {number} */ (jspb.Message.getField(message, 6));
- if (f != null) {
- writer.writeUint64(
- 6,
- f
- );
- }
- jspb.Message.serializeBinaryExtensions(message, writer,
- proto.transit_realtime.TripModifications.Modification.extensionsBinary, proto.transit_realtime.TripModifications.Modification.prototype.getExtension);
-};
-
-
-/**
- * optional StopSelector start_stop_selector = 1;
- * @return {?proto.transit_realtime.StopSelector}
- */
-proto.transit_realtime.TripModifications.Modification.prototype.getStartStopSelector = function() {
- return /** @type{?proto.transit_realtime.StopSelector} */ (
- jspb.Message.getWrapperField(this, proto.transit_realtime.StopSelector, 1));
-};
-
-
-/**
- * @param {?proto.transit_realtime.StopSelector|undefined} value
- * @return {!proto.transit_realtime.TripModifications.Modification} returns this
-*/
-proto.transit_realtime.TripModifications.Modification.prototype.setStartStopSelector = function(value) {
- return jspb.Message.setWrapperField(this, 1, value);
-};
-
-
-/**
- * Clears the message field making it undefined.
- * @return {!proto.transit_realtime.TripModifications.Modification} returns this
- */
-proto.transit_realtime.TripModifications.Modification.prototype.clearStartStopSelector = function() {
- return this.setStartStopSelector(undefined);
-};
-
-
-/**
- * Returns whether this field is set.
- * @return {boolean}
- */
-proto.transit_realtime.TripModifications.Modification.prototype.hasStartStopSelector = function() {
- return jspb.Message.getField(this, 1) != null;
-};
-
-
-/**
- * optional StopSelector end_stop_selector = 2;
- * @return {?proto.transit_realtime.StopSelector}
- */
-proto.transit_realtime.TripModifications.Modification.prototype.getEndStopSelector = function() {
- return /** @type{?proto.transit_realtime.StopSelector} */ (
- jspb.Message.getWrapperField(this, proto.transit_realtime.StopSelector, 2));
-};
-
-
-/**
- * @param {?proto.transit_realtime.StopSelector|undefined} value
- * @return {!proto.transit_realtime.TripModifications.Modification} returns this
-*/
-proto.transit_realtime.TripModifications.Modification.prototype.setEndStopSelector = function(value) {
- return jspb.Message.setWrapperField(this, 2, value);
-};
-
-
-/**
- * Clears the message field making it undefined.
- * @return {!proto.transit_realtime.TripModifications.Modification} returns this
- */
-proto.transit_realtime.TripModifications.Modification.prototype.clearEndStopSelector = function() {
- return this.setEndStopSelector(undefined);
-};
-
-
-/**
- * Returns whether this field is set.
- * @return {boolean}
- */
-proto.transit_realtime.TripModifications.Modification.prototype.hasEndStopSelector = function() {
- return jspb.Message.getField(this, 2) != null;
-};
-
-
-/**
- * optional int32 propagated_modification_delay = 3;
- * @return {number}
- */
-proto.transit_realtime.TripModifications.Modification.prototype.getPropagatedModificationDelay = function() {
- return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
-};
-
-
-/**
- * @param {number} value
- * @return {!proto.transit_realtime.TripModifications.Modification} returns this
- */
-proto.transit_realtime.TripModifications.Modification.prototype.setPropagatedModificationDelay = function(value) {
- return jspb.Message.setField(this, 3, value);
-};
-
-
-/**
- * Clears the field making it undefined.
- * @return {!proto.transit_realtime.TripModifications.Modification} returns this
- */
-proto.transit_realtime.TripModifications.Modification.prototype.clearPropagatedModificationDelay = function() {
- return jspb.Message.setField(this, 3, undefined);
-};
-
-
-/**
- * Returns whether this field is set.
- * @return {boolean}
- */
-proto.transit_realtime.TripModifications.Modification.prototype.hasPropagatedModificationDelay = function() {
- return jspb.Message.getField(this, 3) != null;
-};
-
-
-/**
- * repeated ReplacementStop replacement_stops = 4;
- * @return {!Array}
- */
-proto.transit_realtime.TripModifications.Modification.prototype.getReplacementStopsList = function() {
- return /** @type{!Array} */ (
- jspb.Message.getRepeatedWrapperField(this, proto.transit_realtime.ReplacementStop, 4));
-};
-
-
-/**
- * @param {!Array} value
- * @return {!proto.transit_realtime.TripModifications.Modification} returns this
-*/
-proto.transit_realtime.TripModifications.Modification.prototype.setReplacementStopsList = function(value) {
- return jspb.Message.setRepeatedWrapperField(this, 4, value);
-};
-
-
-/**
- * @param {!proto.transit_realtime.ReplacementStop=} opt_value
- * @param {number=} opt_index
- * @return {!proto.transit_realtime.ReplacementStop}
- */
-proto.transit_realtime.TripModifications.Modification.prototype.addReplacementStops = function(opt_value, opt_index) {
- return jspb.Message.addToRepeatedWrapperField(this, 4, opt_value, proto.transit_realtime.ReplacementStop, opt_index);
-};
-
-
-/**
- * Clears the list making it empty but non-null.
- * @return {!proto.transit_realtime.TripModifications.Modification} returns this
- */
-proto.transit_realtime.TripModifications.Modification.prototype.clearReplacementStopsList = function() {
- return this.setReplacementStopsList([]);
-};
-
-
-/**
- * optional string service_alert_id = 5;
- * @return {string}
- */
-proto.transit_realtime.TripModifications.Modification.prototype.getServiceAlertId = function() {
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
-};
-
-
-/**
- * @param {string} value
- * @return {!proto.transit_realtime.TripModifications.Modification} returns this
- */
-proto.transit_realtime.TripModifications.Modification.prototype.setServiceAlertId = function(value) {
- return jspb.Message.setField(this, 5, value);
-};
-
-
-/**
- * Clears the field making it undefined.
- * @return {!proto.transit_realtime.TripModifications.Modification} returns this
- */
-proto.transit_realtime.TripModifications.Modification.prototype.clearServiceAlertId = function() {
- return jspb.Message.setField(this, 5, undefined);
-};
-
-
-/**
- * Returns whether this field is set.
- * @return {boolean}
- */
-proto.transit_realtime.TripModifications.Modification.prototype.hasServiceAlertId = function() {
- return jspb.Message.getField(this, 5) != null;
-};
-
-
-/**
- * optional uint64 last_modified_time = 6;
- * @return {number}
- */
-proto.transit_realtime.TripModifications.Modification.prototype.getLastModifiedTime = function() {
- return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 6, 0));
-};
-
-
-/**
- * @param {number} value
- * @return {!proto.transit_realtime.TripModifications.Modification} returns this
- */
-proto.transit_realtime.TripModifications.Modification.prototype.setLastModifiedTime = function(value) {
- return jspb.Message.setField(this, 6, value);
-};
-
-
-/**
- * Clears the field making it undefined.
- * @return {!proto.transit_realtime.TripModifications.Modification} returns this
- */
-proto.transit_realtime.TripModifications.Modification.prototype.clearLastModifiedTime = function() {
- return jspb.Message.setField(this, 6, undefined);
-};
-
-
-/**
- * Returns whether this field is set.
- * @return {boolean}
- */
-proto.transit_realtime.TripModifications.Modification.prototype.hasLastModifiedTime = function() {
- return jspb.Message.getField(this, 6) != null;
-};
-
-
-
-/**
- * List of repeated fields within this message type.
- * @private {!Array}
- * @const
- */
-proto.transit_realtime.TripModifications.SelectedTrips.repeatedFields_ = [1];
-
-
-
-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_, 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.transit_realtime.TripModifications.SelectedTrips.prototype.toObject = function(opt_includeInstance) {
- return proto.transit_realtime.TripModifications.SelectedTrips.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.transit_realtime.TripModifications.SelectedTrips} msg The msg instance to transform.
- * @return {!Object}
- * @suppress {unusedLocalVariables} f is only used for nested messages
- */
-proto.transit_realtime.TripModifications.SelectedTrips.toObject = function(includeInstance, msg) {
- var f, obj = {
- tripIdsList: (f = jspb.Message.getRepeatedField(msg, 1)) == null ? undefined : f,
- shapeId: (f = jspb.Message.getField(msg, 2)) == null ? undefined : f
- };
-
- jspb.Message.toObjectExtension(/** @type {!jspb.Message} */ (msg), obj,
- proto.transit_realtime.TripModifications.SelectedTrips.extensions, proto.transit_realtime.TripModifications.SelectedTrips.prototype.getExtension,
- 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.transit_realtime.TripModifications.SelectedTrips}
- */
-proto.transit_realtime.TripModifications.SelectedTrips.deserializeBinary = function(bytes) {
- var reader = new jspb.BinaryReader(bytes);
- var msg = new proto.transit_realtime.TripModifications.SelectedTrips;
- return proto.transit_realtime.TripModifications.SelectedTrips.deserializeBinaryFromReader(msg, reader);
-};
-
-
-/**
- * Deserializes binary data (in protobuf wire format) from the
- * given reader into the given message object.
- * @param {!proto.transit_realtime.TripModifications.SelectedTrips} msg The message object to deserialize into.
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
- * @return {!proto.transit_realtime.TripModifications.SelectedTrips}
- */
-proto.transit_realtime.TripModifications.SelectedTrips.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.addTripIds(value);
- break;
- case 2:
- var value = /** @type {string} */ (reader.readString());
- msg.setShapeId(value);
- break;
- default:
- jspb.Message.readBinaryExtension(msg, reader,
- proto.transit_realtime.TripModifications.SelectedTrips.extensionsBinary,
- proto.transit_realtime.TripModifications.SelectedTrips.prototype.getExtension,
- proto.transit_realtime.TripModifications.SelectedTrips.prototype.setExtension);
- break;
- }
- }
- return msg;
-};
-
-
-/**
- * Serializes the message to binary data (in protobuf wire format).
- * @return {!Uint8Array}
- */
-proto.transit_realtime.TripModifications.SelectedTrips.prototype.serializeBinary = function() {
- var writer = new jspb.BinaryWriter();
- proto.transit_realtime.TripModifications.SelectedTrips.serializeBinaryToWriter(this, writer);
- return writer.getResultBuffer();
-};
-
-
-/**
- * Serializes the given message to binary data (in protobuf wire
- * format), writing to the given BinaryWriter.
- * @param {!proto.transit_realtime.TripModifications.SelectedTrips} message
- * @param {!jspb.BinaryWriter} writer
- * @suppress {unusedLocalVariables} f is only used for nested messages
- */
-proto.transit_realtime.TripModifications.SelectedTrips.serializeBinaryToWriter = function(message, writer) {
- var f = undefined;
- f = message.getTripIdsList();
- if (f.length > 0) {
- writer.writeRepeatedString(
- 1,
- f
- );
- }
- f = /** @type {string} */ (jspb.Message.getField(message, 2));
- if (f != null) {
- writer.writeString(
- 2,
- f
- );
- }
- jspb.Message.serializeBinaryExtensions(message, writer,
- proto.transit_realtime.TripModifications.SelectedTrips.extensionsBinary, proto.transit_realtime.TripModifications.SelectedTrips.prototype.getExtension);
-};
-
-
-/**
- * repeated string trip_ids = 1;
- * @return {!Array}
- */
-proto.transit_realtime.TripModifications.SelectedTrips.prototype.getTripIdsList = function() {
- return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 1));
-};
-
-
-/**
- * @param {!Array} value
- * @return {!proto.transit_realtime.TripModifications.SelectedTrips} returns this
- */
-proto.transit_realtime.TripModifications.SelectedTrips.prototype.setTripIdsList = function(value) {
- return jspb.Message.setField(this, 1, value || []);
-};
-
-
-/**
- * @param {string} value
- * @param {number=} opt_index
- * @return {!proto.transit_realtime.TripModifications.SelectedTrips} returns this
- */
-proto.transit_realtime.TripModifications.SelectedTrips.prototype.addTripIds = function(value, opt_index) {
- return jspb.Message.addToRepeatedField(this, 1, value, opt_index);
-};
-
-
-/**
- * Clears the list making it empty but non-null.
- * @return {!proto.transit_realtime.TripModifications.SelectedTrips} returns this
- */
-proto.transit_realtime.TripModifications.SelectedTrips.prototype.clearTripIdsList = function() {
- return this.setTripIdsList([]);
-};
-
-
-/**
- * optional string shape_id = 2;
- * @return {string}
- */
-proto.transit_realtime.TripModifications.SelectedTrips.prototype.getShapeId = function() {
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
-};
-
-
-/**
- * @param {string} value
- * @return {!proto.transit_realtime.TripModifications.SelectedTrips} returns this
- */
-proto.transit_realtime.TripModifications.SelectedTrips.prototype.setShapeId = function(value) {
- return jspb.Message.setField(this, 2, value);
-};
-
-
-/**
- * Clears the field making it undefined.
- * @return {!proto.transit_realtime.TripModifications.SelectedTrips} returns this
- */
-proto.transit_realtime.TripModifications.SelectedTrips.prototype.clearShapeId = function() {
- return jspb.Message.setField(this, 2, undefined);
-};
-
-
-/**
- * Returns whether this field is set.
- * @return {boolean}
- */
-proto.transit_realtime.TripModifications.SelectedTrips.prototype.hasShapeId = function() {
- return jspb.Message.getField(this, 2) != null;
-};
-
-
-/**
- * repeated SelectedTrips selected_trips = 1;
- * @return {!Array}
- */
-proto.transit_realtime.TripModifications.prototype.getSelectedTripsList = function() {
- return /** @type{!Array} */ (
- jspb.Message.getRepeatedWrapperField(this, proto.transit_realtime.TripModifications.SelectedTrips, 1));
-};
-
-
-/**
- * @param {!Array} value
- * @return {!proto.transit_realtime.TripModifications} returns this
-*/
-proto.transit_realtime.TripModifications.prototype.setSelectedTripsList = function(value) {
- return jspb.Message.setRepeatedWrapperField(this, 1, value);
-};
-
-
-/**
- * @param {!proto.transit_realtime.TripModifications.SelectedTrips=} opt_value
- * @param {number=} opt_index
- * @return {!proto.transit_realtime.TripModifications.SelectedTrips}
- */
-proto.transit_realtime.TripModifications.prototype.addSelectedTrips = function(opt_value, opt_index) {
- return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.transit_realtime.TripModifications.SelectedTrips, opt_index);
-};
-
-
-/**
- * Clears the list making it empty but non-null.
- * @return {!proto.transit_realtime.TripModifications} returns this
- */
-proto.transit_realtime.TripModifications.prototype.clearSelectedTripsList = function() {
- return this.setSelectedTripsList([]);
-};
-
-
-/**
- * repeated string start_times = 2;
- * @return {!Array}
- */
-proto.transit_realtime.TripModifications.prototype.getStartTimesList = function() {
- return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 2));
-};
-
-
-/**
- * @param {!Array} value
- * @return {!proto.transit_realtime.TripModifications} returns this
- */
-proto.transit_realtime.TripModifications.prototype.setStartTimesList = function(value) {
- return jspb.Message.setField(this, 2, value || []);
-};
-
-
-/**
- * @param {string} value
- * @param {number=} opt_index
- * @return {!proto.transit_realtime.TripModifications} returns this
- */
-proto.transit_realtime.TripModifications.prototype.addStartTimes = function(value, opt_index) {
- return jspb.Message.addToRepeatedField(this, 2, value, opt_index);
-};
-
-
-/**
- * Clears the list making it empty but non-null.
- * @return {!proto.transit_realtime.TripModifications} returns this
- */
-proto.transit_realtime.TripModifications.prototype.clearStartTimesList = function() {
- return this.setStartTimesList([]);
-};
-
-
-/**
- * repeated string service_dates = 3;
- * @return {!Array}
- */
-proto.transit_realtime.TripModifications.prototype.getServiceDatesList = function() {
- return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 3));
-};
-
-
-/**
- * @param {!Array} value
- * @return {!proto.transit_realtime.TripModifications} returns this
- */
-proto.transit_realtime.TripModifications.prototype.setServiceDatesList = function(value) {
- return jspb.Message.setField(this, 3, value || []);
-};
-
-
-/**
- * @param {string} value
- * @param {number=} opt_index
- * @return {!proto.transit_realtime.TripModifications} returns this
- */
-proto.transit_realtime.TripModifications.prototype.addServiceDates = function(value, opt_index) {
- return jspb.Message.addToRepeatedField(this, 3, value, opt_index);
-};
-
-
-/**
- * Clears the list making it empty but non-null.
- * @return {!proto.transit_realtime.TripModifications} returns this
- */
-proto.transit_realtime.TripModifications.prototype.clearServiceDatesList = function() {
- return this.setServiceDatesList([]);
-};
-
-
-/**
- * repeated Modification modifications = 4;
- * @return {!Array}
- */
-proto.transit_realtime.TripModifications.prototype.getModificationsList = function() {
- return /** @type{!Array} */ (
- jspb.Message.getRepeatedWrapperField(this, proto.transit_realtime.TripModifications.Modification, 4));
-};
-
-
-/**
- * @param {!Array} value
- * @return {!proto.transit_realtime.TripModifications} returns this
-*/
-proto.transit_realtime.TripModifications.prototype.setModificationsList = function(value) {
- return jspb.Message.setRepeatedWrapperField(this, 4, value);
-};
-
-
-/**
- * @param {!proto.transit_realtime.TripModifications.Modification=} opt_value
- * @param {number=} opt_index
- * @return {!proto.transit_realtime.TripModifications.Modification}
- */
-proto.transit_realtime.TripModifications.prototype.addModifications = function(opt_value, opt_index) {
- return jspb.Message.addToRepeatedWrapperField(this, 4, opt_value, proto.transit_realtime.TripModifications.Modification, opt_index);
-};
-
-
-/**
- * Clears the list making it empty but non-null.
- * @return {!proto.transit_realtime.TripModifications} returns this
- */
-proto.transit_realtime.TripModifications.prototype.clearModificationsList = function() {
- return this.setModificationsList([]);
-};
-
-
-
-
-
-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_, 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.transit_realtime.StopSelector.prototype.toObject = function(opt_includeInstance) {
- return proto.transit_realtime.StopSelector.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.transit_realtime.StopSelector} msg The msg instance to transform.
- * @return {!Object}
- * @suppress {unusedLocalVariables} f is only used for nested messages
- */
-proto.transit_realtime.StopSelector.toObject = function(includeInstance, msg) {
- var f, obj = {
- stopSequence: (f = jspb.Message.getField(msg, 1)) == null ? undefined : f,
- stopId: (f = jspb.Message.getField(msg, 2)) == null ? undefined : f
- };
-
- jspb.Message.toObjectExtension(/** @type {!jspb.Message} */ (msg), obj,
- proto.transit_realtime.StopSelector.extensions, proto.transit_realtime.StopSelector.prototype.getExtension,
- 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.transit_realtime.StopSelector}
- */
-proto.transit_realtime.StopSelector.deserializeBinary = function(bytes) {
- var reader = new jspb.BinaryReader(bytes);
- var msg = new proto.transit_realtime.StopSelector;
- return proto.transit_realtime.StopSelector.deserializeBinaryFromReader(msg, reader);
-};
-
-
-/**
- * Deserializes binary data (in protobuf wire format) from the
- * given reader into the given message object.
- * @param {!proto.transit_realtime.StopSelector} msg The message object to deserialize into.
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
- * @return {!proto.transit_realtime.StopSelector}
- */
-proto.transit_realtime.StopSelector.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.setStopSequence(value);
- break;
- case 2:
- var value = /** @type {string} */ (reader.readString());
- msg.setStopId(value);
- break;
- default:
- jspb.Message.readBinaryExtension(msg, reader,
- proto.transit_realtime.StopSelector.extensionsBinary,
- proto.transit_realtime.StopSelector.prototype.getExtension,
- proto.transit_realtime.StopSelector.prototype.setExtension);
- break;
- }
- }
- return msg;
-};
-
-
-/**
- * Serializes the message to binary data (in protobuf wire format).
- * @return {!Uint8Array}
- */
-proto.transit_realtime.StopSelector.prototype.serializeBinary = function() {
- var writer = new jspb.BinaryWriter();
- proto.transit_realtime.StopSelector.serializeBinaryToWriter(this, writer);
- return writer.getResultBuffer();
-};
-
-
-/**
- * Serializes the given message to binary data (in protobuf wire
- * format), writing to the given BinaryWriter.
- * @param {!proto.transit_realtime.StopSelector} message
- * @param {!jspb.BinaryWriter} writer
- * @suppress {unusedLocalVariables} f is only used for nested messages
- */
-proto.transit_realtime.StopSelector.serializeBinaryToWriter = function(message, writer) {
- var f = undefined;
- f = /** @type {number} */ (jspb.Message.getField(message, 1));
- if (f != null) {
- writer.writeUint32(
- 1,
- f
- );
- }
- f = /** @type {string} */ (jspb.Message.getField(message, 2));
- if (f != null) {
- writer.writeString(
- 2,
- f
- );
- }
- jspb.Message.serializeBinaryExtensions(message, writer,
- proto.transit_realtime.StopSelector.extensionsBinary, proto.transit_realtime.StopSelector.prototype.getExtension);
-};
-
-
-/**
- * optional uint32 stop_sequence = 1;
- * @return {number}
- */
-proto.transit_realtime.StopSelector.prototype.getStopSequence = function() {
- return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
-};
-
-
-/**
- * @param {number} value
- * @return {!proto.transit_realtime.StopSelector} returns this
- */
-proto.transit_realtime.StopSelector.prototype.setStopSequence = function(value) {
- return jspb.Message.setField(this, 1, value);
-};
-
-
-/**
- * Clears the field making it undefined.
- * @return {!proto.transit_realtime.StopSelector} returns this
- */
-proto.transit_realtime.StopSelector.prototype.clearStopSequence = function() {
- return jspb.Message.setField(this, 1, undefined);
-};
-
-
-/**
- * Returns whether this field is set.
- * @return {boolean}
- */
-proto.transit_realtime.StopSelector.prototype.hasStopSequence = function() {
- return jspb.Message.getField(this, 1) != null;
-};
-
-
-/**
- * optional string stop_id = 2;
- * @return {string}
- */
-proto.transit_realtime.StopSelector.prototype.getStopId = function() {
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
-};
-
-
-/**
- * @param {string} value
- * @return {!proto.transit_realtime.StopSelector} returns this
- */
-proto.transit_realtime.StopSelector.prototype.setStopId = function(value) {
- return jspb.Message.setField(this, 2, value);
-};
-
-
-/**
- * Clears the field making it undefined.
- * @return {!proto.transit_realtime.StopSelector} returns this
- */
-proto.transit_realtime.StopSelector.prototype.clearStopId = function() {
- return jspb.Message.setField(this, 2, undefined);
-};
-
-
-/**
- * Returns whether this field is set.
- * @return {boolean}
- */
-proto.transit_realtime.StopSelector.prototype.hasStopId = function() {
- return jspb.Message.getField(this, 2) != null;
-};
-
-
-
-
-
-if (jspb.Message.GENERATE_TO_OBJECT) {
-/**
- * Creates an object representation of this proto.
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
- * Optional fields that are not set will be set to undefined.
- * To access a reserved field use, foo.pb_, 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.transit_realtime.ReplacementStop.prototype.toObject = function(opt_includeInstance) {
- return proto.transit_realtime.ReplacementStop.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.transit_realtime.ReplacementStop} msg The msg instance to transform.
- * @return {!Object}
- * @suppress {unusedLocalVariables} f is only used for nested messages
- */
-proto.transit_realtime.ReplacementStop.toObject = function(includeInstance, msg) {
- var f, obj = {
- travelTimeToStop: (f = jspb.Message.getField(msg, 1)) == null ? undefined : f,
- stopId: (f = jspb.Message.getField(msg, 2)) == null ? undefined : f
- };
-
- jspb.Message.toObjectExtension(/** @type {!jspb.Message} */ (msg), obj,
- proto.transit_realtime.ReplacementStop.extensions, proto.transit_realtime.ReplacementStop.prototype.getExtension,
- 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.transit_realtime.ReplacementStop}
- */
-proto.transit_realtime.ReplacementStop.deserializeBinary = function(bytes) {
- var reader = new jspb.BinaryReader(bytes);
- var msg = new proto.transit_realtime.ReplacementStop;
- return proto.transit_realtime.ReplacementStop.deserializeBinaryFromReader(msg, reader);
-};
-
-
-/**
- * Deserializes binary data (in protobuf wire format) from the
- * given reader into the given message object.
- * @param {!proto.transit_realtime.ReplacementStop} msg The message object to deserialize into.
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
- * @return {!proto.transit_realtime.ReplacementStop}
- */
-proto.transit_realtime.ReplacementStop.deserializeBinaryFromReader = function(msg, reader) {
- while (reader.nextField()) {
- if (reader.isEndGroup()) {
- break;
- }
- var field = reader.getFieldNumber();
- switch (field) {
- case 1:
- var value = /** @type {number} */ (reader.readInt32());
- msg.setTravelTimeToStop(value);
- break;
- case 2:
- var value = /** @type {string} */ (reader.readString());
- msg.setStopId(value);
- break;
- default:
- jspb.Message.readBinaryExtension(msg, reader,
- proto.transit_realtime.ReplacementStop.extensionsBinary,
- proto.transit_realtime.ReplacementStop.prototype.getExtension,
- proto.transit_realtime.ReplacementStop.prototype.setExtension);
- break;
- }
- }
- return msg;
-};
-
-
-/**
- * Serializes the message to binary data (in protobuf wire format).
- * @return {!Uint8Array}
- */
-proto.transit_realtime.ReplacementStop.prototype.serializeBinary = function() {
- var writer = new jspb.BinaryWriter();
- proto.transit_realtime.ReplacementStop.serializeBinaryToWriter(this, writer);
- return writer.getResultBuffer();
-};
-
-
-/**
- * Serializes the given message to binary data (in protobuf wire
- * format), writing to the given BinaryWriter.
- * @param {!proto.transit_realtime.ReplacementStop} message
- * @param {!jspb.BinaryWriter} writer
- * @suppress {unusedLocalVariables} f is only used for nested messages
- */
-proto.transit_realtime.ReplacementStop.serializeBinaryToWriter = function(message, writer) {
- var f = undefined;
- f = /** @type {number} */ (jspb.Message.getField(message, 1));
- if (f != null) {
- writer.writeInt32(
- 1,
- f
- );
- }
- f = /** @type {string} */ (jspb.Message.getField(message, 2));
- if (f != null) {
- writer.writeString(
- 2,
- f
- );
- }
- jspb.Message.serializeBinaryExtensions(message, writer,
- proto.transit_realtime.ReplacementStop.extensionsBinary, proto.transit_realtime.ReplacementStop.prototype.getExtension);
-};
-
-
-/**
- * optional int32 travel_time_to_stop = 1;
- * @return {number}
- */
-proto.transit_realtime.ReplacementStop.prototype.getTravelTimeToStop = function() {
- return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
-};
-
-
-/**
- * @param {number} value
- * @return {!proto.transit_realtime.ReplacementStop} returns this
- */
-proto.transit_realtime.ReplacementStop.prototype.setTravelTimeToStop = function(value) {
- return jspb.Message.setField(this, 1, value);
-};
-
-
-/**
- * Clears the field making it undefined.
- * @return {!proto.transit_realtime.ReplacementStop} returns this
- */
-proto.transit_realtime.ReplacementStop.prototype.clearTravelTimeToStop = function() {
- return jspb.Message.setField(this, 1, undefined);
-};
-
-
-/**
- * Returns whether this field is set.
- * @return {boolean}
- */
-proto.transit_realtime.ReplacementStop.prototype.hasTravelTimeToStop = function() {
- return jspb.Message.getField(this, 1) != null;
-};
-
-
-/**
- * optional string stop_id = 2;
- * @return {string}
- */
-proto.transit_realtime.ReplacementStop.prototype.getStopId = function() {
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
-};
-
-
-/**
- * @param {string} value
- * @return {!proto.transit_realtime.ReplacementStop} returns this
- */
-proto.transit_realtime.ReplacementStop.prototype.setStopId = function(value) {
- return jspb.Message.setField(this, 2, value);
-};
-
-
-/**
- * Clears the field making it undefined.
- * @return {!proto.transit_realtime.ReplacementStop} returns this
- */
-proto.transit_realtime.ReplacementStop.prototype.clearStopId = function() {
- return jspb.Message.setField(this, 2, undefined);
-};
-
-
-/**
- * Returns whether this field is set.
- * @return {boolean}
- */
-proto.transit_realtime.ReplacementStop.prototype.hasStopId = function() {
- return jspb.Message.getField(this, 2) != null;
-};
-
-
-goog.object.extend(exports, proto.transit_realtime);
-
-},{"google-protobuf":3}],2:[function(require,module,exports){
-const Proto = require('./gtfs_realtime_pb.js');
-const L = require('leaflet');
-const routes = require('./routes.js');
-
-window.onload = function() {
- let warningElement = document.getElementById('warning');
- if (window.location.protocol === 'https:') {
- warningElement.style.display = 'flex';
- } else {
- warningElement.style.display = 'none';
- }
-}
-
-let map = L.map('map').setView([35.1264, 33.4299], 8);
-L.tileLayer('https://tile.openstreetmap.org/{z}/{x}/{y}.png', {
- maxZoom: 19,
- attribution: 'OpenStreetMap'
-}).addTo(map);
-map.attributionControl.setPrefix('');
-
-let markers = L.layerGroup().addTo(map);
-
-let vehicleMarkers = {};
-const fetchData = () => {
- fetch('http://20.19.98.194:8328/Api/api/gtfs-realtime')
- .then(response => response.arrayBuffer())
- .then(buffer => {
- const uint8Array = new Uint8Array(buffer);
- const message = Proto.FeedMessage.deserializeBinary(uint8Array);
-
- let updatedVehicleIds = new Set();
-
- let entities = message.getEntityList();
- entities.forEach(entity => {
- let vehicleId = entity.getVehicle().getVehicle().getLabel();
- updatedVehicleIds.add(vehicleId);
-
- let latitude = entity.getVehicle().getPosition().getLatitude();
- let longitude = entity.getVehicle().getPosition().getLongitude();
- let bearing = entity.getVehicle().getPosition().getBearing();
- let startTime = entity.getVehicle().getTrip().getStartTime();
- let speedMeterPerSecond = entity.getVehicle().getPosition().getSpeed();
- let speedKmPerHour = Math.round(speedMeterPerSecond * 3.6);
- let routeID = entity.getVehicle().getTrip().getRouteId();
-
- let routeShortName = 'Unknown route';
- let routeLongName ='';
-
- let route = routes.routes.get(routeID);
- if (route) {
- routeShortName = route.shortName;
- routeLongName = route.longName;
- }
-
- if (vehicleMarkers[vehicleId]) {
- let busIcon = createBusIcon(bearing);
- vehicleMarkers[vehicleId].setIcon(busIcon);
-
- transitionMarker(vehicleMarkers[vehicleId], latitude, longitude, 1000);
- } else {
- let busIcon = createBusIcon(bearing);
-
- vehicleMarkers[vehicleId] = L.marker([latitude, longitude], {icon: busIcon}).addTo(markers)
- .bindPopup(`
- ${routeShortName} ${routeLongName}
- Speed: ${speedKmPerHour} km/h
- Start time: ${startTime}
- `);
- }
- });
-
- Object.keys(vehicleMarkers).forEach(vehicleId => {
- if (!updatedVehicleIds.has(vehicleId)) {
- markers.removeLayer(vehicleMarkers[vehicleId]);
- delete vehicleMarkers[vehicleId];
- }
- });
-
- let busCount = Object.keys(vehicleMarkers).length;
- document.getElementById('bus-count').innerText = `Buses transmit location: ${busCount}`;
-
- })
- .catch(error => console.error('Error:', error));
-};
-
-fetchData();
-
-setInterval(fetchData, 10000);
-
-function transitionMarker(marker, newLat, newLng, duration) {
- let start = performance.now();
- let from = marker.getLatLng();
- let to = new L.LatLng(newLat, newLng);
-
- function animate(timestamp) {
- let progress = Math.min((timestamp - start) / duration, 1);
- marker.setLatLng([from.lat + (to.lat - from.lat) * progress,
- from.lng + (to.lng - from.lng) * progress]);
-
- if (progress < 1) {
- requestAnimationFrame(animate);
- }
- }
-
- requestAnimationFrame(animate);
-}
-
-function roundToTens(num) {
- return Math.round(num / 10) * 10;
-}
-
-function createBusIcon(bearing) {
- let tens = roundToTens(bearing);
-
- let iconURL = `icons/icon${tens}.svg`;
-
- return L.icon({
- iconUrl: iconURL,
- iconSize: [30, 30],
- iconAnchor: [12, 12],
- popupAnchor: [0, -12],
- });
-}
-
-},{"./gtfs_realtime_pb.js":1,"./routes.js":5,"leaflet":4}],3:[function(require,module,exports){
-(function (global){(function (){
-/*
-
- Copyright The Closure Library Authors.
- SPDX-License-Identifier: Apache-2.0
-*/
-var $jscomp=$jscomp||{};$jscomp.scope={};$jscomp.findInternal=function(a,b,c){a instanceof String&&(a=String(a));for(var d=a.length,e=0;e=e}},"es6","es3");$jscomp.polyfill("Array.prototype.find",function(a){return a?a:function(a,c){return $jscomp.findInternal(this,a,c).v}},"es6","es3");
-$jscomp.polyfill("String.prototype.startsWith",function(a){return a?a:function(a,c){var b=$jscomp.checkStringArgs(this,a,"startsWith");a+="";var e=b.length,f=a.length;c=Math.max(0,Math.min(c|0,b.length));for(var g=0;g=f}},"es6","es3");
-$jscomp.polyfill("String.prototype.repeat",function(a){return a?a:function(a){var b=$jscomp.checkStringArgs(this,null,"repeat");if(0>a||1342177279>>=1)b+=b;return d}},"es6","es3");var COMPILED=!0,goog=goog||{};goog.global=this||self;
-goog.exportPath_=function(a,b,c){a=a.split(".");c=c||goog.global;a[0]in c||"undefined"==typeof c.execScript||c.execScript("var "+a[0]);for(var d;a.length&&(d=a.shift());)a.length||void 0===b?c=c[d]&&c[d]!==Object.prototype[d]?c[d]:c[d]={}:c[d]=b};
-goog.define=function(a,b){if(!COMPILED){var c=goog.global.CLOSURE_UNCOMPILED_DEFINES,d=goog.global.CLOSURE_DEFINES;c&&void 0===c.nodeType&&Object.prototype.hasOwnProperty.call(c,a)?b=c[a]:d&&void 0===d.nodeType&&Object.prototype.hasOwnProperty.call(d,a)&&(b=d[a])}return b};goog.FEATURESET_YEAR=2012;goog.DEBUG=!0;goog.LOCALE="en";goog.TRUSTED_SITE=!0;goog.STRICT_MODE_COMPATIBLE=!1;goog.DISALLOW_TEST_ONLY_CODE=COMPILED&&!goog.DEBUG;goog.ENABLE_CHROME_APP_SAFE_SCRIPT_LOADING=!1;
-goog.provide=function(a){if(goog.isInModuleLoader_())throw Error("goog.provide cannot be used within a module.");if(!COMPILED&&goog.isProvided_(a))throw Error('Namespace "'+a+'" already declared.');goog.constructNamespace_(a)};goog.constructNamespace_=function(a,b){if(!COMPILED){delete goog.implicitNamespaces_[a];for(var c=a;(c=c.substring(0,c.lastIndexOf(".")))&&!goog.getObjectByName(c);)goog.implicitNamespaces_[c]=!0}goog.exportPath_(a,b)};
-goog.getScriptNonce=function(a){if(a&&a!=goog.global)return goog.getScriptNonce_(a.document);null===goog.cspNonce_&&(goog.cspNonce_=goog.getScriptNonce_(goog.global.document));return goog.cspNonce_};goog.NONCE_PATTERN_=/^[\w+/_-]+[=]{0,2}$/;goog.cspNonce_=null;goog.getScriptNonce_=function(a){return(a=a.querySelector&&a.querySelector("script[nonce]"))&&(a=a.nonce||a.getAttribute("nonce"))&&goog.NONCE_PATTERN_.test(a)?a:""};goog.VALID_MODULE_RE_=/^[a-zA-Z_$][a-zA-Z0-9._$]*$/;
-goog.module=function(a){if("string"!==typeof a||!a||-1==a.search(goog.VALID_MODULE_RE_))throw Error("Invalid module identifier");if(!goog.isInGoogModuleLoader_())throw Error("Module "+a+" has been loaded incorrectly. Note, modules cannot be loaded as normal scripts. They require some kind of pre-processing step. You're likely trying to load a module via a script tag or as a part of a concatenated bundle without rewriting the module. For more info see: https://github.com/google/closure-library/wiki/goog.module:-an-ES6-module-like-alternative-to-goog.provide.");
-if(goog.moduleLoaderState_.moduleName)throw Error("goog.module may only be called once per module.");goog.moduleLoaderState_.moduleName=a;if(!COMPILED){if(goog.isProvided_(a))throw Error('Namespace "'+a+'" already declared.');delete goog.implicitNamespaces_[a]}};goog.module.get=function(a){return goog.module.getInternal_(a)};
-goog.module.getInternal_=function(a){if(!COMPILED){if(a in goog.loadedModules_)return goog.loadedModules_[a].exports;if(!goog.implicitNamespaces_[a])return a=goog.getObjectByName(a),null!=a?a:null}return null};goog.ModuleType={ES6:"es6",GOOG:"goog"};goog.moduleLoaderState_=null;goog.isInModuleLoader_=function(){return goog.isInGoogModuleLoader_()||goog.isInEs6ModuleLoader_()};goog.isInGoogModuleLoader_=function(){return!!goog.moduleLoaderState_&&goog.moduleLoaderState_.type==goog.ModuleType.GOOG};
-goog.isInEs6ModuleLoader_=function(){if(goog.moduleLoaderState_&&goog.moduleLoaderState_.type==goog.ModuleType.ES6)return!0;var a=goog.global.$jscomp;return a?"function"!=typeof a.getCurrentModulePath?!1:!!a.getCurrentModulePath():!1};
-goog.module.declareLegacyNamespace=function(){if(!COMPILED&&!goog.isInGoogModuleLoader_())throw Error("goog.module.declareLegacyNamespace must be called from within a goog.module");if(!COMPILED&&!goog.moduleLoaderState_.moduleName)throw Error("goog.module must be called prior to goog.module.declareLegacyNamespace.");goog.moduleLoaderState_.declareLegacyNamespace=!0};
-goog.declareModuleId=function(a){if(!COMPILED){if(!goog.isInEs6ModuleLoader_())throw Error("goog.declareModuleId may only be called from within an ES6 module");if(goog.moduleLoaderState_&&goog.moduleLoaderState_.moduleName)throw Error("goog.declareModuleId may only be called once per module.");if(a in goog.loadedModules_)throw Error('Module with namespace "'+a+'" already exists.');}if(goog.moduleLoaderState_)goog.moduleLoaderState_.moduleName=a;else{var b=goog.global.$jscomp;if(!b||"function"!=typeof b.getCurrentModulePath)throw Error('Module with namespace "'+
-a+'" has been loaded incorrectly.');b=b.require(b.getCurrentModulePath());goog.loadedModules_[a]={exports:b,type:goog.ModuleType.ES6,moduleId:a}}};goog.setTestOnly=function(a){if(goog.DISALLOW_TEST_ONLY_CODE)throw a=a||"",Error("Importing test-only code into non-debug environment"+(a?": "+a:"."));};goog.forwardDeclare=function(a){};COMPILED||(goog.isProvided_=function(a){return a in goog.loadedModules_||!goog.implicitNamespaces_[a]&&null!=goog.getObjectByName(a)},goog.implicitNamespaces_={"goog.module":!0});
-goog.getObjectByName=function(a,b){a=a.split(".");b=b||goog.global;for(var c=0;c>>0);goog.uidCounter_=0;goog.getHashCode=goog.getUid;goog.removeHashCode=goog.removeUid;
-goog.cloneObject=function(a){var b=goog.typeOf(a);if("object"==b||"array"==b){if("function"===typeof a.clone)return a.clone();b="array"==b?[]:{};for(var c in a)b[c]=goog.cloneObject(a[c]);return b}return a};goog.bindNative_=function(a,b,c){return a.call.apply(a.bind,arguments)};
-goog.bindJs_=function(a,b,c){if(!a)throw Error();if(2{"use strict";class X{constructor(){if(new.target!=String)throw 1;this.x=42}}let q=Reflect.construct(X,[],String);if(q.x!=42||!(q instanceof String))throw 1;for(const a of[2,3]){if(a==2)continue;function f(z={a}){let a=0;return z.a}{function f(){return 0;}}return f()==3}})()')});
-a("es7",function(){return b("2 ** 2 == 4")});a("es8",function(){return b("async () => 1, true")});a("es9",function(){return b("({...rest} = {}), true")});a("es_next",function(){return!1});return{target:c,map:d}},goog.Transpiler.prototype.needsTranspile=function(a,b){if("always"==goog.TRANSPILE)return!0;if("never"==goog.TRANSPILE)return!1;if(!this.requiresTranspilation_){var c=this.createRequiresTranspilation_();this.requiresTranspilation_=c.map;this.transpilationTarget_=this.transpilationTarget_||
-c.target}if(a in this.requiresTranspilation_)return this.requiresTranspilation_[a]?!0:!goog.inHtmlDocument_()||"es6"!=b||"noModule"in goog.global.document.createElement("script")?!1:!0;throw Error("Unknown language mode: "+a);},goog.Transpiler.prototype.transpile=function(a,b){return goog.transpile_(a,b,this.transpilationTarget_)},goog.transpiler_=new goog.Transpiler,goog.protectScriptTag_=function(a){return a.replace(/<\/(SCRIPT)/ig,"\\x3c/$1")},goog.DebugLoader_=function(){this.dependencies_={};
-this.idToPath_={};this.written_={};this.loadingDeps_=[];this.depsToLoad_=[];this.paused_=!1;this.factory_=new goog.DependencyFactory(goog.transpiler_);this.deferredCallbacks_={};this.deferredQueue_=[]},goog.DebugLoader_.prototype.bootstrap=function(a,b){function c(){d&&(goog.global.setTimeout(d,0),d=null)}var d=b;if(a.length){b=[];for(var e=0;e\x3c/script>";b.write(goog.TRUSTED_TYPES_POLICY_?goog.TRUSTED_TYPES_POLICY_.createHTML(d):d)}else{var e=b.createElement("script");e.defer=goog.Dependency.defer_;e.async=!1;e.type="text/javascript";(d=goog.getScriptNonce())&&e.setAttribute("nonce",d);goog.DebugLoader_.IS_OLD_IE_?
-(a.pause(),e.onreadystatechange=function(){if("loaded"==e.readyState||"complete"==e.readyState)a.loaded(),a.resume()}):e.onload=function(){e.onload=null;a.loaded()};e.src=goog.TRUSTED_TYPES_POLICY_?goog.TRUSTED_TYPES_POLICY_.createScriptURL(this.path):this.path;b.head.appendChild(e)}}else goog.logToConsole_("Cannot use default debug loader outside of HTML documents."),"deps.js"==this.relativePath?(goog.logToConsole_("Consider setting CLOSURE_IMPORT_SCRIPT before loading base.js, or setting CLOSURE_NO_DEPS to true."),
-a.loaded()):a.pause()},goog.Es6ModuleDependency=function(a,b,c,d,e){goog.Dependency.call(this,a,b,c,d,e)},goog.inherits(goog.Es6ModuleDependency,goog.Dependency),goog.Es6ModuleDependency.prototype.load=function(a){function b(a,b){a=b?'
-