/** * <code>optional .transit_realtime.FeedHeader.Incrementality incrementality = 2 [default = FULL_DATASET];</code> */ public Builder setIncrementality(com.google.transit.realtime.GtfsRealtime.FeedHeader.Incrementality value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; incrementality_ = value; onChanged(); return this; } /**
/** * <code>required string gtfs_realtime_version = 1;</code> * * <pre> * Version of the feed specification. * The current version is 1.0. * </pre> */ public Builder setGtfsRealtimeVersionBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; gtfsRealtimeVersion_ = value; onChanged(); return this; }
/** * <code>required string gtfs_realtime_version = 1;</code> * * <pre> * Version of the feed specification. * The current version is 1.0. * </pre> */ public Builder setGtfsRealtimeVersion( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; gtfsRealtimeVersion_ = value; onChanged(); return this; } /**
/** * <code>required string gtfs_realtime_version = 1;</code> * * <pre> * Version of the feed specification. * The current version is 1.0. * </pre> */ public Builder setGtfsRealtimeVersion( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; gtfsRealtimeVersion_ = value; onChanged(); return this; } /**
public Builder mergeFrom(com.google.transit.realtime.GtfsRealtime.FeedHeader other) { if (other == com.google.transit.realtime.GtfsRealtime.FeedHeader.getDefaultInstance()) return this; if (other.hasGtfsRealtimeVersion()) { bitField0_ |= 0x00000001; gtfsRealtimeVersion_ = other.gtfsRealtimeVersion_; onChanged(); } if (other.hasIncrementality()) { setIncrementality(other.getIncrementality()); } if (other.hasTimestamp()) { setTimestamp(other.getTimestamp()); } this.mergeExtensionFields(other); this.mergeUnknownFields(other.getUnknownFields()); return this; }
/** * <code>required string gtfs_realtime_version = 1;</code> * * <pre> * Version of the feed specification. * The current version is 1.0. * </pre> */ public Builder setGtfsRealtimeVersionBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; gtfsRealtimeVersion_ = value; onChanged(); return this; }
/** * <code>optional uint64 timestamp = 3;</code> * * <pre> * This timestamp identifies the moment when the content of this feed has been * created (in server time). In POSIX time (i.e., number of seconds since * January 1st 1970 00:00:00 UTC). * </pre> */ public Builder setTimestamp(long value) { bitField0_ |= 0x00000004; timestamp_ = value; onChanged(); return this; } /**
/** * <code>optional uint64 timestamp = 3;</code> * * <pre> * This timestamp identifies the moment when the content of this feed has been * created (in server time). In POSIX time (i.e., number of seconds since * January 1st 1970 00:00:00 UTC). * </pre> */ public Builder clearTimestamp() { bitField0_ = (bitField0_ & ~0x00000004); timestamp_ = 0L; onChanged(); return this; }
/** * <code>required string gtfs_realtime_version = 1;</code> * * <pre> * Version of the feed specification. * The current version is 1.0. * </pre> */ public Builder clearGtfsRealtimeVersion() { bitField0_ = (bitField0_ & ~0x00000001); gtfsRealtimeVersion_ = getDefaultInstance().getGtfsRealtimeVersion(); onChanged(); return this; } /**
/** * <code>optional .transit_realtime.FeedHeader.Incrementality incrementality = 2 [default = FULL_DATASET];</code> */ public Builder clearIncrementality() { bitField0_ = (bitField0_ & ~0x00000002); incrementality_ = com.google.transit.realtime.GtfsRealtime.FeedHeader.Incrementality.FULL_DATASET; onChanged(); return this; }
/** * <code>optional .transit_realtime.FeedHeader.Incrementality incrementality = 2 [default = FULL_DATASET];</code> */ public Builder setIncrementality(com.google.transit.realtime.GtfsRealtime.FeedHeader.Incrementality value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; incrementality_ = value; onChanged(); return this; } /**
/** * <code>optional uint64 timestamp = 3;</code> * * <pre> * This timestamp identifies the moment when the content of this feed has been * created (in server time). In POSIX time (i.e., number of seconds since * January 1st 1970 00:00:00 UTC). * </pre> */ public Builder clearTimestamp() { bitField0_ = (bitField0_ & ~0x00000004); timestamp_ = 0L; onChanged(); return this; }
public Builder mergeFrom(com.google.transit.realtime.GtfsRealtime.FeedHeader other) { if (other == com.google.transit.realtime.GtfsRealtime.FeedHeader.getDefaultInstance()) return this; if (other.hasGtfsRealtimeVersion()) { bitField0_ |= 0x00000001; gtfsRealtimeVersion_ = other.gtfsRealtimeVersion_; onChanged(); } if (other.hasIncrementality()) { setIncrementality(other.getIncrementality()); } if (other.hasTimestamp()) { setTimestamp(other.getTimestamp()); } this.mergeExtensionFields(other); this.mergeUnknownFields(other.getUnknownFields()); return this; }
/** * <code>optional uint64 timestamp = 3;</code> * * <pre> * This timestamp identifies the moment when the content of this feed has been * created (in server time). In POSIX time (i.e., number of seconds since * January 1st 1970 00:00:00 UTC). * </pre> */ public Builder setTimestamp(long value) { bitField0_ |= 0x00000004; timestamp_ = value; onChanged(); return this; } /**
/** * <code>required string gtfs_realtime_version = 1;</code> * * <pre> * Version of the feed specification. * The current version is 1.0. * </pre> */ public Builder clearGtfsRealtimeVersion() { bitField0_ = (bitField0_ & ~0x00000001); gtfsRealtimeVersion_ = getDefaultInstance().getGtfsRealtimeVersion(); onChanged(); return this; } /**
/** * <code>optional .transit_realtime.FeedHeader.Incrementality incrementality = 2 [default = FULL_DATASET];</code> */ public Builder clearIncrementality() { bitField0_ = (bitField0_ & ~0x00000002); incrementality_ = com.google.transit.realtime.GtfsRealtime.FeedHeader.Incrementality.FULL_DATASET; onChanged(); return this; }