| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082 |
- /**
- * @fileoverview
- * @enhanceable
- * @public
- */
- // GENERATED CODE -- DO NOT EDIT!
- goog.provide('proto.transit_realtime.TripUpdate');
- goog.provide('proto.transit_realtime.TripUpdate.StopTimeEvent');
- goog.provide('proto.transit_realtime.TripUpdate.StopTimeUpdate');
- goog.provide('proto.transit_realtime.TripUpdate.StopTimeUpdate.ScheduleRelationship');
- goog.provide('proto.transit_realtime.TripUpdate.StopTimeUpdate.StopTimeProperties');
- goog.provide('proto.transit_realtime.TripUpdate.TripProperties');
- goog.require('jspb.Message');
- goog.require('proto.transit_realtime.TripDescriptor');
- goog.require('proto.transit_realtime.VehicleDescriptor');
- goog.forwardDeclare('proto.transit_realtime.VehiclePosition.OccupancyStatus');
- /**
- * 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) {
- proto.transit_realtime.TripUpdate.displayName = 'proto.transit_realtime.TripUpdate';
- }
- /**
- * List of repeated fields within this message type.
- * @private {!Array<number>}
- * @const
- */
- proto.transit_realtime.TripUpdate.repeatedFields_ = [2];
- if (jspb.Message.GENERATE_TO_OBJECT) {
- /**
- * Creates an object representation of this proto suitable for use in Soy templates.
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
- * For the list of reserved names please see:
- * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
- * @param {boolean=} opt_includeInstance 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 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}
- */
- 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: jspb.Message.getField(msg, 4),
- delay: jspb.Message.getField(msg, 5),
- 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;
- };
- }
- /**
- * Creates a deep clone of this proto. No data is shared with the original.
- * @return {!proto.transit_realtime.TripUpdate} The clone.
- */
- proto.transit_realtime.TripUpdate.prototype.cloneMessage = function() {
- return /** @type {!proto.transit_realtime.TripUpdate} */ (jspb.Message.cloneMessage(this));
- };
- /**
- * 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|undefined} value */
- proto.transit_realtime.TripUpdate.prototype.setTrip = function(value) {
- jspb.Message.setWrapperField(this, 1, value);
- };
- proto.transit_realtime.TripUpdate.prototype.clearTrip = function() {
- this.setTrip(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 */
- proto.transit_realtime.TripUpdate.prototype.setVehicle = function(value) {
- jspb.Message.setWrapperField(this, 3, value);
- };
- proto.transit_realtime.TripUpdate.prototype.clearVehicle = function() {
- 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;
- * If you change this array by adding, removing or replacing elements, or if you
- * replace the array itself, then you must call the setter to update it.
- * @return {!Array.<!proto.transit_realtime.TripUpdate.StopTimeUpdate>}
- */
- proto.transit_realtime.TripUpdate.prototype.getStopTimeUpdateList = function() {
- return /** @type{!Array.<!proto.transit_realtime.TripUpdate.StopTimeUpdate>} */ (
- jspb.Message.getRepeatedWrapperField(this, proto.transit_realtime.TripUpdate.StopTimeUpdate, 2));
- };
- /** @param {Array.<!proto.transit_realtime.TripUpdate.StopTimeUpdate>} value */
- proto.transit_realtime.TripUpdate.prototype.setStopTimeUpdateList = function(value) {
- jspb.Message.setRepeatedWrapperField(this, 2, value);
- };
- proto.transit_realtime.TripUpdate.prototype.clearStopTimeUpdateList = function() {
- this.setStopTimeUpdateList([]);
- };
- /**
- * optional uint64 timestamp = 4;
- * @return {number}
- */
- proto.transit_realtime.TripUpdate.prototype.getTimestamp = function() {
- return /** @type {number} */ (!this.hasTimestamp() ? 0 : jspb.Message.getField(this, 4));
- };
- /** @param {number?|undefined} value */
- proto.transit_realtime.TripUpdate.prototype.setTimestamp = function(value) {
- jspb.Message.setField(this, 4, value);
- };
- proto.transit_realtime.TripUpdate.prototype.clearTimestamp = function() {
- 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} */ (!this.hasDelay() ? 0 : jspb.Message.getField(this, 5));
- };
- /** @param {number?|undefined} value */
- proto.transit_realtime.TripUpdate.prototype.setDelay = function(value) {
- jspb.Message.setField(this, 5, value);
- };
- proto.transit_realtime.TripUpdate.prototype.clearDelay = function() {
- 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 */
- proto.transit_realtime.TripUpdate.prototype.setTripProperties = function(value) {
- jspb.Message.setWrapperField(this, 6, value);
- };
- proto.transit_realtime.TripUpdate.prototype.clearTripProperties = function() {
- 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;
- };
- /**
- * 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.<number, jspb.ExtensionFieldInfo>}
- */
- proto.transit_realtime.TripUpdate.extensions = {};
- /**
- * 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) {
- proto.transit_realtime.TripUpdate.StopTimeEvent.displayName = 'proto.transit_realtime.TripUpdate.StopTimeEvent';
- }
- if (jspb.Message.GENERATE_TO_OBJECT) {
- /**
- * Creates an object representation of this proto suitable for use in Soy templates.
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
- * For the list of reserved names please see:
- * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
- * @param {boolean=} opt_includeInstance 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 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}
- */
- proto.transit_realtime.TripUpdate.StopTimeEvent.toObject = function(includeInstance, msg) {
- var f, obj = {
- delay: jspb.Message.getField(msg, 1),
- time: jspb.Message.getField(msg, 2),
- uncertainty: jspb.Message.getField(msg, 3)
- };
- 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;
- };
- }
- /**
- * Creates a deep clone of this proto. No data is shared with the original.
- * @return {!proto.transit_realtime.TripUpdate.StopTimeEvent} The clone.
- */
- proto.transit_realtime.TripUpdate.StopTimeEvent.prototype.cloneMessage = function() {
- return /** @type {!proto.transit_realtime.TripUpdate.StopTimeEvent} */ (jspb.Message.cloneMessage(this));
- };
- /**
- * optional int32 delay = 1;
- * @return {number}
- */
- proto.transit_realtime.TripUpdate.StopTimeEvent.prototype.getDelay = function() {
- return /** @type {number} */ (!this.hasDelay() ? 0 : jspb.Message.getField(this, 1));
- };
- /** @param {number?|undefined} value */
- proto.transit_realtime.TripUpdate.StopTimeEvent.prototype.setDelay = function(value) {
- jspb.Message.setField(this, 1, value);
- };
- proto.transit_realtime.TripUpdate.StopTimeEvent.prototype.clearDelay = function() {
- 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} */ (!this.hasTime() ? 0 : jspb.Message.getField(this, 2));
- };
- /** @param {number?|undefined} value */
- proto.transit_realtime.TripUpdate.StopTimeEvent.prototype.setTime = function(value) {
- jspb.Message.setField(this, 2, value);
- };
- proto.transit_realtime.TripUpdate.StopTimeEvent.prototype.clearTime = function() {
- 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} */ (!this.hasUncertainty() ? 0 : jspb.Message.getField(this, 3));
- };
- /** @param {number?|undefined} value */
- proto.transit_realtime.TripUpdate.StopTimeEvent.prototype.setUncertainty = function(value) {
- jspb.Message.setField(this, 3, value);
- };
- proto.transit_realtime.TripUpdate.StopTimeEvent.prototype.clearUncertainty = function() {
- 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;
- };
- /**
- * 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.<number, jspb.ExtensionFieldInfo>}
- */
- proto.transit_realtime.TripUpdate.StopTimeEvent.extensions = {};
- /**
- * 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) {
- proto.transit_realtime.TripUpdate.StopTimeUpdate.displayName = 'proto.transit_realtime.TripUpdate.StopTimeUpdate';
- }
- if (jspb.Message.GENERATE_TO_OBJECT) {
- /**
- * Creates an object representation of this proto suitable for use in Soy templates.
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
- * For the list of reserved names please see:
- * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
- * @param {boolean=} opt_includeInstance 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 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}
- */
- proto.transit_realtime.TripUpdate.StopTimeUpdate.toObject = function(includeInstance, msg) {
- var f, obj = {
- stopSequence: jspb.Message.getField(msg, 1),
- stopId: jspb.Message.getField(msg, 4),
- 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: jspb.Message.getField(msg, 7),
- scheduleRelationship: !msg.hasScheduleRelationship() ? 0 : jspb.Message.getField(msg, 5),
- 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;
- };
- }
- /**
- * Creates a deep clone of this proto. No data is shared with the original.
- * @return {!proto.transit_realtime.TripUpdate.StopTimeUpdate} The clone.
- */
- proto.transit_realtime.TripUpdate.StopTimeUpdate.prototype.cloneMessage = function() {
- return /** @type {!proto.transit_realtime.TripUpdate.StopTimeUpdate} */ (jspb.Message.cloneMessage(this));
- };
- /**
- * optional uint32 stop_sequence = 1;
- * @return {number}
- */
- proto.transit_realtime.TripUpdate.StopTimeUpdate.prototype.getStopSequence = function() {
- return /** @type {number} */ (!this.hasStopSequence() ? 0 : jspb.Message.getField(this, 1));
- };
- /** @param {number?|undefined} value */
- proto.transit_realtime.TripUpdate.StopTimeUpdate.prototype.setStopSequence = function(value) {
- jspb.Message.setField(this, 1, value);
- };
- proto.transit_realtime.TripUpdate.StopTimeUpdate.prototype.clearStopSequence = function() {
- 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} */ (!this.hasStopId() ? "" : jspb.Message.getField(this, 4));
- };
- /** @param {string?|undefined} value */
- proto.transit_realtime.TripUpdate.StopTimeUpdate.prototype.setStopId = function(value) {
- jspb.Message.setField(this, 4, value);
- };
- proto.transit_realtime.TripUpdate.StopTimeUpdate.prototype.clearStopId = function() {
- 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 */
- proto.transit_realtime.TripUpdate.StopTimeUpdate.prototype.setArrival = function(value) {
- jspb.Message.setWrapperField(this, 2, value);
- };
- proto.transit_realtime.TripUpdate.StopTimeUpdate.prototype.clearArrival = function() {
- 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 */
- proto.transit_realtime.TripUpdate.StopTimeUpdate.prototype.setDeparture = function(value) {
- jspb.Message.setWrapperField(this, 3, value);
- };
- proto.transit_realtime.TripUpdate.StopTimeUpdate.prototype.clearDeparture = function() {
- 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} */ (!this.hasDepartureOccupancyStatus() ? 0 : jspb.Message.getField(this, 7));
- };
- /** @param {proto.transit_realtime.VehiclePosition.OccupancyStatus|undefined} value */
- proto.transit_realtime.TripUpdate.StopTimeUpdate.prototype.setDepartureOccupancyStatus = function(value) {
- jspb.Message.setField(this, 7, value);
- };
- proto.transit_realtime.TripUpdate.StopTimeUpdate.prototype.clearDepartureOccupancyStatus = function() {
- 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} */ (!this.hasScheduleRelationship() ? 0 : jspb.Message.getField(this, 5));
- };
- /** @param {proto.transit_realtime.TripUpdate.StopTimeUpdate.ScheduleRelationship|undefined} value */
- proto.transit_realtime.TripUpdate.StopTimeUpdate.prototype.setScheduleRelationship = function(value) {
- jspb.Message.setField(this, 5, value);
- };
- proto.transit_realtime.TripUpdate.StopTimeUpdate.prototype.clearScheduleRelationship = function() {
- 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 */
- proto.transit_realtime.TripUpdate.StopTimeUpdate.prototype.setStopTimeProperties = function(value) {
- jspb.Message.setWrapperField(this, 6, value);
- };
- proto.transit_realtime.TripUpdate.StopTimeUpdate.prototype.clearStopTimeProperties = function() {
- 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;
- };
- /**
- * 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.<number, jspb.ExtensionFieldInfo>}
- */
- proto.transit_realtime.TripUpdate.StopTimeUpdate.extensions = {};
- /**
- * @enum {number}
- */
- proto.transit_realtime.TripUpdate.StopTimeUpdate.ScheduleRelationship = {
- SCHEDULED: 0,
- SKIPPED: 1,
- NO_DATA: 2,
- UNSCHEDULED: 3
- };
- /**
- * 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) {
- proto.transit_realtime.TripUpdate.StopTimeUpdate.StopTimeProperties.displayName = 'proto.transit_realtime.TripUpdate.StopTimeUpdate.StopTimeProperties';
- }
- if (jspb.Message.GENERATE_TO_OBJECT) {
- /**
- * Creates an object representation of this proto suitable for use in Soy templates.
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
- * For the list of reserved names please see:
- * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
- * @param {boolean=} opt_includeInstance 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 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}
- */
- proto.transit_realtime.TripUpdate.StopTimeUpdate.StopTimeProperties.toObject = function(includeInstance, msg) {
- var f, obj = {
- assignedStopId: jspb.Message.getField(msg, 1)
- };
- 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;
- };
- }
- /**
- * Creates a deep clone of this proto. No data is shared with the original.
- * @return {!proto.transit_realtime.TripUpdate.StopTimeUpdate.StopTimeProperties} The clone.
- */
- proto.transit_realtime.TripUpdate.StopTimeUpdate.StopTimeProperties.prototype.cloneMessage = function() {
- return /** @type {!proto.transit_realtime.TripUpdate.StopTimeUpdate.StopTimeProperties} */ (jspb.Message.cloneMessage(this));
- };
- /**
- * optional string assigned_stop_id = 1;
- * @return {string}
- */
- proto.transit_realtime.TripUpdate.StopTimeUpdate.StopTimeProperties.prototype.getAssignedStopId = function() {
- return /** @type {string} */ (!this.hasAssignedStopId() ? "" : jspb.Message.getField(this, 1));
- };
- /** @param {string?|undefined} value */
- proto.transit_realtime.TripUpdate.StopTimeUpdate.StopTimeProperties.prototype.setAssignedStopId = function(value) {
- jspb.Message.setField(this, 1, value);
- };
- proto.transit_realtime.TripUpdate.StopTimeUpdate.StopTimeProperties.prototype.clearAssignedStopId = function() {
- 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;
- };
- /**
- * 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.<number, jspb.ExtensionFieldInfo>}
- */
- proto.transit_realtime.TripUpdate.StopTimeUpdate.StopTimeProperties.extensions = {};
- /**
- * 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) {
- proto.transit_realtime.TripUpdate.TripProperties.displayName = 'proto.transit_realtime.TripUpdate.TripProperties';
- }
- if (jspb.Message.GENERATE_TO_OBJECT) {
- /**
- * Creates an object representation of this proto suitable for use in Soy templates.
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
- * For the list of reserved names please see:
- * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
- * @param {boolean=} opt_includeInstance 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 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}
- */
- proto.transit_realtime.TripUpdate.TripProperties.toObject = function(includeInstance, msg) {
- var f, obj = {
- tripId: jspb.Message.getField(msg, 1),
- startDate: jspb.Message.getField(msg, 2),
- startTime: jspb.Message.getField(msg, 3),
- shapeId: jspb.Message.getField(msg, 4)
- };
- 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;
- };
- }
- /**
- * Creates a deep clone of this proto. No data is shared with the original.
- * @return {!proto.transit_realtime.TripUpdate.TripProperties} The clone.
- */
- proto.transit_realtime.TripUpdate.TripProperties.prototype.cloneMessage = function() {
- return /** @type {!proto.transit_realtime.TripUpdate.TripProperties} */ (jspb.Message.cloneMessage(this));
- };
- /**
- * optional string trip_id = 1;
- * @return {string}
- */
- proto.transit_realtime.TripUpdate.TripProperties.prototype.getTripId = function() {
- return /** @type {string} */ (!this.hasTripId() ? "" : jspb.Message.getField(this, 1));
- };
- /** @param {string?|undefined} value */
- proto.transit_realtime.TripUpdate.TripProperties.prototype.setTripId = function(value) {
- jspb.Message.setField(this, 1, value);
- };
- proto.transit_realtime.TripUpdate.TripProperties.prototype.clearTripId = function() {
- 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} */ (!this.hasStartDate() ? "" : jspb.Message.getField(this, 2));
- };
- /** @param {string?|undefined} value */
- proto.transit_realtime.TripUpdate.TripProperties.prototype.setStartDate = function(value) {
- jspb.Message.setField(this, 2, value);
- };
- proto.transit_realtime.TripUpdate.TripProperties.prototype.clearStartDate = function() {
- 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} */ (!this.hasStartTime() ? "" : jspb.Message.getField(this, 3));
- };
- /** @param {string?|undefined} value */
- proto.transit_realtime.TripUpdate.TripProperties.prototype.setStartTime = function(value) {
- jspb.Message.setField(this, 3, value);
- };
- proto.transit_realtime.TripUpdate.TripProperties.prototype.clearStartTime = function() {
- 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} */ (!this.hasShapeId() ? "" : jspb.Message.getField(this, 4));
- };
- /** @param {string?|undefined} value */
- proto.transit_realtime.TripUpdate.TripProperties.prototype.setShapeId = function(value) {
- jspb.Message.setField(this, 4, value);
- };
- proto.transit_realtime.TripUpdate.TripProperties.prototype.clearShapeId = function() {
- 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;
- };
- /**
- * 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.<number, jspb.ExtensionFieldInfo>}
- */
- proto.transit_realtime.TripUpdate.TripProperties.extensions = {};
|