/** * <code>optional .transit_realtime.TripDescriptor trip = 4;</code> */ public Builder setTrip(com.google.transit.realtime.GtfsRealtime.TripDescriptor value) { if (tripBuilder_ == null) { if (value == null) { throw new NullPointerException(); } trip_ = value; onChanged(); } else { tripBuilder_.setMessage(value); } bitField0_ |= 0x00000008; return this; } /**
/** * <code>optional string route_id = 2;</code> */ public Builder setRouteIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; routeId_ = value; onChanged(); return this; }
/** * <code>optional string stop_id = 5;</code> */ public Builder setStopIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000010; stopId_ = value; onChanged(); return this; }
/** * <code>optional string stop_id = 5;</code> */ public Builder clearStopId() { bitField0_ = (bitField0_ & ~0x00000010); stopId_ = getDefaultInstance().getStopId(); onChanged(); return this; } /**
/** * <code>optional .transit_realtime.TripDescriptor trip = 4;</code> */ public com.google.transit.realtime.GtfsRealtime.TripDescriptor.Builder getTripBuilder() { bitField0_ |= 0x00000008; onChanged(); return getTripFieldBuilder().getBuilder(); } /**
/** * <code>optional string route_id = 2;</code> */ public Builder clearRouteId() { bitField0_ = (bitField0_ & ~0x00000002); routeId_ = getDefaultInstance().getRouteId(); onChanged(); return this; } /**
public Builder mergeFrom(com.google.transit.realtime.GtfsRealtime.EntitySelector other) { if (other == com.google.transit.realtime.GtfsRealtime.EntitySelector.getDefaultInstance()) return this; if (other.hasAgencyId()) { bitField0_ |= 0x00000001; agencyId_ = other.agencyId_; onChanged(); } if (other.hasRouteId()) { bitField0_ |= 0x00000002; routeId_ = other.routeId_; onChanged(); } if (other.hasRouteType()) { setRouteType(other.getRouteType()); } if (other.hasTrip()) { mergeTrip(other.getTrip()); } if (other.hasStopId()) { bitField0_ |= 0x00000010; stopId_ = other.stopId_; onChanged(); } this.mergeExtensionFields(other); this.mergeUnknownFields(other.getUnknownFields()); return this; }
/** * <code>optional string agency_id = 1;</code> * * <pre> * The values of the fields should correspond to the appropriate fields in the * GTFS feed. * At least one specifier must be given. If several are given, then the * matching has to apply to all the given specifiers. * </pre> */ public Builder setAgencyId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; agencyId_ = value; onChanged(); return this; } /**
/** * <code>optional string agency_id = 1;</code> * * <pre> * The values of the fields should correspond to the appropriate fields in the * GTFS feed. * At least one specifier must be given. If several are given, then the * matching has to apply to all the given specifiers. * </pre> */ public Builder setAgencyIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; agencyId_ = value; onChanged(); return this; }
/** * <code>optional .transit_realtime.TripDescriptor trip = 4;</code> */ public Builder mergeTrip(com.google.transit.realtime.GtfsRealtime.TripDescriptor value) { if (tripBuilder_ == null) { if (((bitField0_ & 0x00000008) == 0x00000008) && trip_ != com.google.transit.realtime.GtfsRealtime.TripDescriptor.getDefaultInstance()) { trip_ = com.google.transit.realtime.GtfsRealtime.TripDescriptor.newBuilder(trip_).mergeFrom(value).buildPartial(); } else { trip_ = value; } onChanged(); } else { tripBuilder_.mergeFrom(value); } bitField0_ |= 0x00000008; return this; } /**
/** * <code>optional string agency_id = 1;</code> * * <pre> * The values of the fields should correspond to the appropriate fields in the * GTFS feed. * At least one specifier must be given. If several are given, then the * matching has to apply to all the given specifiers. * </pre> */ public Builder clearAgencyId() { bitField0_ = (bitField0_ & ~0x00000001); agencyId_ = getDefaultInstance().getAgencyId(); onChanged(); return this; } /**
/** * <code>optional .transit_realtime.TripDescriptor trip = 4;</code> */ public Builder setTrip( com.google.transit.realtime.GtfsRealtime.TripDescriptor.Builder builderForValue) { if (tripBuilder_ == null) { trip_ = builderForValue.build(); onChanged(); } else { tripBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000008; return this; } /**
/** * <code>optional int32 route_type = 3;</code> * * <pre> * corresponds to route_type in GTFS. * </pre> */ public Builder setRouteType(int value) { bitField0_ |= 0x00000004; routeType_ = value; onChanged(); return this; } /**
/** * <code>optional string route_id = 2;</code> */ public Builder setRouteId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; routeId_ = value; onChanged(); return this; } /**
/** * <code>optional .transit_realtime.TripDescriptor trip = 4;</code> */ public Builder clearTrip() { if (tripBuilder_ == null) { trip_ = com.google.transit.realtime.GtfsRealtime.TripDescriptor.getDefaultInstance(); onChanged(); } else { tripBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000008); return this; } /**
/** * <code>optional string stop_id = 5;</code> */ public Builder setStopId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000010; stopId_ = value; onChanged(); return this; } /**
/** * <code>optional int32 route_type = 3;</code> * * <pre> * corresponds to route_type in GTFS. * </pre> */ public Builder clearRouteType() { bitField0_ = (bitField0_ & ~0x00000004); routeType_ = 0; onChanged(); return this; }
/** * <code>optional .transit_realtime.TripDescriptor trip = 4;</code> */ public com.google.transit.realtime.GtfsRealtime.TripDescriptor.Builder getTripBuilder() { bitField0_ |= 0x00000008; onChanged(); return getTripFieldBuilder().getBuilder(); } /**
/** * <code>optional string stop_id = 5;</code> */ public Builder clearStopId() { bitField0_ = (bitField0_ & ~0x00000010); stopId_ = getDefaultInstance().getStopId(); onChanged(); return this; } /**
/** * <code>optional string route_id = 2;</code> */ public Builder clearRouteId() { bitField0_ = (bitField0_ & ~0x00000002); routeId_ = getDefaultInstance().getRouteId(); onChanged(); return this; } /**