/** * @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} * @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_, 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.prototype.getStopTimeUpdateList = function() { return /** @type{!Array.} */ ( jspb.Message.getRepeatedWrapperField(this, proto.transit_realtime.TripUpdate.StopTimeUpdate, 2)); }; /** @param {Array.} 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.} */ 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_, 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.} */ 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_, 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.} */ 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_, 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.} */ 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_, 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.} */ proto.transit_realtime.TripUpdate.TripProperties.extensions = {};