public final class TicketLeg
extends com.google.api.client.json.GenericJson
This is the Java data model class that specifies how to parse/serialize into the JSON that is transmitted over HTTP when working with the Google Wallet API. For a detailed explanation see: https://developers.google.com/api-client-library/java/google-http-java-client/json
com.google.api.client.util.GenericData.FlagsAbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Constructor and Description |
|---|
TicketLeg() |
| Modifier and Type | Method and Description |
|---|---|
TicketLeg |
clone() |
String |
getArrivalDateTime()
The date/time of arrival.
|
String |
getCarriage()
The train or ship name/number that the passsenger needs to board.
|
String |
getDepartureDateTime()
The date/time of departure.
|
LocalizedString |
getDestinationName()
The destination name.
|
String |
getDestinationStationCode()
The destination station code.
|
LocalizedString |
getFareName()
Short description/name of the fare for this leg of travel.
|
LocalizedString |
getOriginName()
The name of the origin station.
|
String |
getOriginStationCode()
The origin station code.
|
String |
getPlatform()
The platform or gate where the passenger can board the carriage.
|
TicketSeat |
getTicketSeat()
The reserved seat for the passenger(s).
|
List<TicketSeat> |
getTicketSeats()
The reserved seat for the passenger(s).
|
LocalizedString |
getTransitOperatorName()
The name of the transit operator that is operating this leg of a trip.
|
LocalizedString |
getTransitTerminusName()
Terminus station or destination of the train/bus/etc.
|
String |
getZone()
The zone of boarding within the platform.
|
TicketLeg |
set(String fieldName,
Object value) |
TicketLeg |
setArrivalDateTime(String arrivalDateTime)
The date/time of arrival.
|
TicketLeg |
setCarriage(String carriage)
The train or ship name/number that the passsenger needs to board.
|
TicketLeg |
setDepartureDateTime(String departureDateTime)
The date/time of departure.
|
TicketLeg |
setDestinationName(LocalizedString destinationName)
The destination name.
|
TicketLeg |
setDestinationStationCode(String destinationStationCode)
The destination station code.
|
TicketLeg |
setFareName(LocalizedString fareName)
Short description/name of the fare for this leg of travel.
|
TicketLeg |
setOriginName(LocalizedString originName)
The name of the origin station.
|
TicketLeg |
setOriginStationCode(String originStationCode)
The origin station code.
|
TicketLeg |
setPlatform(String platform)
The platform or gate where the passenger can board the carriage.
|
TicketLeg |
setTicketSeat(TicketSeat ticketSeat)
The reserved seat for the passenger(s).
|
TicketLeg |
setTicketSeats(List<TicketSeat> ticketSeats)
The reserved seat for the passenger(s).
|
TicketLeg |
setTransitOperatorName(LocalizedString transitOperatorName)
The name of the transit operator that is operating this leg of a trip.
|
TicketLeg |
setTransitTerminusName(LocalizedString transitTerminusName)
Terminus station or destination of the train/bus/etc.
|
TicketLeg |
setZone(String zone)
The zone of boarding within the platform.
|
getFactory, setFactory, toPrettyString, toStringentrySet, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeysclear, containsKey, containsValue, isEmpty, keySet, size, valuesfinalize, getClass, notify, notifyAll, wait, wait, waitcompute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAllpublic String getArrivalDateTime()
null for nonepublic TicketLeg setArrivalDateTime(String arrivalDateTime)
arrivalDateTime - arrivalDateTime or null for nonepublic String getCarriage()
null for nonepublic TicketLeg setCarriage(String carriage)
carriage - carriage or null for nonepublic String getDepartureDateTime()
null for nonepublic TicketLeg setDepartureDateTime(String departureDateTime)
departureDateTime - departureDateTime or null for nonepublic LocalizedString getDestinationName()
null for nonepublic TicketLeg setDestinationName(LocalizedString destinationName)
destinationName - destinationName or null for nonepublic String getDestinationStationCode()
null for nonepublic TicketLeg setDestinationStationCode(String destinationStationCode)
destinationStationCode - destinationStationCode or null for nonepublic LocalizedString getFareName()
null for nonepublic TicketLeg setFareName(LocalizedString fareName)
fareName - fareName or null for nonepublic LocalizedString getOriginName()
null for nonepublic TicketLeg setOriginName(LocalizedString originName)
originName - originName or null for nonepublic String getOriginStationCode()
null for nonepublic TicketLeg setOriginStationCode(String originStationCode)
originStationCode - originStationCode or null for nonepublic String getPlatform()
null for nonepublic TicketLeg setPlatform(String platform)
platform - platform or null for nonepublic TicketSeat getTicketSeat()
null for nonepublic TicketLeg setTicketSeat(TicketSeat ticketSeat)
ticketSeat - ticketSeat or null for nonepublic List<TicketSeat> getTicketSeats()
null for nonepublic TicketLeg setTicketSeats(List<TicketSeat> ticketSeats)
ticketSeats - ticketSeats or null for nonepublic LocalizedString getTransitOperatorName()
null for nonepublic TicketLeg setTransitOperatorName(LocalizedString transitOperatorName)
transitOperatorName - transitOperatorName or null for nonepublic LocalizedString getTransitTerminusName()
null for nonepublic TicketLeg setTransitTerminusName(LocalizedString transitTerminusName)
transitTerminusName - transitTerminusName or null for nonepublic String getZone()
null for nonepublic TicketLeg setZone(String zone)
zone - zone or null for nonepublic TicketLeg set(String fieldName, Object value)
set in class com.google.api.client.json.GenericJsonpublic TicketLeg clone()
clone in class com.google.api.client.json.GenericJsonCopyright © 2011–2025 Google. All rights reserved.