position_ = com.google.transit.realtime.GtfsRealtime.Position.getDefaultInstance(); } else { positionBuilder_.clear();
/** * <code>optional .transit_realtime.Position position = 2;</code> * * <pre> * Current position of this vehicle. * </pre> */ public Builder clearPosition() { if (positionBuilder_ == null) { position_ = com.google.transit.realtime.GtfsRealtime.Position.getDefaultInstance(); onChanged(); } else { positionBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000004); return this; } /**
/** * <code>optional .transit_realtime.Position position = 2;</code> * * <pre> * Current position of this vehicle. * </pre> */ public Builder mergePosition(com.google.transit.realtime.GtfsRealtime.Position value) { if (positionBuilder_ == null) { if (((bitField0_ & 0x00000004) == 0x00000004) && position_ != com.google.transit.realtime.GtfsRealtime.Position.getDefaultInstance()) { position_ = com.google.transit.realtime.GtfsRealtime.Position.newBuilder(position_).mergeFrom(value).buildPartial(); } else { position_ = value; } onChanged(); } else { positionBuilder_.mergeFrom(value); } bitField0_ |= 0x00000004; return this; } /**
position_ = com.google.transit.realtime.GtfsRealtime.Position.getDefaultInstance(); } else { positionBuilder_.clear();
/** * <code>optional .transit_realtime.Position position = 2;</code> * * <pre> * Current position of this vehicle. * </pre> */ public Builder mergePosition(com.google.transit.realtime.GtfsRealtime.Position value) { if (positionBuilder_ == null) { if (((bitField0_ & 0x00000004) == 0x00000004) && position_ != com.google.transit.realtime.GtfsRealtime.Position.getDefaultInstance()) { position_ = com.google.transit.realtime.GtfsRealtime.Position.newBuilder(position_).mergeFrom(value).buildPartial(); } else { position_ = value; } onChanged(); } else { positionBuilder_.mergeFrom(value); } bitField0_ |= 0x00000004; return this; } /**
public Builder mergeFrom(com.google.transit.realtime.GtfsRealtime.Position other) { if (other == com.google.transit.realtime.GtfsRealtime.Position.getDefaultInstance()) return this; if (other.hasLatitude()) { setLatitude(other.getLatitude()); } if (other.hasLongitude()) { setLongitude(other.getLongitude()); } if (other.hasBearing()) { setBearing(other.getBearing()); } if (other.hasOdometer()) { setOdometer(other.getOdometer()); } if (other.hasSpeed()) { setSpeed(other.getSpeed()); } this.mergeExtensionFields(other); this.mergeUnknownFields(other.getUnknownFields()); return this; }
/** * <code>optional .transit_realtime.Position position = 2;</code> * * <pre> * Current position of this vehicle. * </pre> */ public Builder clearPosition() { if (positionBuilder_ == null) { position_ = com.google.transit.realtime.GtfsRealtime.Position.getDefaultInstance(); onChanged(); } else { positionBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000004); return this; } /**
public com.google.transit.realtime.GtfsRealtime.Position getDefaultInstanceForType() { return com.google.transit.realtime.GtfsRealtime.Position.getDefaultInstance(); }
private void initFields() { trip_ = com.google.transit.realtime.GtfsRealtime.TripDescriptor.getDefaultInstance(); vehicle_ = com.google.transit.realtime.GtfsRealtime.VehicleDescriptor.getDefaultInstance(); position_ = com.google.transit.realtime.GtfsRealtime.Position.getDefaultInstance(); currentStopSequence_ = 0; stopId_ = ""; currentStatus_ = com.google.transit.realtime.GtfsRealtime.VehiclePosition.VehicleStopStatus.IN_TRANSIT_TO; timestamp_ = 0L; congestionLevel_ = com.google.transit.realtime.GtfsRealtime.VehiclePosition.CongestionLevel.UNKNOWN_CONGESTION_LEVEL; occupancyStatus_ = com.google.transit.realtime.GtfsRealtime.VehiclePosition.OccupancyStatus.EMPTY; } private byte memoizedIsInitialized = -1;
public Builder mergeFrom(com.google.transit.realtime.GtfsRealtime.Position other) { if (other == com.google.transit.realtime.GtfsRealtime.Position.getDefaultInstance()) return this; if (other.hasLatitude()) { setLatitude(other.getLatitude()); } if (other.hasLongitude()) { setLongitude(other.getLongitude()); } if (other.hasBearing()) { setBearing(other.getBearing()); } if (other.hasOdometer()) { setOdometer(other.getOdometer()); } if (other.hasSpeed()) { setSpeed(other.getSpeed()); } this.mergeExtensionFields(other); this.mergeUnknownFields(other.getUnknownFields()); return this; }
public com.google.transit.realtime.GtfsRealtime.Position getDefaultInstanceForType() { return com.google.transit.realtime.GtfsRealtime.Position.getDefaultInstance(); }
private void initFields() { trip_ = com.google.transit.realtime.GtfsRealtime.TripDescriptor.getDefaultInstance(); vehicle_ = com.google.transit.realtime.GtfsRealtime.VehicleDescriptor.getDefaultInstance(); position_ = com.google.transit.realtime.GtfsRealtime.Position.getDefaultInstance(); currentStopSequence_ = 0; stopId_ = ""; currentStatus_ = com.google.transit.realtime.GtfsRealtime.VehiclePosition.VehicleStopStatus.IN_TRANSIT_TO; timestamp_ = 0L; congestionLevel_ = com.google.transit.realtime.GtfsRealtime.VehiclePosition.CongestionLevel.UNKNOWN_CONGESTION_LEVEL; occupancyStatus_ = com.google.transit.realtime.GtfsRealtime.VehiclePosition.OccupancyStatus.EMPTY; } private byte memoizedIsInitialized = -1;