diff --git a/protobuf.sh b/protobuf.sh index 3314847..863cd29 100755 --- a/protobuf.sh +++ b/protobuf.sh @@ -8,56 +8,56 @@ echo "" # option java_package = "dev.katsute.onemta"; # option java_outer_classname = "GTFSRealtimeProto"; -# option optimize_for = CODE_SIZE; +# option optimize_for = SPEED; protobuf/bin/protoc -I=protobuf --java_out=protobuf protobuf/gtfs-realtime.proto # import "gtfs-realtime.proto"; # option java_package = "dev.katsute.onemta"; # option java_outer_classname = "OneBusAwayProto"; -# option optimize_for = CODE_SIZE; +# option optimize_for = SPEED; protobuf/bin/protoc -I=protobuf --java_out=protobuf protobuf/gtfs-realtime-OneBusAway.proto # import "gtfs-realtime.proto"; # option java_package = "dev.katsute.onemta"; # option java_outer_classname = "NYCTSubwayProto"; -# option optimize_for = CODE_SIZE; +# option optimize_for = SPEED; protobuf/bin/protoc -I=protobuf --java_out=protobuf protobuf/gtfs-realtime-NYCT.proto # import "gtfs-realtime.proto"; # option java_package = "dev.katsute.onemta"; # option java_outer_classname = "MTARRProto"; -# option optimize_for = CODE_SIZE; +# option optimize_for = SPEED; protobuf/bin/protoc -I=protobuf --java_out=protobuf protobuf/gtfs-realtime-MTARR.proto # import "gtfs-realtime.proto"; # option java_package = "dev.katsute.onemta"; # option java_outer_classname = "LIRRProto"; -# option optimize_for = CODE_SIZE; +# option optimize_for = SPEED; protobuf/bin/protoc -I=protobuf --java_out=protobuf protobuf/gtfs-realtime-LIRR.proto # import "gtfs-realtime.proto"; # option java_package = "dev.katsute.onemta"; # option java_outer_classname = "MNRRProto"; -# option optimize_for = CODE_SIZE; +# option optimize_for = SPEED; protobuf/bin/protoc -I=protobuf --java_out=protobuf protobuf/gtfs-realtime-MNR.proto # import "gtfs-realtime.proto"; # option java_package = "dev.katsute.onemta"; # option java_outer_classname = "CrowdingProto"; -# option optimize_for = CODE_SIZE; +# option optimize_for = SPEED; protobuf/bin/protoc -I=protobuf --java_out=protobuf protobuf/gtfs-realtime-crowding.proto # import "gtfs-realtime.proto"; # option java_package = "dev.katsute.onemta"; # option java_outer_classname = "ServiceStatusProto"; -# option optimize_for = CODE_SIZE; +# option optimize_for = SPEED; protobuf/bin/protoc -I=protobuf --java_out=protobuf protobuf/gtfs-realtime-service-status.proto diff --git a/src/main/java/dev/katsute/onemta/CrowdingProto.java b/src/main/java/dev/katsute/onemta/CrowdingProto.java index 881ae02..72b91aa 100644 --- a/src/main/java/dev/katsute/onemta/CrowdingProto.java +++ b/src/main/java/dev/katsute/onemta/CrowdingProto.java @@ -159,6 +159,92 @@ public int getEstimatedCapacity() { return estimatedCapacity_; } + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeInt32(1, estimatedCount_); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeInt32(2, estimatedCapacity_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(1, estimatedCount_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, estimatedCapacity_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof dev.katsute.onemta.CrowdingProto.CrowdingDescriptor)) { + return super.equals(obj); + } + dev.katsute.onemta.CrowdingProto.CrowdingDescriptor other = (dev.katsute.onemta.CrowdingProto.CrowdingDescriptor) obj; + + if (hasEstimatedCount() != other.hasEstimatedCount()) return false; + if (hasEstimatedCount()) { + if (getEstimatedCount() + != other.getEstimatedCount()) return false; + } + if (hasEstimatedCapacity() != other.hasEstimatedCapacity()) return false; + if (hasEstimatedCapacity()) { + if (getEstimatedCapacity() + != other.getEstimatedCapacity()) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasEstimatedCount()) { + hash = (37 * hash) + ESTIMATED_COUNT_FIELD_NUMBER; + hash = (53 * hash) + getEstimatedCount(); + } + if (hasEstimatedCapacity()) { + hash = (37 * hash) + ESTIMATED_CAPACITY_FIELD_NUMBER; + hash = (53 * hash) + getEstimatedCapacity(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + public static dev.katsute.onemta.CrowdingProto.CrowdingDescriptor parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -370,6 +456,75 @@ public Builder addRepeatedField( java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof dev.katsute.onemta.CrowdingProto.CrowdingDescriptor) { + return mergeFrom((dev.katsute.onemta.CrowdingProto.CrowdingDescriptor)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(dev.katsute.onemta.CrowdingProto.CrowdingDescriptor other) { + if (other == dev.katsute.onemta.CrowdingProto.CrowdingDescriptor.getDefaultInstance()) return this; + if (other.hasEstimatedCount()) { + setEstimatedCount(other.getEstimatedCount()); + } + if (other.hasEstimatedCapacity()) { + setEstimatedCapacity(other.getEstimatedCapacity()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + estimatedCount_ = input.readInt32(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: { + estimatedCapacity_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } private int bitField0_; private int estimatedCount_ ; @@ -582,7 +737,7 @@ public dev.katsute.onemta.CrowdingProto.CrowdingDescriptor getDefaultInstanceFor "criptor\022!.transit_realtime.VehiclePositi" + "on\030\356\007 \001(\0132$.transit_realtime.CrowdingDes" + "criptorB%\n\022dev.katsute.onemtaB\rCrowdingP" + - "rotoH\002" + "rotoH\001" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, diff --git a/src/main/java/dev/katsute/onemta/GTFSRealtimeProto.java b/src/main/java/dev/katsute/onemta/GTFSRealtimeProto.java index e6f11c0..e27c1ca 100644 --- a/src/main/java/dev/katsute/onemta/GTFSRealtimeProto.java +++ b/src/main/java/dev/katsute/onemta/GTFSRealtimeProto.java @@ -241,6 +241,115 @@ public dev.katsute.onemta.GTFSRealtimeProto.FeedEntityOrBuilder getEntityOrBuild return entity_.get(index); } + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + if (!hasHeader()) { + memoizedIsInitialized = 0; + return false; + } + if (!getHeader().isInitialized()) { + memoizedIsInitialized = 0; + return false; + } + for (int i = 0; i < getEntityCount(); i++) { + if (!getEntity(i).isInitialized()) { + memoizedIsInitialized = 0; + return false; + } + } + if (!extensionsAreInitialized()) { + memoizedIsInitialized = 0; + return false; + } + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + com.google.protobuf.GeneratedMessageV3 + .ExtendableMessage.ExtensionWriter + extensionWriter = newExtensionWriter(); + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getHeader()); + } + for (int i = 0; i < entity_.size(); i++) { + output.writeMessage(2, entity_.get(i)); + } + extensionWriter.writeUntil(10000, output); + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getHeader()); + } + for (int i = 0; i < entity_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, entity_.get(i)); + } + size += extensionsSerializedSize(); + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof dev.katsute.onemta.GTFSRealtimeProto.FeedMessage)) { + return super.equals(obj); + } + dev.katsute.onemta.GTFSRealtimeProto.FeedMessage other = (dev.katsute.onemta.GTFSRealtimeProto.FeedMessage) obj; + + if (hasHeader() != other.hasHeader()) return false; + if (hasHeader()) { + if (!getHeader() + .equals(other.getHeader())) return false; + } + if (!getEntityList() + .equals(other.getEntityList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + if (!getExtensionFields().equals(other.getExtensionFields())) + return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasHeader()) { + hash = (37 * hash) + HEADER_FIELD_NUMBER; + hash = (53 * hash) + getHeader().hashCode(); + } + if (getEntityCount() > 0) { + hash = (37 * hash) + ENTITY_FIELD_NUMBER; + hash = (53 * hash) + getEntityList().hashCode(); + } + hash = hashFields(hash, getExtensionFields()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + public static dev.katsute.onemta.GTFSRealtimeProto.FeedMessage parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -514,6 +623,123 @@ public Builder clearExtension( dev.katsute.onemta.GTFSRealtimeProto.FeedMessage, T> extension) { return super.clearExtension(extension); } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof dev.katsute.onemta.GTFSRealtimeProto.FeedMessage) { + return mergeFrom((dev.katsute.onemta.GTFSRealtimeProto.FeedMessage)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(dev.katsute.onemta.GTFSRealtimeProto.FeedMessage other) { + if (other == dev.katsute.onemta.GTFSRealtimeProto.FeedMessage.getDefaultInstance()) return this; + if (other.hasHeader()) { + mergeHeader(other.getHeader()); + } + if (entityBuilder_ == null) { + if (!other.entity_.isEmpty()) { + if (entity_.isEmpty()) { + entity_ = other.entity_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureEntityIsMutable(); + entity_.addAll(other.entity_); + } + onChanged(); + } + } else { + if (!other.entity_.isEmpty()) { + if (entityBuilder_.isEmpty()) { + entityBuilder_.dispose(); + entityBuilder_ = null; + entity_ = other.entity_; + bitField0_ = (bitField0_ & ~0x00000002); + entityBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getEntityFieldBuilder() : null; + } else { + entityBuilder_.addAllMessages(other.entity_); + } + } + } + this.mergeExtensionFields(other); + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + if (!hasHeader()) { + return false; + } + if (!getHeader().isInitialized()) { + return false; + } + for (int i = 0; i < getEntityCount(); i++) { + if (!getEntity(i).isInitialized()) { + return false; + } + } + if (!extensionsAreInitialized()) { + return false; + } + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + input.readMessage( + getHeaderFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + dev.katsute.onemta.GTFSRealtimeProto.FeedEntity m = + input.readMessage( + dev.katsute.onemta.GTFSRealtimeProto.FeedEntity.PARSER, + extensionRegistry); + if (entityBuilder_ == null) { + ensureEntityIsMutable(); + entity_.add(m); + } else { + entityBuilder_.addMessage(m); + } + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } private int bitField0_; private dev.katsute.onemta.GTFSRealtimeProto.FeedHeader header_; @@ -1377,6 +1603,123 @@ public long getTimestamp() { return timestamp_; } + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + if (!hasGtfsRealtimeVersion()) { + memoizedIsInitialized = 0; + return false; + } + if (!extensionsAreInitialized()) { + memoizedIsInitialized = 0; + return false; + } + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + com.google.protobuf.GeneratedMessageV3 + .ExtendableMessage.ExtensionWriter + extensionWriter = newExtensionWriter(); + if (((bitField0_ & 0x00000001) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, gtfsRealtimeVersion_); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeEnum(2, incrementality_); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeUInt64(3, timestamp_); + } + extensionWriter.writeUntil(10000, output); + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, gtfsRealtimeVersion_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(2, incrementality_); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeUInt64Size(3, timestamp_); + } + size += extensionsSerializedSize(); + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof dev.katsute.onemta.GTFSRealtimeProto.FeedHeader)) { + return super.equals(obj); + } + dev.katsute.onemta.GTFSRealtimeProto.FeedHeader other = (dev.katsute.onemta.GTFSRealtimeProto.FeedHeader) obj; + + if (hasGtfsRealtimeVersion() != other.hasGtfsRealtimeVersion()) return false; + if (hasGtfsRealtimeVersion()) { + if (!getGtfsRealtimeVersion() + .equals(other.getGtfsRealtimeVersion())) return false; + } + if (hasIncrementality() != other.hasIncrementality()) return false; + if (hasIncrementality()) { + if (incrementality_ != other.incrementality_) return false; + } + if (hasTimestamp() != other.hasTimestamp()) return false; + if (hasTimestamp()) { + if (getTimestamp() + != other.getTimestamp()) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + if (!getExtensionFields().equals(other.getExtensionFields())) + return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasGtfsRealtimeVersion()) { + hash = (37 * hash) + GTFS_REALTIME_VERSION_FIELD_NUMBER; + hash = (53 * hash) + getGtfsRealtimeVersion().hashCode(); + } + if (hasIncrementality()) { + hash = (37 * hash) + INCREMENTALITY_FIELD_NUMBER; + hash = (53 * hash) + incrementality_; + } + if (hasTimestamp()) { + hash = (37 * hash) + TIMESTAMP_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getTimestamp()); + } + hash = hashFields(hash, getExtensionFields()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + public static dev.katsute.onemta.GTFSRealtimeProto.FeedHeader parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -1619,6 +1962,99 @@ public Builder clearExtension( dev.katsute.onemta.GTFSRealtimeProto.FeedHeader, T> extension) { return super.clearExtension(extension); } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof dev.katsute.onemta.GTFSRealtimeProto.FeedHeader) { + return mergeFrom((dev.katsute.onemta.GTFSRealtimeProto.FeedHeader)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(dev.katsute.onemta.GTFSRealtimeProto.FeedHeader other) { + if (other == dev.katsute.onemta.GTFSRealtimeProto.FeedHeader.getDefaultInstance()) return this; + if (other.hasGtfsRealtimeVersion()) { + gtfsRealtimeVersion_ = other.gtfsRealtimeVersion_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasIncrementality()) { + setIncrementality(other.getIncrementality()); + } + if (other.hasTimestamp()) { + setTimestamp(other.getTimestamp()); + } + this.mergeExtensionFields(other); + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + if (!hasGtfsRealtimeVersion()) { + return false; + } + if (!extensionsAreInitialized()) { + return false; + } + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + gtfsRealtimeVersion_ = input.readBytes(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: { + int tmpRaw = input.readEnum(); + dev.katsute.onemta.GTFSRealtimeProto.FeedHeader.Incrementality tmpValue = + dev.katsute.onemta.GTFSRealtimeProto.FeedHeader.Incrementality.forNumber(tmpRaw); + if (tmpValue == null) { + mergeUnknownVarintField(2, tmpRaw); + } else { + incrementality_ = tmpRaw; + bitField0_ |= 0x00000002; + } + break; + } // case 16 + case 24: { + timestamp_ = input.readUInt64(); + bitField0_ |= 0x00000004; + break; + } // case 24 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } private int bitField0_; private java.lang.Object gtfsRealtimeVersion_ = ""; @@ -2281,6 +2717,174 @@ public dev.katsute.onemta.GTFSRealtimeProto.AlertOrBuilder getAlertOrBuilder() { return alert_ == null ? dev.katsute.onemta.GTFSRealtimeProto.Alert.getDefaultInstance() : alert_; } + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + if (!hasId()) { + memoizedIsInitialized = 0; + return false; + } + if (hasTripUpdate()) { + if (!getTripUpdate().isInitialized()) { + memoizedIsInitialized = 0; + return false; + } + } + if (hasVehicle()) { + if (!getVehicle().isInitialized()) { + memoizedIsInitialized = 0; + return false; + } + } + if (hasAlert()) { + if (!getAlert().isInitialized()) { + memoizedIsInitialized = 0; + return false; + } + } + if (!extensionsAreInitialized()) { + memoizedIsInitialized = 0; + return false; + } + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + com.google.protobuf.GeneratedMessageV3 + .ExtendableMessage.ExtensionWriter + extensionWriter = newExtensionWriter(); + if (((bitField0_ & 0x00000001) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, id_); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeBool(2, isDeleted_); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(3, getTripUpdate()); + } + if (((bitField0_ & 0x00000008) != 0)) { + output.writeMessage(4, getVehicle()); + } + if (((bitField0_ & 0x00000010) != 0)) { + output.writeMessage(5, getAlert()); + } + extensionWriter.writeUntil(10000, output); + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, id_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(2, isDeleted_); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getTripUpdate()); + } + if (((bitField0_ & 0x00000008) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getVehicle()); + } + if (((bitField0_ & 0x00000010) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, getAlert()); + } + size += extensionsSerializedSize(); + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof dev.katsute.onemta.GTFSRealtimeProto.FeedEntity)) { + return super.equals(obj); + } + dev.katsute.onemta.GTFSRealtimeProto.FeedEntity other = (dev.katsute.onemta.GTFSRealtimeProto.FeedEntity) obj; + + if (hasId() != other.hasId()) return false; + if (hasId()) { + if (!getId() + .equals(other.getId())) return false; + } + if (hasIsDeleted() != other.hasIsDeleted()) return false; + if (hasIsDeleted()) { + if (getIsDeleted() + != other.getIsDeleted()) return false; + } + if (hasTripUpdate() != other.hasTripUpdate()) return false; + if (hasTripUpdate()) { + if (!getTripUpdate() + .equals(other.getTripUpdate())) return false; + } + if (hasVehicle() != other.hasVehicle()) return false; + if (hasVehicle()) { + if (!getVehicle() + .equals(other.getVehicle())) return false; + } + if (hasAlert() != other.hasAlert()) return false; + if (hasAlert()) { + if (!getAlert() + .equals(other.getAlert())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + if (!getExtensionFields().equals(other.getExtensionFields())) + return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasId()) { + hash = (37 * hash) + ID_FIELD_NUMBER; + hash = (53 * hash) + getId().hashCode(); + } + if (hasIsDeleted()) { + hash = (37 * hash) + IS_DELETED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getIsDeleted()); + } + if (hasTripUpdate()) { + hash = (37 * hash) + TRIP_UPDATE_FIELD_NUMBER; + hash = (53 * hash) + getTripUpdate().hashCode(); + } + if (hasVehicle()) { + hash = (37 * hash) + VEHICLE_FIELD_NUMBER; + hash = (53 * hash) + getVehicle().hashCode(); + } + if (hasAlert()) { + hash = (37 * hash) + ALERT_FIELD_NUMBER; + hash = (53 * hash) + getAlert().hashCode(); + } + hash = hashFields(hash, getExtensionFields()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + public static dev.katsute.onemta.GTFSRealtimeProto.FeedEntity parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -2559,6 +3163,129 @@ public Builder clearExtension( dev.katsute.onemta.GTFSRealtimeProto.FeedEntity, T> extension) { return super.clearExtension(extension); } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof dev.katsute.onemta.GTFSRealtimeProto.FeedEntity) { + return mergeFrom((dev.katsute.onemta.GTFSRealtimeProto.FeedEntity)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(dev.katsute.onemta.GTFSRealtimeProto.FeedEntity other) { + if (other == dev.katsute.onemta.GTFSRealtimeProto.FeedEntity.getDefaultInstance()) return this; + if (other.hasId()) { + id_ = other.id_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasIsDeleted()) { + setIsDeleted(other.getIsDeleted()); + } + if (other.hasTripUpdate()) { + mergeTripUpdate(other.getTripUpdate()); + } + if (other.hasVehicle()) { + mergeVehicle(other.getVehicle()); + } + if (other.hasAlert()) { + mergeAlert(other.getAlert()); + } + this.mergeExtensionFields(other); + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + if (!hasId()) { + return false; + } + if (hasTripUpdate()) { + if (!getTripUpdate().isInitialized()) { + return false; + } + } + if (hasVehicle()) { + if (!getVehicle().isInitialized()) { + return false; + } + } + if (hasAlert()) { + if (!getAlert().isInitialized()) { + return false; + } + } + if (!extensionsAreInitialized()) { + return false; + } + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + id_ = input.readBytes(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: { + isDeleted_ = input.readBool(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: { + input.readMessage( + getTripUpdateFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + input.readMessage( + getVehicleFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: { + input.readMessage( + getAlertFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 42 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } private int bitField0_; private java.lang.Object id_ = ""; @@ -3820,21 +4547,136 @@ public int getUncertainty() { return uncertainty_; } - public static dev.katsute.onemta.GTFSRealtimeProto.TripUpdate.StopTimeEvent parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + if (!extensionsAreInitialized()) { + memoizedIsInitialized = 0; + return false; + } + memoizedIsInitialized = 1; + return true; } - public static dev.katsute.onemta.GTFSRealtimeProto.TripUpdate.StopTimeEvent parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + com.google.protobuf.GeneratedMessageV3 + .ExtendableMessage.ExtensionWriter + extensionWriter = newExtensionWriter(); + if (((bitField0_ & 0x00000001) != 0)) { + output.writeInt32(1, delay_); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeInt64(2, time_); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeInt32(3, uncertainty_); + } + extensionWriter.writeUntil(10000, output); + getUnknownFields().writeTo(output); } - public static dev.katsute.onemta.GTFSRealtimeProto.TripUpdate.StopTimeEvent parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(1, delay_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(2, time_); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(3, uncertainty_); + } + size += extensionsSerializedSize(); + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof dev.katsute.onemta.GTFSRealtimeProto.TripUpdate.StopTimeEvent)) { + return super.equals(obj); + } + dev.katsute.onemta.GTFSRealtimeProto.TripUpdate.StopTimeEvent other = (dev.katsute.onemta.GTFSRealtimeProto.TripUpdate.StopTimeEvent) obj; + + if (hasDelay() != other.hasDelay()) return false; + if (hasDelay()) { + if (getDelay() + != other.getDelay()) return false; + } + if (hasTime() != other.hasTime()) return false; + if (hasTime()) { + if (getTime() + != other.getTime()) return false; + } + if (hasUncertainty() != other.hasUncertainty()) return false; + if (hasUncertainty()) { + if (getUncertainty() + != other.getUncertainty()) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + if (!getExtensionFields().equals(other.getExtensionFields())) + return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasDelay()) { + hash = (37 * hash) + DELAY_FIELD_NUMBER; + hash = (53 * hash) + getDelay(); + } + if (hasTime()) { + hash = (37 * hash) + TIME_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getTime()); + } + if (hasUncertainty()) { + hash = (37 * hash) + UNCERTAINTY_FIELD_NUMBER; + hash = (53 * hash) + getUncertainty(); + } + hash = hashFields(hash, getExtensionFields()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static dev.katsute.onemta.GTFSRealtimeProto.TripUpdate.StopTimeEvent parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static dev.katsute.onemta.GTFSRealtimeProto.TripUpdate.StopTimeEvent parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static dev.katsute.onemta.GTFSRealtimeProto.TripUpdate.StopTimeEvent parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); } public static dev.katsute.onemta.GTFSRealtimeProto.TripUpdate.StopTimeEvent parseFrom( com.google.protobuf.ByteString data, @@ -4076,6 +4918,87 @@ public Builder clearExtension( dev.katsute.onemta.GTFSRealtimeProto.TripUpdate.StopTimeEvent, T> extension) { return super.clearExtension(extension); } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof dev.katsute.onemta.GTFSRealtimeProto.TripUpdate.StopTimeEvent) { + return mergeFrom((dev.katsute.onemta.GTFSRealtimeProto.TripUpdate.StopTimeEvent)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(dev.katsute.onemta.GTFSRealtimeProto.TripUpdate.StopTimeEvent other) { + if (other == dev.katsute.onemta.GTFSRealtimeProto.TripUpdate.StopTimeEvent.getDefaultInstance()) return this; + if (other.hasDelay()) { + setDelay(other.getDelay()); + } + if (other.hasTime()) { + setTime(other.getTime()); + } + if (other.hasUncertainty()) { + setUncertainty(other.getUncertainty()); + } + this.mergeExtensionFields(other); + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + if (!extensionsAreInitialized()) { + return false; + } + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + delay_ = input.readInt32(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: { + time_ = input.readInt64(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 24: { + uncertainty_ = input.readInt32(); + bitField0_ |= 0x00000004; + break; + } // case 24 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } private int bitField0_; private int delay_ ; @@ -4812,6 +5735,162 @@ public dev.katsute.onemta.GTFSRealtimeProto.TripUpdate.StopTimeEventOrBuilder ge return result == null ? dev.katsute.onemta.GTFSRealtimeProto.TripUpdate.StopTimeUpdate.ScheduleRelationship.SCHEDULED : result; } + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + if (hasArrival()) { + if (!getArrival().isInitialized()) { + memoizedIsInitialized = 0; + return false; + } + } + if (hasDeparture()) { + if (!getDeparture().isInitialized()) { + memoizedIsInitialized = 0; + return false; + } + } + if (!extensionsAreInitialized()) { + memoizedIsInitialized = 0; + return false; + } + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + com.google.protobuf.GeneratedMessageV3 + .ExtendableMessage.ExtensionWriter + extensionWriter = newExtensionWriter(); + if (((bitField0_ & 0x00000001) != 0)) { + output.writeUInt32(1, stopSequence_); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(2, getArrival()); + } + if (((bitField0_ & 0x00000008) != 0)) { + output.writeMessage(3, getDeparture()); + } + if (((bitField0_ & 0x00000002) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, stopId_); + } + if (((bitField0_ & 0x00000010) != 0)) { + output.writeEnum(5, scheduleRelationship_); + } + extensionWriter.writeUntil(10000, output); + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(1, stopSequence_); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getArrival()); + } + if (((bitField0_ & 0x00000008) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getDeparture()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, stopId_); + } + if (((bitField0_ & 0x00000010) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(5, scheduleRelationship_); + } + size += extensionsSerializedSize(); + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof dev.katsute.onemta.GTFSRealtimeProto.TripUpdate.StopTimeUpdate)) { + return super.equals(obj); + } + dev.katsute.onemta.GTFSRealtimeProto.TripUpdate.StopTimeUpdate other = (dev.katsute.onemta.GTFSRealtimeProto.TripUpdate.StopTimeUpdate) obj; + + if (hasStopSequence() != other.hasStopSequence()) return false; + if (hasStopSequence()) { + if (getStopSequence() + != other.getStopSequence()) return false; + } + if (hasStopId() != other.hasStopId()) return false; + if (hasStopId()) { + if (!getStopId() + .equals(other.getStopId())) return false; + } + if (hasArrival() != other.hasArrival()) return false; + if (hasArrival()) { + if (!getArrival() + .equals(other.getArrival())) return false; + } + if (hasDeparture() != other.hasDeparture()) return false; + if (hasDeparture()) { + if (!getDeparture() + .equals(other.getDeparture())) return false; + } + if (hasScheduleRelationship() != other.hasScheduleRelationship()) return false; + if (hasScheduleRelationship()) { + if (scheduleRelationship_ != other.scheduleRelationship_) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + if (!getExtensionFields().equals(other.getExtensionFields())) + return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasStopSequence()) { + hash = (37 * hash) + STOP_SEQUENCE_FIELD_NUMBER; + hash = (53 * hash) + getStopSequence(); + } + if (hasStopId()) { + hash = (37 * hash) + STOP_ID_FIELD_NUMBER; + hash = (53 * hash) + getStopId().hashCode(); + } + if (hasArrival()) { + hash = (37 * hash) + ARRIVAL_FIELD_NUMBER; + hash = (53 * hash) + getArrival().hashCode(); + } + if (hasDeparture()) { + hash = (37 * hash) + DEPARTURE_FIELD_NUMBER; + hash = (53 * hash) + getDeparture().hashCode(); + } + if (hasScheduleRelationship()) { + hash = (37 * hash) + SCHEDULE_RELATIONSHIP_FIELD_NUMBER; + hash = (53 * hash) + scheduleRelationship_; + } + hash = hashFields(hash, getExtensionFields()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + public static dev.katsute.onemta.GTFSRealtimeProto.TripUpdate.StopTimeUpdate parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -5085,6 +6164,126 @@ public Builder clearExtension( dev.katsute.onemta.GTFSRealtimeProto.TripUpdate.StopTimeUpdate, T> extension) { return super.clearExtension(extension); } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof dev.katsute.onemta.GTFSRealtimeProto.TripUpdate.StopTimeUpdate) { + return mergeFrom((dev.katsute.onemta.GTFSRealtimeProto.TripUpdate.StopTimeUpdate)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(dev.katsute.onemta.GTFSRealtimeProto.TripUpdate.StopTimeUpdate other) { + if (other == dev.katsute.onemta.GTFSRealtimeProto.TripUpdate.StopTimeUpdate.getDefaultInstance()) return this; + if (other.hasStopSequence()) { + setStopSequence(other.getStopSequence()); + } + if (other.hasStopId()) { + stopId_ = other.stopId_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasArrival()) { + mergeArrival(other.getArrival()); + } + if (other.hasDeparture()) { + mergeDeparture(other.getDeparture()); + } + if (other.hasScheduleRelationship()) { + setScheduleRelationship(other.getScheduleRelationship()); + } + this.mergeExtensionFields(other); + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + if (hasArrival()) { + if (!getArrival().isInitialized()) { + return false; + } + } + if (hasDeparture()) { + if (!getDeparture().isInitialized()) { + return false; + } + } + if (!extensionsAreInitialized()) { + return false; + } + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + stopSequence_ = input.readUInt32(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: { + input.readMessage( + getArrivalFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 18 + case 26: { + input.readMessage( + getDepartureFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 26 + case 34: { + stopId_ = input.readBytes(); + bitField0_ |= 0x00000002; + break; + } // case 34 + case 40: { + int tmpRaw = input.readEnum(); + dev.katsute.onemta.GTFSRealtimeProto.TripUpdate.StopTimeUpdate.ScheduleRelationship tmpValue = + dev.katsute.onemta.GTFSRealtimeProto.TripUpdate.StopTimeUpdate.ScheduleRelationship.forNumber(tmpRaw); + if (tmpValue == null) { + mergeUnknownVarintField(5, tmpRaw); + } else { + scheduleRelationship_ = tmpRaw; + bitField0_ |= 0x00000010; + } + break; + } // case 40 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } private int bitField0_; private int stopSequence_ ; @@ -6021,6 +7220,117 @@ public java.lang.String getStartTime() { } } + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + if (!extensionsAreInitialized()) { + memoizedIsInitialized = 0; + return false; + } + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + com.google.protobuf.GeneratedMessageV3 + .ExtendableMessage.ExtensionWriter + extensionWriter = newExtensionWriter(); + if (((bitField0_ & 0x00000001) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, tripId_); + } + if (((bitField0_ & 0x00000002) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, startDate_); + } + if (((bitField0_ & 0x00000004) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, startTime_); + } + extensionWriter.writeUntil(10000, output); + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, tripId_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, startDate_); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, startTime_); + } + size += extensionsSerializedSize(); + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof dev.katsute.onemta.GTFSRealtimeProto.TripUpdate.TripProperties)) { + return super.equals(obj); + } + dev.katsute.onemta.GTFSRealtimeProto.TripUpdate.TripProperties other = (dev.katsute.onemta.GTFSRealtimeProto.TripUpdate.TripProperties) obj; + + if (hasTripId() != other.hasTripId()) return false; + if (hasTripId()) { + if (!getTripId() + .equals(other.getTripId())) return false; + } + if (hasStartDate() != other.hasStartDate()) return false; + if (hasStartDate()) { + if (!getStartDate() + .equals(other.getStartDate())) return false; + } + if (hasStartTime() != other.hasStartTime()) return false; + if (hasStartTime()) { + if (!getStartTime() + .equals(other.getStartTime())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + if (!getExtensionFields().equals(other.getExtensionFields())) + return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasTripId()) { + hash = (37 * hash) + TRIP_ID_FIELD_NUMBER; + hash = (53 * hash) + getTripId().hashCode(); + } + if (hasStartDate()) { + hash = (37 * hash) + START_DATE_FIELD_NUMBER; + hash = (53 * hash) + getStartDate().hashCode(); + } + if (hasStartTime()) { + hash = (37 * hash) + START_TIME_FIELD_NUMBER; + hash = (53 * hash) + getStartTime().hashCode(); + } + hash = hashFields(hash, getExtensionFields()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + public static dev.katsute.onemta.GTFSRealtimeProto.TripUpdate.TripProperties parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -6264,6 +7574,93 @@ public Builder clearExtension( dev.katsute.onemta.GTFSRealtimeProto.TripUpdate.TripProperties, T> extension) { return super.clearExtension(extension); } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof dev.katsute.onemta.GTFSRealtimeProto.TripUpdate.TripProperties) { + return mergeFrom((dev.katsute.onemta.GTFSRealtimeProto.TripUpdate.TripProperties)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(dev.katsute.onemta.GTFSRealtimeProto.TripUpdate.TripProperties other) { + if (other == dev.katsute.onemta.GTFSRealtimeProto.TripUpdate.TripProperties.getDefaultInstance()) return this; + if (other.hasTripId()) { + tripId_ = other.tripId_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasStartDate()) { + startDate_ = other.startDate_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasStartTime()) { + startTime_ = other.startTime_; + bitField0_ |= 0x00000004; + onChanged(); + } + this.mergeExtensionFields(other); + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + if (!extensionsAreInitialized()) { + return false; + } + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + tripId_ = input.readBytes(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + startDate_ = input.readBytes(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + startTime_ = input.readBytes(); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } private int bitField0_; private java.lang.Object tripId_ = ""; @@ -7101,6 +8498,192 @@ public dev.katsute.onemta.GTFSRealtimeProto.TripUpdate.TripPropertiesOrBuilder g return tripProperties_ == null ? dev.katsute.onemta.GTFSRealtimeProto.TripUpdate.TripProperties.getDefaultInstance() : tripProperties_; } + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + if (!hasTrip()) { + memoizedIsInitialized = 0; + return false; + } + if (!getTrip().isInitialized()) { + memoizedIsInitialized = 0; + return false; + } + if (hasVehicle()) { + if (!getVehicle().isInitialized()) { + memoizedIsInitialized = 0; + return false; + } + } + for (int i = 0; i < getStopTimeUpdateCount(); i++) { + if (!getStopTimeUpdate(i).isInitialized()) { + memoizedIsInitialized = 0; + return false; + } + } + if (hasTripProperties()) { + if (!getTripProperties().isInitialized()) { + memoizedIsInitialized = 0; + return false; + } + } + if (!extensionsAreInitialized()) { + memoizedIsInitialized = 0; + return false; + } + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + com.google.protobuf.GeneratedMessageV3 + .ExtendableMessage.ExtensionWriter + extensionWriter = newExtensionWriter(); + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getTrip()); + } + for (int i = 0; i < stopTimeUpdate_.size(); i++) { + output.writeMessage(2, stopTimeUpdate_.get(i)); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(3, getVehicle()); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeUInt64(4, timestamp_); + } + if (((bitField0_ & 0x00000008) != 0)) { + output.writeInt32(5, delay_); + } + if (((bitField0_ & 0x00000010) != 0)) { + output.writeMessage(6, getTripProperties()); + } + extensionWriter.writeUntil(10000, output); + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getTrip()); + } + for (int i = 0; i < stopTimeUpdate_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, stopTimeUpdate_.get(i)); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getVehicle()); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeUInt64Size(4, timestamp_); + } + if (((bitField0_ & 0x00000008) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(5, delay_); + } + if (((bitField0_ & 0x00000010) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, getTripProperties()); + } + size += extensionsSerializedSize(); + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof dev.katsute.onemta.GTFSRealtimeProto.TripUpdate)) { + return super.equals(obj); + } + dev.katsute.onemta.GTFSRealtimeProto.TripUpdate other = (dev.katsute.onemta.GTFSRealtimeProto.TripUpdate) obj; + + if (hasTrip() != other.hasTrip()) return false; + if (hasTrip()) { + if (!getTrip() + .equals(other.getTrip())) return false; + } + if (hasVehicle() != other.hasVehicle()) return false; + if (hasVehicle()) { + if (!getVehicle() + .equals(other.getVehicle())) return false; + } + if (!getStopTimeUpdateList() + .equals(other.getStopTimeUpdateList())) return false; + if (hasTimestamp() != other.hasTimestamp()) return false; + if (hasTimestamp()) { + if (getTimestamp() + != other.getTimestamp()) return false; + } + if (hasDelay() != other.hasDelay()) return false; + if (hasDelay()) { + if (getDelay() + != other.getDelay()) return false; + } + if (hasTripProperties() != other.hasTripProperties()) return false; + if (hasTripProperties()) { + if (!getTripProperties() + .equals(other.getTripProperties())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + if (!getExtensionFields().equals(other.getExtensionFields())) + return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasTrip()) { + hash = (37 * hash) + TRIP_FIELD_NUMBER; + hash = (53 * hash) + getTrip().hashCode(); + } + if (hasVehicle()) { + hash = (37 * hash) + VEHICLE_FIELD_NUMBER; + hash = (53 * hash) + getVehicle().hashCode(); + } + if (getStopTimeUpdateCount() > 0) { + hash = (37 * hash) + STOP_TIME_UPDATE_FIELD_NUMBER; + hash = (53 * hash) + getStopTimeUpdateList().hashCode(); + } + if (hasTimestamp()) { + hash = (37 * hash) + TIMESTAMP_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getTimestamp()); + } + if (hasDelay()) { + hash = (37 * hash) + DELAY_FIELD_NUMBER; + hash = (53 * hash) + getDelay(); + } + if (hasTripProperties()) { + hash = (37 * hash) + TRIP_PROPERTIES_FIELD_NUMBER; + hash = (53 * hash) + getTripProperties().hashCode(); + } + hash = hashFields(hash, getExtensionFields()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + public static dev.katsute.onemta.GTFSRealtimeProto.TripUpdate parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -7425,10 +9008,173 @@ public Builder clearExtension( dev.katsute.onemta.GTFSRealtimeProto.TripUpdate, T> extension) { return super.clearExtension(extension); } - private int bitField0_; - - private dev.katsute.onemta.GTFSRealtimeProto.TripDescriptor trip_; - private com.google.protobuf.SingleFieldBuilderV3< + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof dev.katsute.onemta.GTFSRealtimeProto.TripUpdate) { + return mergeFrom((dev.katsute.onemta.GTFSRealtimeProto.TripUpdate)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(dev.katsute.onemta.GTFSRealtimeProto.TripUpdate other) { + if (other == dev.katsute.onemta.GTFSRealtimeProto.TripUpdate.getDefaultInstance()) return this; + if (other.hasTrip()) { + mergeTrip(other.getTrip()); + } + if (other.hasVehicle()) { + mergeVehicle(other.getVehicle()); + } + if (stopTimeUpdateBuilder_ == null) { + if (!other.stopTimeUpdate_.isEmpty()) { + if (stopTimeUpdate_.isEmpty()) { + stopTimeUpdate_ = other.stopTimeUpdate_; + bitField0_ = (bitField0_ & ~0x00000004); + } else { + ensureStopTimeUpdateIsMutable(); + stopTimeUpdate_.addAll(other.stopTimeUpdate_); + } + onChanged(); + } + } else { + if (!other.stopTimeUpdate_.isEmpty()) { + if (stopTimeUpdateBuilder_.isEmpty()) { + stopTimeUpdateBuilder_.dispose(); + stopTimeUpdateBuilder_ = null; + stopTimeUpdate_ = other.stopTimeUpdate_; + bitField0_ = (bitField0_ & ~0x00000004); + stopTimeUpdateBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getStopTimeUpdateFieldBuilder() : null; + } else { + stopTimeUpdateBuilder_.addAllMessages(other.stopTimeUpdate_); + } + } + } + if (other.hasTimestamp()) { + setTimestamp(other.getTimestamp()); + } + if (other.hasDelay()) { + setDelay(other.getDelay()); + } + if (other.hasTripProperties()) { + mergeTripProperties(other.getTripProperties()); + } + this.mergeExtensionFields(other); + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + if (!hasTrip()) { + return false; + } + if (!getTrip().isInitialized()) { + return false; + } + if (hasVehicle()) { + if (!getVehicle().isInitialized()) { + return false; + } + } + for (int i = 0; i < getStopTimeUpdateCount(); i++) { + if (!getStopTimeUpdate(i).isInitialized()) { + return false; + } + } + if (hasTripProperties()) { + if (!getTripProperties().isInitialized()) { + return false; + } + } + if (!extensionsAreInitialized()) { + return false; + } + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + input.readMessage( + getTripFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + dev.katsute.onemta.GTFSRealtimeProto.TripUpdate.StopTimeUpdate m = + input.readMessage( + dev.katsute.onemta.GTFSRealtimeProto.TripUpdate.StopTimeUpdate.PARSER, + extensionRegistry); + if (stopTimeUpdateBuilder_ == null) { + ensureStopTimeUpdateIsMutable(); + stopTimeUpdate_.add(m); + } else { + stopTimeUpdateBuilder_.addMessage(m); + } + break; + } // case 18 + case 26: { + input.readMessage( + getVehicleFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 26 + case 32: { + timestamp_ = input.readUInt64(); + bitField0_ |= 0x00000008; + break; + } // case 32 + case 40: { + delay_ = input.readInt32(); + bitField0_ |= 0x00000010; + break; + } // case 40 + case 50: { + input.readMessage( + getTripPropertiesFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000020; + break; + } // case 50 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private dev.katsute.onemta.GTFSRealtimeProto.TripDescriptor trip_; + private com.google.protobuf.SingleFieldBuilderV3< dev.katsute.onemta.GTFSRealtimeProto.TripDescriptor, dev.katsute.onemta.GTFSRealtimeProto.TripDescriptor.Builder, dev.katsute.onemta.GTFSRealtimeProto.TripDescriptorOrBuilder> tripBuilder_; /** *
@@ -10113,6 +11859,149 @@ public int getCarriageSequence() {
         return carriageSequence_;
       }
 
+      private byte memoizedIsInitialized = -1;
+      @java.lang.Override
+      public final boolean isInitialized() {
+        byte isInitialized = memoizedIsInitialized;
+        if (isInitialized == 1) return true;
+        if (isInitialized == 0) return false;
+
+        if (!extensionsAreInitialized()) {
+          memoizedIsInitialized = 0;
+          return false;
+        }
+        memoizedIsInitialized = 1;
+        return true;
+      }
+
+      @java.lang.Override
+      public void writeTo(com.google.protobuf.CodedOutputStream output)
+                          throws java.io.IOException {
+        com.google.protobuf.GeneratedMessageV3
+          .ExtendableMessage.ExtensionWriter
+            extensionWriter = newExtensionWriter();
+        if (((bitField0_ & 0x00000001) != 0)) {
+          com.google.protobuf.GeneratedMessageV3.writeString(output, 1, id_);
+        }
+        if (((bitField0_ & 0x00000002) != 0)) {
+          com.google.protobuf.GeneratedMessageV3.writeString(output, 2, label_);
+        }
+        if (((bitField0_ & 0x00000004) != 0)) {
+          output.writeEnum(3, occupancyStatus_);
+        }
+        if (((bitField0_ & 0x00000008) != 0)) {
+          output.writeInt32(4, occupancyPercentage_);
+        }
+        if (((bitField0_ & 0x00000010) != 0)) {
+          output.writeUInt32(5, carriageSequence_);
+        }
+        extensionWriter.writeUntil(10000, output);
+        getUnknownFields().writeTo(output);
+      }
+
+      @java.lang.Override
+      public int getSerializedSize() {
+        int size = memoizedSize;
+        if (size != -1) return size;
+
+        size = 0;
+        if (((bitField0_ & 0x00000001) != 0)) {
+          size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, id_);
+        }
+        if (((bitField0_ & 0x00000002) != 0)) {
+          size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, label_);
+        }
+        if (((bitField0_ & 0x00000004) != 0)) {
+          size += com.google.protobuf.CodedOutputStream
+            .computeEnumSize(3, occupancyStatus_);
+        }
+        if (((bitField0_ & 0x00000008) != 0)) {
+          size += com.google.protobuf.CodedOutputStream
+            .computeInt32Size(4, occupancyPercentage_);
+        }
+        if (((bitField0_ & 0x00000010) != 0)) {
+          size += com.google.protobuf.CodedOutputStream
+            .computeUInt32Size(5, carriageSequence_);
+        }
+        size += extensionsSerializedSize();
+        size += getUnknownFields().getSerializedSize();
+        memoizedSize = size;
+        return size;
+      }
+
+      @java.lang.Override
+      public boolean equals(final java.lang.Object obj) {
+        if (obj == this) {
+         return true;
+        }
+        if (!(obj instanceof dev.katsute.onemta.GTFSRealtimeProto.VehiclePosition.CarriageDetails)) {
+          return super.equals(obj);
+        }
+        dev.katsute.onemta.GTFSRealtimeProto.VehiclePosition.CarriageDetails other = (dev.katsute.onemta.GTFSRealtimeProto.VehiclePosition.CarriageDetails) obj;
+
+        if (hasId() != other.hasId()) return false;
+        if (hasId()) {
+          if (!getId()
+              .equals(other.getId())) return false;
+        }
+        if (hasLabel() != other.hasLabel()) return false;
+        if (hasLabel()) {
+          if (!getLabel()
+              .equals(other.getLabel())) return false;
+        }
+        if (hasOccupancyStatus() != other.hasOccupancyStatus()) return false;
+        if (hasOccupancyStatus()) {
+          if (occupancyStatus_ != other.occupancyStatus_) return false;
+        }
+        if (hasOccupancyPercentage() != other.hasOccupancyPercentage()) return false;
+        if (hasOccupancyPercentage()) {
+          if (getOccupancyPercentage()
+              != other.getOccupancyPercentage()) return false;
+        }
+        if (hasCarriageSequence() != other.hasCarriageSequence()) return false;
+        if (hasCarriageSequence()) {
+          if (getCarriageSequence()
+              != other.getCarriageSequence()) return false;
+        }
+        if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+        if (!getExtensionFields().equals(other.getExtensionFields()))
+          return false;
+        return true;
+      }
+
+      @java.lang.Override
+      public int hashCode() {
+        if (memoizedHashCode != 0) {
+          return memoizedHashCode;
+        }
+        int hash = 41;
+        hash = (19 * hash) + getDescriptor().hashCode();
+        if (hasId()) {
+          hash = (37 * hash) + ID_FIELD_NUMBER;
+          hash = (53 * hash) + getId().hashCode();
+        }
+        if (hasLabel()) {
+          hash = (37 * hash) + LABEL_FIELD_NUMBER;
+          hash = (53 * hash) + getLabel().hashCode();
+        }
+        if (hasOccupancyStatus()) {
+          hash = (37 * hash) + OCCUPANCY_STATUS_FIELD_NUMBER;
+          hash = (53 * hash) + occupancyStatus_;
+        }
+        if (hasOccupancyPercentage()) {
+          hash = (37 * hash) + OCCUPANCY_PERCENTAGE_FIELD_NUMBER;
+          hash = (53 * hash) + getOccupancyPercentage();
+        }
+        if (hasCarriageSequence()) {
+          hash = (37 * hash) + CARRIAGE_SEQUENCE_FIELD_NUMBER;
+          hash = (53 * hash) + getCarriageSequence();
+        }
+        hash = hashFields(hash, getExtensionFields());
+        hash = (29 * hash) + getUnknownFields().hashCode();
+        memoizedHashCode = hash;
+        return hash;
+      }
+
       public static dev.katsute.onemta.GTFSRealtimeProto.VehiclePosition.CarriageDetails parseFrom(
           java.nio.ByteBuffer data)
           throws com.google.protobuf.InvalidProtocolBufferException {
@@ -10366,6 +12255,114 @@ public  Builder clearExtension(
                 dev.katsute.onemta.GTFSRealtimeProto.VehiclePosition.CarriageDetails, T> extension) {
           return super.clearExtension(extension);
         }
+        @java.lang.Override
+        public Builder mergeFrom(com.google.protobuf.Message other) {
+          if (other instanceof dev.katsute.onemta.GTFSRealtimeProto.VehiclePosition.CarriageDetails) {
+            return mergeFrom((dev.katsute.onemta.GTFSRealtimeProto.VehiclePosition.CarriageDetails)other);
+          } else {
+            super.mergeFrom(other);
+            return this;
+          }
+        }
+
+        public Builder mergeFrom(dev.katsute.onemta.GTFSRealtimeProto.VehiclePosition.CarriageDetails other) {
+          if (other == dev.katsute.onemta.GTFSRealtimeProto.VehiclePosition.CarriageDetails.getDefaultInstance()) return this;
+          if (other.hasId()) {
+            id_ = other.id_;
+            bitField0_ |= 0x00000001;
+            onChanged();
+          }
+          if (other.hasLabel()) {
+            label_ = other.label_;
+            bitField0_ |= 0x00000002;
+            onChanged();
+          }
+          if (other.hasOccupancyStatus()) {
+            setOccupancyStatus(other.getOccupancyStatus());
+          }
+          if (other.hasOccupancyPercentage()) {
+            setOccupancyPercentage(other.getOccupancyPercentage());
+          }
+          if (other.hasCarriageSequence()) {
+            setCarriageSequence(other.getCarriageSequence());
+          }
+          this.mergeExtensionFields(other);
+          this.mergeUnknownFields(other.getUnknownFields());
+          onChanged();
+          return this;
+        }
+
+        @java.lang.Override
+        public final boolean isInitialized() {
+          if (!extensionsAreInitialized()) {
+            return false;
+          }
+          return true;
+        }
+
+        @java.lang.Override
+        public Builder mergeFrom(
+            com.google.protobuf.CodedInputStream input,
+            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws java.io.IOException {
+          if (extensionRegistry == null) {
+            throw new java.lang.NullPointerException();
+          }
+          try {
+            boolean done = false;
+            while (!done) {
+              int tag = input.readTag();
+              switch (tag) {
+                case 0:
+                  done = true;
+                  break;
+                case 10: {
+                  id_ = input.readBytes();
+                  bitField0_ |= 0x00000001;
+                  break;
+                } // case 10
+                case 18: {
+                  label_ = input.readBytes();
+                  bitField0_ |= 0x00000002;
+                  break;
+                } // case 18
+                case 24: {
+                  int tmpRaw = input.readEnum();
+                  dev.katsute.onemta.GTFSRealtimeProto.VehiclePosition.OccupancyStatus tmpValue =
+                      dev.katsute.onemta.GTFSRealtimeProto.VehiclePosition.OccupancyStatus.forNumber(tmpRaw);
+                  if (tmpValue == null) {
+                    mergeUnknownVarintField(3, tmpRaw);
+                  } else {
+                    occupancyStatus_ = tmpRaw;
+                    bitField0_ |= 0x00000004;
+                  }
+                  break;
+                } // case 24
+                case 32: {
+                  occupancyPercentage_ = input.readInt32();
+                  bitField0_ |= 0x00000008;
+                  break;
+                } // case 32
+                case 40: {
+                  carriageSequence_ = input.readUInt32();
+                  bitField0_ |= 0x00000010;
+                  break;
+                } // case 40
+                default: {
+                  if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                    done = true; // was an endgroup tag
+                  }
+                  break;
+                } // default:
+              } // switch (tag)
+            } // while (!done)
+          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+            throw e.unwrapIOException();
+          } finally {
+            onChanged();
+          } // finally
+          return this;
+        }
         private int bitField0_;
 
         private java.lang.Object id_ = "";
@@ -11341,6 +13338,266 @@ public dev.katsute.onemta.GTFSRealtimeProto.VehiclePosition.CarriageDetailsOrBui
       return multiCarriageDetails_.get(index);
     }
 
+    private byte memoizedIsInitialized = -1;
+    @java.lang.Override
+    public final boolean isInitialized() {
+      byte isInitialized = memoizedIsInitialized;
+      if (isInitialized == 1) return true;
+      if (isInitialized == 0) return false;
+
+      if (hasTrip()) {
+        if (!getTrip().isInitialized()) {
+          memoizedIsInitialized = 0;
+          return false;
+        }
+      }
+      if (hasVehicle()) {
+        if (!getVehicle().isInitialized()) {
+          memoizedIsInitialized = 0;
+          return false;
+        }
+      }
+      if (hasPosition()) {
+        if (!getPosition().isInitialized()) {
+          memoizedIsInitialized = 0;
+          return false;
+        }
+      }
+      for (int i = 0; i < getMultiCarriageDetailsCount(); i++) {
+        if (!getMultiCarriageDetails(i).isInitialized()) {
+          memoizedIsInitialized = 0;
+          return false;
+        }
+      }
+      if (!extensionsAreInitialized()) {
+        memoizedIsInitialized = 0;
+        return false;
+      }
+      memoizedIsInitialized = 1;
+      return true;
+    }
+
+    @java.lang.Override
+    public void writeTo(com.google.protobuf.CodedOutputStream output)
+                        throws java.io.IOException {
+      com.google.protobuf.GeneratedMessageV3
+        .ExtendableMessage.ExtensionWriter
+          extensionWriter = newExtensionWriter();
+      if (((bitField0_ & 0x00000001) != 0)) {
+        output.writeMessage(1, getTrip());
+      }
+      if (((bitField0_ & 0x00000004) != 0)) {
+        output.writeMessage(2, getPosition());
+      }
+      if (((bitField0_ & 0x00000008) != 0)) {
+        output.writeUInt32(3, currentStopSequence_);
+      }
+      if (((bitField0_ & 0x00000020) != 0)) {
+        output.writeEnum(4, currentStatus_);
+      }
+      if (((bitField0_ & 0x00000040) != 0)) {
+        output.writeUInt64(5, timestamp_);
+      }
+      if (((bitField0_ & 0x00000080) != 0)) {
+        output.writeEnum(6, congestionLevel_);
+      }
+      if (((bitField0_ & 0x00000010) != 0)) {
+        com.google.protobuf.GeneratedMessageV3.writeString(output, 7, stopId_);
+      }
+      if (((bitField0_ & 0x00000002) != 0)) {
+        output.writeMessage(8, getVehicle());
+      }
+      if (((bitField0_ & 0x00000100) != 0)) {
+        output.writeEnum(9, occupancyStatus_);
+      }
+      if (((bitField0_ & 0x00000200) != 0)) {
+        output.writeUInt32(10, occupancyPercentage_);
+      }
+      for (int i = 0; i < multiCarriageDetails_.size(); i++) {
+        output.writeMessage(11, multiCarriageDetails_.get(i));
+      }
+      extensionWriter.writeUntil(10000, output);
+      getUnknownFields().writeTo(output);
+    }
+
+    @java.lang.Override
+    public int getSerializedSize() {
+      int size = memoizedSize;
+      if (size != -1) return size;
+
+      size = 0;
+      if (((bitField0_ & 0x00000001) != 0)) {
+        size += com.google.protobuf.CodedOutputStream
+          .computeMessageSize(1, getTrip());
+      }
+      if (((bitField0_ & 0x00000004) != 0)) {
+        size += com.google.protobuf.CodedOutputStream
+          .computeMessageSize(2, getPosition());
+      }
+      if (((bitField0_ & 0x00000008) != 0)) {
+        size += com.google.protobuf.CodedOutputStream
+          .computeUInt32Size(3, currentStopSequence_);
+      }
+      if (((bitField0_ & 0x00000020) != 0)) {
+        size += com.google.protobuf.CodedOutputStream
+          .computeEnumSize(4, currentStatus_);
+      }
+      if (((bitField0_ & 0x00000040) != 0)) {
+        size += com.google.protobuf.CodedOutputStream
+          .computeUInt64Size(5, timestamp_);
+      }
+      if (((bitField0_ & 0x00000080) != 0)) {
+        size += com.google.protobuf.CodedOutputStream
+          .computeEnumSize(6, congestionLevel_);
+      }
+      if (((bitField0_ & 0x00000010) != 0)) {
+        size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, stopId_);
+      }
+      if (((bitField0_ & 0x00000002) != 0)) {
+        size += com.google.protobuf.CodedOutputStream
+          .computeMessageSize(8, getVehicle());
+      }
+      if (((bitField0_ & 0x00000100) != 0)) {
+        size += com.google.protobuf.CodedOutputStream
+          .computeEnumSize(9, occupancyStatus_);
+      }
+      if (((bitField0_ & 0x00000200) != 0)) {
+        size += com.google.protobuf.CodedOutputStream
+          .computeUInt32Size(10, occupancyPercentage_);
+      }
+      for (int i = 0; i < multiCarriageDetails_.size(); i++) {
+        size += com.google.protobuf.CodedOutputStream
+          .computeMessageSize(11, multiCarriageDetails_.get(i));
+      }
+      size += extensionsSerializedSize();
+      size += getUnknownFields().getSerializedSize();
+      memoizedSize = size;
+      return size;
+    }
+
+    @java.lang.Override
+    public boolean equals(final java.lang.Object obj) {
+      if (obj == this) {
+       return true;
+      }
+      if (!(obj instanceof dev.katsute.onemta.GTFSRealtimeProto.VehiclePosition)) {
+        return super.equals(obj);
+      }
+      dev.katsute.onemta.GTFSRealtimeProto.VehiclePosition other = (dev.katsute.onemta.GTFSRealtimeProto.VehiclePosition) obj;
+
+      if (hasTrip() != other.hasTrip()) return false;
+      if (hasTrip()) {
+        if (!getTrip()
+            .equals(other.getTrip())) return false;
+      }
+      if (hasVehicle() != other.hasVehicle()) return false;
+      if (hasVehicle()) {
+        if (!getVehicle()
+            .equals(other.getVehicle())) return false;
+      }
+      if (hasPosition() != other.hasPosition()) return false;
+      if (hasPosition()) {
+        if (!getPosition()
+            .equals(other.getPosition())) return false;
+      }
+      if (hasCurrentStopSequence() != other.hasCurrentStopSequence()) return false;
+      if (hasCurrentStopSequence()) {
+        if (getCurrentStopSequence()
+            != other.getCurrentStopSequence()) return false;
+      }
+      if (hasStopId() != other.hasStopId()) return false;
+      if (hasStopId()) {
+        if (!getStopId()
+            .equals(other.getStopId())) return false;
+      }
+      if (hasCurrentStatus() != other.hasCurrentStatus()) return false;
+      if (hasCurrentStatus()) {
+        if (currentStatus_ != other.currentStatus_) return false;
+      }
+      if (hasTimestamp() != other.hasTimestamp()) return false;
+      if (hasTimestamp()) {
+        if (getTimestamp()
+            != other.getTimestamp()) return false;
+      }
+      if (hasCongestionLevel() != other.hasCongestionLevel()) return false;
+      if (hasCongestionLevel()) {
+        if (congestionLevel_ != other.congestionLevel_) return false;
+      }
+      if (hasOccupancyStatus() != other.hasOccupancyStatus()) return false;
+      if (hasOccupancyStatus()) {
+        if (occupancyStatus_ != other.occupancyStatus_) return false;
+      }
+      if (hasOccupancyPercentage() != other.hasOccupancyPercentage()) return false;
+      if (hasOccupancyPercentage()) {
+        if (getOccupancyPercentage()
+            != other.getOccupancyPercentage()) return false;
+      }
+      if (!getMultiCarriageDetailsList()
+          .equals(other.getMultiCarriageDetailsList())) return false;
+      if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+      if (!getExtensionFields().equals(other.getExtensionFields()))
+        return false;
+      return true;
+    }
+
+    @java.lang.Override
+    public int hashCode() {
+      if (memoizedHashCode != 0) {
+        return memoizedHashCode;
+      }
+      int hash = 41;
+      hash = (19 * hash) + getDescriptor().hashCode();
+      if (hasTrip()) {
+        hash = (37 * hash) + TRIP_FIELD_NUMBER;
+        hash = (53 * hash) + getTrip().hashCode();
+      }
+      if (hasVehicle()) {
+        hash = (37 * hash) + VEHICLE_FIELD_NUMBER;
+        hash = (53 * hash) + getVehicle().hashCode();
+      }
+      if (hasPosition()) {
+        hash = (37 * hash) + POSITION_FIELD_NUMBER;
+        hash = (53 * hash) + getPosition().hashCode();
+      }
+      if (hasCurrentStopSequence()) {
+        hash = (37 * hash) + CURRENT_STOP_SEQUENCE_FIELD_NUMBER;
+        hash = (53 * hash) + getCurrentStopSequence();
+      }
+      if (hasStopId()) {
+        hash = (37 * hash) + STOP_ID_FIELD_NUMBER;
+        hash = (53 * hash) + getStopId().hashCode();
+      }
+      if (hasCurrentStatus()) {
+        hash = (37 * hash) + CURRENT_STATUS_FIELD_NUMBER;
+        hash = (53 * hash) + currentStatus_;
+      }
+      if (hasTimestamp()) {
+        hash = (37 * hash) + TIMESTAMP_FIELD_NUMBER;
+        hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
+            getTimestamp());
+      }
+      if (hasCongestionLevel()) {
+        hash = (37 * hash) + CONGESTION_LEVEL_FIELD_NUMBER;
+        hash = (53 * hash) + congestionLevel_;
+      }
+      if (hasOccupancyStatus()) {
+        hash = (37 * hash) + OCCUPANCY_STATUS_FIELD_NUMBER;
+        hash = (53 * hash) + occupancyStatus_;
+      }
+      if (hasOccupancyPercentage()) {
+        hash = (37 * hash) + OCCUPANCY_PERCENTAGE_FIELD_NUMBER;
+        hash = (53 * hash) + getOccupancyPercentage();
+      }
+      if (getMultiCarriageDetailsCount() > 0) {
+        hash = (37 * hash) + MULTI_CARRIAGE_DETAILS_FIELD_NUMBER;
+        hash = (53 * hash) + getMultiCarriageDetailsList().hashCode();
+      }
+      hash = hashFields(hash, getExtensionFields());
+      hash = (29 * hash) + getUnknownFields().hashCode();
+      memoizedHashCode = hash;
+      return hash;
+    }
+
     public static dev.katsute.onemta.GTFSRealtimeProto.VehiclePosition parseFrom(
         java.nio.ByteBuffer data)
         throws com.google.protobuf.InvalidProtocolBufferException {
@@ -11665,6 +13922,231 @@ public  Builder clearExtension(
               dev.katsute.onemta.GTFSRealtimeProto.VehiclePosition, T> extension) {
         return super.clearExtension(extension);
       }
+      @java.lang.Override
+      public Builder mergeFrom(com.google.protobuf.Message other) {
+        if (other instanceof dev.katsute.onemta.GTFSRealtimeProto.VehiclePosition) {
+          return mergeFrom((dev.katsute.onemta.GTFSRealtimeProto.VehiclePosition)other);
+        } else {
+          super.mergeFrom(other);
+          return this;
+        }
+      }
+
+      public Builder mergeFrom(dev.katsute.onemta.GTFSRealtimeProto.VehiclePosition other) {
+        if (other == dev.katsute.onemta.GTFSRealtimeProto.VehiclePosition.getDefaultInstance()) return this;
+        if (other.hasTrip()) {
+          mergeTrip(other.getTrip());
+        }
+        if (other.hasVehicle()) {
+          mergeVehicle(other.getVehicle());
+        }
+        if (other.hasPosition()) {
+          mergePosition(other.getPosition());
+        }
+        if (other.hasCurrentStopSequence()) {
+          setCurrentStopSequence(other.getCurrentStopSequence());
+        }
+        if (other.hasStopId()) {
+          stopId_ = other.stopId_;
+          bitField0_ |= 0x00000010;
+          onChanged();
+        }
+        if (other.hasCurrentStatus()) {
+          setCurrentStatus(other.getCurrentStatus());
+        }
+        if (other.hasTimestamp()) {
+          setTimestamp(other.getTimestamp());
+        }
+        if (other.hasCongestionLevel()) {
+          setCongestionLevel(other.getCongestionLevel());
+        }
+        if (other.hasOccupancyStatus()) {
+          setOccupancyStatus(other.getOccupancyStatus());
+        }
+        if (other.hasOccupancyPercentage()) {
+          setOccupancyPercentage(other.getOccupancyPercentage());
+        }
+        if (multiCarriageDetailsBuilder_ == null) {
+          if (!other.multiCarriageDetails_.isEmpty()) {
+            if (multiCarriageDetails_.isEmpty()) {
+              multiCarriageDetails_ = other.multiCarriageDetails_;
+              bitField0_ = (bitField0_ & ~0x00000400);
+            } else {
+              ensureMultiCarriageDetailsIsMutable();
+              multiCarriageDetails_.addAll(other.multiCarriageDetails_);
+            }
+            onChanged();
+          }
+        } else {
+          if (!other.multiCarriageDetails_.isEmpty()) {
+            if (multiCarriageDetailsBuilder_.isEmpty()) {
+              multiCarriageDetailsBuilder_.dispose();
+              multiCarriageDetailsBuilder_ = null;
+              multiCarriageDetails_ = other.multiCarriageDetails_;
+              bitField0_ = (bitField0_ & ~0x00000400);
+              multiCarriageDetailsBuilder_ =
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+                   getMultiCarriageDetailsFieldBuilder() : null;
+            } else {
+              multiCarriageDetailsBuilder_.addAllMessages(other.multiCarriageDetails_);
+            }
+          }
+        }
+        this.mergeExtensionFields(other);
+        this.mergeUnknownFields(other.getUnknownFields());
+        onChanged();
+        return this;
+      }
+
+      @java.lang.Override
+      public final boolean isInitialized() {
+        if (hasTrip()) {
+          if (!getTrip().isInitialized()) {
+            return false;
+          }
+        }
+        if (hasVehicle()) {
+          if (!getVehicle().isInitialized()) {
+            return false;
+          }
+        }
+        if (hasPosition()) {
+          if (!getPosition().isInitialized()) {
+            return false;
+          }
+        }
+        for (int i = 0; i < getMultiCarriageDetailsCount(); i++) {
+          if (!getMultiCarriageDetails(i).isInitialized()) {
+            return false;
+          }
+        }
+        if (!extensionsAreInitialized()) {
+          return false;
+        }
+        return true;
+      }
+
+      @java.lang.Override
+      public Builder mergeFrom(
+          com.google.protobuf.CodedInputStream input,
+          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+          throws java.io.IOException {
+        if (extensionRegistry == null) {
+          throw new java.lang.NullPointerException();
+        }
+        try {
+          boolean done = false;
+          while (!done) {
+            int tag = input.readTag();
+            switch (tag) {
+              case 0:
+                done = true;
+                break;
+              case 10: {
+                input.readMessage(
+                    getTripFieldBuilder().getBuilder(),
+                    extensionRegistry);
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 10
+              case 18: {
+                input.readMessage(
+                    getPositionFieldBuilder().getBuilder(),
+                    extensionRegistry);
+                bitField0_ |= 0x00000004;
+                break;
+              } // case 18
+              case 24: {
+                currentStopSequence_ = input.readUInt32();
+                bitField0_ |= 0x00000008;
+                break;
+              } // case 24
+              case 32: {
+                int tmpRaw = input.readEnum();
+                dev.katsute.onemta.GTFSRealtimeProto.VehiclePosition.VehicleStopStatus tmpValue =
+                    dev.katsute.onemta.GTFSRealtimeProto.VehiclePosition.VehicleStopStatus.forNumber(tmpRaw);
+                if (tmpValue == null) {
+                  mergeUnknownVarintField(4, tmpRaw);
+                } else {
+                  currentStatus_ = tmpRaw;
+                  bitField0_ |= 0x00000020;
+                }
+                break;
+              } // case 32
+              case 40: {
+                timestamp_ = input.readUInt64();
+                bitField0_ |= 0x00000040;
+                break;
+              } // case 40
+              case 48: {
+                int tmpRaw = input.readEnum();
+                dev.katsute.onemta.GTFSRealtimeProto.VehiclePosition.CongestionLevel tmpValue =
+                    dev.katsute.onemta.GTFSRealtimeProto.VehiclePosition.CongestionLevel.forNumber(tmpRaw);
+                if (tmpValue == null) {
+                  mergeUnknownVarintField(6, tmpRaw);
+                } else {
+                  congestionLevel_ = tmpRaw;
+                  bitField0_ |= 0x00000080;
+                }
+                break;
+              } // case 48
+              case 58: {
+                stopId_ = input.readBytes();
+                bitField0_ |= 0x00000010;
+                break;
+              } // case 58
+              case 66: {
+                input.readMessage(
+                    getVehicleFieldBuilder().getBuilder(),
+                    extensionRegistry);
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 66
+              case 72: {
+                int tmpRaw = input.readEnum();
+                dev.katsute.onemta.GTFSRealtimeProto.VehiclePosition.OccupancyStatus tmpValue =
+                    dev.katsute.onemta.GTFSRealtimeProto.VehiclePosition.OccupancyStatus.forNumber(tmpRaw);
+                if (tmpValue == null) {
+                  mergeUnknownVarintField(9, tmpRaw);
+                } else {
+                  occupancyStatus_ = tmpRaw;
+                  bitField0_ |= 0x00000100;
+                }
+                break;
+              } // case 72
+              case 80: {
+                occupancyPercentage_ = input.readUInt32();
+                bitField0_ |= 0x00000200;
+                break;
+              } // case 80
+              case 90: {
+                dev.katsute.onemta.GTFSRealtimeProto.VehiclePosition.CarriageDetails m =
+                    input.readMessage(
+                        dev.katsute.onemta.GTFSRealtimeProto.VehiclePosition.CarriageDetails.PARSER,
+                        extensionRegistry);
+                if (multiCarriageDetailsBuilder_ == null) {
+                  ensureMultiCarriageDetailsIsMutable();
+                  multiCarriageDetails_.add(m);
+                } else {
+                  multiCarriageDetailsBuilder_.addMessage(m);
+                }
+                break;
+              } // case 90
+              default: {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
+            } // switch (tag)
+          } // while (!done)
+        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+          throw e.unwrapIOException();
+        } finally {
+          onChanged();
+        } // finally
+        return this;
+      }
       private int bitField0_;
 
       private dev.katsute.onemta.GTFSRealtimeProto.TripDescriptor trip_;
@@ -14387,19 +16869,278 @@ public dev.katsute.onemta.GTFSRealtimeProto.TranslatedStringOrBuilder getTtsDesc
       return result == null ? dev.katsute.onemta.GTFSRealtimeProto.Alert.SeverityLevel.UNKNOWN_SEVERITY : result;
     }
 
-    public static dev.katsute.onemta.GTFSRealtimeProto.Alert parseFrom(
-        java.nio.ByteBuffer data)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      return PARSER.parseFrom(data);
-    }
-    public static dev.katsute.onemta.GTFSRealtimeProto.Alert parseFrom(
-        java.nio.ByteBuffer data,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      return PARSER.parseFrom(data, extensionRegistry);
-    }
-    public static dev.katsute.onemta.GTFSRealtimeProto.Alert parseFrom(
-        com.google.protobuf.ByteString data)
+    private byte memoizedIsInitialized = -1;
+    @java.lang.Override
+    public final boolean isInitialized() {
+      byte isInitialized = memoizedIsInitialized;
+      if (isInitialized == 1) return true;
+      if (isInitialized == 0) return false;
+
+      for (int i = 0; i < getActivePeriodCount(); i++) {
+        if (!getActivePeriod(i).isInitialized()) {
+          memoizedIsInitialized = 0;
+          return false;
+        }
+      }
+      for (int i = 0; i < getInformedEntityCount(); i++) {
+        if (!getInformedEntity(i).isInitialized()) {
+          memoizedIsInitialized = 0;
+          return false;
+        }
+      }
+      if (hasUrl()) {
+        if (!getUrl().isInitialized()) {
+          memoizedIsInitialized = 0;
+          return false;
+        }
+      }
+      if (hasHeaderText()) {
+        if (!getHeaderText().isInitialized()) {
+          memoizedIsInitialized = 0;
+          return false;
+        }
+      }
+      if (hasDescriptionText()) {
+        if (!getDescriptionText().isInitialized()) {
+          memoizedIsInitialized = 0;
+          return false;
+        }
+      }
+      if (hasTtsHeaderText()) {
+        if (!getTtsHeaderText().isInitialized()) {
+          memoizedIsInitialized = 0;
+          return false;
+        }
+      }
+      if (hasTtsDescriptionText()) {
+        if (!getTtsDescriptionText().isInitialized()) {
+          memoizedIsInitialized = 0;
+          return false;
+        }
+      }
+      if (!extensionsAreInitialized()) {
+        memoizedIsInitialized = 0;
+        return false;
+      }
+      memoizedIsInitialized = 1;
+      return true;
+    }
+
+    @java.lang.Override
+    public void writeTo(com.google.protobuf.CodedOutputStream output)
+                        throws java.io.IOException {
+      com.google.protobuf.GeneratedMessageV3
+        .ExtendableMessage.ExtensionWriter
+          extensionWriter = newExtensionWriter();
+      for (int i = 0; i < activePeriod_.size(); i++) {
+        output.writeMessage(1, activePeriod_.get(i));
+      }
+      for (int i = 0; i < informedEntity_.size(); i++) {
+        output.writeMessage(5, informedEntity_.get(i));
+      }
+      if (((bitField0_ & 0x00000001) != 0)) {
+        output.writeEnum(6, cause_);
+      }
+      if (((bitField0_ & 0x00000002) != 0)) {
+        output.writeEnum(7, effect_);
+      }
+      if (((bitField0_ & 0x00000004) != 0)) {
+        output.writeMessage(8, getUrl());
+      }
+      if (((bitField0_ & 0x00000008) != 0)) {
+        output.writeMessage(10, getHeaderText());
+      }
+      if (((bitField0_ & 0x00000010) != 0)) {
+        output.writeMessage(11, getDescriptionText());
+      }
+      if (((bitField0_ & 0x00000020) != 0)) {
+        output.writeMessage(12, getTtsHeaderText());
+      }
+      if (((bitField0_ & 0x00000040) != 0)) {
+        output.writeMessage(13, getTtsDescriptionText());
+      }
+      if (((bitField0_ & 0x00000080) != 0)) {
+        output.writeEnum(14, severityLevel_);
+      }
+      extensionWriter.writeUntil(10000, output);
+      getUnknownFields().writeTo(output);
+    }
+
+    @java.lang.Override
+    public int getSerializedSize() {
+      int size = memoizedSize;
+      if (size != -1) return size;
+
+      size = 0;
+      for (int i = 0; i < activePeriod_.size(); i++) {
+        size += com.google.protobuf.CodedOutputStream
+          .computeMessageSize(1, activePeriod_.get(i));
+      }
+      for (int i = 0; i < informedEntity_.size(); i++) {
+        size += com.google.protobuf.CodedOutputStream
+          .computeMessageSize(5, informedEntity_.get(i));
+      }
+      if (((bitField0_ & 0x00000001) != 0)) {
+        size += com.google.protobuf.CodedOutputStream
+          .computeEnumSize(6, cause_);
+      }
+      if (((bitField0_ & 0x00000002) != 0)) {
+        size += com.google.protobuf.CodedOutputStream
+          .computeEnumSize(7, effect_);
+      }
+      if (((bitField0_ & 0x00000004) != 0)) {
+        size += com.google.protobuf.CodedOutputStream
+          .computeMessageSize(8, getUrl());
+      }
+      if (((bitField0_ & 0x00000008) != 0)) {
+        size += com.google.protobuf.CodedOutputStream
+          .computeMessageSize(10, getHeaderText());
+      }
+      if (((bitField0_ & 0x00000010) != 0)) {
+        size += com.google.protobuf.CodedOutputStream
+          .computeMessageSize(11, getDescriptionText());
+      }
+      if (((bitField0_ & 0x00000020) != 0)) {
+        size += com.google.protobuf.CodedOutputStream
+          .computeMessageSize(12, getTtsHeaderText());
+      }
+      if (((bitField0_ & 0x00000040) != 0)) {
+        size += com.google.protobuf.CodedOutputStream
+          .computeMessageSize(13, getTtsDescriptionText());
+      }
+      if (((bitField0_ & 0x00000080) != 0)) {
+        size += com.google.protobuf.CodedOutputStream
+          .computeEnumSize(14, severityLevel_);
+      }
+      size += extensionsSerializedSize();
+      size += getUnknownFields().getSerializedSize();
+      memoizedSize = size;
+      return size;
+    }
+
+    @java.lang.Override
+    public boolean equals(final java.lang.Object obj) {
+      if (obj == this) {
+       return true;
+      }
+      if (!(obj instanceof dev.katsute.onemta.GTFSRealtimeProto.Alert)) {
+        return super.equals(obj);
+      }
+      dev.katsute.onemta.GTFSRealtimeProto.Alert other = (dev.katsute.onemta.GTFSRealtimeProto.Alert) obj;
+
+      if (!getActivePeriodList()
+          .equals(other.getActivePeriodList())) return false;
+      if (!getInformedEntityList()
+          .equals(other.getInformedEntityList())) return false;
+      if (hasCause() != other.hasCause()) return false;
+      if (hasCause()) {
+        if (cause_ != other.cause_) return false;
+      }
+      if (hasEffect() != other.hasEffect()) return false;
+      if (hasEffect()) {
+        if (effect_ != other.effect_) return false;
+      }
+      if (hasUrl() != other.hasUrl()) return false;
+      if (hasUrl()) {
+        if (!getUrl()
+            .equals(other.getUrl())) return false;
+      }
+      if (hasHeaderText() != other.hasHeaderText()) return false;
+      if (hasHeaderText()) {
+        if (!getHeaderText()
+            .equals(other.getHeaderText())) return false;
+      }
+      if (hasDescriptionText() != other.hasDescriptionText()) return false;
+      if (hasDescriptionText()) {
+        if (!getDescriptionText()
+            .equals(other.getDescriptionText())) return false;
+      }
+      if (hasTtsHeaderText() != other.hasTtsHeaderText()) return false;
+      if (hasTtsHeaderText()) {
+        if (!getTtsHeaderText()
+            .equals(other.getTtsHeaderText())) return false;
+      }
+      if (hasTtsDescriptionText() != other.hasTtsDescriptionText()) return false;
+      if (hasTtsDescriptionText()) {
+        if (!getTtsDescriptionText()
+            .equals(other.getTtsDescriptionText())) return false;
+      }
+      if (hasSeverityLevel() != other.hasSeverityLevel()) return false;
+      if (hasSeverityLevel()) {
+        if (severityLevel_ != other.severityLevel_) return false;
+      }
+      if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+      if (!getExtensionFields().equals(other.getExtensionFields()))
+        return false;
+      return true;
+    }
+
+    @java.lang.Override
+    public int hashCode() {
+      if (memoizedHashCode != 0) {
+        return memoizedHashCode;
+      }
+      int hash = 41;
+      hash = (19 * hash) + getDescriptor().hashCode();
+      if (getActivePeriodCount() > 0) {
+        hash = (37 * hash) + ACTIVE_PERIOD_FIELD_NUMBER;
+        hash = (53 * hash) + getActivePeriodList().hashCode();
+      }
+      if (getInformedEntityCount() > 0) {
+        hash = (37 * hash) + INFORMED_ENTITY_FIELD_NUMBER;
+        hash = (53 * hash) + getInformedEntityList().hashCode();
+      }
+      if (hasCause()) {
+        hash = (37 * hash) + CAUSE_FIELD_NUMBER;
+        hash = (53 * hash) + cause_;
+      }
+      if (hasEffect()) {
+        hash = (37 * hash) + EFFECT_FIELD_NUMBER;
+        hash = (53 * hash) + effect_;
+      }
+      if (hasUrl()) {
+        hash = (37 * hash) + URL_FIELD_NUMBER;
+        hash = (53 * hash) + getUrl().hashCode();
+      }
+      if (hasHeaderText()) {
+        hash = (37 * hash) + HEADER_TEXT_FIELD_NUMBER;
+        hash = (53 * hash) + getHeaderText().hashCode();
+      }
+      if (hasDescriptionText()) {
+        hash = (37 * hash) + DESCRIPTION_TEXT_FIELD_NUMBER;
+        hash = (53 * hash) + getDescriptionText().hashCode();
+      }
+      if (hasTtsHeaderText()) {
+        hash = (37 * hash) + TTS_HEADER_TEXT_FIELD_NUMBER;
+        hash = (53 * hash) + getTtsHeaderText().hashCode();
+      }
+      if (hasTtsDescriptionText()) {
+        hash = (37 * hash) + TTS_DESCRIPTION_TEXT_FIELD_NUMBER;
+        hash = (53 * hash) + getTtsDescriptionText().hashCode();
+      }
+      if (hasSeverityLevel()) {
+        hash = (37 * hash) + SEVERITY_LEVEL_FIELD_NUMBER;
+        hash = (53 * hash) + severityLevel_;
+      }
+      hash = hashFields(hash, getExtensionFields());
+      hash = (29 * hash) + getUnknownFields().hashCode();
+      memoizedHashCode = hash;
+      return hash;
+    }
+
+    public static dev.katsute.onemta.GTFSRealtimeProto.Alert parseFrom(
+        java.nio.ByteBuffer data)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      return PARSER.parseFrom(data);
+    }
+    public static dev.katsute.onemta.GTFSRealtimeProto.Alert parseFrom(
+        java.nio.ByteBuffer data,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      return PARSER.parseFrom(data, extensionRegistry);
+    }
+    public static dev.katsute.onemta.GTFSRealtimeProto.Alert parseFrom(
+        com.google.protobuf.ByteString data)
         throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data);
     }
@@ -14732,6 +17473,271 @@ public  Builder clearExtension(
               dev.katsute.onemta.GTFSRealtimeProto.Alert, T> extension) {
         return super.clearExtension(extension);
       }
+      @java.lang.Override
+      public Builder mergeFrom(com.google.protobuf.Message other) {
+        if (other instanceof dev.katsute.onemta.GTFSRealtimeProto.Alert) {
+          return mergeFrom((dev.katsute.onemta.GTFSRealtimeProto.Alert)other);
+        } else {
+          super.mergeFrom(other);
+          return this;
+        }
+      }
+
+      public Builder mergeFrom(dev.katsute.onemta.GTFSRealtimeProto.Alert other) {
+        if (other == dev.katsute.onemta.GTFSRealtimeProto.Alert.getDefaultInstance()) return this;
+        if (activePeriodBuilder_ == null) {
+          if (!other.activePeriod_.isEmpty()) {
+            if (activePeriod_.isEmpty()) {
+              activePeriod_ = other.activePeriod_;
+              bitField0_ = (bitField0_ & ~0x00000001);
+            } else {
+              ensureActivePeriodIsMutable();
+              activePeriod_.addAll(other.activePeriod_);
+            }
+            onChanged();
+          }
+        } else {
+          if (!other.activePeriod_.isEmpty()) {
+            if (activePeriodBuilder_.isEmpty()) {
+              activePeriodBuilder_.dispose();
+              activePeriodBuilder_ = null;
+              activePeriod_ = other.activePeriod_;
+              bitField0_ = (bitField0_ & ~0x00000001);
+              activePeriodBuilder_ =
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+                   getActivePeriodFieldBuilder() : null;
+            } else {
+              activePeriodBuilder_.addAllMessages(other.activePeriod_);
+            }
+          }
+        }
+        if (informedEntityBuilder_ == null) {
+          if (!other.informedEntity_.isEmpty()) {
+            if (informedEntity_.isEmpty()) {
+              informedEntity_ = other.informedEntity_;
+              bitField0_ = (bitField0_ & ~0x00000002);
+            } else {
+              ensureInformedEntityIsMutable();
+              informedEntity_.addAll(other.informedEntity_);
+            }
+            onChanged();
+          }
+        } else {
+          if (!other.informedEntity_.isEmpty()) {
+            if (informedEntityBuilder_.isEmpty()) {
+              informedEntityBuilder_.dispose();
+              informedEntityBuilder_ = null;
+              informedEntity_ = other.informedEntity_;
+              bitField0_ = (bitField0_ & ~0x00000002);
+              informedEntityBuilder_ =
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+                   getInformedEntityFieldBuilder() : null;
+            } else {
+              informedEntityBuilder_.addAllMessages(other.informedEntity_);
+            }
+          }
+        }
+        if (other.hasCause()) {
+          setCause(other.getCause());
+        }
+        if (other.hasEffect()) {
+          setEffect(other.getEffect());
+        }
+        if (other.hasUrl()) {
+          mergeUrl(other.getUrl());
+        }
+        if (other.hasHeaderText()) {
+          mergeHeaderText(other.getHeaderText());
+        }
+        if (other.hasDescriptionText()) {
+          mergeDescriptionText(other.getDescriptionText());
+        }
+        if (other.hasTtsHeaderText()) {
+          mergeTtsHeaderText(other.getTtsHeaderText());
+        }
+        if (other.hasTtsDescriptionText()) {
+          mergeTtsDescriptionText(other.getTtsDescriptionText());
+        }
+        if (other.hasSeverityLevel()) {
+          setSeverityLevel(other.getSeverityLevel());
+        }
+        this.mergeExtensionFields(other);
+        this.mergeUnknownFields(other.getUnknownFields());
+        onChanged();
+        return this;
+      }
+
+      @java.lang.Override
+      public final boolean isInitialized() {
+        for (int i = 0; i < getActivePeriodCount(); i++) {
+          if (!getActivePeriod(i).isInitialized()) {
+            return false;
+          }
+        }
+        for (int i = 0; i < getInformedEntityCount(); i++) {
+          if (!getInformedEntity(i).isInitialized()) {
+            return false;
+          }
+        }
+        if (hasUrl()) {
+          if (!getUrl().isInitialized()) {
+            return false;
+          }
+        }
+        if (hasHeaderText()) {
+          if (!getHeaderText().isInitialized()) {
+            return false;
+          }
+        }
+        if (hasDescriptionText()) {
+          if (!getDescriptionText().isInitialized()) {
+            return false;
+          }
+        }
+        if (hasTtsHeaderText()) {
+          if (!getTtsHeaderText().isInitialized()) {
+            return false;
+          }
+        }
+        if (hasTtsDescriptionText()) {
+          if (!getTtsDescriptionText().isInitialized()) {
+            return false;
+          }
+        }
+        if (!extensionsAreInitialized()) {
+          return false;
+        }
+        return true;
+      }
+
+      @java.lang.Override
+      public Builder mergeFrom(
+          com.google.protobuf.CodedInputStream input,
+          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+          throws java.io.IOException {
+        if (extensionRegistry == null) {
+          throw new java.lang.NullPointerException();
+        }
+        try {
+          boolean done = false;
+          while (!done) {
+            int tag = input.readTag();
+            switch (tag) {
+              case 0:
+                done = true;
+                break;
+              case 10: {
+                dev.katsute.onemta.GTFSRealtimeProto.TimeRange m =
+                    input.readMessage(
+                        dev.katsute.onemta.GTFSRealtimeProto.TimeRange.PARSER,
+                        extensionRegistry);
+                if (activePeriodBuilder_ == null) {
+                  ensureActivePeriodIsMutable();
+                  activePeriod_.add(m);
+                } else {
+                  activePeriodBuilder_.addMessage(m);
+                }
+                break;
+              } // case 10
+              case 42: {
+                dev.katsute.onemta.GTFSRealtimeProto.EntitySelector m =
+                    input.readMessage(
+                        dev.katsute.onemta.GTFSRealtimeProto.EntitySelector.PARSER,
+                        extensionRegistry);
+                if (informedEntityBuilder_ == null) {
+                  ensureInformedEntityIsMutable();
+                  informedEntity_.add(m);
+                } else {
+                  informedEntityBuilder_.addMessage(m);
+                }
+                break;
+              } // case 42
+              case 48: {
+                int tmpRaw = input.readEnum();
+                dev.katsute.onemta.GTFSRealtimeProto.Alert.Cause tmpValue =
+                    dev.katsute.onemta.GTFSRealtimeProto.Alert.Cause.forNumber(tmpRaw);
+                if (tmpValue == null) {
+                  mergeUnknownVarintField(6, tmpRaw);
+                } else {
+                  cause_ = tmpRaw;
+                  bitField0_ |= 0x00000004;
+                }
+                break;
+              } // case 48
+              case 56: {
+                int tmpRaw = input.readEnum();
+                dev.katsute.onemta.GTFSRealtimeProto.Alert.Effect tmpValue =
+                    dev.katsute.onemta.GTFSRealtimeProto.Alert.Effect.forNumber(tmpRaw);
+                if (tmpValue == null) {
+                  mergeUnknownVarintField(7, tmpRaw);
+                } else {
+                  effect_ = tmpRaw;
+                  bitField0_ |= 0x00000008;
+                }
+                break;
+              } // case 56
+              case 66: {
+                input.readMessage(
+                    getUrlFieldBuilder().getBuilder(),
+                    extensionRegistry);
+                bitField0_ |= 0x00000010;
+                break;
+              } // case 66
+              case 82: {
+                input.readMessage(
+                    getHeaderTextFieldBuilder().getBuilder(),
+                    extensionRegistry);
+                bitField0_ |= 0x00000020;
+                break;
+              } // case 82
+              case 90: {
+                input.readMessage(
+                    getDescriptionTextFieldBuilder().getBuilder(),
+                    extensionRegistry);
+                bitField0_ |= 0x00000040;
+                break;
+              } // case 90
+              case 98: {
+                input.readMessage(
+                    getTtsHeaderTextFieldBuilder().getBuilder(),
+                    extensionRegistry);
+                bitField0_ |= 0x00000080;
+                break;
+              } // case 98
+              case 106: {
+                input.readMessage(
+                    getTtsDescriptionTextFieldBuilder().getBuilder(),
+                    extensionRegistry);
+                bitField0_ |= 0x00000100;
+                break;
+              } // case 106
+              case 112: {
+                int tmpRaw = input.readEnum();
+                dev.katsute.onemta.GTFSRealtimeProto.Alert.SeverityLevel tmpValue =
+                    dev.katsute.onemta.GTFSRealtimeProto.Alert.SeverityLevel.forNumber(tmpRaw);
+                if (tmpValue == null) {
+                  mergeUnknownVarintField(14, tmpRaw);
+                } else {
+                  severityLevel_ = tmpRaw;
+                  bitField0_ |= 0x00000200;
+                }
+                break;
+              } // case 112
+              default: {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
+            } // switch (tag)
+          } // while (!done)
+        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+          throw e.unwrapIOException();
+        } finally {
+          onChanged();
+        } // finally
+        return this;
+      }
       private int bitField0_;
 
       private java.util.List activePeriod_ =
@@ -16531,6 +19537,106 @@ public long getEnd() {
       return end_;
     }
 
+    private byte memoizedIsInitialized = -1;
+    @java.lang.Override
+    public final boolean isInitialized() {
+      byte isInitialized = memoizedIsInitialized;
+      if (isInitialized == 1) return true;
+      if (isInitialized == 0) return false;
+
+      if (!extensionsAreInitialized()) {
+        memoizedIsInitialized = 0;
+        return false;
+      }
+      memoizedIsInitialized = 1;
+      return true;
+    }
+
+    @java.lang.Override
+    public void writeTo(com.google.protobuf.CodedOutputStream output)
+                        throws java.io.IOException {
+      com.google.protobuf.GeneratedMessageV3
+        .ExtendableMessage.ExtensionWriter
+          extensionWriter = newExtensionWriter();
+      if (((bitField0_ & 0x00000001) != 0)) {
+        output.writeUInt64(1, start_);
+      }
+      if (((bitField0_ & 0x00000002) != 0)) {
+        output.writeUInt64(2, end_);
+      }
+      extensionWriter.writeUntil(10000, output);
+      getUnknownFields().writeTo(output);
+    }
+
+    @java.lang.Override
+    public int getSerializedSize() {
+      int size = memoizedSize;
+      if (size != -1) return size;
+
+      size = 0;
+      if (((bitField0_ & 0x00000001) != 0)) {
+        size += com.google.protobuf.CodedOutputStream
+          .computeUInt64Size(1, start_);
+      }
+      if (((bitField0_ & 0x00000002) != 0)) {
+        size += com.google.protobuf.CodedOutputStream
+          .computeUInt64Size(2, end_);
+      }
+      size += extensionsSerializedSize();
+      size += getUnknownFields().getSerializedSize();
+      memoizedSize = size;
+      return size;
+    }
+
+    @java.lang.Override
+    public boolean equals(final java.lang.Object obj) {
+      if (obj == this) {
+       return true;
+      }
+      if (!(obj instanceof dev.katsute.onemta.GTFSRealtimeProto.TimeRange)) {
+        return super.equals(obj);
+      }
+      dev.katsute.onemta.GTFSRealtimeProto.TimeRange other = (dev.katsute.onemta.GTFSRealtimeProto.TimeRange) obj;
+
+      if (hasStart() != other.hasStart()) return false;
+      if (hasStart()) {
+        if (getStart()
+            != other.getStart()) return false;
+      }
+      if (hasEnd() != other.hasEnd()) return false;
+      if (hasEnd()) {
+        if (getEnd()
+            != other.getEnd()) return false;
+      }
+      if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+      if (!getExtensionFields().equals(other.getExtensionFields()))
+        return false;
+      return true;
+    }
+
+    @java.lang.Override
+    public int hashCode() {
+      if (memoizedHashCode != 0) {
+        return memoizedHashCode;
+      }
+      int hash = 41;
+      hash = (19 * hash) + getDescriptor().hashCode();
+      if (hasStart()) {
+        hash = (37 * hash) + START_FIELD_NUMBER;
+        hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
+            getStart());
+      }
+      if (hasEnd()) {
+        hash = (37 * hash) + END_FIELD_NUMBER;
+        hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
+            getEnd());
+      }
+      hash = hashFields(hash, getExtensionFields());
+      hash = (29 * hash) + getUnknownFields().hashCode();
+      memoizedHashCode = hash;
+      return hash;
+    }
+
     public static dev.katsute.onemta.GTFSRealtimeProto.TimeRange parseFrom(
         java.nio.ByteBuffer data)
         throws com.google.protobuf.InvalidProtocolBufferException {
@@ -16769,6 +19875,79 @@ public  Builder clearExtension(
               dev.katsute.onemta.GTFSRealtimeProto.TimeRange, T> extension) {
         return super.clearExtension(extension);
       }
+      @java.lang.Override
+      public Builder mergeFrom(com.google.protobuf.Message other) {
+        if (other instanceof dev.katsute.onemta.GTFSRealtimeProto.TimeRange) {
+          return mergeFrom((dev.katsute.onemta.GTFSRealtimeProto.TimeRange)other);
+        } else {
+          super.mergeFrom(other);
+          return this;
+        }
+      }
+
+      public Builder mergeFrom(dev.katsute.onemta.GTFSRealtimeProto.TimeRange other) {
+        if (other == dev.katsute.onemta.GTFSRealtimeProto.TimeRange.getDefaultInstance()) return this;
+        if (other.hasStart()) {
+          setStart(other.getStart());
+        }
+        if (other.hasEnd()) {
+          setEnd(other.getEnd());
+        }
+        this.mergeExtensionFields(other);
+        this.mergeUnknownFields(other.getUnknownFields());
+        onChanged();
+        return this;
+      }
+
+      @java.lang.Override
+      public final boolean isInitialized() {
+        if (!extensionsAreInitialized()) {
+          return false;
+        }
+        return true;
+      }
+
+      @java.lang.Override
+      public Builder mergeFrom(
+          com.google.protobuf.CodedInputStream input,
+          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+          throws java.io.IOException {
+        if (extensionRegistry == null) {
+          throw new java.lang.NullPointerException();
+        }
+        try {
+          boolean done = false;
+          while (!done) {
+            int tag = input.readTag();
+            switch (tag) {
+              case 0:
+                done = true;
+                break;
+              case 8: {
+                start_ = input.readUInt64();
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 8
+              case 16: {
+                end_ = input.readUInt64();
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 16
+              default: {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
+            } // switch (tag)
+          } // while (!done)
+        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+          throw e.unwrapIOException();
+        } finally {
+          onChanged();
+        } // finally
+        return this;
+      }
       private int bitField0_;
 
       private long start_ ;
@@ -17253,6 +20432,170 @@ public float getSpeed() {
       return speed_;
     }
 
+    private byte memoizedIsInitialized = -1;
+    @java.lang.Override
+    public final boolean isInitialized() {
+      byte isInitialized = memoizedIsInitialized;
+      if (isInitialized == 1) return true;
+      if (isInitialized == 0) return false;
+
+      if (!hasLatitude()) {
+        memoizedIsInitialized = 0;
+        return false;
+      }
+      if (!hasLongitude()) {
+        memoizedIsInitialized = 0;
+        return false;
+      }
+      if (!extensionsAreInitialized()) {
+        memoizedIsInitialized = 0;
+        return false;
+      }
+      memoizedIsInitialized = 1;
+      return true;
+    }
+
+    @java.lang.Override
+    public void writeTo(com.google.protobuf.CodedOutputStream output)
+                        throws java.io.IOException {
+      com.google.protobuf.GeneratedMessageV3
+        .ExtendableMessage.ExtensionWriter
+          extensionWriter = newExtensionWriter();
+      if (((bitField0_ & 0x00000001) != 0)) {
+        output.writeFloat(1, latitude_);
+      }
+      if (((bitField0_ & 0x00000002) != 0)) {
+        output.writeFloat(2, longitude_);
+      }
+      if (((bitField0_ & 0x00000004) != 0)) {
+        output.writeFloat(3, bearing_);
+      }
+      if (((bitField0_ & 0x00000008) != 0)) {
+        output.writeDouble(4, odometer_);
+      }
+      if (((bitField0_ & 0x00000010) != 0)) {
+        output.writeFloat(5, speed_);
+      }
+      extensionWriter.writeUntil(10000, output);
+      getUnknownFields().writeTo(output);
+    }
+
+    @java.lang.Override
+    public int getSerializedSize() {
+      int size = memoizedSize;
+      if (size != -1) return size;
+
+      size = 0;
+      if (((bitField0_ & 0x00000001) != 0)) {
+        size += com.google.protobuf.CodedOutputStream
+          .computeFloatSize(1, latitude_);
+      }
+      if (((bitField0_ & 0x00000002) != 0)) {
+        size += com.google.protobuf.CodedOutputStream
+          .computeFloatSize(2, longitude_);
+      }
+      if (((bitField0_ & 0x00000004) != 0)) {
+        size += com.google.protobuf.CodedOutputStream
+          .computeFloatSize(3, bearing_);
+      }
+      if (((bitField0_ & 0x00000008) != 0)) {
+        size += com.google.protobuf.CodedOutputStream
+          .computeDoubleSize(4, odometer_);
+      }
+      if (((bitField0_ & 0x00000010) != 0)) {
+        size += com.google.protobuf.CodedOutputStream
+          .computeFloatSize(5, speed_);
+      }
+      size += extensionsSerializedSize();
+      size += getUnknownFields().getSerializedSize();
+      memoizedSize = size;
+      return size;
+    }
+
+    @java.lang.Override
+    public boolean equals(final java.lang.Object obj) {
+      if (obj == this) {
+       return true;
+      }
+      if (!(obj instanceof dev.katsute.onemta.GTFSRealtimeProto.Position)) {
+        return super.equals(obj);
+      }
+      dev.katsute.onemta.GTFSRealtimeProto.Position other = (dev.katsute.onemta.GTFSRealtimeProto.Position) obj;
+
+      if (hasLatitude() != other.hasLatitude()) return false;
+      if (hasLatitude()) {
+        if (java.lang.Float.floatToIntBits(getLatitude())
+            != java.lang.Float.floatToIntBits(
+                other.getLatitude())) return false;
+      }
+      if (hasLongitude() != other.hasLongitude()) return false;
+      if (hasLongitude()) {
+        if (java.lang.Float.floatToIntBits(getLongitude())
+            != java.lang.Float.floatToIntBits(
+                other.getLongitude())) return false;
+      }
+      if (hasBearing() != other.hasBearing()) return false;
+      if (hasBearing()) {
+        if (java.lang.Float.floatToIntBits(getBearing())
+            != java.lang.Float.floatToIntBits(
+                other.getBearing())) return false;
+      }
+      if (hasOdometer() != other.hasOdometer()) return false;
+      if (hasOdometer()) {
+        if (java.lang.Double.doubleToLongBits(getOdometer())
+            != java.lang.Double.doubleToLongBits(
+                other.getOdometer())) return false;
+      }
+      if (hasSpeed() != other.hasSpeed()) return false;
+      if (hasSpeed()) {
+        if (java.lang.Float.floatToIntBits(getSpeed())
+            != java.lang.Float.floatToIntBits(
+                other.getSpeed())) return false;
+      }
+      if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+      if (!getExtensionFields().equals(other.getExtensionFields()))
+        return false;
+      return true;
+    }
+
+    @java.lang.Override
+    public int hashCode() {
+      if (memoizedHashCode != 0) {
+        return memoizedHashCode;
+      }
+      int hash = 41;
+      hash = (19 * hash) + getDescriptor().hashCode();
+      if (hasLatitude()) {
+        hash = (37 * hash) + LATITUDE_FIELD_NUMBER;
+        hash = (53 * hash) + java.lang.Float.floatToIntBits(
+            getLatitude());
+      }
+      if (hasLongitude()) {
+        hash = (37 * hash) + LONGITUDE_FIELD_NUMBER;
+        hash = (53 * hash) + java.lang.Float.floatToIntBits(
+            getLongitude());
+      }
+      if (hasBearing()) {
+        hash = (37 * hash) + BEARING_FIELD_NUMBER;
+        hash = (53 * hash) + java.lang.Float.floatToIntBits(
+            getBearing());
+      }
+      if (hasOdometer()) {
+        hash = (37 * hash) + ODOMETER_FIELD_NUMBER;
+        hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
+            java.lang.Double.doubleToLongBits(getOdometer()));
+      }
+      if (hasSpeed()) {
+        hash = (37 * hash) + SPEED_FIELD_NUMBER;
+        hash = (53 * hash) + java.lang.Float.floatToIntBits(
+            getSpeed());
+      }
+      hash = hashFields(hash, getExtensionFields());
+      hash = (29 * hash) + getUnknownFields().hashCode();
+      memoizedHashCode = hash;
+      return hash;
+    }
+
     public static dev.katsute.onemta.GTFSRealtimeProto.Position parseFrom(
         java.nio.ByteBuffer data)
         throws com.google.protobuf.InvalidProtocolBufferException {
@@ -17505,26 +20848,129 @@ public  Builder clearExtension(
               dev.katsute.onemta.GTFSRealtimeProto.Position, T> extension) {
         return super.clearExtension(extension);
       }
-      private int bitField0_;
-
-      private float latitude_ ;
-      /**
-       * 
-       * Degrees North, in the WGS-84 coordinate system.
-       * 
- * - * required float latitude = 1; - * @return Whether the latitude field is set. - */ @java.lang.Override - public boolean hasLatitude() { - return ((bitField0_ & 0x00000001) != 0); + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof dev.katsute.onemta.GTFSRealtimeProto.Position) { + return mergeFrom((dev.katsute.onemta.GTFSRealtimeProto.Position)other); + } else { + super.mergeFrom(other); + return this; + } } - /** - *
-       * Degrees North, in the WGS-84 coordinate system.
-       * 
- * + + public Builder mergeFrom(dev.katsute.onemta.GTFSRealtimeProto.Position other) { + if (other == dev.katsute.onemta.GTFSRealtimeProto.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()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + if (!hasLatitude()) { + return false; + } + if (!hasLongitude()) { + return false; + } + if (!extensionsAreInitialized()) { + return false; + } + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 13: { + latitude_ = input.readFloat(); + bitField0_ |= 0x00000001; + break; + } // case 13 + case 21: { + longitude_ = input.readFloat(); + bitField0_ |= 0x00000002; + break; + } // case 21 + case 29: { + bearing_ = input.readFloat(); + bitField0_ |= 0x00000004; + break; + } // case 29 + case 33: { + odometer_ = input.readDouble(); + bitField0_ |= 0x00000008; + break; + } // case 33 + case 45: { + speed_ = input.readFloat(); + bitField0_ |= 0x00000010; + break; + } // case 45 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private float latitude_ ; + /** + *
+       * Degrees North, in the WGS-84 coordinate system.
+       * 
+ * + * required float latitude = 1; + * @return Whether the latitude field is set. + */ + @java.lang.Override + public boolean hasLatitude() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+       * Degrees North, in the WGS-84 coordinate system.
+       * 
+ * * required float latitude = 1; * @return The latitude. */ @@ -18761,6 +22207,163 @@ public java.lang.String getStartDate() { return result == null ? dev.katsute.onemta.GTFSRealtimeProto.TripDescriptor.ScheduleRelationship.SCHEDULED : result; } + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + if (!extensionsAreInitialized()) { + memoizedIsInitialized = 0; + return false; + } + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + com.google.protobuf.GeneratedMessageV3 + .ExtendableMessage.ExtensionWriter + extensionWriter = newExtensionWriter(); + if (((bitField0_ & 0x00000001) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, tripId_); + } + if (((bitField0_ & 0x00000008) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, startTime_); + } + if (((bitField0_ & 0x00000010) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, startDate_); + } + if (((bitField0_ & 0x00000020) != 0)) { + output.writeEnum(4, scheduleRelationship_); + } + if (((bitField0_ & 0x00000002) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, routeId_); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeUInt32(6, directionId_); + } + extensionWriter.writeUntil(10000, output); + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, tripId_); + } + if (((bitField0_ & 0x00000008) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, startTime_); + } + if (((bitField0_ & 0x00000010) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, startDate_); + } + if (((bitField0_ & 0x00000020) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(4, scheduleRelationship_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, routeId_); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(6, directionId_); + } + size += extensionsSerializedSize(); + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof dev.katsute.onemta.GTFSRealtimeProto.TripDescriptor)) { + return super.equals(obj); + } + dev.katsute.onemta.GTFSRealtimeProto.TripDescriptor other = (dev.katsute.onemta.GTFSRealtimeProto.TripDescriptor) obj; + + if (hasTripId() != other.hasTripId()) return false; + if (hasTripId()) { + if (!getTripId() + .equals(other.getTripId())) return false; + } + if (hasRouteId() != other.hasRouteId()) return false; + if (hasRouteId()) { + if (!getRouteId() + .equals(other.getRouteId())) return false; + } + if (hasDirectionId() != other.hasDirectionId()) return false; + if (hasDirectionId()) { + if (getDirectionId() + != other.getDirectionId()) return false; + } + if (hasStartTime() != other.hasStartTime()) return false; + if (hasStartTime()) { + if (!getStartTime() + .equals(other.getStartTime())) return false; + } + if (hasStartDate() != other.hasStartDate()) return false; + if (hasStartDate()) { + if (!getStartDate() + .equals(other.getStartDate())) return false; + } + if (hasScheduleRelationship() != other.hasScheduleRelationship()) return false; + if (hasScheduleRelationship()) { + if (scheduleRelationship_ != other.scheduleRelationship_) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + if (!getExtensionFields().equals(other.getExtensionFields())) + return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasTripId()) { + hash = (37 * hash) + TRIP_ID_FIELD_NUMBER; + hash = (53 * hash) + getTripId().hashCode(); + } + if (hasRouteId()) { + hash = (37 * hash) + ROUTE_ID_FIELD_NUMBER; + hash = (53 * hash) + getRouteId().hashCode(); + } + if (hasDirectionId()) { + hash = (37 * hash) + DIRECTION_ID_FIELD_NUMBER; + hash = (53 * hash) + getDirectionId(); + } + if (hasStartTime()) { + hash = (37 * hash) + START_TIME_FIELD_NUMBER; + hash = (53 * hash) + getStartTime().hashCode(); + } + if (hasStartDate()) { + hash = (37 * hash) + START_DATE_FIELD_NUMBER; + hash = (53 * hash) + getStartDate().hashCode(); + } + if (hasScheduleRelationship()) { + hash = (37 * hash) + SCHEDULE_RELATIONSHIP_FIELD_NUMBER; + hash = (53 * hash) + scheduleRelationship_; + } + hash = hashFields(hash, getExtensionFields()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + public static dev.katsute.onemta.GTFSRealtimeProto.TripDescriptor parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -19026,6 +22629,126 @@ public Builder clearExtension( dev.katsute.onemta.GTFSRealtimeProto.TripDescriptor, T> extension) { return super.clearExtension(extension); } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof dev.katsute.onemta.GTFSRealtimeProto.TripDescriptor) { + return mergeFrom((dev.katsute.onemta.GTFSRealtimeProto.TripDescriptor)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(dev.katsute.onemta.GTFSRealtimeProto.TripDescriptor other) { + if (other == dev.katsute.onemta.GTFSRealtimeProto.TripDescriptor.getDefaultInstance()) return this; + if (other.hasTripId()) { + tripId_ = other.tripId_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasRouteId()) { + routeId_ = other.routeId_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasDirectionId()) { + setDirectionId(other.getDirectionId()); + } + if (other.hasStartTime()) { + startTime_ = other.startTime_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (other.hasStartDate()) { + startDate_ = other.startDate_; + bitField0_ |= 0x00000010; + onChanged(); + } + if (other.hasScheduleRelationship()) { + setScheduleRelationship(other.getScheduleRelationship()); + } + this.mergeExtensionFields(other); + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + if (!extensionsAreInitialized()) { + return false; + } + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + tripId_ = input.readBytes(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + startTime_ = input.readBytes(); + bitField0_ |= 0x00000008; + break; + } // case 18 + case 26: { + startDate_ = input.readBytes(); + bitField0_ |= 0x00000010; + break; + } // case 26 + case 32: { + int tmpRaw = input.readEnum(); + dev.katsute.onemta.GTFSRealtimeProto.TripDescriptor.ScheduleRelationship tmpValue = + dev.katsute.onemta.GTFSRealtimeProto.TripDescriptor.ScheduleRelationship.forNumber(tmpRaw); + if (tmpValue == null) { + mergeUnknownVarintField(4, tmpRaw); + } else { + scheduleRelationship_ = tmpRaw; + bitField0_ |= 0x00000020; + } + break; + } // case 32 + case 42: { + routeId_ = input.readBytes(); + bitField0_ |= 0x00000002; + break; + } // case 42 + case 48: { + directionId_ = input.readUInt32(); + bitField0_ |= 0x00000004; + break; + } // case 48 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } private int bitField0_; private java.lang.Object tripId_ = ""; @@ -20113,6 +23836,117 @@ public java.lang.String getLicensePlate() { } } + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + if (!extensionsAreInitialized()) { + memoizedIsInitialized = 0; + return false; + } + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + com.google.protobuf.GeneratedMessageV3 + .ExtendableMessage.ExtensionWriter + extensionWriter = newExtensionWriter(); + if (((bitField0_ & 0x00000001) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, id_); + } + if (((bitField0_ & 0x00000002) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, label_); + } + if (((bitField0_ & 0x00000004) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, licensePlate_); + } + extensionWriter.writeUntil(10000, output); + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, id_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, label_); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, licensePlate_); + } + size += extensionsSerializedSize(); + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof dev.katsute.onemta.GTFSRealtimeProto.VehicleDescriptor)) { + return super.equals(obj); + } + dev.katsute.onemta.GTFSRealtimeProto.VehicleDescriptor other = (dev.katsute.onemta.GTFSRealtimeProto.VehicleDescriptor) obj; + + if (hasId() != other.hasId()) return false; + if (hasId()) { + if (!getId() + .equals(other.getId())) return false; + } + if (hasLabel() != other.hasLabel()) return false; + if (hasLabel()) { + if (!getLabel() + .equals(other.getLabel())) return false; + } + if (hasLicensePlate() != other.hasLicensePlate()) return false; + if (hasLicensePlate()) { + if (!getLicensePlate() + .equals(other.getLicensePlate())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + if (!getExtensionFields().equals(other.getExtensionFields())) + return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasId()) { + hash = (37 * hash) + ID_FIELD_NUMBER; + hash = (53 * hash) + getId().hashCode(); + } + if (hasLabel()) { + hash = (37 * hash) + LABEL_FIELD_NUMBER; + hash = (53 * hash) + getLabel().hashCode(); + } + if (hasLicensePlate()) { + hash = (37 * hash) + LICENSE_PLATE_FIELD_NUMBER; + hash = (53 * hash) + getLicensePlate().hashCode(); + } + hash = hashFields(hash, getExtensionFields()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + public static dev.katsute.onemta.GTFSRealtimeProto.VehicleDescriptor parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -20355,6 +24189,93 @@ public Builder clearExtension( dev.katsute.onemta.GTFSRealtimeProto.VehicleDescriptor, T> extension) { return super.clearExtension(extension); } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof dev.katsute.onemta.GTFSRealtimeProto.VehicleDescriptor) { + return mergeFrom((dev.katsute.onemta.GTFSRealtimeProto.VehicleDescriptor)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(dev.katsute.onemta.GTFSRealtimeProto.VehicleDescriptor other) { + if (other == dev.katsute.onemta.GTFSRealtimeProto.VehicleDescriptor.getDefaultInstance()) return this; + if (other.hasId()) { + id_ = other.id_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasLabel()) { + label_ = other.label_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasLicensePlate()) { + licensePlate_ = other.licensePlate_; + bitField0_ |= 0x00000004; + onChanged(); + } + this.mergeExtensionFields(other); + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + if (!extensionsAreInitialized()) { + return false; + } + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + id_ = input.readBytes(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + label_ = input.readBytes(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + licensePlate_ = input.readBytes(); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } private int bitField0_; private java.lang.Object id_ = ""; @@ -21175,6 +25096,171 @@ public int getDirectionId() { return directionId_; } + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + if (hasTrip()) { + if (!getTrip().isInitialized()) { + memoizedIsInitialized = 0; + return false; + } + } + if (!extensionsAreInitialized()) { + memoizedIsInitialized = 0; + return false; + } + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + com.google.protobuf.GeneratedMessageV3 + .ExtendableMessage.ExtensionWriter + extensionWriter = newExtensionWriter(); + if (((bitField0_ & 0x00000001) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, agencyId_); + } + if (((bitField0_ & 0x00000002) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, routeId_); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeInt32(3, routeType_); + } + if (((bitField0_ & 0x00000008) != 0)) { + output.writeMessage(4, getTrip()); + } + if (((bitField0_ & 0x00000010) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, stopId_); + } + if (((bitField0_ & 0x00000020) != 0)) { + output.writeUInt32(6, directionId_); + } + extensionWriter.writeUntil(10000, output); + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, agencyId_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, routeId_); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(3, routeType_); + } + if (((bitField0_ & 0x00000008) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getTrip()); + } + if (((bitField0_ & 0x00000010) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, stopId_); + } + if (((bitField0_ & 0x00000020) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(6, directionId_); + } + size += extensionsSerializedSize(); + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof dev.katsute.onemta.GTFSRealtimeProto.EntitySelector)) { + return super.equals(obj); + } + dev.katsute.onemta.GTFSRealtimeProto.EntitySelector other = (dev.katsute.onemta.GTFSRealtimeProto.EntitySelector) obj; + + if (hasAgencyId() != other.hasAgencyId()) return false; + if (hasAgencyId()) { + if (!getAgencyId() + .equals(other.getAgencyId())) return false; + } + if (hasRouteId() != other.hasRouteId()) return false; + if (hasRouteId()) { + if (!getRouteId() + .equals(other.getRouteId())) return false; + } + if (hasRouteType() != other.hasRouteType()) return false; + if (hasRouteType()) { + if (getRouteType() + != other.getRouteType()) return false; + } + if (hasTrip() != other.hasTrip()) return false; + if (hasTrip()) { + if (!getTrip() + .equals(other.getTrip())) return false; + } + if (hasStopId() != other.hasStopId()) return false; + if (hasStopId()) { + if (!getStopId() + .equals(other.getStopId())) return false; + } + if (hasDirectionId() != other.hasDirectionId()) return false; + if (hasDirectionId()) { + if (getDirectionId() + != other.getDirectionId()) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + if (!getExtensionFields().equals(other.getExtensionFields())) + return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasAgencyId()) { + hash = (37 * hash) + AGENCY_ID_FIELD_NUMBER; + hash = (53 * hash) + getAgencyId().hashCode(); + } + if (hasRouteId()) { + hash = (37 * hash) + ROUTE_ID_FIELD_NUMBER; + hash = (53 * hash) + getRouteId().hashCode(); + } + if (hasRouteType()) { + hash = (37 * hash) + ROUTE_TYPE_FIELD_NUMBER; + hash = (53 * hash) + getRouteType(); + } + if (hasTrip()) { + hash = (37 * hash) + TRIP_FIELD_NUMBER; + hash = (53 * hash) + getTrip().hashCode(); + } + if (hasStopId()) { + hash = (37 * hash) + STOP_ID_FIELD_NUMBER; + hash = (53 * hash) + getStopId().hashCode(); + } + if (hasDirectionId()) { + hash = (37 * hash) + DIRECTION_ID_FIELD_NUMBER; + hash = (53 * hash) + getDirectionId(); + } + hash = hashFields(hash, getExtensionFields()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + public static dev.katsute.onemta.GTFSRealtimeProto.EntitySelector parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -21444,6 +25530,124 @@ public Builder clearExtension( dev.katsute.onemta.GTFSRealtimeProto.EntitySelector, T> extension) { return super.clearExtension(extension); } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof dev.katsute.onemta.GTFSRealtimeProto.EntitySelector) { + return mergeFrom((dev.katsute.onemta.GTFSRealtimeProto.EntitySelector)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(dev.katsute.onemta.GTFSRealtimeProto.EntitySelector other) { + if (other == dev.katsute.onemta.GTFSRealtimeProto.EntitySelector.getDefaultInstance()) return this; + if (other.hasAgencyId()) { + agencyId_ = other.agencyId_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasRouteId()) { + routeId_ = other.routeId_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasRouteType()) { + setRouteType(other.getRouteType()); + } + if (other.hasTrip()) { + mergeTrip(other.getTrip()); + } + if (other.hasStopId()) { + stopId_ = other.stopId_; + bitField0_ |= 0x00000010; + onChanged(); + } + if (other.hasDirectionId()) { + setDirectionId(other.getDirectionId()); + } + this.mergeExtensionFields(other); + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + if (hasTrip()) { + if (!getTrip().isInitialized()) { + return false; + } + } + if (!extensionsAreInitialized()) { + return false; + } + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + agencyId_ = input.readBytes(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + routeId_ = input.readBytes(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: { + routeType_ = input.readInt32(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 34: { + input.readMessage( + getTripFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: { + stopId_ = input.readBytes(); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 48: { + directionId_ = input.readUInt32(); + bitField0_ |= 0x00000020; + break; + } // case 48 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } private int bitField0_; private java.lang.Object agencyId_ = ""; @@ -22362,6 +26566,106 @@ public java.lang.String getLanguage() { } } + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + if (!hasText()) { + memoizedIsInitialized = 0; + return false; + } + if (!extensionsAreInitialized()) { + memoizedIsInitialized = 0; + return false; + } + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + com.google.protobuf.GeneratedMessageV3 + .ExtendableMessage.ExtensionWriter + extensionWriter = newExtensionWriter(); + if (((bitField0_ & 0x00000001) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, text_); + } + if (((bitField0_ & 0x00000002) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, language_); + } + extensionWriter.writeUntil(10000, output); + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, text_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, language_); + } + size += extensionsSerializedSize(); + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof dev.katsute.onemta.GTFSRealtimeProto.TranslatedString.Translation)) { + return super.equals(obj); + } + dev.katsute.onemta.GTFSRealtimeProto.TranslatedString.Translation other = (dev.katsute.onemta.GTFSRealtimeProto.TranslatedString.Translation) obj; + + if (hasText() != other.hasText()) return false; + if (hasText()) { + if (!getText() + .equals(other.getText())) return false; + } + if (hasLanguage() != other.hasLanguage()) return false; + if (hasLanguage()) { + if (!getLanguage() + .equals(other.getLanguage())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + if (!getExtensionFields().equals(other.getExtensionFields())) + return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasText()) { + hash = (37 * hash) + TEXT_FIELD_NUMBER; + hash = (53 * hash) + getText().hashCode(); + } + if (hasLanguage()) { + hash = (37 * hash) + LANGUAGE_FIELD_NUMBER; + hash = (53 * hash) + getLanguage().hashCode(); + } + hash = hashFields(hash, getExtensionFields()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + public static dev.katsute.onemta.GTFSRealtimeProto.TranslatedString.Translation parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -22595,6 +26899,86 @@ public Builder clearExtension( dev.katsute.onemta.GTFSRealtimeProto.TranslatedString.Translation, T> extension) { return super.clearExtension(extension); } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof dev.katsute.onemta.GTFSRealtimeProto.TranslatedString.Translation) { + return mergeFrom((dev.katsute.onemta.GTFSRealtimeProto.TranslatedString.Translation)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(dev.katsute.onemta.GTFSRealtimeProto.TranslatedString.Translation other) { + if (other == dev.katsute.onemta.GTFSRealtimeProto.TranslatedString.Translation.getDefaultInstance()) return this; + if (other.hasText()) { + text_ = other.text_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasLanguage()) { + language_ = other.language_; + bitField0_ |= 0x00000002; + onChanged(); + } + this.mergeExtensionFields(other); + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + if (!hasText()) { + return false; + } + if (!extensionsAreInitialized()) { + return false; + } + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + text_ = input.readBytes(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + language_ = input.readBytes(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } private int bitField0_; private java.lang.Object text_ = ""; @@ -22940,6 +27324,91 @@ public dev.katsute.onemta.GTFSRealtimeProto.TranslatedString.TranslationOrBuilde return translation_.get(index); } + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + for (int i = 0; i < getTranslationCount(); i++) { + if (!getTranslation(i).isInitialized()) { + memoizedIsInitialized = 0; + return false; + } + } + if (!extensionsAreInitialized()) { + memoizedIsInitialized = 0; + return false; + } + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + com.google.protobuf.GeneratedMessageV3 + .ExtendableMessage.ExtensionWriter + extensionWriter = newExtensionWriter(); + for (int i = 0; i < translation_.size(); i++) { + output.writeMessage(1, translation_.get(i)); + } + extensionWriter.writeUntil(10000, output); + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < translation_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, translation_.get(i)); + } + size += extensionsSerializedSize(); + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof dev.katsute.onemta.GTFSRealtimeProto.TranslatedString)) { + return super.equals(obj); + } + dev.katsute.onemta.GTFSRealtimeProto.TranslatedString other = (dev.katsute.onemta.GTFSRealtimeProto.TranslatedString) obj; + + if (!getTranslationList() + .equals(other.getTranslationList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + if (!getExtensionFields().equals(other.getExtensionFields())) + return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getTranslationCount() > 0) { + hash = (37 * hash) + TRANSLATION_FIELD_NUMBER; + hash = (53 * hash) + getTranslationList().hashCode(); + } + hash = hashFields(hash, getExtensionFields()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + public static dev.katsute.onemta.GTFSRealtimeProto.TranslatedString parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -23194,6 +27663,107 @@ public Builder clearExtension( dev.katsute.onemta.GTFSRealtimeProto.TranslatedString, T> extension) { return super.clearExtension(extension); } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof dev.katsute.onemta.GTFSRealtimeProto.TranslatedString) { + return mergeFrom((dev.katsute.onemta.GTFSRealtimeProto.TranslatedString)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(dev.katsute.onemta.GTFSRealtimeProto.TranslatedString other) { + if (other == dev.katsute.onemta.GTFSRealtimeProto.TranslatedString.getDefaultInstance()) return this; + if (translationBuilder_ == null) { + if (!other.translation_.isEmpty()) { + if (translation_.isEmpty()) { + translation_ = other.translation_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureTranslationIsMutable(); + translation_.addAll(other.translation_); + } + onChanged(); + } + } else { + if (!other.translation_.isEmpty()) { + if (translationBuilder_.isEmpty()) { + translationBuilder_.dispose(); + translationBuilder_ = null; + translation_ = other.translation_; + bitField0_ = (bitField0_ & ~0x00000001); + translationBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getTranslationFieldBuilder() : null; + } else { + translationBuilder_.addAllMessages(other.translation_); + } + } + } + this.mergeExtensionFields(other); + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + for (int i = 0; i < getTranslationCount(); i++) { + if (!getTranslation(i).isInitialized()) { + return false; + } + } + if (!extensionsAreInitialized()) { + return false; + } + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + dev.katsute.onemta.GTFSRealtimeProto.TranslatedString.Translation m = + input.readMessage( + dev.katsute.onemta.GTFSRealtimeProto.TranslatedString.Translation.PARSER, + extensionRegistry); + if (translationBuilder_ == null) { + ensureTranslationIsMutable(); + translation_.add(m); + } else { + translationBuilder_.addMessage(m); + } + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } private int bitField0_; private java.util.List translation_ = @@ -23785,7 +28355,7 @@ public dev.katsute.onemta.GTFSRealtimeProto.TranslatedString getDefaultInstanceF "g.Translation\032=\n\013Translation\022\014\n\004text\030\001 \002" + "(\t\022\020\n\010language\030\002 \001(\t*\006\010\350\007\020\320\017*\006\010\250F\020\220N*\006\010\350" + "\007\020\320\017*\006\010\250F\020\220NB)\n\022dev.katsute.onemtaB\021GTFS" + - "RealtimeProtoH\002" + "RealtimeProtoH\001" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, diff --git a/src/main/java/dev/katsute/onemta/LIRRProto.java b/src/main/java/dev/katsute/onemta/LIRRProto.java index 4fd93b1..c2e2733 100644 --- a/src/main/java/dev/katsute/onemta/LIRRProto.java +++ b/src/main/java/dev/katsute/onemta/LIRRProto.java @@ -56,6 +56,60 @@ protected java.lang.Object newInstance( dev.katsute.onemta.LIRRProto.MtaStopTimeUpdate.class, dev.katsute.onemta.LIRRProto.MtaStopTimeUpdate.Builder.class); } + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof dev.katsute.onemta.LIRRProto.MtaStopTimeUpdate)) { + return super.equals(obj); + } + dev.katsute.onemta.LIRRProto.MtaStopTimeUpdate other = (dev.katsute.onemta.LIRRProto.MtaStopTimeUpdate) obj; + + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + public static dev.katsute.onemta.LIRRProto.MtaStopTimeUpdate parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -244,6 +298,59 @@ public Builder addRepeatedField( return super.addRepeatedField(field, value); } @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof dev.katsute.onemta.LIRRProto.MtaStopTimeUpdate) { + return mergeFrom((dev.katsute.onemta.LIRRProto.MtaStopTimeUpdate)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(dev.katsute.onemta.LIRRProto.MtaStopTimeUpdate other) { + if (other == dev.katsute.onemta.LIRRProto.MtaStopTimeUpdate.getDefaultInstance()) return this; + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); @@ -341,7 +448,7 @@ public dev.katsute.onemta.LIRRProto.MtaStopTimeUpdate getDefaultInstanceForType( "time\032\023gtfs-realtime.proto\"P\n\021MtaStopTime" + "Update2;\n\005track\022+.transit_realtime.TripU" + "pdate.StopTimeUpdate\030\355\007 \001(\tB!\n\022dev.katsu" + - "te.onemtaB\tLIRRProtoH\002" + "te.onemtaB\tLIRRProtoH\001" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, diff --git a/src/main/java/dev/katsute/onemta/MNRRProto.java b/src/main/java/dev/katsute/onemta/MNRRProto.java index 1cea690..5148052 100644 --- a/src/main/java/dev/katsute/onemta/MNRRProto.java +++ b/src/main/java/dev/katsute/onemta/MNRRProto.java @@ -215,6 +215,90 @@ public java.lang.String getTrainStatus() { } } + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, track_); + } + if (((bitField0_ & 0x00000002) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, trainStatus_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, track_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, trainStatus_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof dev.katsute.onemta.MNRRProto.MnrStopTimeUpdate)) { + return super.equals(obj); + } + dev.katsute.onemta.MNRRProto.MnrStopTimeUpdate other = (dev.katsute.onemta.MNRRProto.MnrStopTimeUpdate) obj; + + if (hasTrack() != other.hasTrack()) return false; + if (hasTrack()) { + if (!getTrack() + .equals(other.getTrack())) return false; + } + if (hasTrainStatus() != other.hasTrainStatus()) return false; + if (hasTrainStatus()) { + if (!getTrainStatus() + .equals(other.getTrainStatus())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasTrack()) { + hash = (37 * hash) + TRACK_FIELD_NUMBER; + hash = (53 * hash) + getTrack().hashCode(); + } + if (hasTrainStatus()) { + hash = (37 * hash) + TRAINSTATUS_FIELD_NUMBER; + hash = (53 * hash) + getTrainStatus().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + public static dev.katsute.onemta.MNRRProto.MnrStopTimeUpdate parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -420,6 +504,79 @@ public Builder addRepeatedField( java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof dev.katsute.onemta.MNRRProto.MnrStopTimeUpdate) { + return mergeFrom((dev.katsute.onemta.MNRRProto.MnrStopTimeUpdate)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(dev.katsute.onemta.MNRRProto.MnrStopTimeUpdate other) { + if (other == dev.katsute.onemta.MNRRProto.MnrStopTimeUpdate.getDefaultInstance()) return this; + if (other.hasTrack()) { + track_ = other.track_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasTrainStatus()) { + trainStatus_ = other.trainStatus_; + bitField0_ |= 0x00000002; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + track_ = input.readBytes(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + trainStatus_ = input.readBytes(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } private int bitField0_; private java.lang.Object track_ = ""; @@ -699,7 +856,7 @@ public dev.katsute.onemta.MNRRProto.MnrStopTimeUpdate getDefaultInstanceForType( "\t:o\n\024mnr_stop_time_update\022+.transit_real" + "time.TripUpdate.StopTimeUpdate\030\355\007 \001(\0132#." + "transit_realtime.MnrStopTimeUpdateB!\n\022de" + - "v.katsute.onemtaB\tMNRRProtoH\002" + "v.katsute.onemtaB\tMNRRProtoH\001" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, diff --git a/src/main/java/dev/katsute/onemta/MTARRProto.java b/src/main/java/dev/katsute/onemta/MTARRProto.java index acc6fa5..472c5eb 100644 --- a/src/main/java/dev/katsute/onemta/MTARRProto.java +++ b/src/main/java/dev/katsute/onemta/MTARRProto.java @@ -192,6 +192,90 @@ public java.lang.String getTrainStatus() { } } + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, track_); + } + if (((bitField0_ & 0x00000002) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, trainStatus_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, track_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, trainStatus_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof dev.katsute.onemta.MTARRProto.MtaRailroadStopTimeUpdate)) { + return super.equals(obj); + } + dev.katsute.onemta.MTARRProto.MtaRailroadStopTimeUpdate other = (dev.katsute.onemta.MTARRProto.MtaRailroadStopTimeUpdate) obj; + + if (hasTrack() != other.hasTrack()) return false; + if (hasTrack()) { + if (!getTrack() + .equals(other.getTrack())) return false; + } + if (hasTrainStatus() != other.hasTrainStatus()) return false; + if (hasTrainStatus()) { + if (!getTrainStatus() + .equals(other.getTrainStatus())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasTrack()) { + hash = (37 * hash) + TRACK_FIELD_NUMBER; + hash = (53 * hash) + getTrack().hashCode(); + } + if (hasTrainStatus()) { + hash = (37 * hash) + TRAINSTATUS_FIELD_NUMBER; + hash = (53 * hash) + getTrainStatus().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + public static dev.katsute.onemta.MTARRProto.MtaRailroadStopTimeUpdate parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -397,6 +481,79 @@ public Builder addRepeatedField( java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof dev.katsute.onemta.MTARRProto.MtaRailroadStopTimeUpdate) { + return mergeFrom((dev.katsute.onemta.MTARRProto.MtaRailroadStopTimeUpdate)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(dev.katsute.onemta.MTARRProto.MtaRailroadStopTimeUpdate other) { + if (other == dev.katsute.onemta.MTARRProto.MtaRailroadStopTimeUpdate.getDefaultInstance()) return this; + if (other.hasTrack()) { + track_ = other.track_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasTrainStatus()) { + trainStatus_ = other.trainStatus_; + bitField0_ |= 0x00000002; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + track_ = input.readBytes(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + trainStatus_ = input.readBytes(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } private int bitField0_; private java.lang.Object track_ = ""; @@ -1130,6 +1287,121 @@ public java.lang.String getCarriageClass() { return result == null ? dev.katsute.onemta.MTARRProto.MtaRailroadCarriageDetails.ToiletFacilities.UNKNOWN_TOILET_FACILITIES : result; } + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeInt32(1, bicyclesAllowed_); + } + if (((bitField0_ & 0x00000002) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, carriageClass_); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeEnum(3, quietCarriage_); + } + if (((bitField0_ & 0x00000008) != 0)) { + output.writeEnum(4, toiletFacilities_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(1, bicyclesAllowed_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, carriageClass_); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(3, quietCarriage_); + } + if (((bitField0_ & 0x00000008) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(4, toiletFacilities_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof dev.katsute.onemta.MTARRProto.MtaRailroadCarriageDetails)) { + return super.equals(obj); + } + dev.katsute.onemta.MTARRProto.MtaRailroadCarriageDetails other = (dev.katsute.onemta.MTARRProto.MtaRailroadCarriageDetails) obj; + + if (hasBicyclesAllowed() != other.hasBicyclesAllowed()) return false; + if (hasBicyclesAllowed()) { + if (getBicyclesAllowed() + != other.getBicyclesAllowed()) return false; + } + if (hasCarriageClass() != other.hasCarriageClass()) return false; + if (hasCarriageClass()) { + if (!getCarriageClass() + .equals(other.getCarriageClass())) return false; + } + if (hasQuietCarriage() != other.hasQuietCarriage()) return false; + if (hasQuietCarriage()) { + if (quietCarriage_ != other.quietCarriage_) return false; + } + if (hasToiletFacilities() != other.hasToiletFacilities()) return false; + if (hasToiletFacilities()) { + if (toiletFacilities_ != other.toiletFacilities_) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasBicyclesAllowed()) { + hash = (37 * hash) + BICYCLES_ALLOWED_FIELD_NUMBER; + hash = (53 * hash) + getBicyclesAllowed(); + } + if (hasCarriageClass()) { + hash = (37 * hash) + CARRIAGE_CLASS_FIELD_NUMBER; + hash = (53 * hash) + getCarriageClass().hashCode(); + } + if (hasQuietCarriage()) { + hash = (37 * hash) + QUIET_CARRIAGE_FIELD_NUMBER; + hash = (53 * hash) + quietCarriage_; + } + if (hasToiletFacilities()) { + hash = (37 * hash) + TOILET_FACILITIES_FIELD_NUMBER; + hash = (53 * hash) + toiletFacilities_; + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + public static dev.katsute.onemta.MTARRProto.MtaRailroadCarriageDetails parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -1345,6 +1617,107 @@ public Builder addRepeatedField( java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof dev.katsute.onemta.MTARRProto.MtaRailroadCarriageDetails) { + return mergeFrom((dev.katsute.onemta.MTARRProto.MtaRailroadCarriageDetails)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(dev.katsute.onemta.MTARRProto.MtaRailroadCarriageDetails other) { + if (other == dev.katsute.onemta.MTARRProto.MtaRailroadCarriageDetails.getDefaultInstance()) return this; + if (other.hasBicyclesAllowed()) { + setBicyclesAllowed(other.getBicyclesAllowed()); + } + if (other.hasCarriageClass()) { + carriageClass_ = other.carriageClass_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasQuietCarriage()) { + setQuietCarriage(other.getQuietCarriage()); + } + if (other.hasToiletFacilities()) { + setToiletFacilities(other.getToiletFacilities()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + bicyclesAllowed_ = input.readInt32(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: { + carriageClass_ = input.readBytes(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: { + int tmpRaw = input.readEnum(); + dev.katsute.onemta.MTARRProto.MtaRailroadCarriageDetails.QuietCarriage tmpValue = + dev.katsute.onemta.MTARRProto.MtaRailroadCarriageDetails.QuietCarriage.forNumber(tmpRaw); + if (tmpValue == null) { + mergeUnknownVarintField(3, tmpRaw); + } else { + quietCarriage_ = tmpRaw; + bitField0_ |= 0x00000004; + } + break; + } // case 24 + case 32: { + int tmpRaw = input.readEnum(); + dev.katsute.onemta.MTARRProto.MtaRailroadCarriageDetails.ToiletFacilities tmpValue = + dev.katsute.onemta.MTARRProto.MtaRailroadCarriageDetails.ToiletFacilities.forNumber(tmpRaw); + if (tmpValue == null) { + mergeUnknownVarintField(4, tmpRaw); + } else { + toiletFacilities_ = tmpRaw; + bitField0_ |= 0x00000008; + } + break; + } // case 32 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } private int bitField0_; private int bicyclesAllowed_ ; @@ -1721,7 +2094,7 @@ public dev.katsute.onemta.MTARRProto.MtaRailroadCarriageDetails getDefaultInstan "ealtime.VehiclePosition.CarriageDetails\030" + "\355\007 \001(\0132,.transit_realtime.MtaRailroadCar" + "riageDetailsB\"\n\022dev.katsute.onemtaB\nMTAR" + - "RProtoH\002" + "RProtoH\001" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, diff --git a/src/main/java/dev/katsute/onemta/NYCTSubwayProto.java b/src/main/java/dev/katsute/onemta/NYCTSubwayProto.java index 8d1d4c2..3318db6 100644 --- a/src/main/java/dev/katsute/onemta/NYCTSubwayProto.java +++ b/src/main/java/dev/katsute/onemta/NYCTSubwayProto.java @@ -221,6 +221,97 @@ public dev.katsute.onemta.GTFSRealtimeProto.TimeRangeOrBuilder getReplacementPer return replacementPeriod_ == null ? dev.katsute.onemta.GTFSRealtimeProto.TimeRange.getDefaultInstance() : replacementPeriod_; } + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + if (hasReplacementPeriod()) { + if (!getReplacementPeriod().isInitialized()) { + memoizedIsInitialized = 0; + return false; + } + } + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, routeId_); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getReplacementPeriod()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, routeId_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getReplacementPeriod()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof dev.katsute.onemta.NYCTSubwayProto.TripReplacementPeriod)) { + return super.equals(obj); + } + dev.katsute.onemta.NYCTSubwayProto.TripReplacementPeriod other = (dev.katsute.onemta.NYCTSubwayProto.TripReplacementPeriod) obj; + + if (hasRouteId() != other.hasRouteId()) return false; + if (hasRouteId()) { + if (!getRouteId() + .equals(other.getRouteId())) return false; + } + if (hasReplacementPeriod() != other.hasReplacementPeriod()) return false; + if (hasReplacementPeriod()) { + if (!getReplacementPeriod() + .equals(other.getReplacementPeriod())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasRouteId()) { + hash = (37 * hash) + ROUTE_ID_FIELD_NUMBER; + hash = (53 * hash) + getRouteId().hashCode(); + } + if (hasReplacementPeriod()) { + hash = (37 * hash) + REPLACEMENT_PERIOD_FIELD_NUMBER; + hash = (53 * hash) + getReplacementPeriod().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + public static dev.katsute.onemta.NYCTSubwayProto.TripReplacementPeriod parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -438,6 +529,84 @@ public Builder addRepeatedField( java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof dev.katsute.onemta.NYCTSubwayProto.TripReplacementPeriod) { + return mergeFrom((dev.katsute.onemta.NYCTSubwayProto.TripReplacementPeriod)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(dev.katsute.onemta.NYCTSubwayProto.TripReplacementPeriod other) { + if (other == dev.katsute.onemta.NYCTSubwayProto.TripReplacementPeriod.getDefaultInstance()) return this; + if (other.hasRouteId()) { + routeId_ = other.routeId_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasReplacementPeriod()) { + mergeReplacementPeriod(other.getReplacementPeriod()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + if (hasReplacementPeriod()) { + if (!getReplacementPeriod().isInitialized()) { + return false; + } + } + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + routeId_ = input.readBytes(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getReplacementPeriodFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } private int bitField0_; private java.lang.Object routeId_ = ""; @@ -1089,6 +1258,98 @@ public dev.katsute.onemta.NYCTSubwayProto.TripReplacementPeriodOrBuilder getTrip return tripReplacementPeriod_.get(index); } + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + if (!hasNyctSubwayVersion()) { + memoizedIsInitialized = 0; + return false; + } + for (int i = 0; i < getTripReplacementPeriodCount(); i++) { + if (!getTripReplacementPeriod(i).isInitialized()) { + memoizedIsInitialized = 0; + return false; + } + } + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, nyctSubwayVersion_); + } + for (int i = 0; i < tripReplacementPeriod_.size(); i++) { + output.writeMessage(2, tripReplacementPeriod_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, nyctSubwayVersion_); + } + for (int i = 0; i < tripReplacementPeriod_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, tripReplacementPeriod_.get(i)); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof dev.katsute.onemta.NYCTSubwayProto.NyctFeedHeader)) { + return super.equals(obj); + } + dev.katsute.onemta.NYCTSubwayProto.NyctFeedHeader other = (dev.katsute.onemta.NYCTSubwayProto.NyctFeedHeader) obj; + + if (hasNyctSubwayVersion() != other.hasNyctSubwayVersion()) return false; + if (hasNyctSubwayVersion()) { + if (!getNyctSubwayVersion() + .equals(other.getNyctSubwayVersion())) return false; + } + if (!getTripReplacementPeriodList() + .equals(other.getTripReplacementPeriodList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasNyctSubwayVersion()) { + hash = (37 * hash) + NYCT_SUBWAY_VERSION_FIELD_NUMBER; + hash = (53 * hash) + getNyctSubwayVersion().hashCode(); + } + if (getTripReplacementPeriodCount() > 0) { + hash = (37 * hash) + TRIP_REPLACEMENT_PERIOD_FIELD_NUMBER; + hash = (53 * hash) + getTripReplacementPeriodList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + public static dev.katsute.onemta.NYCTSubwayProto.NyctFeedHeader parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -1313,6 +1574,116 @@ public Builder addRepeatedField( java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof dev.katsute.onemta.NYCTSubwayProto.NyctFeedHeader) { + return mergeFrom((dev.katsute.onemta.NYCTSubwayProto.NyctFeedHeader)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(dev.katsute.onemta.NYCTSubwayProto.NyctFeedHeader other) { + if (other == dev.katsute.onemta.NYCTSubwayProto.NyctFeedHeader.getDefaultInstance()) return this; + if (other.hasNyctSubwayVersion()) { + nyctSubwayVersion_ = other.nyctSubwayVersion_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (tripReplacementPeriodBuilder_ == null) { + if (!other.tripReplacementPeriod_.isEmpty()) { + if (tripReplacementPeriod_.isEmpty()) { + tripReplacementPeriod_ = other.tripReplacementPeriod_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureTripReplacementPeriodIsMutable(); + tripReplacementPeriod_.addAll(other.tripReplacementPeriod_); + } + onChanged(); + } + } else { + if (!other.tripReplacementPeriod_.isEmpty()) { + if (tripReplacementPeriodBuilder_.isEmpty()) { + tripReplacementPeriodBuilder_.dispose(); + tripReplacementPeriodBuilder_ = null; + tripReplacementPeriod_ = other.tripReplacementPeriod_; + bitField0_ = (bitField0_ & ~0x00000002); + tripReplacementPeriodBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getTripReplacementPeriodFieldBuilder() : null; + } else { + tripReplacementPeriodBuilder_.addAllMessages(other.tripReplacementPeriod_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + if (!hasNyctSubwayVersion()) { + return false; + } + for (int i = 0; i < getTripReplacementPeriodCount(); i++) { + if (!getTripReplacementPeriod(i).isInitialized()) { + return false; + } + } + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + nyctSubwayVersion_ = input.readBytes(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + dev.katsute.onemta.NYCTSubwayProto.TripReplacementPeriod m = + input.readMessage( + dev.katsute.onemta.NYCTSubwayProto.TripReplacementPeriod.PARSER, + extensionRegistry); + if (tripReplacementPeriodBuilder_ == null) { + ensureTripReplacementPeriodIsMutable(); + tripReplacementPeriod_.add(m); + } else { + tripReplacementPeriodBuilder_.addMessage(m); + } + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } private int bitField0_; private java.lang.Object nyctSubwayVersion_ = ""; @@ -2461,6 +2832,107 @@ public boolean getIsAssigned() { return result == null ? dev.katsute.onemta.NYCTSubwayProto.NyctTripDescriptor.Direction.NORTH : result; } + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, trainId_); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeBool(2, isAssigned_); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeEnum(3, direction_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, trainId_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(2, isAssigned_); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(3, direction_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof dev.katsute.onemta.NYCTSubwayProto.NyctTripDescriptor)) { + return super.equals(obj); + } + dev.katsute.onemta.NYCTSubwayProto.NyctTripDescriptor other = (dev.katsute.onemta.NYCTSubwayProto.NyctTripDescriptor) obj; + + if (hasTrainId() != other.hasTrainId()) return false; + if (hasTrainId()) { + if (!getTrainId() + .equals(other.getTrainId())) return false; + } + if (hasIsAssigned() != other.hasIsAssigned()) return false; + if (hasIsAssigned()) { + if (getIsAssigned() + != other.getIsAssigned()) return false; + } + if (hasDirection() != other.hasDirection()) return false; + if (hasDirection()) { + if (direction_ != other.direction_) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasTrainId()) { + hash = (37 * hash) + TRAIN_ID_FIELD_NUMBER; + hash = (53 * hash) + getTrainId().hashCode(); + } + if (hasIsAssigned()) { + hash = (37 * hash) + IS_ASSIGNED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getIsAssigned()); + } + if (hasDirection()) { + hash = (37 * hash) + DIRECTION_FIELD_NUMBER; + hash = (53 * hash) + direction_; + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + public static dev.katsute.onemta.NYCTSubwayProto.NyctTripDescriptor parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -2675,6 +3147,92 @@ public Builder addRepeatedField( java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof dev.katsute.onemta.NYCTSubwayProto.NyctTripDescriptor) { + return mergeFrom((dev.katsute.onemta.NYCTSubwayProto.NyctTripDescriptor)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(dev.katsute.onemta.NYCTSubwayProto.NyctTripDescriptor other) { + if (other == dev.katsute.onemta.NYCTSubwayProto.NyctTripDescriptor.getDefaultInstance()) return this; + if (other.hasTrainId()) { + trainId_ = other.trainId_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasIsAssigned()) { + setIsAssigned(other.getIsAssigned()); + } + if (other.hasDirection()) { + setDirection(other.getDirection()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + trainId_ = input.readBytes(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: { + isAssigned_ = input.readBool(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 24: { + int tmpRaw = input.readEnum(); + dev.katsute.onemta.NYCTSubwayProto.NyctTripDescriptor.Direction tmpValue = + dev.katsute.onemta.NYCTSubwayProto.NyctTripDescriptor.Direction.forNumber(tmpRaw); + if (tmpValue == null) { + mergeUnknownVarintField(3, tmpRaw); + } else { + direction_ = tmpRaw; + bitField0_ |= 0x00000004; + } + break; + } // case 24 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } private int bitField0_; private java.lang.Object trainId_ = ""; @@ -3531,6 +4089,90 @@ public java.lang.String getActualTrack() { } } + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, scheduledTrack_); + } + if (((bitField0_ & 0x00000002) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, actualTrack_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, scheduledTrack_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, actualTrack_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof dev.katsute.onemta.NYCTSubwayProto.NyctStopTimeUpdate)) { + return super.equals(obj); + } + dev.katsute.onemta.NYCTSubwayProto.NyctStopTimeUpdate other = (dev.katsute.onemta.NYCTSubwayProto.NyctStopTimeUpdate) obj; + + if (hasScheduledTrack() != other.hasScheduledTrack()) return false; + if (hasScheduledTrack()) { + if (!getScheduledTrack() + .equals(other.getScheduledTrack())) return false; + } + if (hasActualTrack() != other.hasActualTrack()) return false; + if (hasActualTrack()) { + if (!getActualTrack() + .equals(other.getActualTrack())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasScheduledTrack()) { + hash = (37 * hash) + SCHEDULED_TRACK_FIELD_NUMBER; + hash = (53 * hash) + getScheduledTrack().hashCode(); + } + if (hasActualTrack()) { + hash = (37 * hash) + ACTUAL_TRACK_FIELD_NUMBER; + hash = (53 * hash) + getActualTrack().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + public static dev.katsute.onemta.NYCTSubwayProto.NyctStopTimeUpdate parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -3740,6 +4382,79 @@ public Builder addRepeatedField( java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof dev.katsute.onemta.NYCTSubwayProto.NyctStopTimeUpdate) { + return mergeFrom((dev.katsute.onemta.NYCTSubwayProto.NyctStopTimeUpdate)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(dev.katsute.onemta.NYCTSubwayProto.NyctStopTimeUpdate other) { + if (other == dev.katsute.onemta.NYCTSubwayProto.NyctStopTimeUpdate.getDefaultInstance()) return this; + if (other.hasScheduledTrack()) { + scheduledTrack_ = other.scheduledTrack_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasActualTrack()) { + actualTrack_ = other.actualTrack_; + bitField0_ |= 0x00000002; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + scheduledTrack_ = input.readBytes(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + actualTrack_ = input.readBytes(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } private int bitField0_; private java.lang.Object scheduledTrack_ = ""; @@ -4252,7 +4967,7 @@ public dev.katsute.onemta.NYCTSubwayProto.NyctStopTimeUpdate getDefaultInstanceF ".transit_realtime.TripUpdate.StopTimeUpd" + "ate\030\351\007 \001(\0132$.transit_realtime.NyctStopTi" + "meUpdateB\'\n\022dev.katsute.onemtaB\017NYCTSubw" + - "ayProtoH\002" + "ayProtoH\001" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, diff --git a/src/main/java/dev/katsute/onemta/OneBusAwayProto.java b/src/main/java/dev/katsute/onemta/OneBusAwayProto.java index 2ccc1e3..63d1a6f 100644 --- a/src/main/java/dev/katsute/onemta/OneBusAwayProto.java +++ b/src/main/java/dev/katsute/onemta/OneBusAwayProto.java @@ -182,6 +182,93 @@ public int getIncrementalHeartbeatInterval() { return incrementalHeartbeatInterval_; } + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeUInt64(1, incrementalIndex_); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeUInt32(2, incrementalHeartbeatInterval_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeUInt64Size(1, incrementalIndex_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(2, incrementalHeartbeatInterval_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof dev.katsute.onemta.OneBusAwayProto.OneBusAwayFeedHeader)) { + return super.equals(obj); + } + dev.katsute.onemta.OneBusAwayProto.OneBusAwayFeedHeader other = (dev.katsute.onemta.OneBusAwayProto.OneBusAwayFeedHeader) obj; + + if (hasIncrementalIndex() != other.hasIncrementalIndex()) return false; + if (hasIncrementalIndex()) { + if (getIncrementalIndex() + != other.getIncrementalIndex()) return false; + } + if (hasIncrementalHeartbeatInterval() != other.hasIncrementalHeartbeatInterval()) return false; + if (hasIncrementalHeartbeatInterval()) { + if (getIncrementalHeartbeatInterval() + != other.getIncrementalHeartbeatInterval()) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasIncrementalIndex()) { + hash = (37 * hash) + INCREMENTAL_INDEX_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getIncrementalIndex()); + } + if (hasIncrementalHeartbeatInterval()) { + hash = (37 * hash) + INCREMENTAL_HEARTBEAT_INTERVAL_FIELD_NUMBER; + hash = (53 * hash) + getIncrementalHeartbeatInterval(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + public static dev.katsute.onemta.OneBusAwayProto.OneBusAwayFeedHeader parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -387,6 +474,75 @@ public Builder addRepeatedField( java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof dev.katsute.onemta.OneBusAwayProto.OneBusAwayFeedHeader) { + return mergeFrom((dev.katsute.onemta.OneBusAwayProto.OneBusAwayFeedHeader)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(dev.katsute.onemta.OneBusAwayProto.OneBusAwayFeedHeader other) { + if (other == dev.katsute.onemta.OneBusAwayProto.OneBusAwayFeedHeader.getDefaultInstance()) return this; + if (other.hasIncrementalIndex()) { + setIncrementalIndex(other.getIncrementalIndex()); + } + if (other.hasIncrementalHeartbeatInterval()) { + setIncrementalHeartbeatInterval(other.getIncrementalHeartbeatInterval()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + incrementalIndex_ = input.readUInt64(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: { + incrementalHeartbeatInterval_ = input.readUInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } private int bitField0_; private long incrementalIndex_ ; @@ -722,6 +878,75 @@ public java.lang.String getSource() { } } + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, source_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, source_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof dev.katsute.onemta.OneBusAwayProto.OneBusAwayFeedEntity)) { + return super.equals(obj); + } + dev.katsute.onemta.OneBusAwayProto.OneBusAwayFeedEntity other = (dev.katsute.onemta.OneBusAwayProto.OneBusAwayFeedEntity) obj; + + if (hasSource() != other.hasSource()) return false; + if (hasSource()) { + if (!getSource() + .equals(other.getSource())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasSource()) { + hash = (37 * hash) + SOURCE_FIELD_NUMBER; + hash = (53 * hash) + getSource().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + public static dev.katsute.onemta.OneBusAwayProto.OneBusAwayFeedEntity parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -922,6 +1147,69 @@ public Builder addRepeatedField( java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof dev.katsute.onemta.OneBusAwayProto.OneBusAwayFeedEntity) { + return mergeFrom((dev.katsute.onemta.OneBusAwayProto.OneBusAwayFeedEntity)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(dev.katsute.onemta.OneBusAwayProto.OneBusAwayFeedEntity other) { + if (other == dev.katsute.onemta.OneBusAwayProto.OneBusAwayFeedEntity.getDefaultInstance()) return this; + if (other.hasSource()) { + source_ = other.source_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + source_ = input.readBytes(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } private int bitField0_; private java.lang.Object source_ = ""; @@ -1494,6 +1782,140 @@ public boolean getIsEstimatedRealtime() { return isEstimatedRealtime_; } + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeInt32(1, delay_); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeUInt64(2, timestamp_); + } + if (((bitField0_ & 0x00000004) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, tripHeadsign_); + } + if (((bitField0_ & 0x00000008) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, tripDirection_); + } + if (((bitField0_ & 0x00000010) != 0)) { + output.writeBool(5, isEstimatedRealtime_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(1, delay_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeUInt64Size(2, timestamp_); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, tripHeadsign_); + } + if (((bitField0_ & 0x00000008) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, tripDirection_); + } + if (((bitField0_ & 0x00000010) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(5, isEstimatedRealtime_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof dev.katsute.onemta.OneBusAwayProto.OneBusAwayTripUpdate)) { + return super.equals(obj); + } + dev.katsute.onemta.OneBusAwayProto.OneBusAwayTripUpdate other = (dev.katsute.onemta.OneBusAwayProto.OneBusAwayTripUpdate) obj; + + if (hasDelay() != other.hasDelay()) return false; + if (hasDelay()) { + if (getDelay() + != other.getDelay()) return false; + } + if (hasTimestamp() != other.hasTimestamp()) return false; + if (hasTimestamp()) { + if (getTimestamp() + != other.getTimestamp()) return false; + } + if (hasTripHeadsign() != other.hasTripHeadsign()) return false; + if (hasTripHeadsign()) { + if (!getTripHeadsign() + .equals(other.getTripHeadsign())) return false; + } + if (hasTripDirection() != other.hasTripDirection()) return false; + if (hasTripDirection()) { + if (!getTripDirection() + .equals(other.getTripDirection())) return false; + } + if (hasIsEstimatedRealtime() != other.hasIsEstimatedRealtime()) return false; + if (hasIsEstimatedRealtime()) { + if (getIsEstimatedRealtime() + != other.getIsEstimatedRealtime()) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasDelay()) { + hash = (37 * hash) + DELAY_FIELD_NUMBER; + hash = (53 * hash) + getDelay(); + } + if (hasTimestamp()) { + hash = (37 * hash) + TIMESTAMP_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getTimestamp()); + } + if (hasTripHeadsign()) { + hash = (37 * hash) + TRIPHEADSIGN_FIELD_NUMBER; + hash = (53 * hash) + getTripHeadsign().hashCode(); + } + if (hasTripDirection()) { + hash = (37 * hash) + TRIPDIRECTION_FIELD_NUMBER; + hash = (53 * hash) + getTripDirection().hashCode(); + } + if (hasIsEstimatedRealtime()) { + hash = (37 * hash) + IS_ESTIMATED_REALTIME_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getIsEstimatedRealtime()); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + public static dev.katsute.onemta.OneBusAwayProto.OneBusAwayTripUpdate parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -1714,6 +2136,103 @@ public Builder addRepeatedField( java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof dev.katsute.onemta.OneBusAwayProto.OneBusAwayTripUpdate) { + return mergeFrom((dev.katsute.onemta.OneBusAwayProto.OneBusAwayTripUpdate)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(dev.katsute.onemta.OneBusAwayProto.OneBusAwayTripUpdate other) { + if (other == dev.katsute.onemta.OneBusAwayProto.OneBusAwayTripUpdate.getDefaultInstance()) return this; + if (other.hasDelay()) { + setDelay(other.getDelay()); + } + if (other.hasTimestamp()) { + setTimestamp(other.getTimestamp()); + } + if (other.hasTripHeadsign()) { + tripHeadsign_ = other.tripHeadsign_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (other.hasTripDirection()) { + tripDirection_ = other.tripDirection_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (other.hasIsEstimatedRealtime()) { + setIsEstimatedRealtime(other.getIsEstimatedRealtime()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + delay_ = input.readInt32(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: { + timestamp_ = input.readUInt64(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: { + tripHeadsign_ = input.readBytes(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + tripDirection_ = input.readBytes(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 40: { + isEstimatedRealtime_ = input.readBool(); + bitField0_ |= 0x00000010; + break; + } // case 40 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } private int bitField0_; private int delay_ ; @@ -2305,6 +2824,75 @@ public java.lang.String getStopHeadsign() { } } + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, stopHeadsign_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, stopHeadsign_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof dev.katsute.onemta.OneBusAwayProto.OneBusAwayStopTimeUpdate)) { + return super.equals(obj); + } + dev.katsute.onemta.OneBusAwayProto.OneBusAwayStopTimeUpdate other = (dev.katsute.onemta.OneBusAwayProto.OneBusAwayStopTimeUpdate) obj; + + if (hasStopHeadsign() != other.hasStopHeadsign()) return false; + if (hasStopHeadsign()) { + if (!getStopHeadsign() + .equals(other.getStopHeadsign())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasStopHeadsign()) { + hash = (37 * hash) + STOPHEADSIGN_FIELD_NUMBER; + hash = (53 * hash) + getStopHeadsign().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + public static dev.katsute.onemta.OneBusAwayProto.OneBusAwayStopTimeUpdate parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -2505,6 +3093,69 @@ public Builder addRepeatedField( java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof dev.katsute.onemta.OneBusAwayProto.OneBusAwayStopTimeUpdate) { + return mergeFrom((dev.katsute.onemta.OneBusAwayProto.OneBusAwayStopTimeUpdate)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(dev.katsute.onemta.OneBusAwayProto.OneBusAwayStopTimeUpdate other) { + if (other == dev.katsute.onemta.OneBusAwayProto.OneBusAwayStopTimeUpdate.getDefaultInstance()) return this; + if (other.hasStopHeadsign()) { + stopHeadsign_ = other.stopHeadsign_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + stopHeadsign_ = input.readBytes(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } private int bitField0_; private java.lang.Object stopHeadsign_ = ""; @@ -2756,6 +3407,75 @@ public java.lang.String getElevatorId() { } } + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, elevatorId_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, elevatorId_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof dev.katsute.onemta.OneBusAwayProto.OneBusAwayEntitySelector)) { + return super.equals(obj); + } + dev.katsute.onemta.OneBusAwayProto.OneBusAwayEntitySelector other = (dev.katsute.onemta.OneBusAwayProto.OneBusAwayEntitySelector) obj; + + if (hasElevatorId() != other.hasElevatorId()) return false; + if (hasElevatorId()) { + if (!getElevatorId() + .equals(other.getElevatorId())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasElevatorId()) { + hash = (37 * hash) + ELEVATORID_FIELD_NUMBER; + hash = (53 * hash) + getElevatorId().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + public static dev.katsute.onemta.OneBusAwayProto.OneBusAwayEntitySelector parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -2956,6 +3676,69 @@ public Builder addRepeatedField( java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof dev.katsute.onemta.OneBusAwayProto.OneBusAwayEntitySelector) { + return mergeFrom((dev.katsute.onemta.OneBusAwayProto.OneBusAwayEntitySelector)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(dev.katsute.onemta.OneBusAwayProto.OneBusAwayEntitySelector other) { + if (other == dev.katsute.onemta.OneBusAwayProto.OneBusAwayEntitySelector.getDefaultInstance()) return this; + if (other.hasElevatorId()) { + elevatorId_ = other.elevatorId_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + elevatorId_ = input.readBytes(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } private int bitField0_; private java.lang.Object elevatorId_ = ""; @@ -3235,6 +4018,77 @@ public java.lang.String getVehicleFeature(int index) { return vehicleFeature_.getByteString(index); } + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + for (int i = 0; i < vehicleFeature_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, vehicleFeature_.getRaw(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + { + int dataSize = 0; + for (int i = 0; i < vehicleFeature_.size(); i++) { + dataSize += computeStringSizeNoTag(vehicleFeature_.getRaw(i)); + } + size += dataSize; + size += 1 * getVehicleFeatureList().size(); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof dev.katsute.onemta.OneBusAwayProto.OneBusAwayVehicleDescriptor)) { + return super.equals(obj); + } + dev.katsute.onemta.OneBusAwayProto.OneBusAwayVehicleDescriptor other = (dev.katsute.onemta.OneBusAwayProto.OneBusAwayVehicleDescriptor) obj; + + if (!getVehicleFeatureList() + .equals(other.getVehicleFeatureList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getVehicleFeatureCount() > 0) { + hash = (37 * hash) + VEHICLEFEATURE_FIELD_NUMBER; + hash = (53 * hash) + getVehicleFeatureList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + public static dev.katsute.onemta.OneBusAwayProto.OneBusAwayVehicleDescriptor parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -3434,6 +4288,75 @@ public Builder addRepeatedField( java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof dev.katsute.onemta.OneBusAwayProto.OneBusAwayVehicleDescriptor) { + return mergeFrom((dev.katsute.onemta.OneBusAwayProto.OneBusAwayVehicleDescriptor)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(dev.katsute.onemta.OneBusAwayProto.OneBusAwayVehicleDescriptor other) { + if (other == dev.katsute.onemta.OneBusAwayProto.OneBusAwayVehicleDescriptor.getDefaultInstance()) return this; + if (!other.vehicleFeature_.isEmpty()) { + if (vehicleFeature_.isEmpty()) { + vehicleFeature_ = other.vehicleFeature_; + bitField0_ |= 0x00000001; + } else { + ensureVehicleFeatureIsMutable(); + vehicleFeature_.addAll(other.vehicleFeature_); + } + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + com.google.protobuf.ByteString bs = input.readBytes(); + ensureVehicleFeatureIsMutable(); + vehicleFeature_.add(bs); + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } private int bitField0_; private com.google.protobuf.LazyStringArrayList vehicleFeature_ = @@ -3778,7 +4701,7 @@ public dev.katsute.onemta.OneBusAwayProto.OneBusAwayVehicleDescriptor getDefault "criptor\022#.transit_realtime.VehicleDescri" + "ptor\030\350\007 \001(\0132-.transit_realtime.OneBusAwa" + "yVehicleDescriptorB\'\n\022dev.katsute.onemta" + - "B\017OneBusAwayProtoH\002" + "B\017OneBusAwayProtoH\001" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, diff --git a/src/main/java/dev/katsute/onemta/ServiceStatusProto.java b/src/main/java/dev/katsute/onemta/ServiceStatusProto.java index 2465506..9a3a062 100644 --- a/src/main/java/dev/katsute/onemta/ServiceStatusProto.java +++ b/src/main/java/dev/katsute/onemta/ServiceStatusProto.java @@ -160,6 +160,79 @@ public java.lang.String getMercuryVersion() { } } + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + if (!hasMercuryVersion()) { + memoizedIsInitialized = 0; + return false; + } + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, mercuryVersion_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, mercuryVersion_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof dev.katsute.onemta.ServiceStatusProto.MercuryFeedHeader)) { + return super.equals(obj); + } + dev.katsute.onemta.ServiceStatusProto.MercuryFeedHeader other = (dev.katsute.onemta.ServiceStatusProto.MercuryFeedHeader) obj; + + if (hasMercuryVersion() != other.hasMercuryVersion()) return false; + if (hasMercuryVersion()) { + if (!getMercuryVersion() + .equals(other.getMercuryVersion())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasMercuryVersion()) { + hash = (37 * hash) + MERCURY_VERSION_FIELD_NUMBER; + hash = (53 * hash) + getMercuryVersion().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + public static dev.katsute.onemta.ServiceStatusProto.MercuryFeedHeader parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -364,6 +437,72 @@ public Builder addRepeatedField( java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof dev.katsute.onemta.ServiceStatusProto.MercuryFeedHeader) { + return mergeFrom((dev.katsute.onemta.ServiceStatusProto.MercuryFeedHeader)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(dev.katsute.onemta.ServiceStatusProto.MercuryFeedHeader other) { + if (other == dev.katsute.onemta.ServiceStatusProto.MercuryFeedHeader.getDefaultInstance()) return this; + if (other.hasMercuryVersion()) { + mercuryVersion_ = other.mercuryVersion_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + if (!hasMercuryVersion()) { + return false; + } + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + mercuryVersion_ = input.readBytes(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } private int bitField0_; private java.lang.Object mercuryVersion_ = ""; @@ -660,6 +799,108 @@ public dev.katsute.onemta.GTFSRealtimeProto.TranslatedStringOrBuilder getNotesOr return notes_ == null ? dev.katsute.onemta.GTFSRealtimeProto.TranslatedString.getDefaultInstance() : notes_; } + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + if (!hasAffectedEntity()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasNotes()) { + memoizedIsInitialized = 0; + return false; + } + if (!getAffectedEntity().isInitialized()) { + memoizedIsInitialized = 0; + return false; + } + if (!getNotes().isInitialized()) { + memoizedIsInitialized = 0; + return false; + } + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getAffectedEntity()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getNotes()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getAffectedEntity()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getNotes()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof dev.katsute.onemta.ServiceStatusProto.MercuryStationAlternative)) { + return super.equals(obj); + } + dev.katsute.onemta.ServiceStatusProto.MercuryStationAlternative other = (dev.katsute.onemta.ServiceStatusProto.MercuryStationAlternative) obj; + + if (hasAffectedEntity() != other.hasAffectedEntity()) return false; + if (hasAffectedEntity()) { + if (!getAffectedEntity() + .equals(other.getAffectedEntity())) return false; + } + if (hasNotes() != other.hasNotes()) return false; + if (hasNotes()) { + if (!getNotes() + .equals(other.getNotes())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasAffectedEntity()) { + hash = (37 * hash) + AFFECTED_ENTITY_FIELD_NUMBER; + hash = (53 * hash) + getAffectedEntity().hashCode(); + } + if (hasNotes()) { + hash = (37 * hash) + NOTES_FIELD_NUMBER; + hash = (53 * hash) + getNotes().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + public static dev.katsute.onemta.ServiceStatusProto.MercuryStationAlternative parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -884,6 +1125,91 @@ public Builder addRepeatedField( java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof dev.katsute.onemta.ServiceStatusProto.MercuryStationAlternative) { + return mergeFrom((dev.katsute.onemta.ServiceStatusProto.MercuryStationAlternative)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(dev.katsute.onemta.ServiceStatusProto.MercuryStationAlternative other) { + if (other == dev.katsute.onemta.ServiceStatusProto.MercuryStationAlternative.getDefaultInstance()) return this; + if (other.hasAffectedEntity()) { + mergeAffectedEntity(other.getAffectedEntity()); + } + if (other.hasNotes()) { + mergeNotes(other.getNotes()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + if (!hasAffectedEntity()) { + return false; + } + if (!hasNotes()) { + return false; + } + if (!getAffectedEntity().isInitialized()) { + return false; + } + if (!getNotes().isInitialized()) { + return false; + } + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + input.readMessage( + getAffectedEntityFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getNotesFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } private int bitField0_; private dev.katsute.onemta.GTFSRealtimeProto.EntitySelector affectedEntity_; @@ -1946,6 +2272,303 @@ public java.lang.String getCloneId() { } } + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + if (!hasCreatedAt()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasUpdatedAt()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasAlertType()) { + memoizedIsInitialized = 0; + return false; + } + for (int i = 0; i < getStationAlternativeCount(); i++) { + if (!getStationAlternative(i).isInitialized()) { + memoizedIsInitialized = 0; + return false; + } + } + if (hasHumanReadableActivePeriod()) { + if (!getHumanReadableActivePeriod().isInitialized()) { + memoizedIsInitialized = 0; + return false; + } + } + for (int i = 0; i < getAffectedStationsCount(); i++) { + if (!getAffectedStations(i).isInitialized()) { + memoizedIsInitialized = 0; + return false; + } + } + if (hasScreensSummary()) { + if (!getScreensSummary().isInitialized()) { + memoizedIsInitialized = 0; + return false; + } + } + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeUInt64(1, createdAt_); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeUInt64(2, updatedAt_); + } + if (((bitField0_ & 0x00000004) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, alertType_); + } + for (int i = 0; i < stationAlternative_.size(); i++) { + output.writeMessage(4, stationAlternative_.get(i)); + } + for (int i = 0; i < servicePlanNumber_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, servicePlanNumber_.getRaw(i)); + } + for (int i = 0; i < generalOrderNumber_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, generalOrderNumber_.getRaw(i)); + } + if (((bitField0_ & 0x00000008) != 0)) { + output.writeUInt64(7, displayBeforeActive_); + } + if (((bitField0_ & 0x00000010) != 0)) { + output.writeMessage(8, getHumanReadableActivePeriod()); + } + if (((bitField0_ & 0x00000020) != 0)) { + output.writeUInt64(9, directionality_); + } + for (int i = 0; i < affectedStations_.size(); i++) { + output.writeMessage(10, affectedStations_.get(i)); + } + if (((bitField0_ & 0x00000040) != 0)) { + output.writeMessage(11, getScreensSummary()); + } + if (((bitField0_ & 0x00000080) != 0)) { + output.writeBool(12, noAffectedStations_); + } + if (((bitField0_ & 0x00000100) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 13, cloneId_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeUInt64Size(1, createdAt_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeUInt64Size(2, updatedAt_); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, alertType_); + } + for (int i = 0; i < stationAlternative_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, stationAlternative_.get(i)); + } + { + int dataSize = 0; + for (int i = 0; i < servicePlanNumber_.size(); i++) { + dataSize += computeStringSizeNoTag(servicePlanNumber_.getRaw(i)); + } + size += dataSize; + size += 1 * getServicePlanNumberList().size(); + } + { + int dataSize = 0; + for (int i = 0; i < generalOrderNumber_.size(); i++) { + dataSize += computeStringSizeNoTag(generalOrderNumber_.getRaw(i)); + } + size += dataSize; + size += 1 * getGeneralOrderNumberList().size(); + } + if (((bitField0_ & 0x00000008) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeUInt64Size(7, displayBeforeActive_); + } + if (((bitField0_ & 0x00000010) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(8, getHumanReadableActivePeriod()); + } + if (((bitField0_ & 0x00000020) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeUInt64Size(9, directionality_); + } + for (int i = 0; i < affectedStations_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(10, affectedStations_.get(i)); + } + if (((bitField0_ & 0x00000040) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(11, getScreensSummary()); + } + if (((bitField0_ & 0x00000080) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(12, noAffectedStations_); + } + if (((bitField0_ & 0x00000100) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(13, cloneId_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof dev.katsute.onemta.ServiceStatusProto.MercuryAlert)) { + return super.equals(obj); + } + dev.katsute.onemta.ServiceStatusProto.MercuryAlert other = (dev.katsute.onemta.ServiceStatusProto.MercuryAlert) obj; + + if (hasCreatedAt() != other.hasCreatedAt()) return false; + if (hasCreatedAt()) { + if (getCreatedAt() + != other.getCreatedAt()) return false; + } + if (hasUpdatedAt() != other.hasUpdatedAt()) return false; + if (hasUpdatedAt()) { + if (getUpdatedAt() + != other.getUpdatedAt()) return false; + } + if (hasAlertType() != other.hasAlertType()) return false; + if (hasAlertType()) { + if (!getAlertType() + .equals(other.getAlertType())) return false; + } + if (!getStationAlternativeList() + .equals(other.getStationAlternativeList())) return false; + if (!getServicePlanNumberList() + .equals(other.getServicePlanNumberList())) return false; + if (!getGeneralOrderNumberList() + .equals(other.getGeneralOrderNumberList())) return false; + if (hasDisplayBeforeActive() != other.hasDisplayBeforeActive()) return false; + if (hasDisplayBeforeActive()) { + if (getDisplayBeforeActive() + != other.getDisplayBeforeActive()) return false; + } + if (hasHumanReadableActivePeriod() != other.hasHumanReadableActivePeriod()) return false; + if (hasHumanReadableActivePeriod()) { + if (!getHumanReadableActivePeriod() + .equals(other.getHumanReadableActivePeriod())) return false; + } + if (hasDirectionality() != other.hasDirectionality()) return false; + if (hasDirectionality()) { + if (getDirectionality() + != other.getDirectionality()) return false; + } + if (!getAffectedStationsList() + .equals(other.getAffectedStationsList())) return false; + if (hasScreensSummary() != other.hasScreensSummary()) return false; + if (hasScreensSummary()) { + if (!getScreensSummary() + .equals(other.getScreensSummary())) return false; + } + if (hasNoAffectedStations() != other.hasNoAffectedStations()) return false; + if (hasNoAffectedStations()) { + if (getNoAffectedStations() + != other.getNoAffectedStations()) return false; + } + if (hasCloneId() != other.hasCloneId()) return false; + if (hasCloneId()) { + if (!getCloneId() + .equals(other.getCloneId())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasCreatedAt()) { + hash = (37 * hash) + CREATED_AT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getCreatedAt()); + } + if (hasUpdatedAt()) { + hash = (37 * hash) + UPDATED_AT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getUpdatedAt()); + } + if (hasAlertType()) { + hash = (37 * hash) + ALERT_TYPE_FIELD_NUMBER; + hash = (53 * hash) + getAlertType().hashCode(); + } + if (getStationAlternativeCount() > 0) { + hash = (37 * hash) + STATION_ALTERNATIVE_FIELD_NUMBER; + hash = (53 * hash) + getStationAlternativeList().hashCode(); + } + if (getServicePlanNumberCount() > 0) { + hash = (37 * hash) + SERVICE_PLAN_NUMBER_FIELD_NUMBER; + hash = (53 * hash) + getServicePlanNumberList().hashCode(); + } + if (getGeneralOrderNumberCount() > 0) { + hash = (37 * hash) + GENERAL_ORDER_NUMBER_FIELD_NUMBER; + hash = (53 * hash) + getGeneralOrderNumberList().hashCode(); + } + if (hasDisplayBeforeActive()) { + hash = (37 * hash) + DISPLAY_BEFORE_ACTIVE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getDisplayBeforeActive()); + } + if (hasHumanReadableActivePeriod()) { + hash = (37 * hash) + HUMAN_READABLE_ACTIVE_PERIOD_FIELD_NUMBER; + hash = (53 * hash) + getHumanReadableActivePeriod().hashCode(); + } + if (hasDirectionality()) { + hash = (37 * hash) + DIRECTIONALITY_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getDirectionality()); + } + if (getAffectedStationsCount() > 0) { + hash = (37 * hash) + AFFECTED_STATIONS_FIELD_NUMBER; + hash = (53 * hash) + getAffectedStationsList().hashCode(); + } + if (hasScreensSummary()) { + hash = (37 * hash) + SCREENS_SUMMARY_FIELD_NUMBER; + hash = (53 * hash) + getScreensSummary().hashCode(); + } + if (hasNoAffectedStations()) { + hash = (37 * hash) + NO_AFFECTED_STATIONS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getNoAffectedStations()); + } + if (hasCloneId()) { + hash = (37 * hash) + CLONE_ID_FIELD_NUMBER; + hash = (53 * hash) + getCloneId().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + public static dev.katsute.onemta.ServiceStatusProto.MercuryAlert parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -2259,6 +2882,278 @@ public Builder addRepeatedField( java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof dev.katsute.onemta.ServiceStatusProto.MercuryAlert) { + return mergeFrom((dev.katsute.onemta.ServiceStatusProto.MercuryAlert)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(dev.katsute.onemta.ServiceStatusProto.MercuryAlert other) { + if (other == dev.katsute.onemta.ServiceStatusProto.MercuryAlert.getDefaultInstance()) return this; + if (other.hasCreatedAt()) { + setCreatedAt(other.getCreatedAt()); + } + if (other.hasUpdatedAt()) { + setUpdatedAt(other.getUpdatedAt()); + } + if (other.hasAlertType()) { + alertType_ = other.alertType_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (stationAlternativeBuilder_ == null) { + if (!other.stationAlternative_.isEmpty()) { + if (stationAlternative_.isEmpty()) { + stationAlternative_ = other.stationAlternative_; + bitField0_ = (bitField0_ & ~0x00000008); + } else { + ensureStationAlternativeIsMutable(); + stationAlternative_.addAll(other.stationAlternative_); + } + onChanged(); + } + } else { + if (!other.stationAlternative_.isEmpty()) { + if (stationAlternativeBuilder_.isEmpty()) { + stationAlternativeBuilder_.dispose(); + stationAlternativeBuilder_ = null; + stationAlternative_ = other.stationAlternative_; + bitField0_ = (bitField0_ & ~0x00000008); + stationAlternativeBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getStationAlternativeFieldBuilder() : null; + } else { + stationAlternativeBuilder_.addAllMessages(other.stationAlternative_); + } + } + } + if (!other.servicePlanNumber_.isEmpty()) { + if (servicePlanNumber_.isEmpty()) { + servicePlanNumber_ = other.servicePlanNumber_; + bitField0_ |= 0x00000010; + } else { + ensureServicePlanNumberIsMutable(); + servicePlanNumber_.addAll(other.servicePlanNumber_); + } + onChanged(); + } + if (!other.generalOrderNumber_.isEmpty()) { + if (generalOrderNumber_.isEmpty()) { + generalOrderNumber_ = other.generalOrderNumber_; + bitField0_ |= 0x00000020; + } else { + ensureGeneralOrderNumberIsMutable(); + generalOrderNumber_.addAll(other.generalOrderNumber_); + } + onChanged(); + } + if (other.hasDisplayBeforeActive()) { + setDisplayBeforeActive(other.getDisplayBeforeActive()); + } + if (other.hasHumanReadableActivePeriod()) { + mergeHumanReadableActivePeriod(other.getHumanReadableActivePeriod()); + } + if (other.hasDirectionality()) { + setDirectionality(other.getDirectionality()); + } + if (affectedStationsBuilder_ == null) { + if (!other.affectedStations_.isEmpty()) { + if (affectedStations_.isEmpty()) { + affectedStations_ = other.affectedStations_; + bitField0_ = (bitField0_ & ~0x00000200); + } else { + ensureAffectedStationsIsMutable(); + affectedStations_.addAll(other.affectedStations_); + } + onChanged(); + } + } else { + if (!other.affectedStations_.isEmpty()) { + if (affectedStationsBuilder_.isEmpty()) { + affectedStationsBuilder_.dispose(); + affectedStationsBuilder_ = null; + affectedStations_ = other.affectedStations_; + bitField0_ = (bitField0_ & ~0x00000200); + affectedStationsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getAffectedStationsFieldBuilder() : null; + } else { + affectedStationsBuilder_.addAllMessages(other.affectedStations_); + } + } + } + if (other.hasScreensSummary()) { + mergeScreensSummary(other.getScreensSummary()); + } + if (other.hasNoAffectedStations()) { + setNoAffectedStations(other.getNoAffectedStations()); + } + if (other.hasCloneId()) { + cloneId_ = other.cloneId_; + bitField0_ |= 0x00001000; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + if (!hasCreatedAt()) { + return false; + } + if (!hasUpdatedAt()) { + return false; + } + if (!hasAlertType()) { + return false; + } + for (int i = 0; i < getStationAlternativeCount(); i++) { + if (!getStationAlternative(i).isInitialized()) { + return false; + } + } + if (hasHumanReadableActivePeriod()) { + if (!getHumanReadableActivePeriod().isInitialized()) { + return false; + } + } + for (int i = 0; i < getAffectedStationsCount(); i++) { + if (!getAffectedStations(i).isInitialized()) { + return false; + } + } + if (hasScreensSummary()) { + if (!getScreensSummary().isInitialized()) { + return false; + } + } + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + createdAt_ = input.readUInt64(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: { + updatedAt_ = input.readUInt64(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: { + alertType_ = input.readBytes(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + dev.katsute.onemta.ServiceStatusProto.MercuryStationAlternative m = + input.readMessage( + dev.katsute.onemta.ServiceStatusProto.MercuryStationAlternative.PARSER, + extensionRegistry); + if (stationAlternativeBuilder_ == null) { + ensureStationAlternativeIsMutable(); + stationAlternative_.add(m); + } else { + stationAlternativeBuilder_.addMessage(m); + } + break; + } // case 34 + case 42: { + com.google.protobuf.ByteString bs = input.readBytes(); + ensureServicePlanNumberIsMutable(); + servicePlanNumber_.add(bs); + break; + } // case 42 + case 50: { + com.google.protobuf.ByteString bs = input.readBytes(); + ensureGeneralOrderNumberIsMutable(); + generalOrderNumber_.add(bs); + break; + } // case 50 + case 56: { + displayBeforeActive_ = input.readUInt64(); + bitField0_ |= 0x00000040; + break; + } // case 56 + case 66: { + input.readMessage( + getHumanReadableActivePeriodFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000080; + break; + } // case 66 + case 72: { + directionality_ = input.readUInt64(); + bitField0_ |= 0x00000100; + break; + } // case 72 + case 82: { + dev.katsute.onemta.GTFSRealtimeProto.EntitySelector m = + input.readMessage( + dev.katsute.onemta.GTFSRealtimeProto.EntitySelector.PARSER, + extensionRegistry); + if (affectedStationsBuilder_ == null) { + ensureAffectedStationsIsMutable(); + affectedStations_.add(m); + } else { + affectedStationsBuilder_.addMessage(m); + } + break; + } // case 82 + case 90: { + input.readMessage( + getScreensSummaryFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000400; + break; + } // case 90 + case 96: { + noAffectedStations_ = input.readBool(); + bitField0_ |= 0x00000800; + break; + } // case 96 + case 106: { + cloneId_ = input.readBytes(); + bitField0_ |= 0x00001000; + break; + } // case 106 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } private int bitField0_; private long createdAt_ ; @@ -4235,6 +5130,79 @@ public java.lang.String getSortOrder() { } } + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + if (!hasSortOrder()) { + memoizedIsInitialized = 0; + return false; + } + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, sortOrder_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, sortOrder_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof dev.katsute.onemta.ServiceStatusProto.MercuryEntitySelector)) { + return super.equals(obj); + } + dev.katsute.onemta.ServiceStatusProto.MercuryEntitySelector other = (dev.katsute.onemta.ServiceStatusProto.MercuryEntitySelector) obj; + + if (hasSortOrder() != other.hasSortOrder()) return false; + if (hasSortOrder()) { + if (!getSortOrder() + .equals(other.getSortOrder())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasSortOrder()) { + hash = (37 * hash) + SORT_ORDER_FIELD_NUMBER; + hash = (53 * hash) + getSortOrder().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + public static dev.katsute.onemta.ServiceStatusProto.MercuryEntitySelector parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -4439,6 +5407,72 @@ public Builder addRepeatedField( java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof dev.katsute.onemta.ServiceStatusProto.MercuryEntitySelector) { + return mergeFrom((dev.katsute.onemta.ServiceStatusProto.MercuryEntitySelector)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(dev.katsute.onemta.ServiceStatusProto.MercuryEntitySelector other) { + if (other == dev.katsute.onemta.ServiceStatusProto.MercuryEntitySelector.getDefaultInstance()) return this; + if (other.hasSortOrder()) { + sortOrder_ = other.sortOrder_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + if (!hasSortOrder()) { + return false; + } + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + sortOrder_ = input.readBytes(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } private int bitField0_; private java.lang.Object sortOrder_ = ""; @@ -4715,7 +5749,7 @@ public dev.katsute.onemta.ServiceStatusProto.MercuryEntitySelector getDefaultIns "ert:k\n\027mercury_entity_selector\022 .transit" + "_realtime.EntitySelector\030\351\007 \001(\0132\'.transi" + "t_realtime.MercuryEntitySelectorB*\n\022dev." + - "katsute.onemtaB\022ServiceStatusProtoH\002" + "katsute.onemtaB\022ServiceStatusProtoH\001" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData,