public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.google.transit.realtime.GtfsRealtime.TripUpdate parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.google.transit.realtime.GtfsRealtime.TripUpdate) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_;
subBuilder.mergeFrom(tripUpdate_); tripUpdate_ = subBuilder.buildPartial();
/** * <code>optional .transit_realtime.TripUpdate trip_update = 3;</code> * * <pre> * Data about the entity itself. Exactly one of the following fields must be * present (unless the entity is being deleted). * </pre> */ public Builder mergeTripUpdate(com.google.transit.realtime.GtfsRealtime.TripUpdate value) { if (tripUpdateBuilder_ == null) { if (((bitField0_ & 0x00000004) == 0x00000004) && tripUpdate_ != com.google.transit.realtime.GtfsRealtime.TripUpdate.getDefaultInstance()) { tripUpdate_ = com.google.transit.realtime.GtfsRealtime.TripUpdate.newBuilder(tripUpdate_).mergeFrom(value).buildPartial(); } else { tripUpdate_ = value; } onChanged(); } else { tripUpdateBuilder_.mergeFrom(value); } bitField0_ |= 0x00000004; return this; } /**
subBuilder.mergeFrom(tripUpdate_); tripUpdate_ = subBuilder.buildPartial();
/** * <code>optional .transit_realtime.TripUpdate trip_update = 3;</code> * * <pre> * Data about the entity itself. Exactly one of the following fields must be * present (unless the entity is being deleted). * </pre> */ public Builder mergeTripUpdate(com.google.transit.realtime.GtfsRealtime.TripUpdate value) { if (tripUpdateBuilder_ == null) { if (((bitField0_ & 0x00000004) == 0x00000004) && tripUpdate_ != com.google.transit.realtime.GtfsRealtime.TripUpdate.getDefaultInstance()) { tripUpdate_ = com.google.transit.realtime.GtfsRealtime.TripUpdate.newBuilder(tripUpdate_).mergeFrom(value).buildPartial(); } else { tripUpdate_ = value; } onChanged(); } else { tripUpdateBuilder_.mergeFrom(value); } bitField0_ |= 0x00000004; return this; } /**
public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.google.transit.realtime.GtfsRealtime.TripUpdate parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.google.transit.realtime.GtfsRealtime.TripUpdate) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_;
public static Builder newBuilder(com.google.transit.realtime.GtfsRealtime.TripUpdate prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); }
public Builder clone() { return create().mergeFrom(buildPartial()); }
public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.transit.realtime.GtfsRealtime.TripUpdate) { return mergeFrom((com.google.transit.realtime.GtfsRealtime.TripUpdate)other); } else { super.mergeFrom(other); return this; } }
public Builder clone() { return create().mergeFrom(buildPartial()); }
public static Builder newBuilder(com.google.transit.realtime.GtfsRealtime.TripUpdate prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); }
public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.transit.realtime.GtfsRealtime.TripUpdate) { return mergeFrom((com.google.transit.realtime.GtfsRealtime.TripUpdate)other); } else { super.mergeFrom(other); return this; } }